meshy-node 0.4.5 → 0.4.6
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-D90kD6BP.js +124 -0
- package/dashboard/assets/{DashboardShared-BdpxWcCV.js → DashboardShared-C3JGW4Hk.js} +2 -2
- package/dashboard/assets/{DiffTab-CMaYxRh2.js → DiffTab-Dwqf5Gav.js} +2 -2
- package/dashboard/assets/{FilesTab-8EoW1a5F.js → FilesTab-DGtXQ9rR.js} +1 -1
- package/dashboard/assets/{PreviewTab-DJEeyGWo.js → PreviewTab-BcdMUFw3.js} +2 -2
- package/dashboard/assets/{SharedConversationPage-hyt9OBkY.js → SharedConversationPage-CYx3AV6M.js} +3 -3
- package/dashboard/assets/{file-BBYxpzot.js → file-BeUioHu4.js} +1 -1
- package/dashboard/assets/{folder-BCnKXNII.js → folder-Dl50jm8B.js} +1 -1
- package/dashboard/assets/index-BOC8nP24.css +1 -0
- package/dashboard/assets/index-D2UnB_kx.js +301 -0
- package/dashboard/assets/play-B08sSxiw.js +6 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +239 -44
- package/package.json +1 -1
- package/runtime-metadata.json +5 -5
- package/dashboard/assets/DashboardPage-ByMFp2Hx.js +0 -124
- package/dashboard/assets/index-BgSOSh2K.js +0 -301
- package/dashboard/assets/index-BzzXPy7Y.css +0 -1
- package/dashboard/assets/input-BcMrrsRJ.js +0 -6
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-ByMFp2Hx.js","assets/DashboardShared-BdpxWcCV.js","assets/input-BcMrrsRJ.js","assets/folder-BCnKXNII.js","assets/SharedConversationPage-hyt9OBkY.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function NS(n,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in n)){const d=Object.getOwnPropertyDescriptor(i,u);d&&Object.defineProperty(n,u,d.get?d:{enumerable:!0,get:()=>i[u]})}}}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 u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();function Rv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var cd={exports:{}},To={};/**
|
|
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 Eg;function TS(){if(Eg)return To;Eg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,u,d){var f=null;if(d!==void 0&&(f=""+d),u.key!==void 0&&(f=""+u.key),"key"in u){d={};for(var m in u)m!=="key"&&(d[m]=u[m])}else d=u;return u=d.ref,{$$typeof:n,type:i,key:f,ref:u!==void 0?u:null,props:d}}return To.Fragment=r,To.jsx=o,To.jsxs=o,To}var Ng;function CS(){return Ng||(Ng=1,cd.exports=TS()),cd.exports}var h=CS(),ud={exports:{}},Ee={};/**
|
|
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 Tg;function AS(){if(Tg)return Ee;Tg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),w=Symbol.iterator;function E(_){return _===null||typeof _!="object"?null:(_=w&&_[w]||_["@@iterator"],typeof _=="function"?_:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,T={};function C(_,X,Z){this.props=_,this.context=X,this.refs=T,this.updater=Z||A}C.prototype.isReactComponent={},C.prototype.setState=function(_,X){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,X,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function O(){}O.prototype=C.prototype;function M(_,X,Z){this.props=_,this.context=X,this.refs=T,this.updater=Z||A}var z=M.prototype=new O;z.constructor=M,N(z,C.prototype),z.isPureReactComponent=!0;var q=Array.isArray;function G(){}var H={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function le(_,X,Z){var I=Z.ref;return{$$typeof:n,type:_,key:X,ref:I!==void 0?I:null,props:Z}}function he(_,X){return le(_.type,X,_.props)}function ge(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function fe(_){var X={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Z){return X[Z]})}var pe=/\/+/g;function ve(_,X){return typeof _=="object"&&_!==null&&_.key!=null?fe(""+_.key):X.toString(36)}function de(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(G,G):(_.status="pending",_.then(function(X){_.status==="pending"&&(_.status="fulfilled",_.value=X)},function(X){_.status==="pending"&&(_.status="rejected",_.reason=X)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function j(_,X,Z,I,W){var ae=typeof _;(ae==="undefined"||ae==="boolean")&&(_=null);var ee=!1;if(_===null)ee=!0;else switch(ae){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(_.$$typeof){case n:case r:ee=!0;break;case x:return ee=_._init,j(ee(_._payload),X,Z,I,W)}}if(ee)return W=W(_),ee=I===""?"."+ve(_,0):I,q(W)?(Z="",ee!=null&&(Z=ee.replace(pe,"$&/")+"/"),j(W,X,Z,"",function(Te){return Te})):W!=null&&(ge(W)&&(W=he(W,Z+(W.key==null||_&&_.key===W.key?"":(""+W.key).replace(pe,"$&/")+"/")+ee)),X.push(W)),1;ee=0;var re=I===""?".":I+":";if(q(_))for(var ie=0;ie<_.length;ie++)I=_[ie],ae=re+ve(I,ie),ee+=j(I,X,Z,ae,W);else if(ie=E(_),typeof ie=="function")for(_=ie.call(_),ie=0;!(I=_.next()).done;)I=I.value,ae=re+ve(I,ie++),ee+=j(I,X,Z,ae,W);else if(ae==="object"){if(typeof _.then=="function")return j(de(_),X,Z,I,W);throw X=String(_),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ee}function $(_,X,Z){if(_==null)return _;var I=[],W=0;return j(_,I,"","",function(ae){return X.call(Z,ae,W++)}),I}function J(_){if(_._status===-1){var X=_._result;X=X(),X.then(function(Z){(_._status===0||_._status===-1)&&(_._status=1,_._result=Z)},function(Z){(_._status===0||_._status===-1)&&(_._status=2,_._result=Z)}),_._status===-1&&(_._status=0,_._result=X)}if(_._status===1)return _._result.default;throw _._result}var oe=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},F={map:$,forEach:function(_,X,Z){$(_,function(){X.apply(this,arguments)},Z)},count:function(_){var X=0;return $(_,function(){X++}),X},toArray:function(_){return $(_,function(X){return X})||[]},only:function(_){if(!ge(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ee.Activity=g,Ee.Children=F,Ee.Component=C,Ee.Fragment=o,Ee.Profiler=u,Ee.PureComponent=M,Ee.StrictMode=i,Ee.Suspense=y,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(_){return H.H.useMemoCache(_)}},Ee.cache=function(_){return function(){return _.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(_,X,Z){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var I=N({},_.props),W=_.key;if(X!=null)for(ae in X.key!==void 0&&(W=""+X.key),X)!V.call(X,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&X.ref===void 0||(I[ae]=X[ae]);var ae=arguments.length-2;if(ae===1)I.children=Z;else if(1<ae){for(var ee=Array(ae),re=0;re<ae;re++)ee[re]=arguments[re+2];I.children=ee}return le(_.type,W,I)},Ee.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:d,_context:_},_},Ee.createElement=function(_,X,Z){var I,W={},ae=null;if(X!=null)for(I in X.key!==void 0&&(ae=""+X.key),X)V.call(X,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(W[I]=X[I]);var ee=arguments.length-2;if(ee===1)W.children=Z;else if(1<ee){for(var re=Array(ee),ie=0;ie<ee;ie++)re[ie]=arguments[ie+2];W.children=re}if(_&&_.defaultProps)for(I in ee=_.defaultProps,ee)W[I]===void 0&&(W[I]=ee[I]);return le(_,ae,W)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(_){return{$$typeof:m,render:_}},Ee.isValidElement=ge,Ee.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:J}},Ee.memo=function(_,X){return{$$typeof:p,type:_,compare:X===void 0?null:X}},Ee.startTransition=function(_){var X=H.T,Z={};H.T=Z;try{var I=_(),W=H.S;W!==null&&W(Z,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(G,oe)}catch(ae){oe(ae)}finally{X!==null&&Z.types!==null&&(X.types=Z.types),H.T=X}},Ee.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ee.use=function(_){return H.H.use(_)},Ee.useActionState=function(_,X,Z){return H.H.useActionState(_,X,Z)},Ee.useCallback=function(_,X){return H.H.useCallback(_,X)},Ee.useContext=function(_){return H.H.useContext(_)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(_,X){return H.H.useDeferredValue(_,X)},Ee.useEffect=function(_,X){return H.H.useEffect(_,X)},Ee.useEffectEvent=function(_){return H.H.useEffectEvent(_)},Ee.useId=function(){return H.H.useId()},Ee.useImperativeHandle=function(_,X,Z){return H.H.useImperativeHandle(_,X,Z)},Ee.useInsertionEffect=function(_,X){return H.H.useInsertionEffect(_,X)},Ee.useLayoutEffect=function(_,X){return H.H.useLayoutEffect(_,X)},Ee.useMemo=function(_,X){return H.H.useMemo(_,X)},Ee.useOptimistic=function(_,X){return H.H.useOptimistic(_,X)},Ee.useReducer=function(_,X,Z){return H.H.useReducer(_,X,Z)},Ee.useRef=function(_){return H.H.useRef(_)},Ee.useState=function(_){return H.H.useState(_)},Ee.useSyncExternalStore=function(_,X,Z){return H.H.useSyncExternalStore(_,X,Z)},Ee.useTransition=function(){return H.H.useTransition()},Ee.version="19.2.4",Ee}var Cg;function Jd(){return Cg||(Cg=1,ud.exports=AS()),ud.exports}var b=Jd();const te=Rv(b),Fd=NS({__proto__:null,default:te},[b]);var dd={exports:{}},Co={},fd={exports:{}},md={};/**
|
|
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 Ag;function RS(){return Ag||(Ag=1,(function(n){function r(j,$){var J=j.length;j.push($);e:for(;0<J;){var oe=J-1>>>1,F=j[oe];if(0<u(F,$))j[oe]=$,j[J]=F,J=oe;else break e}}function o(j){return j.length===0?null:j[0]}function i(j){if(j.length===0)return null;var $=j[0],J=j.pop();if(J!==$){j[0]=J;e:for(var oe=0,F=j.length,_=F>>>1;oe<_;){var X=2*(oe+1)-1,Z=j[X],I=X+1,W=j[I];if(0>u(Z,J))I<F&&0>u(W,Z)?(j[oe]=W,j[I]=J,oe=I):(j[oe]=Z,j[X]=J,oe=X);else if(I<F&&0>u(W,J))j[oe]=W,j[I]=J,oe=I;else break e}}return $}function u(j,$){var J=j.sortIndex-$.sortIndex;return J!==0?J:j.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var y=[],p=[],x=1,g=null,w=3,E=!1,A=!1,N=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function z(j){for(var $=o(p);$!==null;){if($.callback===null)i(p);else if($.startTime<=j)i(p),$.sortIndex=$.expirationTime,r(y,$);else break;$=o(p)}}function q(j){if(N=!1,z(j),!A)if(o(y)!==null)A=!0,G||(G=!0,fe());else{var $=o(p);$!==null&&de(q,$.startTime-j)}}var G=!1,H=-1,V=5,le=-1;function he(){return T?!0:!(n.unstable_now()-le<V)}function ge(){if(T=!1,G){var j=n.unstable_now();le=j;var $=!0;try{e:{A=!1,N&&(N=!1,O(H),H=-1),E=!0;var J=w;try{t:{for(z(j),g=o(y);g!==null&&!(g.expirationTime>j&&he());){var oe=g.callback;if(typeof oe=="function"){g.callback=null,w=g.priorityLevel;var F=oe(g.expirationTime<=j);if(j=n.unstable_now(),typeof F=="function"){g.callback=F,z(j),$=!0;break t}g===o(y)&&i(y),z(j)}else i(y);g=o(y)}if(g!==null)$=!0;else{var _=o(p);_!==null&&de(q,_.startTime-j),$=!1}}break e}finally{g=null,w=J,E=!1}$=void 0}}finally{$?fe():G=!1}}}var fe;if(typeof M=="function")fe=function(){M(ge)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ve=pe.port2;pe.port1.onmessage=ge,fe=function(){ve.postMessage(null)}}else fe=function(){C(ge,0)};function de(j,$){H=C(function(){j(n.unstable_now())},$)}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(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(j){switch(w){case 1:case 2:case 3:var $=3;break;default:$=w}var J=w;w=$;try{return j()}finally{w=J}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(j,$){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var J=w;w=j;try{return $()}finally{w=J}},n.unstable_scheduleCallback=function(j,$,J){var oe=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?oe+J:oe):J=oe,j){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=J+F,j={id:x++,callback:$,priorityLevel:j,startTime:J,expirationTime:F,sortIndex:-1},J>oe?(j.sortIndex=J,r(p,j),o(y)===null&&j===o(p)&&(N?(O(H),H=-1):N=!0,de(q,J-oe))):(j.sortIndex=F,r(y,j),A||E||(A=!0,G||(G=!0,fe()))),j},n.unstable_shouldYield=he,n.unstable_wrapCallback=function(j){var $=w;return function(){var J=w;w=$;try{return j.apply(this,arguments)}finally{w=J}}}})(md)),md}var Rg;function _S(){return Rg||(Rg=1,fd.exports=RS()),fd.exports}var hd={exports:{}},_t={};/**
|
|
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 _g;function jS(){if(_g)return _t;_g=1;var n=Jd();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={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},u=Symbol.for("react.portal");function d(y,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:g==null?null:""+g,children:y,containerInfo:p,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,_t.createPortal=function(y,p){var x=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 d(y,p,null,x)},_t.flushSync=function(y){var p=f.T,x=i.p;try{if(f.T=null,i.p=2,y)return y()}finally{f.T=p,i.p=x,i.d.f()}},_t.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(y,p))},_t.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},_t.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,g=m(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:w,fetchPriority:E}):x==="script"&&i.d.X(y,{crossOrigin:g,integrity:w,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},_t.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);i.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(y)},_t.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,g=m(x,p.crossOrigin);i.d.L(y,x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},_t.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=m(p.as,p.crossOrigin);i.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(y)},_t.requestFormReset=function(y){i.d.r(y)},_t.unstable_batchedUpdates=function(y,p){return y(p)},_t.useFormState=function(y,p,x){return f.H.useFormState(y,p,x)},_t.useFormStatus=function(){return f.H.useHostTransitionStatus()},_t.version="19.2.4",_t}var jg;function _v(){if(jg)return hd.exports;jg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),hd.exports=jS(),hd.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 Og;function OS(){if(Og)return Co;Og=1;var n=_S(),r=Jd(),o=_v();function i(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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(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 f(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return y(s),e;if(c===l)return y(s),t;c=c.sibling}throw Error(i(188))}if(a.return!==l.return)a=s,l=c;else{for(var v=!1,S=s.child;S;){if(S===a){v=!0,a=s,l=c;break}if(S===l){v=!0,l=s,a=c;break}S=S.sibling}if(!v){for(S=c.child;S;){if(S===a){v=!0,a=c,l=s;break}if(S===l){v=!0,l=c,a=s;break}S=S.sibling}if(!v)throw Error(i(189))}}if(a.alternate!==l)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,w=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),M=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case q:return"Suspense";case G:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case M:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var de=Array.isArray,j=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},oe=[],F=-1;function _(e){return{current:e}}function X(e){0>F||(e.current=oe[F],oe[F]=null,F--)}function Z(e,t){F++,oe[F]=e.current,e.current=t}var I=_(null),W=_(null),ae=_(null),ee=_(null);function re(e,t){switch(Z(ae,t),Z(W,e),Z(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qp(t),e=Zp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(I),Z(I,e)}function ie(){X(I),X(W),X(ae)}function Te(e){e.memoizedState!==null&&Z(ee,e);var t=I.current,a=Zp(t,e.type);t!==a&&(Z(W,e),Z(I,a))}function Se(e){W.current===e&&(X(I),X(W)),ee.current===e&&(X(ee),So._currentValue=J)}var ne,_e;function Ce(e){if(ne===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ne=t&&t[1]||"",_e=-1<a.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+ne+e+_e}var vt=!1;function mt(e,t){if(!e||vt)return"";vt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Y){var B=Y}Reflect.construct(e,[],P)}else{try{P.call()}catch(Y){B=Y}e.call(P.prototype)}}else{try{throw Error()}catch(Y){B=Y}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(Y){if(Y&&B&&typeof Y.stack=="string")return[Y.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),v=c[0],S=c[1];if(v&&S){var R=v.split(`
|
|
45
|
-
`),U=S.split(`
|
|
46
|
-
`);for(s=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(l===R.length||s===U.length)for(l=R.length-1,s=U.length-1;1<=l&&0<=s&&R[l]!==U[s];)s--;for(;1<=l&&0<=s;l--,s--)if(R[l]!==U[s]){if(l!==1||s!==1)do if(l--,s--,0>s||R[l]!==U[s]){var Q=`
|
|
47
|
-
`+R[l].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=l&&0<=s);break}}}finally{vt=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ce(a):""}function st(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce("Lazy");case 13:return e.child!==t&&t!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return mt(e.type,!1);case 11:return mt(e.type.render,!1);case 1:return mt(e.type,!0);case 31:return Ce("Activity");default:return""}}function nn(e){try{var t="",a=null;do t+=st(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
48
|
-
Error generating stack: `+l.message+`
|
|
49
|
-
`+l.stack}}var De=Object.prototype.hasOwnProperty,gn=n.unstable_scheduleCallback,Xt=n.unstable_cancelCallback,rt=n.unstable_shouldYield,va=n.unstable_requestPaint,Ot=n.unstable_now,Fs=n.unstable_getCurrentPriorityLevel,el=n.unstable_ImmediatePriority,qo=n.unstable_UserBlockingPriority,tl=n.unstable_NormalPriority,Dr=n.unstable_LowPriority,Qn=n.unstable_IdlePriority,$o=n.log,ya=n.unstable_setDisableYieldValue,nl=null,Mt=null;function vn(e){if(typeof $o=="function"&&ya(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(nl,e)}catch{}}var At=Math.clz32?Math.clz32:An,Is=Math.log,zr=Math.LN2;function An(e){return e>>>=0,e===0?32:31-(Is(e)/zr|0)|0}var Ml=256,Dl=262144,al=4194304;function Rn(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 we(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~c,l!==0?s=Rn(l):(v&=S,v!==0?s=Rn(v):a||(a=S&~e,a!==0&&(s=Rn(a))))):(S=l&~c,S!==0?s=Rn(S):v!==0?s=Rn(v):a||(a=l&~e,a!==0&&(s=Rn(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function Ie(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yt(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 Rt(){var e=al;return al<<=1,(al&62914560)===0&&(al=4194304),e}function ba(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zt(e,t,a,l,s,c){var v=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 S=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=v&~a;0<a;){var Q=31-At(a),P=1<<Q;S[Q]=0,R[Q]=-1;var B=U[Q];if(B!==null)for(U[Q]=null,Q=0;Q<B.length;Q++){var Y=B[Q];Y!==null&&(Y.lane&=-536870913)}a&=~P}l!==0&&ll(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(v&~t))}function ll(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function kt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-At(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function Lt(e,t){var a=t&-t;return a=(a&42)!==0?1:zl(a),(a&(e.suspendedLanes|t))!==0?0:a}function zl(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 yn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ws(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:gg(e.type))}function Mf(e,t){var a=$.p;try{return $.p=e,t()}finally{$.p=a}}var xa=Math.random().toString(36).slice(2),St="__reactFiber$"+xa,Ut="__reactProps$"+xa,kl="__reactContainer$"+xa,ec="__reactEvents$"+xa,mx="__reactListeners$"+xa,hx="__reactHandles$"+xa,Df="__reactResources$"+xa,kr="__reactMarker$"+xa;function tc(e){delete e[St],delete e[Ut],delete e[ec],delete e[mx],delete e[hx]}function Ll(e){var t=e[St];if(t)return t;for(var a=e.parentNode;a;){if(t=a[kl]||a[St]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=eg(e);e!==null;){if(a=e[St])return a;e=eg(e)}return t}e=a,a=e.parentNode}return null}function Ul(e){if(e=e[St]||e[kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Lr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Bl(e){var t=e[Df];return t||(t=e[Df]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function bt(e){e[kr]=!0}var zf=new Set,kf={};function rl(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(kf[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var px=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]*$"),Lf={},Uf={};function gx(e){return De.call(Uf,e)?!0:De.call(Lf,e)?!1:px.test(e)?Uf[e]=!0:(Lf[e]=!0,!1)}function Go(e,t,a){if(gx(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 Xo(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 Zn(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)}}function an(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vx(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(v){a=""+v,c.call(this,v)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nc(e){if(!e._valueTracker){var t=Bf(e)?"checked":"value";e._valueTracker=vx(e,t,""+e[t])}}function Hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Bf(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Qo(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 yx=/[\n"\\]/g;function ln(e){return e.replace(yx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ac(e,t,a,l,s,c,v,S){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+an(t)):e.value!==""+an(t)&&(e.value=""+an(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?lc(e,v,an(t)):a!=null?lc(e,v,an(a)):l!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+an(S):e.removeAttribute("name")}function Vf(e,t,a,l,s,c,v,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){nc(e);return}a=a!=null?""+an(a):"",t=t!=null?""+an(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),nc(e)}function lc(e,t,a){t==="number"&&Qo(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Vl(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+an(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Yf(e,t,a){if(t!=null&&(t=""+an(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+an(a):""}function qf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(i(92));if(de(l)){if(1<l.length)throw Error(i(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=an(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),nc(e)}function Yl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var bx=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 $f(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||bx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Gf(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(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 s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&$f(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&$f(e,c,t[c])}function rc(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 xx=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"]]),Sx=/^[\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 Zo(e){return Sx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kn(){}var oc=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,$l=null;function Xf(e){var t=Ul(e);if(t&&(e=t.stateNode)){var a=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(ac(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="'+ln(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[Ut]||null;if(!s)throw Error(i(90));ac(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Hf(l)}break e;case"textarea":Yf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Vl(e,!!a.multiple,t,!1)}}}var sc=!1;function Qf(e,t,a){if(sc)return e(t,a);sc=!0;try{var l=e(t);return l}finally{if(sc=!1,(ql!==null||$l!==null)&&(zi(),ql&&(t=ql,e=$l,$l=ql=null,Xf(t),e)))for(t=0;t<e.length;t++)Xf(e[t])}}function Ur(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Ut]||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(i(231,t,typeof a));return a}var Pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cc=!1;if(Pn)try{var Br={};Object.defineProperty(Br,"passive",{get:function(){cc=!0}}),window.addEventListener("test",Br,Br),window.removeEventListener("test",Br,Br)}catch{cc=!1}var Sa=null,uc=null,Ko=null;function Zf(){if(Ko)return Ko;var e,t=uc,a=t.length,l,s="value"in Sa?Sa.value:Sa.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var v=a-e;for(l=1;l<=v&&t[a-l]===s[c-l];l++);return Ko=s.slice(e,1<l?1-l:void 0)}function Po(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 Jo(){return!0}function Kf(){return!1}function Bt(e){function t(a,l,s,c,v){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=v,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Jo:Kf,this.isPropagationStopped=Kf,this}return g(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=Jo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Jo)},persist:function(){},isPersistent:Jo}),t}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fo=Bt(ol),Hr=g({},ol,{view:0,detail:0}),wx=Bt(Hr),dc,fc,Vr,Io=g({},Hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hc,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!==Vr&&(Vr&&e.type==="mousemove"?(dc=e.screenX-Vr.screenX,fc=e.screenY-Vr.screenY):fc=dc=0,Vr=e),dc)},movementY:function(e){return"movementY"in e?e.movementY:fc}}),Pf=Bt(Io),Ex=g({},Io,{dataTransfer:0}),Nx=Bt(Ex),Tx=g({},Hr,{relatedTarget:0}),mc=Bt(Tx),Cx=g({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Ax=Bt(Cx),Rx=g({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_x=Bt(Rx),jx=g({},ol,{data:0}),Jf=Bt(jx),Ox={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mx={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"},Dx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dx[e])?!!t[e]:!1}function hc(){return zx}var kx=g({},Hr,{key:function(e){if(e.key){var t=Ox[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Po(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hc,charCode:function(e){return e.type==="keypress"?Po(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Po(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lx=Bt(kx),Ux=g({},Io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ff=Bt(Ux),Bx=g({},Hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hc}),Hx=Bt(Bx),Vx=g({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yx=Bt(Vx),qx=g({},Io,{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}),$x=Bt(qx),Gx=g({},ol,{newState:0,oldState:0}),Xx=Bt(Gx),Qx=[9,13,27,32],pc=Pn&&"CompositionEvent"in window,Yr=null;Pn&&"documentMode"in document&&(Yr=document.documentMode);var Zx=Pn&&"TextEvent"in window&&!Yr,If=Pn&&(!pc||Yr&&8<Yr&&11>=Yr),Wf=" ",em=!1;function tm(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gl=!1;function Kx(e,t){switch(e){case"compositionend":return nm(t);case"keypress":return t.which!==32?null:(em=!0,Wf);case"textInput":return e=t.data,e===Wf&&em?null:e;default:return null}}function Px(e,t){if(Gl)return e==="compositionend"||!pc&&tm(e,t)?(e=Zf(),Ko=uc=Sa=null,Gl=!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 If&&t.locale!=="ko"?null:t.data;default:return null}}var Jx={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 am(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jx[e.type]:t==="textarea"}function lm(e,t,a,l){ql?$l?$l.push(l):$l=[l]:ql=l,t=Yi(t,"onChange"),0<t.length&&(a=new Fo("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var qr=null,$r=null;function Fx(e){Vp(e,0)}function Wo(e){var t=Lr(e);if(Hf(t))return e}function rm(e,t){if(e==="change")return t}var om=!1;if(Pn){var gc;if(Pn){var vc="oninput"in document;if(!vc){var im=document.createElement("div");im.setAttribute("oninput","return;"),vc=typeof im.oninput=="function"}gc=vc}else gc=!1;om=gc&&(!document.documentMode||9<document.documentMode)}function sm(){qr&&(qr.detachEvent("onpropertychange",cm),$r=qr=null)}function cm(e){if(e.propertyName==="value"&&Wo($r)){var t=[];lm(t,$r,e,ic(e)),Qf(Fx,t)}}function Ix(e,t,a){e==="focusin"?(sm(),qr=t,$r=a,qr.attachEvent("onpropertychange",cm)):e==="focusout"&&sm()}function Wx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wo($r)}function e1(e,t){if(e==="click")return Wo(t)}function t1(e,t){if(e==="input"||e==="change")return Wo(t)}function n1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:n1;function Gr(e,t){if(Qt(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 s=a[l];if(!De.call(t,s)||!Qt(e[s],t[s]))return!1}return!0}function um(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dm(e,t){var a=um(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=um(a)}}function fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qo(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=Qo(e.document)}return t}function yc(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 a1=Pn&&"documentMode"in document&&11>=document.documentMode,Xl=null,bc=null,Xr=null,xc=!1;function hm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xc||Xl==null||Xl!==Qo(l)||(l=Xl,"selectionStart"in l&&yc(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}),Xr&&Gr(Xr,l)||(Xr=l,l=Yi(bc,"onSelect"),0<l.length&&(t=new Fo("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Xl)))}function il(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ql={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionrun:il("Transition","TransitionRun"),transitionstart:il("Transition","TransitionStart"),transitioncancel:il("Transition","TransitionCancel"),transitionend:il("Transition","TransitionEnd")},Sc={},pm={};Pn&&(pm=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function sl(e){if(Sc[e])return Sc[e];if(!Ql[e])return e;var t=Ql[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in pm)return Sc[e]=t[a];return e}var gm=sl("animationend"),vm=sl("animationiteration"),ym=sl("animationstart"),l1=sl("transitionrun"),r1=sl("transitionstart"),o1=sl("transitioncancel"),bm=sl("transitionend"),xm=new Map,wc="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(" ");wc.push("scrollEnd");function bn(e,t){xm.set(e,t),rl(t,[e])}var ei=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)},rn=[],Zl=0,Ec=0;function ti(){for(var e=Zl,t=Ec=Zl=0;t<e;){var a=rn[t];rn[t++]=null;var l=rn[t];rn[t++]=null;var s=rn[t];rn[t++]=null;var c=rn[t];if(rn[t++]=null,l!==null&&s!==null){var v=l.pending;v===null?s.next=s:(s.next=v.next,v.next=s),l.pending=s}c!==0&&Sm(a,s,c)}}function ni(e,t,a,l){rn[Zl++]=e,rn[Zl++]=t,rn[Zl++]=a,rn[Zl++]=l,Ec|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Nc(e,t,a,l){return ni(e,t,a,l),ai(e)}function cl(e,t){return ni(e,null,null,t),ai(e)}function Sm(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-At(a),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),c):null}function ai(e){if(50<ho)throw ho=0,Du=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Kl={};function i1(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 Zt(e,t,a,l){return new i1(e,t,a,l)}function Tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jn(e,t){var a=e.alternate;return a===null?(a=Zt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function wm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,a,l,s,c){var v=0;if(l=e,typeof e=="function")Tc(e)&&(v=1);else if(typeof e=="string")v=fS(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Zt(31,a,t,s),e.elementType=le,e.lanes=c,e;case N:return ul(a.children,s,c,t);case T:v=8,s|=24;break;case C:return e=Zt(12,a,t,s|2),e.elementType=C,e.lanes=c,e;case q:return e=Zt(13,a,t,s),e.elementType=q,e.lanes=c,e;case G:return e=Zt(19,a,t,s),e.elementType=G,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:v=10;break e;case O:v=9;break e;case z:v=11;break e;case H:v=14;break e;case V:v=16,l=null;break e}v=29,a=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Zt(v,a,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function ul(e,t,a,l){return e=Zt(7,e,l,t),e.lanes=a,e}function Cc(e,t,a){return e=Zt(6,e,null,t),e.lanes=a,e}function Em(e){var t=Zt(18,null,null,0);return t.stateNode=e,t}function Ac(e,t,a){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Nm=new WeakMap;function on(e,t){if(typeof e=="object"&&e!==null){var a=Nm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:nn(t)},Nm.set(e,t),t)}return{value:e,source:t,stack:nn(t)}}var Pl=[],Jl=0,ri=null,Qr=0,sn=[],cn=0,wa=null,_n=1,jn="";function Fn(e,t){Pl[Jl++]=Qr,Pl[Jl++]=ri,ri=e,Qr=t}function Tm(e,t,a){sn[cn++]=_n,sn[cn++]=jn,sn[cn++]=wa,wa=e;var l=_n;e=jn;var s=32-At(l)-1;l&=~(1<<s),a+=1;var c=32-At(t)+s;if(30<c){var v=s-s%5;c=(l&(1<<v)-1).toString(32),l>>=v,s-=v,_n=1<<32-At(t)+s|a<<s|l,jn=c+e}else _n=1<<c|a<<s|l,jn=e}function Rc(e){e.return!==null&&(Fn(e,1),Tm(e,1,0))}function _c(e){for(;e===ri;)ri=Pl[--Jl],Pl[Jl]=null,Qr=Pl[--Jl],Pl[Jl]=null;for(;e===wa;)wa=sn[--cn],sn[cn]=null,jn=sn[--cn],sn[cn]=null,_n=sn[--cn],sn[cn]=null}function Cm(e,t){sn[cn++]=_n,sn[cn++]=jn,sn[cn++]=wa,_n=t.id,jn=t.overflow,wa=e}var wt=null,Je=null,Le=!1,Ea=null,un=!1,jc=Error(i(519));function Na(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zr(on(t,e)),jc}function Am(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[St]=e,t[Ut]=l,a){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(a=0;a<go.length;a++)Me(go[a],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),Vf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),qf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Gp(t.textContent,a)?(l.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),l.onScroll!=null&&Me("scroll",t),l.onScrollEnd!=null&&Me("scrollend",t),l.onClick!=null&&(t.onclick=Kn),t=!0):t=!1,t||Na(e,!0)}function Rm(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:wt=wt.return}}function Fl(e){if(e!==wt)return!1;if(!Le)return Rm(e),Le=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ku(e.type,e.memoizedProps)),a=!a),a&&Je&&Na(e),Rm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Je=Wp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Je=Wp(e)}else t===27?(t=Je,Ba(e.type)?(e=Wu,Wu=null,Je=e):Je=t):Je=wt?fn(e.stateNode.nextSibling):null;return!0}function dl(){Je=wt=null,Le=!1}function Oc(){var e=Ea;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),Ea=null),e}function Zr(e){Ea===null?Ea=[e]:Ea.push(e)}var Mc=_(null),fl=null,In=null;function Ta(e,t,a){Z(Mc,t._currentValue),t._currentValue=a}function Wn(e){e._currentValue=Mc.current,X(Mc)}function Dc(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 zc(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var v=s.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=s;for(var R=0;R<t.length;R++)if(S.context===t[R]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),Dc(c.return,a,e),l||(v=null);break e}c=S.next}}else if(s.tag===18){if(v=s.return,v===null)throw Error(i(341));v.lanes|=a,c=v.alternate,c!==null&&(c.lanes|=a),Dc(v,a,e),v=null}else v=s.child;if(v!==null)v.return=s;else for(v=s;v!==null;){if(v===e){v=null;break}if(s=v.sibling,s!==null){s.return=v.return,v=s;break}v=v.return}s=v}}function Il(e,t,a,l){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var v=s.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var S=s.type;Qt(s.pendingProps.value,v.value)||(e!==null?e.push(S):e=[S])}}else if(s===ee.current){if(v=s.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(So):e=[So])}s=s.return}e!==null&&zc(t,e,a,l),t.flags|=262144}function oi(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){fl=e,In=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return _m(fl,e)}function ii(e,t){return fl===null&&ml(e),_m(e,t)}function _m(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},In===null){if(e===null)throw Error(i(308));In=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else In=In.next=t;return a}var s1=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()})}},c1=n.unstable_scheduleCallback,u1=n.unstable_NormalPriority,ct={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kc(){return{controller:new s1,data:new Map,refCount:0}}function Kr(e){e.refCount--,e.refCount===0&&c1(u1,function(){e.controller.abort()})}var Pr=null,Lc=0,Wl=0,er=null;function d1(e,t){if(Pr===null){var a=Pr=[];Lc=0,Wl=Hu(),er={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Lc++,t.then(jm,jm),t}function jm(){if(--Lc===0&&Pr!==null){er!==null&&(er.status="fulfilled");var e=Pr;Pr=null,Wl=0,er=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function f1(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var Om=j.S;j.S=function(e,t){hp=Ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&d1(e,t),Om!==null&&Om(e,t)};var hl=_(null);function Uc(){var e=hl.current;return e!==null?e:Pe.pooledCache}function si(e,t){t===null?Z(hl,hl.current):Z(hl,t.pool)}function Mm(){var e=Uc();return e===null?null:{parent:ct._currentValue,pool:e}}var tr=Error(i(460)),Bc=Error(i(474)),ci=Error(i(542)),ui={then:function(){}};function Dm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Kn,Kn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lm(e),e;default:if(typeof t.status=="string")t.then(Kn,Kn);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lm(e),e}throw gl=t,tr}}function pl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(gl=a,tr):a}}var gl=null;function km(){if(gl===null)throw Error(i(459));var e=gl;return gl=null,e}function Lm(e){if(e===tr||e===ci)throw Error(i(483))}var nr=null,Jr=0;function di(e){var t=Jr;return Jr+=1,nr===null&&(nr=[]),zm(nr,e,t)}function Fr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fi(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Um(e){function t(k,D){if(e){var L=k.deletions;L===null?(k.deletions=[D],k.flags|=16):L.push(D)}}function a(k,D){if(!e)return null;for(;D!==null;)t(k,D),D=D.sibling;return null}function l(k){for(var D=new Map;k!==null;)k.key!==null?D.set(k.key,k):D.set(k.index,k),k=k.sibling;return D}function s(k,D){return k=Jn(k,D),k.index=0,k.sibling=null,k}function c(k,D,L){return k.index=L,e?(L=k.alternate,L!==null?(L=L.index,L<D?(k.flags|=67108866,D):L):(k.flags|=67108866,D)):(k.flags|=1048576,D)}function v(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function S(k,D,L,K){return D===null||D.tag!==6?(D=Cc(L,k.mode,K),D.return=k,D):(D=s(D,L),D.return=k,D)}function R(k,D,L,K){var ye=L.type;return ye===N?Q(k,D,L.props.children,K,L.key):D!==null&&(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&pl(ye)===D.type)?(D=s(D,L.props),Fr(D,L),D.return=k,D):(D=li(L.type,L.key,L.props,null,k.mode,K),Fr(D,L),D.return=k,D)}function U(k,D,L,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==L.containerInfo||D.stateNode.implementation!==L.implementation?(D=Ac(L,k.mode,K),D.return=k,D):(D=s(D,L.children||[]),D.return=k,D)}function Q(k,D,L,K,ye){return D===null||D.tag!==7?(D=ul(L,k.mode,K,ye),D.return=k,D):(D=s(D,L),D.return=k,D)}function P(k,D,L){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Cc(""+D,k.mode,L),D.return=k,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case E:return L=li(D.type,D.key,D.props,null,k.mode,L),Fr(L,D),L.return=k,L;case A:return D=Ac(D,k.mode,L),D.return=k,D;case V:return D=pl(D),P(k,D,L)}if(de(D)||fe(D))return D=ul(D,k.mode,L,null),D.return=k,D;if(typeof D.then=="function")return P(k,di(D),L);if(D.$$typeof===M)return P(k,ii(k,D),L);fi(k,D)}return null}function B(k,D,L,K){var ye=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ye!==null?null:S(k,D,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case E:return L.key===ye?R(k,D,L,K):null;case A:return L.key===ye?U(k,D,L,K):null;case V:return L=pl(L),B(k,D,L,K)}if(de(L)||fe(L))return ye!==null?null:Q(k,D,L,K,null);if(typeof L.then=="function")return B(k,D,di(L),K);if(L.$$typeof===M)return B(k,D,ii(k,L),K);fi(k,L)}return null}function Y(k,D,L,K,ye){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return k=k.get(L)||null,S(D,k,""+K,ye);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case E:return k=k.get(K.key===null?L:K.key)||null,R(D,k,K,ye);case A:return k=k.get(K.key===null?L:K.key)||null,U(D,k,K,ye);case V:return K=pl(K),Y(k,D,L,K,ye)}if(de(K)||fe(K))return k=k.get(L)||null,Q(D,k,K,ye,null);if(typeof K.then=="function")return Y(k,D,L,di(K),ye);if(K.$$typeof===M)return Y(k,D,L,ii(D,K),ye);fi(D,K)}return null}function se(k,D,L,K){for(var ye=null,He=null,me=D,Re=D=0,ke=null;me!==null&&Re<L.length;Re++){me.index>Re?(ke=me,me=null):ke=me.sibling;var Ve=B(k,me,L[Re],K);if(Ve===null){me===null&&(me=ke);break}e&&me&&Ve.alternate===null&&t(k,me),D=c(Ve,D,Re),He===null?ye=Ve:He.sibling=Ve,He=Ve,me=ke}if(Re===L.length)return a(k,me),Le&&Fn(k,Re),ye;if(me===null){for(;Re<L.length;Re++)me=P(k,L[Re],K),me!==null&&(D=c(me,D,Re),He===null?ye=me:He.sibling=me,He=me);return Le&&Fn(k,Re),ye}for(me=l(me);Re<L.length;Re++)ke=Y(me,k,Re,L[Re],K),ke!==null&&(e&&ke.alternate!==null&&me.delete(ke.key===null?Re:ke.key),D=c(ke,D,Re),He===null?ye=ke:He.sibling=ke,He=ke);return e&&me.forEach(function($a){return t(k,$a)}),Le&&Fn(k,Re),ye}function xe(k,D,L,K){if(L==null)throw Error(i(151));for(var ye=null,He=null,me=D,Re=D=0,ke=null,Ve=L.next();me!==null&&!Ve.done;Re++,Ve=L.next()){me.index>Re?(ke=me,me=null):ke=me.sibling;var $a=B(k,me,Ve.value,K);if($a===null){me===null&&(me=ke);break}e&&me&&$a.alternate===null&&t(k,me),D=c($a,D,Re),He===null?ye=$a:He.sibling=$a,He=$a,me=ke}if(Ve.done)return a(k,me),Le&&Fn(k,Re),ye;if(me===null){for(;!Ve.done;Re++,Ve=L.next())Ve=P(k,Ve.value,K),Ve!==null&&(D=c(Ve,D,Re),He===null?ye=Ve:He.sibling=Ve,He=Ve);return Le&&Fn(k,Re),ye}for(me=l(me);!Ve.done;Re++,Ve=L.next())Ve=Y(me,k,Re,Ve.value,K),Ve!==null&&(e&&Ve.alternate!==null&&me.delete(Ve.key===null?Re:Ve.key),D=c(Ve,D,Re),He===null?ye=Ve:He.sibling=Ve,He=Ve);return e&&me.forEach(function(ES){return t(k,ES)}),Le&&Fn(k,Re),ye}function Ke(k,D,L,K){if(typeof L=="object"&&L!==null&&L.type===N&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case E:e:{for(var ye=L.key;D!==null;){if(D.key===ye){if(ye=L.type,ye===N){if(D.tag===7){a(k,D.sibling),K=s(D,L.props.children),K.return=k,k=K;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&pl(ye)===D.type){a(k,D.sibling),K=s(D,L.props),Fr(K,L),K.return=k,k=K;break e}a(k,D);break}else t(k,D);D=D.sibling}L.type===N?(K=ul(L.props.children,k.mode,K,L.key),K.return=k,k=K):(K=li(L.type,L.key,L.props,null,k.mode,K),Fr(K,L),K.return=k,k=K)}return v(k);case A:e:{for(ye=L.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){a(k,D.sibling),K=s(D,L.children||[]),K.return=k,k=K;break e}else{a(k,D);break}else t(k,D);D=D.sibling}K=Ac(L,k.mode,K),K.return=k,k=K}return v(k);case V:return L=pl(L),Ke(k,D,L,K)}if(de(L))return se(k,D,L,K);if(fe(L)){if(ye=fe(L),typeof ye!="function")throw Error(i(150));return L=ye.call(L),xe(k,D,L,K)}if(typeof L.then=="function")return Ke(k,D,di(L),K);if(L.$$typeof===M)return Ke(k,D,ii(k,L),K);fi(k,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(a(k,D.sibling),K=s(D,L),K.return=k,k=K):(a(k,D),K=Cc(L,k.mode,K),K.return=k,k=K),v(k)):a(k,D)}return function(k,D,L,K){try{Jr=0;var ye=Ke(k,D,L,K);return nr=null,ye}catch(me){if(me===tr||me===ci)throw me;var He=Zt(29,me,null,k.mode);return He.lanes=K,He.return=k,He}finally{}}}var vl=Um(!0),Bm=Um(!1),Ca=!1;function Hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vc(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 Aa(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,(qe&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=ai(e),Sm(e,null,a),t}return ni(e,l,t,a),ai(e)}function Ir(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,kt(e,a)}}function Yc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=v:c=c.next=v,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,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 qc=!1;function Wr(){if(qc){var e=er;if(e!==null)throw e}}function eo(e,t,a,l){qc=!1;var s=e.updateQueue;Ca=!1;var c=s.firstBaseUpdate,v=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var R=S,U=R.next;R.next=null,v===null?c=U:v.next=U,v=R;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,S=Q.lastBaseUpdate,S!==v&&(S===null?Q.firstBaseUpdate=U:S.next=U,Q.lastBaseUpdate=R))}if(c!==null){var P=s.baseState;v=0,Q=U=R=null,S=c;do{var B=S.lane&-536870913,Y=B!==S.lane;if(Y?(ze&B)===B:(l&B)===B){B!==0&&B===Wl&&(qc=!0),Q!==null&&(Q=Q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var se=e,xe=S;B=t;var Ke=a;switch(xe.tag){case 1:if(se=xe.payload,typeof se=="function"){P=se.call(Ke,P,B);break e}P=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=xe.payload,B=typeof se=="function"?se.call(Ke,P,B):se,B==null)break e;P=g({},P,B);break e;case 2:Ca=!0}}B=S.callback,B!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=s.callbacks,Y===null?s.callbacks=[B]:Y.push(B))}else Y={lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Q===null?(U=Q=Y,R=P):Q=Q.next=Y,v|=B;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;Y=S,S=Y.next,Y.next=null,s.lastBaseUpdate=Y,s.shared.pending=null}}while(!0);Q===null&&(R=P),s.baseState=R,s.firstBaseUpdate=U,s.lastBaseUpdate=Q,c===null&&(s.shared.lanes=0),Da|=v,e.lanes=v,e.memoizedState=P}}function Hm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Vm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Hm(a[e],t)}var ar=_(null),mi=_(0);function Ym(e,t){e=sa,Z(mi,e),Z(ar,t),sa=e|t.baseLanes}function $c(){Z(mi,sa),Z(ar,ar.current)}function Gc(){sa=mi.current,X(ar),X(mi)}var Kt=_(null),dn=null;function _a(e){var t=e.alternate;Z(ot,ot.current&1),Z(Kt,e),dn===null&&(t===null||ar.current!==null||t.memoizedState!==null)&&(dn=e)}function Xc(e){Z(ot,ot.current),Z(Kt,e),dn===null&&(dn=e)}function qm(e){e.tag===22?(Z(ot,ot.current),Z(Kt,e),dn===null&&(dn=e)):ja()}function ja(){Z(ot,ot.current),Z(Kt,Kt.current)}function Pt(e){X(Kt),dn===e&&(dn=null),X(ot)}var ot=_(0);function hi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Fu(a)||Iu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var ea=0,Ae=null,Qe=null,ut=null,pi=!1,lr=!1,yl=!1,gi=0,to=0,rr=null,m1=0;function at(){throw Error(i(321))}function Qc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Qt(e[a],t[a]))return!1;return!0}function Zc(e,t,a,l,s,c){return ea=c,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Th:su,yl=!1,c=a(l,s),yl=!1,lr&&(c=Gm(t,a,l,s)),$m(e),c}function $m(e){j.H=lo;var t=Qe!==null&&Qe.next!==null;if(ea=0,ut=Qe=Ae=null,pi=!1,to=0,rr=null,t)throw Error(i(300));e===null||dt||(e=e.dependencies,e!==null&&oi(e)&&(dt=!0))}function Gm(e,t,a,l){Ae=e;var s=0;do{if(lr&&(rr=null),to=0,lr=!1,25<=s)throw Error(i(301));if(s+=1,ut=Qe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=Ch,c=t(a,l)}while(lr);return c}function h1(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?no(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Ae.flags|=1024),t}function Kc(){var e=gi!==0;return gi=0,e}function Pc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Jc(e){if(pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pi=!1}ea=0,ut=Qe=Ae=null,lr=!1,to=gi=0,rr=null}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ae.memoizedState=ut=e:ut=ut.next=e,ut}function it(){if(Qe===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=ut===null?Ae.memoizedState:ut.next;if(t!==null)ut=t,Qe=e;else{if(e===null)throw Ae.alternate===null?Error(i(467)):Error(i(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},ut===null?Ae.memoizedState=ut=e:ut=ut.next=e}return ut}function vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function no(e){var t=to;return to+=1,rr===null&&(rr=[]),e=zm(rr,e,t),t=Ae,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Th:su),e}function yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return no(e);if(e.$$typeof===M)return Et(e)}throw Error(i(438,String(e)))}function Fc(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(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=vi(),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]=he;return t.index++,a}function ta(e,t){return typeof t=="function"?t(e):t}function bi(e){var t=it();return Ic(t,Qe,e)}function Ic(e,t,a){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=a;var s=e.baseQueue,c=l.pending;if(c!==null){if(s!==null){var v=s.next;s.next=c.next,c.next=v}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var S=v=null,R=null,U=t,Q=!1;do{var P=U.lane&-536870913;if(P!==U.lane?(ze&P)===P:(ea&P)===P){var B=U.revertLane;if(B===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),P===Wl&&(Q=!0);else if((ea&B)===B){U=U.next,B===Wl&&(Q=!0);continue}else P={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=P,v=c):R=R.next=P,Ae.lanes|=B,Da|=B;P=U.action,yl&&a(c,P),c=U.hasEagerState?U.eagerState:a(c,P)}else B={lane:P,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=B,v=c):R=R.next=B,Ae.lanes|=P,Da|=P;U=U.next}while(U!==null&&U!==t);if(R===null?v=c:R.next=S,!Qt(c,e.memoizedState)&&(dt=!0,Q&&(a=er,a!==null)))throw a;e.memoizedState=c,e.baseState=v,e.baseQueue=R,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Wc(e){var t=it(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var v=s=s.next;do c=e(c,v.action),v=v.next;while(v!==s);Qt(c,t.memoizedState)||(dt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function Xm(e,t,a){var l=Ae,s=it(),c=Le;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var v=!Qt((Qe||s).memoizedState,a);if(v&&(s.memoizedState=a,dt=!0),s=s.queue,nu(Km.bind(null,l,s,e),[e]),s.getSnapshot!==t||v||ut!==null&&ut.memoizedState.tag&1){if(l.flags|=2048,or(9,{destroy:void 0},Zm.bind(null,l,s,a,t),null),Pe===null)throw Error(i(349));c||(ea&127)!==0||Qm(l,t,a)}return a}function Qm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=vi(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Zm(e,t,a,l){t.value=a,t.getSnapshot=l,Pm(t)&&Jm(e)}function Km(e,t,a){return a(function(){Pm(t)&&Jm(e)})}function Pm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Qt(e,a)}catch{return!0}}function Jm(e){var t=cl(e,2);t!==null&&$t(t,e,2)}function eu(e){var t=Dt();if(typeof e=="function"){var a=e;if(e=a(),yl){vn(!0);try{a()}finally{vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t}function Fm(e,t,a,l){return e.baseState=a,Ic(e,Qe,typeof l=="function"?l:ta)}function p1(e,t,a,l,s){if(wi(e))throw Error(i(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){c.listeners.push(v)}};j.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Im(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Im(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=j.T,v={};j.T=v;try{var S=a(s,l),R=j.S;R!==null&&R(v,S),Wm(e,t,S)}catch(U){tu(e,t,U)}finally{c!==null&&v.types!==null&&(c.types=v.types),j.T=c}}else try{c=a(s,l),Wm(e,t,c)}catch(U){tu(e,t,U)}}function Wm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){eh(e,t,l)},function(l){return tu(e,t,l)}):eh(e,t,a)}function eh(e,t,a){t.status="fulfilled",t.value=a,th(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Im(e,a)))}function tu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,th(t),t=t.next;while(t!==l)}e.action=null}function th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nh(e,t){return t}function ah(e,t){if(Le){var a=Pe.formState;if(a!==null){e:{var l=Ae;if(Le){if(Je){t:{for(var s=Je,c=un;s.nodeType!==8;){if(!c){s=null;break t}if(s=fn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Je=fn(s.nextSibling),l=s.data==="F!";break e}}Na(l)}l=!1}l&&(t=a[0])}}return a=Dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nh,lastRenderedState:t},a.queue=l,a=wh.bind(null,Ae,l),l.dispatch=a,l=eu(!1),c=iu.bind(null,Ae,!1,l.queue),l=Dt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=p1.bind(null,Ae,s,c,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function lh(e){var t=it();return rh(t,Qe,e)}function rh(e,t,a){if(t=Ic(e,t,nh)[0],e=bi(ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=no(t)}catch(v){throw v===tr?ci:v}else l=t;t=it();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,or(9,{destroy:void 0},g1.bind(null,s,a),null)),[l,c,e]}function g1(e,t){e.action=t}function oh(e){var t=it(),a=Qe;if(a!==null)return rh(t,a,e);it(),t=t.memoizedState,a=it();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function or(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=vi(),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 ih(){return it().memoizedState}function xi(e,t,a,l){var s=Dt();Ae.flags|=e,s.memoizedState=or(1|t,{destroy:void 0},a,l===void 0?null:l)}function Si(e,t,a,l){var s=it();l=l===void 0?null:l;var c=s.memoizedState.inst;Qe!==null&&l!==null&&Qc(l,Qe.memoizedState.deps)?s.memoizedState=or(t,c,a,l):(Ae.flags|=e,s.memoizedState=or(1|t,c,a,l))}function sh(e,t){xi(8390656,8,e,t)}function nu(e,t){Si(2048,8,e,t)}function v1(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=vi(),Ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ch(e){var t=it().memoizedState;return v1({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function uh(e,t){return Si(4,2,e,t)}function dh(e,t){return Si(4,4,e,t)}function fh(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 mh(e,t,a){a=a!=null?a.concat([e]):null,Si(4,4,fh.bind(null,t,e),a)}function au(){}function hh(e,t){var a=it();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Qc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function ph(e,t){var a=it();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Qc(t,l[1]))return l[0];if(l=e(),yl){vn(!0);try{e()}finally{vn(!1)}}return a.memoizedState=[l,t],l}function lu(e,t,a){return a===void 0||(ea&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=gp(),Ae.lanes|=e,Da|=e,a)}function gh(e,t,a,l){return Qt(a,t)?a:ar.current!==null?(e=lu(e,a,l),Qt(e,t)||(dt=!0),e):(ea&42)===0||(ea&1073741824)!==0&&(ze&261930)===0?(dt=!0,e.memoizedState=a):(e=gp(),Ae.lanes|=e,Da|=e,t)}function vh(e,t,a,l,s){var c=$.p;$.p=c!==0&&8>c?c:8;var v=j.T,S={};j.T=S,iu(e,!1,t,a);try{var R=s(),U=j.S;if(U!==null&&U(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Q=f1(R,l);ao(e,t,Q,It(e))}else ao(e,t,l,It(e))}catch(P){ao(e,t,{then:function(){},status:"rejected",reason:P},It())}finally{$.p=c,v!==null&&S.types!==null&&(v.types=S.types),j.T=v}}function y1(){}function ru(e,t,a,l){if(e.tag!==5)throw Error(i(476));var s=yh(e).queue;vh(e,s,t,J,a===null?y1:function(){return bh(e),a(l)})}function yh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bh(e){var t=yh(e);t.next===null&&(t=e.alternate.memoizedState),ao(e,t.next.queue,{},It())}function ou(){return Et(So)}function xh(){return it().memoizedState}function Sh(){return it().memoizedState}function b1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=Aa(a);var l=Ra(t,e,a);l!==null&&($t(l,t,a),Ir(l,t,a)),t={cache:kc()},e.payload=t;return}t=t.return}}function x1(e,t,a){var l=It();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wi(e)?Eh(t,a):(a=Nc(e,t,a,l),a!==null&&($t(a,e,l),Nh(a,t,l)))}function wh(e,t,a){var l=It();ao(e,t,a,l)}function ao(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(wi(e))Eh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var v=t.lastRenderedState,S=c(v,a);if(s.hasEagerState=!0,s.eagerState=S,Qt(S,v))return ni(e,t,s,0),Pe===null&&ti(),!1}catch{}finally{}if(a=Nc(e,t,s,l),a!==null)return $t(a,e,l),Nh(a,t,l),!0}return!1}function iu(e,t,a,l){if(l={lane:2,revertLane:Hu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wi(e)){if(t)throw Error(i(479))}else t=Nc(e,a,l,2),t!==null&&$t(t,e,2)}function wi(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Eh(e,t){lr=pi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Nh(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,kt(e,a)}}var lo={readContext:Et,use:yi,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};lo.useEffectEvent=at;var Th={readContext:Et,use:yi,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:sh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,xi(4194308,4,fh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return xi(4194308,4,e,t)},useInsertionEffect:function(e,t){xi(4,2,e,t)},useMemo:function(e,t){var a=Dt();t=t===void 0?null:t;var l=e();if(yl){vn(!0);try{e()}finally{vn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Dt();if(a!==void 0){var s=a(t);if(yl){vn(!0);try{a(t)}finally{vn(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=x1.bind(null,Ae,e),[l.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:function(e){e=eu(e);var t=e.queue,a=wh.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:au,useDeferredValue:function(e,t){var a=Dt();return lu(a,e,t)},useTransition:function(){var e=eu(!1);return e=vh.bind(null,Ae,e.queue,!0,!1),Dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Ae,s=Dt();if(Le){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Pe===null)throw Error(i(349));(ze&127)!==0||Qm(l,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,sh(Km.bind(null,l,c,e),[e]),l.flags|=2048,or(9,{destroy:void 0},Zm.bind(null,l,c,a,t),null),a},useId:function(){var e=Dt(),t=Pe.identifierPrefix;if(Le){var a=jn,l=_n;a=(l&~(1<<32-At(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=gi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=m1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ou,useFormState:ah,useActionState:ah,useOptimistic:function(e){var t=Dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=iu.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:Fc,useCacheRefresh:function(){return Dt().memoizedState=b1.bind(null,Ae)},useEffectEvent:function(e){var t=Dt(),a={impl:e};return t.memoizedState=a,function(){if((qe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},su={readContext:Et,use:yi,useCallback:hh,useContext:Et,useEffect:nu,useImperativeHandle:mh,useInsertionEffect:uh,useLayoutEffect:dh,useMemo:ph,useReducer:bi,useRef:ih,useState:function(){return bi(ta)},useDebugValue:au,useDeferredValue:function(e,t){var a=it();return gh(a,Qe.memoizedState,e,t)},useTransition:function(){var e=bi(ta)[0],t=it().memoizedState;return[typeof e=="boolean"?e:no(e),t]},useSyncExternalStore:Xm,useId:xh,useHostTransitionStatus:ou,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var a=it();return Fm(a,Qe,e,t)},useMemoCache:Fc,useCacheRefresh:Sh};su.useEffectEvent=ch;var Ch={readContext:Et,use:yi,useCallback:hh,useContext:Et,useEffect:nu,useImperativeHandle:mh,useInsertionEffect:uh,useLayoutEffect:dh,useMemo:ph,useReducer:Wc,useRef:ih,useState:function(){return Wc(ta)},useDebugValue:au,useDeferredValue:function(e,t){var a=it();return Qe===null?lu(a,e,t):gh(a,Qe.memoizedState,e,t)},useTransition:function(){var e=Wc(ta)[0],t=it().memoizedState;return[typeof e=="boolean"?e:no(e),t]},useSyncExternalStore:Xm,useId:xh,useHostTransitionStatus:ou,useFormState:oh,useActionState:oh,useOptimistic:function(e,t){var a=it();return Qe!==null?Fm(a,Qe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Fc,useCacheRefresh:Sh};Ch.useEffectEvent=ch;function cu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var uu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=It(),s=Aa(l);s.payload=t,a!=null&&(s.callback=a),t=Ra(e,s,l),t!==null&&($t(t,e,l),Ir(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=It(),s=Aa(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Ra(e,s,l),t!==null&&($t(t,e,l),Ir(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),l=Aa(a);l.tag=2,t!=null&&(l.callback=t),t=Ra(e,l,a),t!==null&&($t(t,e,a),Ir(t,e,a))}};function Ah(e,t,a,l,s,c,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,v):t.prototype&&t.prototype.isPureReactComponent?!Gr(a,l)||!Gr(s,c):!0}function Rh(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&&uu.enqueueReplaceState(t,t.state,null)}function bl(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=g({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function _h(e){ei(e)}function jh(e){console.error(e)}function Oh(e){ei(e)}function Ei(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Mh(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function du(e,t,a){return a=Aa(a),a.tag=3,a.payload={element:null},a.callback=function(){Ei(e,t)},a}function Dh(e){return e=Aa(e),e.tag=3,e}function zh(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){Mh(t,a,l)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){Mh(t,a,l),typeof s!="function"&&(za===null?za=new Set([this]):za.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function S1(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Il(t,a,s,!0),a=Kt.current,a!==null){switch(a.tag){case 31:case 13:return dn===null?ki():a.alternate===null&<===0&&(lt=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===ui?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Lu(e,l,s)),!1;case 22:return a.flags|=65536,l===ui?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)),Lu(e,l,s)),!1}throw Error(i(435,a.tag))}return Lu(e,l,s),ki(),!1}if(Le)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==jc&&(e=Error(i(422),{cause:l}),Zr(on(e,a)))):(l!==jc&&(t=Error(i(423),{cause:l}),Zr(on(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=on(l,a),s=du(e.stateNode,l,s),Yc(e,s),lt!==4&&(lt=2)),!1;var c=Error(i(520),{cause:l});if(c=on(c,a),mo===null?mo=[c]:mo.push(c),lt!==4&&(lt=2),t===null)return!0;l=on(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=du(a.stateNode,l,e),Yc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(za===null||!za.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Dh(s),zh(s,e,a,l),Yc(a,s),!1}a=a.return}while(a!==null);return!1}var fu=Error(i(461)),dt=!1;function Nt(e,t,a,l){t.child=e===null?Bm(t,null,a,l):vl(t,e.child,a,l)}function kh(e,t,a,l,s){a=a.render;var c=t.ref;if("ref"in l){var v={};for(var S in l)S!=="ref"&&(v[S]=l[S])}else v=l;return ml(t),l=Zc(e,t,a,v,c,s),S=Kc(),e!==null&&!dt?(Pc(e,t,s),na(e,t,s)):(Le&&S&&Rc(t),t.flags|=1,Nt(e,t,l,s),t.child)}function Lh(e,t,a,l,s){if(e===null){var c=a.type;return typeof c=="function"&&!Tc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Uh(e,t,c,l,s)):(e=li(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!xu(e,s)){var v=c.memoizedProps;if(a=a.compare,a=a!==null?a:Gr,a(v,l)&&e.ref===t.ref)return na(e,t,s)}return t.flags|=1,e=Jn(c,l),e.ref=t.ref,e.return=t,t.child=e}function Uh(e,t,a,l,s){if(e!==null){var c=e.memoizedProps;if(Gr(c,l)&&e.ref===t.ref)if(dt=!1,t.pendingProps=l=c,xu(e,s))(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,na(e,t,s)}return mu(e,t,a,l,s)}function Bh(e,t,a,l){var s=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,t.child=null;return Hh(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&si(t,c!==null?c.cachePool:null),c!==null?Ym(t,c):$c(),qm(t);else return l=t.lanes=536870912,Hh(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(si(t,c.cachePool),Ym(t,c),ja(),t.memoizedState=null):(e!==null&&si(t,null),$c(),ja());return Nt(e,t,s,a),t.child}function ro(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hh(e,t,a,l,s){var c=Uc();return c=c===null?null:{parent:ct._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&si(t,null),$c(),qm(t),e!==null&&Il(e,t,l,!0),t.childLanes=s,null}function Ni(e,t){return t=Ci({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vh(e,t,a){return vl(t,e.child,null,a),e=Ni(t,t.pendingProps),e.flags|=2,Pt(t),t.memoizedState=null,e}function w1(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Le){if(l.mode==="hidden")return e=Ni(t,l),t.lanes=536870912,ro(null,e);if(Xc(t),(e=Je)?(e=Ip(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wa!==null?{id:_n,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},a=Em(e),a.return=t,t.child=a,wt=t,Je=null)):e=null,e===null)throw Na(t);return t.lanes=536870912,null}return Ni(t,l)}var c=e.memoizedState;if(c!==null){var v=c.dehydrated;if(Xc(t),s)if(t.flags&256)t.flags&=-257,t=Vh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(dt||Il(e,t,a,!1),s=(a&e.childLanes)!==0,dt||s){if(l=Pe,l!==null&&(v=Lt(l,a),v!==0&&v!==c.retryLane))throw c.retryLane=v,cl(e,v),$t(l,e,v),fu;ki(),t=Vh(e,t,a)}else e=c.treeContext,Je=fn(v.nextSibling),wt=t,Le=!0,Ea=null,un=!1,e!==null&&Cm(t,e),t=Ni(t,l),t.flags|=4096;return t}return e=Jn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ti(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(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function mu(e,t,a,l,s){return ml(t),a=Zc(e,t,a,l,void 0,s),l=Kc(),e!==null&&!dt?(Pc(e,t,s),na(e,t,s)):(Le&&l&&Rc(t),t.flags|=1,Nt(e,t,a,s),t.child)}function Yh(e,t,a,l,s,c){return ml(t),t.updateQueue=null,a=Gm(t,l,a,s),$m(e),l=Kc(),e!==null&&!dt?(Pc(e,t,c),na(e,t,c)):(Le&&l&&Rc(t),t.flags|=1,Nt(e,t,a,c),t.child)}function qh(e,t,a,l,s){if(ml(t),t.stateNode===null){var c=Kl,v=a.contextType;typeof v=="object"&&v!==null&&(c=Et(v)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=uu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Hc(t),v=a.contextType,c.context=typeof v=="object"&&v!==null?Et(v):Kl,c.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(cu(t,a,v,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(v=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),v!==c.state&&uu.enqueueReplaceState(c,c.state,null),eo(t,l,c,s),Wr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,R=bl(a,S);c.props=R;var U=c.context,Q=a.contextType;v=Kl,typeof Q=="object"&&Q!==null&&(v=Et(Q));var P=a.getDerivedStateFromProps;Q=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||U!==v)&&Rh(t,c,l,v),Ca=!1;var B=t.memoizedState;c.state=B,eo(t,l,c,s),Wr(),U=t.memoizedState,S||B!==U||Ca?(typeof P=="function"&&(cu(t,a,P,l),U=t.memoizedState),(R=Ca||Ah(t,a,R,l,B,U,v))?(Q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=U),c.props=l,c.state=U,c.context=v,l=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,Vc(e,t),v=t.memoizedProps,Q=bl(a,v),c.props=Q,P=t.pendingProps,B=c.context,U=a.contextType,R=Kl,typeof U=="object"&&U!==null&&(R=Et(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v!==P||B!==R)&&Rh(t,c,l,R),Ca=!1,B=t.memoizedState,c.state=B,eo(t,l,c,s),Wr();var Y=t.memoizedState;v!==P||B!==Y||Ca||e!==null&&e.dependencies!==null&&oi(e.dependencies)?(typeof S=="function"&&(cu(t,a,S,l),Y=t.memoizedState),(Q=Ca||Ah(t,a,Q,l,B,Y,R)||e!==null&&e.dependencies!==null&&oi(e.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,Y,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,Y,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=Y),c.props=l,c.state=Y,c.context=R,l=Q):(typeof c.componentDidUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Ti(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=vl(t,e.child,null,s),t.child=vl(t,null,a,s)):Nt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=na(e,t,s),e}function $h(e,t,a,l){return dl(),t.flags|=256,Nt(e,t,a,l),t.child}var hu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pu(e){return{baseLanes:e,cachePool:Mm()}}function gu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ft),e}function Gh(e,t,a){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,v;if((v=c)||(v=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),v&&(s=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Le){if(s?_a(t):ja(),(e=Je)?(e=Ip(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wa!==null?{id:_n,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},a=Em(e),a.return=t,t.child=a,wt=t,Je=null)):e=null,e===null)throw Na(t);return Iu(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,s?(ja(),s=t.mode,S=Ci({mode:"hidden",children:S},s),l=ul(l,s,a,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=pu(a),l.childLanes=gu(e,v,a),t.memoizedState=hu,ro(null,l)):(_a(t),vu(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(c)t.flags&256?(_a(t),t.flags&=-257,t=yu(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),S=l.fallback,s=t.mode,l=Ci({mode:"visible",children:l.children},s),S=ul(S,s,a,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,vl(t,e.child,null,a),l=t.child,l.memoizedState=pu(a),l.childLanes=gu(e,v,a),t.memoizedState=hu,t=ro(null,l));else if(_a(t),Iu(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var U=v.dgst;v=U,l=Error(i(419)),l.stack="",l.digest=v,Zr({value:l,source:null,stack:null}),t=yu(e,t,a)}else if(dt||Il(e,t,a,!1),v=(a&e.childLanes)!==0,dt||v){if(v=Pe,v!==null&&(l=Lt(v,a),l!==0&&l!==R.retryLane))throw R.retryLane=l,cl(e,l),$t(v,e,l),fu;Fu(S)||ki(),t=yu(e,t,a)}else Fu(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Je=fn(S.nextSibling),wt=t,Le=!0,Ea=null,un=!1,e!==null&&Cm(t,e),t=vu(t,l.children),t.flags|=4096);return t}return s?(ja(),S=l.fallback,s=t.mode,R=e.child,U=R.sibling,l=Jn(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,U!==null?S=Jn(U,S):(S=ul(S,s,a,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,ro(null,l),l=t.child,S=e.child.memoizedState,S===null?S=pu(a):(s=S.cachePool,s!==null?(R=ct._currentValue,s=s.parent!==R?{parent:R,pool:R}:s):s=Mm(),S={baseLanes:S.baseLanes|a,cachePool:s}),l.memoizedState=S,l.childLanes=gu(e,v,a),t.memoizedState=hu,ro(e.child,l)):(_a(t),a=e.child,e=a.sibling,a=Jn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function vu(e,t){return t=Ci({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ci(e,t){return e=Zt(22,e,null,t),e.lanes=0,e}function yu(e,t,a){return vl(t,e.child,null,a),e=vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Dc(e.return,t,a)}function bu(e,t,a,l,s,c){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:c}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=a,v.tailMode=s,v.treeForkCount=c)}function Qh(e,t,a){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var v=ot.current,S=(v&2)!==0;if(S?(v=v&1|2,t.flags|=128):v&=1,Z(ot,v),Nt(e,t,l,a),l=Le?Qr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xh(e,a,t);else if(e.tag===19)Xh(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}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&hi(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),bu(t,!1,s,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&hi(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}bu(t,!0,a,null,c,l);break;case"together":bu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function na(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Il(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=Jn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Jn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function xu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&oi(e)))}function E1(e,t,a){switch(t.tag){case 3:re(t,t.stateNode.containerInfo),Ta(t,ct,e.memoizedState.cache),dl();break;case 27:case 5:Te(t);break;case 4:re(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(_a(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Gh(e,t,a):(_a(t),e=na(e,t,a),e!==null?e.sibling:null);_a(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Il(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return Qh(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(ot,ot.current),l)break;return null;case 22:return t.lanes=0,Bh(e,t,a,t.pendingProps);case 24:Ta(t,ct,e.memoizedState.cache)}return na(e,t,a)}function Zh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)dt=!0;else{if(!xu(e,a)&&(t.flags&128)===0)return dt=!1,E1(e,t,a);dt=(e.flags&131072)!==0}else dt=!1,Le&&(t.flags&1048576)!==0&&Tm(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=pl(t.elementType),t.type=e,typeof e=="function")Tc(e)?(l=bl(e,l),t.tag=1,t=qh(null,t,e,l,a)):(t.tag=0,t=mu(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===z){t.tag=11,t=kh(null,t,e,l,a);break e}else if(s===H){t.tag=14,t=Lh(null,t,e,l,a);break e}}throw t=ve(e)||e,Error(i(306,t,""))}}return t;case 0:return mu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=bl(l,t.pendingProps),qh(e,t,l,s,a);case 3:e:{if(re(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,Vc(e,t),eo(t,l,null,a);var v=t.memoizedState;if(l=v.cache,Ta(t,ct,l),l!==c.cache&&zc(t,[ct],a,!0),Wr(),l=v.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=$h(e,t,l,a);break e}else if(l!==s){s=on(Error(i(424)),t),Zr(s),t=$h(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(Je=fn(e.firstChild),wt=t,Le=!0,Ea=null,un=!0,a=Bm(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(dl(),l===s){t=na(e,t,a);break e}Nt(e,t,l,a)}t=t.child}return t;case 26:return Ti(e,t),e===null?(a=lg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Le||(a=t.type,e=t.pendingProps,l=qi(ae.current).createElement(a),l[St]=t,l[Ut]=e,Tt(l,a,e),bt(l),t.stateNode=l):t.memoizedState=lg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&Le&&(l=t.stateNode=tg(t.type,t.pendingProps,ae.current),wt=t,un=!0,s=Je,Ba(t.type)?(Wu=s,Je=fn(l.firstChild)):Je=s),Nt(e,t,t.pendingProps.children,a),Ti(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Le&&((s=l=Je)&&(l=W1(l,t.type,t.pendingProps,un),l!==null?(t.stateNode=l,wt=t,Je=fn(l.firstChild),un=!1,s=!0):s=!1),s||Na(t)),Te(t),s=t.type,c=t.pendingProps,v=e!==null?e.memoizedProps:null,l=c.children,Ku(s,c)?l=null:v!==null&&Ku(s,v)&&(t.flags|=32),t.memoizedState!==null&&(s=Zc(e,t,h1,null,null,a),So._currentValue=s),Ti(e,t),Nt(e,t,l,a),t.child;case 6:return e===null&&Le&&((e=a=Je)&&(a=eS(a,t.pendingProps,un),a!==null?(t.stateNode=a,wt=t,Je=null,e=!0):e=!1),e||Na(t)),null;case 13:return Gh(e,t,a);case 4:return re(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=vl(t,null,l,a):Nt(e,t,l,a),t.child;case 11:return kh(e,t,t.type,t.pendingProps,a);case 7:return Nt(e,t,t.pendingProps,a),t.child;case 8:return Nt(e,t,t.pendingProps.children,a),t.child;case 12:return Nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ta(t,t.type,l.value),Nt(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,ml(t),s=Et(s),l=l(s),t.flags|=1,Nt(e,t,l,a),t.child;case 14:return Lh(e,t,t.type,t.pendingProps,a);case 15:return Uh(e,t,t.type,t.pendingProps,a);case 19:return Qh(e,t,a);case 31:return w1(e,t,a);case 22:return Bh(e,t,a,t.pendingProps);case 24:return ml(t),l=Et(ct),e===null?(s=Uc(),s===null&&(s=Pe,c=kc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:l,cache:s},Hc(t),Ta(t,ct,s)):((e.lanes&a)!==0&&(Vc(e,t),eo(t,null,null,a),Wr()),s=e.memoizedState,c=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Ta(t,ct,l)):(l=c.cache,Ta(t,ct,l),l!==s.cache&&zc(t,[ct],a,!0))),Nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function aa(e){e.flags|=4}function Su(e,t,a,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(xp())e.flags|=8192;else throw gl=ui,Bc}else e.flags&=-16777217}function Kh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cg(t))if(xp())e.flags|=8192;else throw gl=ui,Bc}function Ai(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rt():536870912,e.lanes|=t,ur|=t)}function oo(e,t){if(!Le)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 Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function N1(e,t,a){var l=t.pendingProps;switch(_c(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wn(ct),ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Fl(t)?aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oc())),Fe(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(aa(t),c!==null?(Fe(t),Kh(t,c)):(Fe(t),Su(t,s,null,l,a))):c?c!==e.memoizedState?(aa(t),Fe(t),Kh(t,c)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&aa(t),Fe(t),Su(t,s,e,l,a)),null;case 27:if(Se(t),a=ae.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Fe(t),null}e=I.current,Fl(t)?Am(t):(e=tg(s,l,a),t.stateNode=e,aa(t))}return Fe(t),null;case 5:if(Se(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Fe(t),null}if(c=I.current,Fl(t))Am(t);else{var v=qi(ae.current);switch(c){case 1:c=v.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=v.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=v.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?v.createElement(s,{is:l.is}):v.createElement(s)}}c[St]=t,c[Ut]=l;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)c.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=c;e:switch(Tt(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&aa(t)}}return Fe(t),Su(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Fl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=wt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[St]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Gp(e.nodeValue,a)),e||Na(t,!0)}else e=qi(e).createTextNode(l),e[St]=t,t.stateNode=e}return Fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Fl(t),a!==null){if(e===null){if(!l)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[St]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else a=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Pt(t),t):(Pt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Fe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Fl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[St]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),s=!1}else s=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Pt(t),t):(Pt(t),null)}return Pt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ai(t,t.updateQueue),Fe(t),null);case 4:return ie(),e===null&&$u(t.stateNode.containerInfo),Fe(t),null;case 10:return Wn(t.type),Fe(t),null;case 19:if(X(ot),l=t.memoizedState,l===null)return Fe(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)oo(l,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=hi(e),c!==null){for(t.flags|=128,oo(l,!1),e=c.updateQueue,t.updateQueue=e,Ai(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)wm(a,e),a=a.sibling;return Z(ot,ot.current&1|2),Le&&Fn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ot()>Mi&&(t.flags|=128,s=!0,oo(l,!1),t.lanes=4194304)}else{if(!s)if(e=hi(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ai(t,e),oo(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Le)return Fe(t),null}else 2*Ot()-l.renderingStartTime>Mi&&a!==536870912&&(t.flags|=128,s=!0,oo(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ot(),e.sibling=null,a=ot.current,Z(ot,s?a&1|2:a&1),Le&&Fn(t,l.treeForkCount),e):(Fe(t),null);case 22:case 23:return Pt(t),Gc(),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&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&Ai(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&&X(hl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wn(ct),Fe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function T1(e,t){switch(_c(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wn(ct),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(Pt(t),t.alternate===null)throw Error(i(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(ot),null;case 4:return ie(),null;case 10:return Wn(t.type),null;case 22:case 23:return Pt(t),Gc(),e!==null&&X(hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wn(ct),null;case 25:return null;default:return null}}function Ph(e,t){switch(_c(t),t.tag){case 3:Wn(ct),ie();break;case 26:case 27:case 5:Se(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&Pt(t);break;case 13:Pt(t);break;case 19:X(ot);break;case 10:Wn(t.type);break;case 22:case 23:Pt(t),Gc(),e!==null&&X(hl);break;case 24:Wn(ct)}}function io(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var c=a.create,v=a.inst;l=c(),v.destroy=l}a=a.next}while(a!==s)}}catch(S){Xe(t,t.return,S)}}function Oa(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&e)===e){var v=l.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,s=t;var R=a,U=S;try{U()}catch(Q){Xe(s,R,Q)}}}l=l.next}while(l!==c)}}catch(Q){Xe(t,t.return,Q)}}function Jh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Vm(t,a)}catch(l){Xe(e,e.return,l)}}}function Fh(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Xe(e,t,l)}}function so(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(s){Xe(e,t,s)}}function On(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){Xe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Xe(e,t,s)}else a.current=null}function Ih(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(s){Xe(e,e.return,s)}}function wu(e,t,a){try{var l=e.stateNode;Z1(l,e.type,a,t),l[Ut]=t}catch(s){Xe(e,e.return,s)}}function Wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function Eu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ba(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nu(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=Kn));else if(l!==4&&(l===27&&Ba(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Nu(e,t,a),e=e.sibling;e!==null;)Nu(e,t,a),e=e.sibling}function Ri(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&&Ba(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ri(e,t,a),e=e.sibling;e!==null;)Ri(e,t,a),e=e.sibling}function ep(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Tt(t,l,a),t[St]=e,t[Ut]=a}catch(c){Xe(e,e.return,c)}}var la=!1,ft=!1,Tu=!1,tp=typeof WeakSet=="function"?WeakSet:Set,xt=null;function C1(e,t){if(e=e.containerInfo,Qu=Pi,e=mm(e),yc(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 s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var v=0,S=-1,R=-1,U=0,Q=0,P=e,B=null;t:for(;;){for(var Y;P!==a||s!==0&&P.nodeType!==3||(S=v+s),P!==c||l!==0&&P.nodeType!==3||(R=v+l),P.nodeType===3&&(v+=P.nodeValue.length),(Y=P.firstChild)!==null;)B=P,P=Y;for(;;){if(P===e)break t;if(B===a&&++U===s&&(S=v),B===c&&++Q===l&&(R=v),(Y=P.nextSibling)!==null)break;P=B,B=P.parentNode}P=Y}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Zu={focusedElem:e,selectionRange:a},Pi=!1,xt=t;xt!==null;)if(t=xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xt=e;else for(;xt!==null;){switch(t=xt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var se=bl(a.type,s);e=l.getSnapshotBeforeUpdate(se,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Xe(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ju(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ju(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,xt=e;break}xt=t.return}}function np(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:oa(e,a),l&4&&io(5,a);break;case 1:if(oa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){Xe(a,a.return,v)}else{var s=bl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Xe(a,a.return,v)}}l&64&&Jh(a),l&512&&so(a,a.return);break;case 3:if(oa(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{Vm(e,t)}catch(v){Xe(a,a.return,v)}}break;case 27:t===null&&l&4&&ep(a);case 26:case 5:oa(e,a),t===null&&l&4&&Ih(a),l&512&&so(a,a.return);break;case 12:oa(e,a);break;case 31:oa(e,a),l&4&&rp(e,a);break;case 13:oa(e,a),l&4&&op(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=k1.bind(null,a),tS(e,a))));break;case 22:if(l=a.memoizedState!==null||la,!l){t=t!==null&&t.memoizedState!==null||ft,s=la;var c=ft;la=l,(ft=t)&&!c?ia(e,a,(a.subtreeFlags&8772)!==0):oa(e,a),la=s,ft=c}break;case 30:break;default:oa(e,a)}}function ap(e){var t=e.alternate;t!==null&&(e.alternate=null,ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&tc(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 We=null,Ht=!1;function ra(e,t,a){for(a=a.child;a!==null;)lp(e,t,a),a=a.sibling}function lp(e,t,a){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(nl,a)}catch{}switch(a.tag){case 26:ft||On(a,t),ra(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||On(a,t);var l=We,s=Ht;Ba(a.type)&&(We=a.stateNode,Ht=!1),ra(e,t,a),yo(a.stateNode),We=l,Ht=s;break;case 5:ft||On(a,t);case 6:if(l=We,s=Ht,We=null,ra(e,t,a),We=l,Ht=s,We!==null)if(Ht)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(a.stateNode)}catch(c){Xe(a,t,c)}else try{We.removeChild(a.stateNode)}catch(c){Xe(a,t,c)}break;case 18:We!==null&&(Ht?(e=We,Jp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),yr(e)):Jp(We,a.stateNode));break;case 4:l=We,s=Ht,We=a.stateNode.containerInfo,Ht=!0,ra(e,t,a),We=l,Ht=s;break;case 0:case 11:case 14:case 15:Oa(2,a,t),ft||Oa(4,a,t),ra(e,t,a);break;case 1:ft||(On(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Fh(a,t,l)),ra(e,t,a);break;case 21:ra(e,t,a);break;case 22:ft=(l=ft)||a.memoizedState!==null,ra(e,t,a),ft=l;break;default:ra(e,t,a)}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{yr(e)}catch(a){Xe(t,t.return,a)}}}function op(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{yr(e)}catch(a){Xe(t,t.return,a)}}function A1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tp),t;default:throw Error(i(435,e.tag))}}function _i(e,t){var a=A1(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=L1.bind(null,e,l);l.then(s,s)}})}function Vt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],c=e,v=t,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Ba(S.type)){We=S.stateNode,Ht=!1;break e}break;case 5:We=S.stateNode,Ht=!1;break e;case 3:case 4:We=S.stateNode.containerInfo,Ht=!0;break e}S=S.return}if(We===null)throw Error(i(160));lp(c,v,s),We=null,Ht=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ip(t,e),t=t.sibling}var xn=null;function ip(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(t,e),Yt(e),l&4&&(Oa(3,e,e.return),io(3,e),Oa(5,e,e.return));break;case 1:Vt(t,e),Yt(e),l&512&&(ft||a===null||On(a,a.return)),l&64&&la&&(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 s=xn;if(Vt(t,e),Yt(e),l&512&&(ft||a===null||On(a,a.return)),l&4){var c=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,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[kr]||c[St]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),Tt(c,l,a),c[St]=e,bt(c),l=c;break e;case"link":var v=ig("link","href",s).get(l+(a.href||""));if(v){for(var S=0;S<v.length;S++)if(c=v[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(S,1);break t}}c=s.createElement(l),Tt(c,l,a),s.head.appendChild(c);break;case"meta":if(v=ig("meta","content",s).get(l+(a.content||""))){for(S=0;S<v.length;S++)if(c=v[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(S,1);break t}}c=s.createElement(l),Tt(c,l,a),s.head.appendChild(c);break;default:throw Error(i(468,l))}c[St]=e,bt(c),l=c}e.stateNode=l}else sg(s,e.type,e.stateNode);else e.stateNode=og(s,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?sg(s,e.type,e.stateNode):og(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&wu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Vt(t,e),Yt(e),l&512&&(ft||a===null||On(a,a.return)),a!==null&&l&4&&wu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Vt(t,e),Yt(e),l&512&&(ft||a===null||On(a,a.return)),e.flags&32){s=e.stateNode;try{Yl(s,"")}catch(se){Xe(e,e.return,se)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,wu(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Tu=!0);break;case 6:if(Vt(t,e),Yt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(se){Xe(e,e.return,se)}}break;case 3:if(Xi=null,s=xn,xn=$i(t.containerInfo),Vt(t,e),xn=s,Yt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{yr(t.containerInfo)}catch(se){Xe(e,e.return,se)}Tu&&(Tu=!1,sp(e));break;case 4:l=xn,xn=$i(e.stateNode.containerInfo),Vt(t,e),Yt(e),xn=l;break;case 12:Vt(t,e),Yt(e);break;case 31:Vt(t,e),Yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_i(e,l)));break;case 13:Vt(t,e),Yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Oi=Ot()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_i(e,l)));break;case 22:s=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,U=la,Q=ft;if(la=U||s,ft=Q||R,Vt(t,e),ft=Q,la=U,Yt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||R||la||ft||xl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(c=R.stateNode,s)v=c.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=R.stateNode;var P=R.memoizedProps.style,B=P!=null&&P.hasOwnProperty("display")?P.display:null;S.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(se){Xe(R,R.return,se)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=s?"":R.memoizedProps}catch(se){Xe(R,R.return,se)}}}else if(t.tag===18){if(a===null){R=t;try{var Y=R.stateNode;s?Fp(Y,!0):Fp(R.stateNode,!1)}catch(se){Xe(R,R.return,se)}}}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,_i(e,a))));break;case 19:Vt(t,e),Yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_i(e,l)));break;case 30:break;case 21:break;default:Vt(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Wh(l)){a=l;break}l=l.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,c=Eu(e);Ri(e,c,s);break;case 5:var v=a.stateNode;a.flags&32&&(Yl(v,""),a.flags&=-33);var S=Eu(e);Ri(e,S,v);break;case 3:case 4:var R=a.stateNode.containerInfo,U=Eu(e);Nu(e,U,R);break;default:throw Error(i(161))}}catch(Q){Xe(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;sp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function oa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)np(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Oa(4,t,t.return),xl(t);break;case 1:On(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Fh(t,t.return,a),xl(t);break;case 27:yo(t.stateNode);case 26:case 5:On(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function ia(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,v=c.flags;switch(c.tag){case 0:case 11:case 15:ia(s,c,a),io(4,c);break;case 1:if(ia(s,c,a),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Xe(l,l.return,U)}if(l=c,s=l.updateQueue,s!==null){var S=l.stateNode;try{var R=s.shared.hiddenCallbacks;if(R!==null)for(s.shared.hiddenCallbacks=null,s=0;s<R.length;s++)Hm(R[s],S)}catch(U){Xe(l,l.return,U)}}a&&v&64&&Jh(c),so(c,c.return);break;case 27:ep(c);case 26:case 5:ia(s,c,a),a&&l===null&&v&4&&Ih(c),so(c,c.return);break;case 12:ia(s,c,a);break;case 31:ia(s,c,a),a&&v&4&&rp(s,c);break;case 13:ia(s,c,a),a&&v&4&&op(s,c);break;case 22:c.memoizedState===null&&ia(s,c,a),so(c,c.return);break;case 30:break;default:ia(s,c,a)}t=t.sibling}}function Cu(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&&Kr(a))}function Au(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kr(e))}function Sn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cp(e,t,a,l),t=t.sibling}function cp(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Sn(e,t,a,l),s&2048&&io(9,t);break;case 1:Sn(e,t,a,l);break;case 3:Sn(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kr(e)));break;case 12:if(s&2048){Sn(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,v=c.id,S=c.onPostCommit;typeof S=="function"&&S(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Xe(t,t.return,R)}}else Sn(e,t,a,l);break;case 31:Sn(e,t,a,l);break;case 13:Sn(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,v=t.alternate,t.memoizedState!==null?c._visibility&2?Sn(e,t,a,l):co(e,t):c._visibility&2?Sn(e,t,a,l):(c._visibility|=2,ir(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Cu(v,t);break;case 24:Sn(e,t,a,l),s&2048&&Au(t.alternate,t);break;default:Sn(e,t,a,l)}}function ir(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,v=t,S=a,R=l,U=v.flags;switch(v.tag){case 0:case 11:case 15:ir(c,v,S,R,s),io(8,v);break;case 23:break;case 22:var Q=v.stateNode;v.memoizedState!==null?Q._visibility&2?ir(c,v,S,R,s):co(c,v):(Q._visibility|=2,ir(c,v,S,R,s)),s&&U&2048&&Cu(v.alternate,v);break;case 24:ir(c,v,S,R,s),s&&U&2048&&Au(v.alternate,v);break;default:ir(c,v,S,R,s)}t=t.sibling}}function co(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:co(a,l),s&2048&&Cu(l.alternate,l);break;case 24:co(a,l),s&2048&&Au(l.alternate,l);break;default:co(a,l)}t=t.sibling}}var uo=8192;function sr(e,t,a){if(e.subtreeFlags&uo)for(e=e.child;e!==null;)up(e,t,a),e=e.sibling}function up(e,t,a){switch(e.tag){case 26:sr(e,t,a),e.flags&uo&&e.memoizedState!==null&&mS(a,xn,e.memoizedState,e.memoizedProps);break;case 5:sr(e,t,a);break;case 3:case 4:var l=xn;xn=$i(e.stateNode.containerInfo),sr(e,t,a),xn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=uo,uo=16777216,sr(e,t,a),uo=l):sr(e,t,a));break;default:sr(e,t,a)}}function dp(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 fo(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];xt=l,mp(l,e)}dp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fp(e),e=e.sibling}function fp(e){switch(e.tag){case 0:case 11:case 15:fo(e),e.flags&2048&&Oa(9,e,e.return);break;case 3:fo(e);break;case 12:fo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ji(e)):fo(e);break;default:fo(e)}}function ji(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];xt=l,mp(l,e)}dp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Oa(8,t,t.return),ji(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ji(t));break;default:ji(t)}e=e.sibling}}function mp(e,t){for(;xt!==null;){var a=xt;switch(a.tag){case 0:case 11:case 15:Oa(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:Kr(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,xt=l;else e:for(a=e;xt!==null;){l=xt;var s=l.sibling,c=l.return;if(ap(l),l===a){xt=null;break e}if(s!==null){s.return=c,xt=s;break e}xt=c}}}var R1={getCacheForType:function(e){var t=Et(ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Et(ct).controller.signal}},_1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Pe=null,Oe=null,ze=0,Ge=0,Jt=null,Ma=!1,cr=!1,Ru=!1,sa=0,lt=0,Da=0,Sl=0,_u=0,Ft=0,ur=0,mo=null,qt=null,ju=!1,Oi=0,hp=0,Mi=1/0,Di=null,za=null,ht=0,ka=null,dr=null,ca=0,Ou=0,Mu=null,pp=null,ho=0,Du=null;function It(){return(qe&2)!==0&&ze!==0?ze&-ze:j.T!==null?Hu():Ws()}function gp(){if(Ft===0)if((ze&536870912)===0||Le){var e=Dl;Dl<<=1,(Dl&3932160)===0&&(Dl=262144),Ft=e}else Ft=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Ft}function $t(e,t,a){(e===Pe&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(fr(e,0),La(e,ze,Ft,!1)),nt(e,a),((qe&2)===0||e!==Pe)&&(e===Pe&&((qe&2)===0&&(Sl|=a),lt===4&&La(e,ze,Ft,!1)),Mn(e))}function vp(e,t,a){if((qe&6)!==0)throw Error(i(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ie(e,t),s=l?M1(e,t):ku(e,t,!0),c=l;do{if(s===0){cr&&!l&&La(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!j1(a)){s=ku(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var S=e;s=mo;var R=S.current.memoizedState.isDehydrated;if(R&&(fr(S,v).flags|=256),v=ku(S,v,!1),v!==2){if(Ru&&!R){S.errorRecoveryDisabledLanes|=c,Sl|=c,s=4;break e}c=qt,qt=s,c!==null&&(qt===null?qt=c:qt.push.apply(qt,c))}s=v}if(c=!1,s!==2)continue}}if(s===1){fr(e,0),La(e,t,0,!0);break}e:{switch(l=e,c=s,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:La(l,t,Ft,!Ma);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Oi+300-Ot(),10<s)){if(La(l,t,Ft,!Ma),we(l,0,!0)!==0)break e;ca=t,l.timeoutHandle=Kp(yp.bind(null,l,a,qt,Di,ju,t,Ft,Sl,ur,Ma,c,"Throttled",-0,0),s);break e}yp(l,a,qt,Di,ju,t,Ft,Sl,ur,Ma,c,null,-0,0)}}break}while(!0);Mn(e)}function yp(e,t,a,l,s,c,v,S,R,U,Q,P,B,Y){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kn},up(t,c,P);var se=(c&62914560)===c?Oi-Ot():(c&4194048)===c?hp-Ot():0;if(se=hS(P,se),se!==null){ca=c,e.cancelPendingCommit=se(Cp.bind(null,e,t,c,a,l,s,v,S,R,Q,P,null,B,Y)),La(e,c,v,!U);return}}Cp(e,t,c,a,l,s,v,S,R)}function j1(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 s=a[l],c=s.getSnapshot;s=s.value;try{if(!Qt(c(),s))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 La(e,t,a,l){t&=~_u,t&=~Sl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-At(s),v=1<<c;l[c]=-1,s&=~v}a!==0&&ll(e,a,t)}function zi(){return(qe&6)===0?(po(0),!1):!0}function zu(){if(Oe!==null){if(Ge===0)var e=Oe.return;else e=Oe,In=fl=null,Jc(e),nr=null,Jr=0,e=Oe;for(;e!==null;)Ph(e.alternate,e),e=e.return;Oe=null}}function fr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,J1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ca=0,zu(),Pe=e,Oe=a=Jn(e.current,null),ze=t,Ge=0,Jt=null,Ma=!1,cr=Ie(e,t),Ru=!1,ur=Ft=_u=Sl=Da=lt=0,qt=mo=null,ju=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-At(l),c=1<<s;t|=e[s],l&=~c}return sa=t,ti(),a}function bp(e,t){Ae=null,j.H=lo,t===tr||t===ci?(t=km(),Ge=3):t===Bc?(t=km(),Ge=4):Ge=t===fu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,Oe===null&&(lt=1,Ei(e,on(t,e.current)))}function xp(){var e=Kt.current;return e===null?!0:(ze&4194048)===ze?dn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===dn:!1}function Sp(){var e=j.H;return j.H=lo,e===null?lo:e}function wp(){var e=j.A;return j.A=R1,e}function ki(){lt=4,Ma||(ze&4194048)!==ze&&Kt.current!==null||(cr=!0),(Da&134217727)===0&&(Sl&134217727)===0||Pe===null||La(Pe,ze,Ft,!1)}function ku(e,t,a){var l=qe;qe|=2;var s=Sp(),c=wp();(Pe!==e||ze!==t)&&(Di=null,fr(e,t)),t=!1;var v=lt;e:do try{if(Ge!==0&&Oe!==null){var S=Oe,R=Jt;switch(Ge){case 8:zu(),v=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var U=Ge;if(Ge=0,Jt=null,mr(e,S,R,U),a&&cr){v=0;break e}break;default:U=Ge,Ge=0,Jt=null,mr(e,S,R,U)}}O1(),v=lt;break}catch(Q){bp(e,Q)}while(!0);return t&&e.shellSuspendCounter++,In=fl=null,qe=l,j.H=s,j.A=c,Oe===null&&(Pe=null,ze=0,ti()),v}function O1(){for(;Oe!==null;)Ep(Oe)}function M1(e,t){var a=qe;qe|=2;var l=Sp(),s=wp();Pe!==e||ze!==t?(Di=null,Mi=Ot()+500,fr(e,t)):cr=Ie(e,t);e:do try{if(Ge!==0&&Oe!==null){t=Oe;var c=Jt;t:switch(Ge){case 1:Ge=0,Jt=null,mr(e,t,c,1);break;case 2:case 9:if(Dm(c)){Ge=0,Jt=null,Np(t);break}t=function(){Ge!==2&&Ge!==9||Pe!==e||(Ge=7),Mn(e)},c.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Dm(c)?(Ge=0,Jt=null,Np(t)):(Ge=0,Jt=null,mr(e,t,c,7));break;case 5:var v=null;switch(Oe.tag){case 26:v=Oe.memoizedState;case 5:case 27:var S=Oe;if(v?cg(v):S.stateNode.complete){Ge=0,Jt=null;var R=S.sibling;if(R!==null)Oe=R;else{var U=S.return;U!==null?(Oe=U,Li(U)):Oe=null}break t}}Ge=0,Jt=null,mr(e,t,c,5);break;case 6:Ge=0,Jt=null,mr(e,t,c,6);break;case 8:zu(),lt=6;break e;default:throw Error(i(462))}}D1();break}catch(Q){bp(e,Q)}while(!0);return In=fl=null,j.H=l,j.A=s,qe=a,Oe!==null?0:(Pe=null,ze=0,ti(),lt)}function D1(){for(;Oe!==null&&!rt();)Ep(Oe)}function Ep(e){var t=Zh(e.alternate,e,sa);e.memoizedProps=e.pendingProps,t===null?Li(e):Oe=t}function Np(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Yh(a,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Yh(a,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Jc(t);default:Ph(a,t),t=Oe=wm(t,sa),t=Zh(a,t,sa)}e.memoizedProps=e.pendingProps,t===null?Li(e):Oe=t}function mr(e,t,a,l){In=fl=null,Jc(t),nr=null,Jr=0;var s=t.return;try{if(S1(e,s,t,a,ze)){lt=1,Ei(e,on(a,e.current)),Oe=null;return}}catch(c){if(s!==null)throw Oe=s,c;lt=1,Ei(e,on(a,e.current)),Oe=null;return}t.flags&32768?(Le||l===1?e=!0:cr||(ze&536870912)!==0?e=!1:(Ma=e=!0,(l===2||l===9||l===3||l===6)&&(l=Kt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Tp(t,e)):Li(t)}function Li(e){var t=e;do{if((t.flags&32768)!==0){Tp(t,Ma);return}e=t.return;var a=N1(t.alternate,t,sa);if(a!==null){Oe=a;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);lt===0&&(lt=5)}function Tp(e,t){do{var a=T1(e.alternate,e);if(a!==null){a.flags&=32767,Oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);lt=6,Oe=null}function Cp(e,t,a,l,s,c,v,S,R){e.cancelPendingCommit=null;do Ui();while(ht!==0);if((qe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=Ec,zt(e,a,c,v,S,R),e===Pe&&(Oe=Pe=null,ze=0),dr=t,ka=e,ca=a,Ou=c,Mu=s,pp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,U1(tl,function(){return Op(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,s=$.p,$.p=2,v=qe,qe|=4;try{C1(e,t,a)}finally{qe=v,$.p=s,j.T=l}}ht=1,Ap(),Rp(),_p()}}function Ap(){if(ht===1){ht=0;var e=ka,t=dr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var l=$.p;$.p=2;var s=qe;qe|=4;try{ip(t,e);var c=Zu,v=mm(e.containerInfo),S=c.focusedElem,R=c.selectionRange;if(v!==S&&S&&S.ownerDocument&&fm(S.ownerDocument.documentElement,S)){if(R!==null&&yc(S)){var U=R.start,Q=R.end;if(Q===void 0&&(Q=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(Q,S.value.length);else{var P=S.ownerDocument||document,B=P&&P.defaultView||window;if(B.getSelection){var Y=B.getSelection(),se=S.textContent.length,xe=Math.min(R.start,se),Ke=R.end===void 0?xe:Math.min(R.end,se);!Y.extend&&xe>Ke&&(v=Ke,Ke=xe,xe=v);var k=dm(S,xe),D=dm(S,Ke);if(k&&D&&(Y.rangeCount!==1||Y.anchorNode!==k.node||Y.anchorOffset!==k.offset||Y.focusNode!==D.node||Y.focusOffset!==D.offset)){var L=P.createRange();L.setStart(k.node,k.offset),Y.removeAllRanges(),xe>Ke?(Y.addRange(L),Y.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),Y.addRange(L))}}}}for(P=[],Y=S;Y=Y.parentNode;)Y.nodeType===1&&P.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<P.length;S++){var K=P[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Pi=!!Qu,Zu=Qu=null}finally{qe=s,$.p=l,j.T=a}}e.current=t,ht=2}}function Rp(){if(ht===2){ht=0;var e=ka,t=dr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var l=$.p;$.p=2;var s=qe;qe|=4;try{np(e,t.alternate,t)}finally{qe=s,$.p=l,j.T=a}}ht=3}}function _p(){if(ht===4||ht===3){ht=0,va();var e=ka,t=dr,a=ca,l=pp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,dr=ka=null,jp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(za=null),yn(a),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(nl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=j.T,s=$.p,$.p=2,j.T=null;try{for(var c=e.onRecoverableError,v=0;v<l.length;v++){var S=l[v];c(S.value,{componentStack:S.stack})}}finally{j.T=t,$.p=s}}(ca&3)!==0&&Ui(),Mn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Du?ho++:(ho=0,Du=e):ho=0,po(0)}}function jp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kr(t)))}function Ui(){return Ap(),Rp(),_p(),Op()}function Op(){if(ht!==5)return!1;var e=ka,t=Ou;Ou=0;var a=yn(ca),l=j.T,s=$.p;try{$.p=32>a?32:a,j.T=null,a=Mu,Mu=null;var c=ka,v=ca;if(ht=0,dr=ka=null,ca=0,(qe&6)!==0)throw Error(i(331));var S=qe;if(qe|=4,fp(c.current),cp(c,c.current,v,a),qe=S,po(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(nl,c)}catch{}return!0}finally{$.p=s,j.T=l,jp(e,t)}}function Mp(e,t,a){t=on(a,t),t=du(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(nt(e,2),Mn(e))}function Xe(e,t,a){if(e.tag===3)Mp(e,e,a);else for(;t!==null;){if(t.tag===3){Mp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(za===null||!za.has(l))){e=on(a,e),a=Dh(2),l=Ra(t,a,2),l!==null&&(zh(a,l,t,e),nt(l,2),Mn(l));break}}t=t.return}}function Lu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new _1;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(Ru=!0,s.add(a),e=z1.bind(null,e,t,a),t.then(e,e))}function z1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Pe===e&&(ze&a)===a&&(lt===4||lt===3&&(ze&62914560)===ze&&300>Ot()-Oi?(qe&2)===0&&fr(e,0):_u|=a,ur===ze&&(ur=0)),Mn(e)}function Dp(e,t){t===0&&(t=Rt()),e=cl(e,t),e!==null&&(nt(e,t),Mn(e))}function k1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Dp(e,a)}function L1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),Dp(e,a)}function U1(e,t){return gn(e,t)}var Bi=null,hr=null,Uu=!1,Hi=!1,Bu=!1,Ua=0;function Mn(e){e!==hr&&e.next===null&&(hr===null?Bi=hr=e:hr=hr.next=e),Hi=!0,Uu||(Uu=!0,H1())}function po(e,t){if(!Bu&&Hi){Bu=!0;do for(var a=!1,l=Bi;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var v=l.suspendedLanes,S=l.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=s&~(v&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Up(l,c))}else c=ze,c=we(l,l===Pe?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ie(l,c)||(a=!0,Up(l,c));l=l.next}while(a);Bu=!1}}function B1(){zp()}function zp(){Hi=Uu=!1;var e=0;Ua!==0&&P1()&&(e=Ua);for(var t=Ot(),a=null,l=Bi;l!==null;){var s=l.next,c=kp(l,t);c===0?(l.next=null,a===null?Bi=s:a.next=s,s===null&&(hr=a)):(a=l,(e!==0||(c&3)!==0)&&(Hi=!0)),l=s}ht!==0&&ht!==5||po(e),Ua!==0&&(Ua=0)}function kp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var v=31-At(c),S=1<<v,R=s[v];R===-1?((S&a)===0||(S&l)!==0)&&(s[v]=yt(S,t)):R<=t&&(e.expiredLanes|=S),c&=~S}if(t=Pe,a=ze,a=we(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Xt(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ie(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Xt(l),yn(a)){case 2:case 8:a=qo;break;case 32:a=tl;break;case 268435456:a=Qn;break;default:a=tl}return l=Lp.bind(null,e),a=gn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Xt(l),e.callbackPriority=2,e.callbackNode=null,2}function Lp(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ui()&&e.callbackNode!==a)return null;var l=ze;return l=we(e,e===Pe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(vp(e,l,t),kp(e,Ot()),e.callbackNode!=null&&e.callbackNode===a?Lp.bind(null,e):null)}function Up(e,t){if(Ui())return null;vp(e,t,!0)}function H1(){F1(function(){(qe&6)!==0?gn(el,B1):zp()})}function Hu(){if(Ua===0){var e=Wl;e===0&&(e=Ml,Ml<<=1,(Ml&261888)===0&&(Ml=256)),Ua=e}return Ua}function Bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zo(""+e)}function Hp(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 V1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var c=Bp((s[Ut]||null).action),v=l.submitter;v&&(t=(t=v[Ut]||null)?Bp(t.formAction):v.getAttribute("formAction"),t!==null&&(c=t,v=null));var S=new Fo("action","action",null,l,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ua!==0){var R=v?Hp(s,v):new FormData(s);ru(a,{pending:!0,data:R,method:s.method,action:c},null,R)}}else typeof c=="function"&&(S.preventDefault(),R=v?Hp(s,v):new FormData(s),ru(a,{pending:!0,data:R,method:s.method,action:c},c,R))},currentTarget:s}]})}}for(var Vu=0;Vu<wc.length;Vu++){var Yu=wc[Vu],Y1=Yu.toLowerCase(),q1=Yu[0].toUpperCase()+Yu.slice(1);bn(Y1,"on"+q1)}bn(gm,"onAnimationEnd"),bn(vm,"onAnimationIteration"),bn(ym,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(l1,"onTransitionRun"),bn(r1,"onTransitionStart"),bn(o1,"onTransitionCancel"),bn(bm,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var go="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(" "),$1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(go));function Vp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var v=l.length-1;0<=v;v--){var S=l[v],R=S.instance,U=S.currentTarget;if(S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(Q){ei(Q)}s.currentTarget=null,c=R}else for(v=0;v<l.length;v++){if(S=l[v],R=S.instance,U=S.currentTarget,S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(Q){ei(Q)}s.currentTarget=null,c=R}}}}function Me(e,t){var a=t[ec];a===void 0&&(a=t[ec]=new Set);var l=e+"__bubble";a.has(l)||(Yp(t,e,2,!1),a.add(l))}function qu(e,t,a){var l=0;t&&(l|=4),Yp(a,e,l,t)}var Vi="_reactListening"+Math.random().toString(36).slice(2);function $u(e){if(!e[Vi]){e[Vi]=!0,zf.forEach(function(a){a!=="selectionchange"&&($1.has(a)||qu(a,!1,e),qu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vi]||(t[Vi]=!0,qu("selectionchange",!1,t))}}function Yp(e,t,a,l){switch(gg(t)){case 2:var s=vS;break;case 8:s=yS;break;default:s=ld}a=s.bind(null,t,a,e),s=void 0,!cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function Gu(e,t,a,l,s){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var S=l.stateNode.containerInfo;if(S===s)break;if(v===4)for(v=l.return;v!==null;){var R=v.tag;if((R===3||R===4)&&v.stateNode.containerInfo===s)return;v=v.return}for(;S!==null;){if(v=Ll(S),v===null)return;if(R=v.tag,R===5||R===6||R===26||R===27){l=c=v;continue e}S=S.parentNode}}l=l.return}Qf(function(){var U=c,Q=ic(a),P=[];e:{var B=xm.get(e);if(B!==void 0){var Y=Fo,se=e;switch(e){case"keypress":if(Po(a)===0)break e;case"keydown":case"keyup":Y=Lx;break;case"focusin":se="focus",Y=mc;break;case"focusout":se="blur",Y=mc;break;case"beforeblur":case"afterblur":Y=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":Y=Pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Hx;break;case gm:case vm:case ym:Y=Ax;break;case bm:Y=Yx;break;case"scroll":case"scrollend":Y=wx;break;case"wheel":Y=$x;break;case"copy":case"cut":case"paste":Y=_x;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Ff;break;case"toggle":case"beforetoggle":Y=Xx}var xe=(t&4)!==0,Ke=!xe&&(e==="scroll"||e==="scrollend"),k=xe?B!==null?B+"Capture":null:B;xe=[];for(var D=U,L;D!==null;){var K=D;if(L=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||L===null||k===null||(K=Ur(D,k),K!=null&&xe.push(vo(D,K,L))),Ke)break;D=D.return}0<xe.length&&(B=new Y(B,se,null,a,Q),P.push({event:B,listeners:xe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",B&&a!==oc&&(se=a.relatedTarget||a.fromElement)&&(Ll(se)||se[kl]))break e;if((Y||B)&&(B=Q.window===Q?Q:(B=Q.ownerDocument)?B.defaultView||B.parentWindow:window,Y?(se=a.relatedTarget||a.toElement,Y=U,se=se?Ll(se):null,se!==null&&(Ke=d(se),xe=se.tag,se!==Ke||xe!==5&&xe!==27&&xe!==6)&&(se=null)):(Y=null,se=U),Y!==se)){if(xe=Pf,K="onMouseLeave",k="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Ff,K="onPointerLeave",k="onPointerEnter",D="pointer"),Ke=Y==null?B:Lr(Y),L=se==null?B:Lr(se),B=new xe(K,D+"leave",Y,a,Q),B.target=Ke,B.relatedTarget=L,K=null,Ll(Q)===U&&(xe=new xe(k,D+"enter",se,a,Q),xe.target=L,xe.relatedTarget=Ke,K=xe),Ke=K,Y&&se)t:{for(xe=G1,k=Y,D=se,L=0,K=k;K;K=xe(K))L++;K=0;for(var ye=D;ye;ye=xe(ye))K++;for(;0<L-K;)k=xe(k),L--;for(;0<K-L;)D=xe(D),K--;for(;L--;){if(k===D||D!==null&&k===D.alternate){xe=k;break t}k=xe(k),D=xe(D)}xe=null}else xe=null;Y!==null&&qp(P,B,Y,xe,!1),se!==null&&Ke!==null&&qp(P,Ke,se,xe,!0)}}e:{if(B=U?Lr(U):window,Y=B.nodeName&&B.nodeName.toLowerCase(),Y==="select"||Y==="input"&&B.type==="file")var He=rm;else if(am(B))if(om)He=t1;else{He=Wx;var me=Ix}else Y=B.nodeName,!Y||Y.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?U&&rc(U.elementType)&&(He=rm):He=e1;if(He&&(He=He(e,U))){lm(P,He,a,Q);break e}me&&me(e,B,U),e==="focusout"&&U&&B.type==="number"&&U.memoizedProps.value!=null&&lc(B,"number",B.value)}switch(me=U?Lr(U):window,e){case"focusin":(am(me)||me.contentEditable==="true")&&(Xl=me,bc=U,Xr=null);break;case"focusout":Xr=bc=Xl=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,hm(P,a,Q);break;case"selectionchange":if(a1)break;case"keydown":case"keyup":hm(P,a,Q)}var Re;if(pc)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Gl?tm(e,a)&&(ke="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(If&&a.locale!=="ko"&&(Gl||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Gl&&(Re=Zf()):(Sa=Q,uc="value"in Sa?Sa.value:Sa.textContent,Gl=!0)),me=Yi(U,ke),0<me.length&&(ke=new Jf(ke,e,null,a,Q),P.push({event:ke,listeners:me}),Re?ke.data=Re:(Re=nm(a),Re!==null&&(ke.data=Re)))),(Re=Zx?Kx(e,a):Px(e,a))&&(ke=Yi(U,"onBeforeInput"),0<ke.length&&(me=new Jf("onBeforeInput","beforeinput",null,a,Q),P.push({event:me,listeners:ke}),me.data=Re)),V1(P,e,U,a,Q)}Vp(P,t)})}function vo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Yi(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Ur(e,a),s!=null&&l.unshift(vo(e,s,c)),s=Ur(e,t),s!=null&&l.push(vo(e,s,c))),e.tag===3)return l;e=e.return}return[]}function G1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qp(e,t,a,l,s){for(var c=t._reactName,v=[];a!==null&&a!==l;){var S=a,R=S.alternate,U=S.stateNode;if(S=S.tag,R!==null&&R===l)break;S!==5&&S!==26&&S!==27||U===null||(R=U,s?(U=Ur(a,c),U!=null&&v.unshift(vo(a,U,R))):s||(U=Ur(a,c),U!=null&&v.push(vo(a,U,R)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var X1=/\r\n?/g,Q1=/\u0000|\uFFFD/g;function $p(e){return(typeof e=="string"?e:""+e).replace(X1,`
|
|
50
|
-
`).replace(Q1,"")}function Gp(e,t){return t=$p(t),$p(e)===t}function Ze(e,t,a,l,s,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Yl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Yl(e,""+l);break;case"className":Xo(e,"class",l);break;case"tabIndex":Xo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Xo(e,a,l);break;case"style":Gf(e,l,c);break;case"data":if(t!=="object"){Xo(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=Zo(""+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 c=="function"&&(a==="formAction"?(t!=="input"&&Ze(e,t,"name",s.name,s,null),Ze(e,t,"formEncType",s.formEncType,s,null),Ze(e,t,"formMethod",s.formMethod,s,null),Ze(e,t,"formTarget",s.formTarget,s,null)):(Ze(e,t,"encType",s.encType,s,null),Ze(e,t,"method",s.method,s,null),Ze(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Zo(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Kn);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(i(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=Zo(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Go(e,"popover",l);break;case"xlinkActuate":Zn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Zn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Zn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Zn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Zn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Zn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Go(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=xx.get(a)||a,Go(e,a,l))}}function Xu(e,t,a,l,s,c){switch(a){case"style":Gf(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Yl(e,l):(typeof l=="number"||typeof l=="bigint")&&Yl(e,""+l);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[Ut]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Go(e,a,l)}}}function Tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var l=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var v=a[c];if(v!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,c,v,a,null)}}s&&Ze(e,t,"srcSet",a.srcSet,a,null),l&&Ze(e,t,"src",a.src,a,null);return;case"input":Me("invalid",e);var S=c=v=s=null,R=null,U=null;for(l in a)if(a.hasOwnProperty(l)){var Q=a[l];if(Q!=null)switch(l){case"name":s=Q;break;case"type":v=Q;break;case"checked":R=Q;break;case"defaultChecked":U=Q;break;case"value":c=Q;break;case"defaultValue":S=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Ze(e,t,l,Q,a,null)}}Vf(e,c,S,R,U,v,s,!1);return;case"select":Me("invalid",e),l=v=c=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":c=S;break;case"defaultValue":v=S;break;case"multiple":l=S;default:Ze(e,t,s,S,a,null)}t=c,a=v,e.multiple=!!l,t!=null?Vl(e,!!l,t,!1):a!=null&&Vl(e,!!l,a,!0);return;case"textarea":Me("invalid",e),c=s=l=null;for(v in a)if(a.hasOwnProperty(v)&&(S=a[v],S!=null))switch(v){case"value":l=S;break;case"defaultValue":s=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Ze(e,t,v,S,a,null)}qf(e,l,s,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(l=a[R],l!=null))switch(R){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ze(e,t,R,l,a,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(l=0;l<go.length;l++)Me(go[l],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in a)if(a.hasOwnProperty(U)&&(l=a[U],l!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,U,l,a,null)}return;default:if(rc(t)){for(Q in a)a.hasOwnProperty(Q)&&(l=a[Q],l!==void 0&&Xu(e,t,Q,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&Ze(e,t,S,l,a,null))}function Z1(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 s=null,c=null,v=null,S=null,R=null,U=null,Q=null;for(Y in a){var P=a[Y];if(a.hasOwnProperty(Y)&&P!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":R=P;default:l.hasOwnProperty(Y)||Ze(e,t,Y,null,l,P)}}for(var B in l){var Y=l[B];if(P=a[B],l.hasOwnProperty(B)&&(Y!=null||P!=null))switch(B){case"type":c=Y;break;case"name":s=Y;break;case"checked":U=Y;break;case"defaultChecked":Q=Y;break;case"value":v=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Y!==P&&Ze(e,t,B,Y,l,P)}}ac(e,v,S,R,U,Q,c,s);return;case"select":Y=v=S=B=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":Y=R;default:l.hasOwnProperty(c)||Ze(e,t,c,null,l,R)}for(s in l)if(c=l[s],R=a[s],l.hasOwnProperty(s)&&(c!=null||R!=null))switch(s){case"value":B=c;break;case"defaultValue":S=c;break;case"multiple":v=c;default:c!==R&&Ze(e,t,s,c,l,R)}t=S,a=v,l=Y,B!=null?Vl(e,!!a,B,!1):!!l!=!!a&&(t!=null?Vl(e,!!a,t,!0):Vl(e,!!a,a?[]:"",!1));return;case"textarea":Y=B=null;for(S in a)if(s=a[S],a.hasOwnProperty(S)&&s!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ze(e,t,S,null,l,s)}for(v in l)if(s=l[v],c=a[v],l.hasOwnProperty(v)&&(s!=null||c!=null))switch(v){case"value":B=s;break;case"defaultValue":Y=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Ze(e,t,v,s,l,c)}Yf(e,B,Y);return;case"option":for(var se in a)if(B=a[se],a.hasOwnProperty(se)&&B!=null&&!l.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Ze(e,t,se,null,l,B)}for(R in l)if(B=l[R],Y=a[R],l.hasOwnProperty(R)&&B!==Y&&(B!=null||Y!=null))switch(R){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ze(e,t,R,B,l,Y)}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 xe in a)B=a[xe],a.hasOwnProperty(xe)&&B!=null&&!l.hasOwnProperty(xe)&&Ze(e,t,xe,null,l,B);for(U in l)if(B=l[U],Y=a[U],l.hasOwnProperty(U)&&B!==Y&&(B!=null||Y!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,t));break;default:Ze(e,t,U,B,l,Y)}return;default:if(rc(t)){for(var Ke in a)B=a[Ke],a.hasOwnProperty(Ke)&&B!==void 0&&!l.hasOwnProperty(Ke)&&Xu(e,t,Ke,void 0,l,B);for(Q in l)B=l[Q],Y=a[Q],!l.hasOwnProperty(Q)||B===Y||B===void 0&&Y===void 0||Xu(e,t,Q,B,l,Y);return}}for(var k in a)B=a[k],a.hasOwnProperty(k)&&B!=null&&!l.hasOwnProperty(k)&&Ze(e,t,k,null,l,B);for(P in l)B=l[P],Y=a[P],!l.hasOwnProperty(P)||B===Y||B==null&&Y==null||Ze(e,t,P,B,l,Y)}function Xp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],c=s.transferSize,v=s.initiatorType,S=s.duration;if(c&&S&&Xp(v)){for(v=0,S=s.responseEnd,l+=1;l<a.length;l++){var R=a[l],U=R.startTime;if(U>S)break;var Q=R.transferSize,P=R.initiatorType;Q&&Xp(P)&&(R=R.responseEnd,v+=Q*(R<S?1:(S-U)/(R-U)))}if(--l,t+=8*(c+v)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qu=null,Zu=null;function qi(e){return e.nodeType===9?e:e.ownerDocument}function Qp(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 Zp(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 Ku(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 Pu=null;function P1(){var e=window.event;return e&&e.type==="popstate"?e===Pu?!1:(Pu=e,!0):(Pu=null,!1)}var Kp=typeof setTimeout=="function"?setTimeout:void 0,J1=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,F1=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp<"u"?function(e){return Pp.resolve(null).then(e).catch(I1)}:Kp;function I1(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function Jp(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),yr(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")yo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,yo(a);for(var c=a.firstChild;c;){var v=c.nextSibling,S=c.nodeName;c[kr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=v}}else a==="body"&&yo(e.ownerDocument.body);a=s}while(a);yr(t)}function Fp(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Ju(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":Ju(a),tc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function W1(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[kr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function eS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function Ip(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function Fu(e){return e.data==="$?"||e.data==="$~"}function Iu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function fn(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==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Wu=null;function Wp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return fn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function eg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function tg(e,t,a){switch(t=qi(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function yo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);tc(e)}var mn=new Map,ng=new Set;function $i(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ua=$.d;$.d={f:nS,r:aS,D:lS,C:rS,L:oS,m:iS,X:cS,S:sS,M:uS};function nS(){var e=ua.f(),t=zi();return e||t}function aS(e){var t=Ul(e);t!==null&&t.tag===5&&t.type==="form"?bh(t):ua.r(e)}var pr=typeof document>"u"?null:document;function ag(e,t,a){var l=pr;if(l&&typeof t=="string"&&t){var s=ln(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),ng.has(s)||(ng.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),Tt(t,"link",e),bt(t),l.head.appendChild(t)))}}function lS(e){ua.D(e),ag("dns-prefetch",e,null)}function rS(e,t){ua.C(e,t),ag("preconnect",e,t)}function oS(e,t,a){ua.L(e,t,a);var l=pr;if(l&&e&&t){var s='link[rel="preload"][as="'+ln(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+ln(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+ln(a.imageSizes)+'"]')):s+='[href="'+ln(e)+'"]';var c=s;switch(t){case"style":c=gr(e);break;case"script":c=vr(e)}mn.has(c)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),mn.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(bo(c))||t==="script"&&l.querySelector(xo(c))||(t=l.createElement("link"),Tt(t,"link",e),bt(t),l.head.appendChild(t)))}}function iS(e,t){ua.m(e,t);var a=pr;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+ln(l)+'"][href="'+ln(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=vr(e)}if(!mn.has(c)&&(e=g({rel:"modulepreload",href:e},t),mn.set(c,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xo(c)))return}l=a.createElement("link"),Tt(l,"link",e),bt(l),a.head.appendChild(l)}}}function sS(e,t,a){ua.S(e,t,a);var l=pr;if(l&&e){var s=Bl(l).hoistableStyles,c=gr(e);t=t||"default";var v=s.get(c);if(!v){var S={loading:0,preload:null};if(v=l.querySelector(bo(c)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=mn.get(c))&&ed(e,a);var R=v=l.createElement("link");bt(R),Tt(R,"link",e),R._p=new Promise(function(U,Q){R.onload=U,R.onerror=Q}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Gi(v,t,l)}v={type:"stylesheet",instance:v,count:1,state:S},s.set(c,v)}}}function cS(e,t){ua.X(e,t);var a=pr;if(a&&e){var l=Bl(a).hoistableScripts,s=vr(e),c=l.get(s);c||(c=a.querySelector(xo(s)),c||(e=g({src:e,async:!0},t),(t=mn.get(s))&&td(e,t),c=a.createElement("script"),bt(c),Tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function uS(e,t){ua.M(e,t);var a=pr;if(a&&e){var l=Bl(a).hoistableScripts,s=vr(e),c=l.get(s);c||(c=a.querySelector(xo(s)),c||(e=g({src:e,async:!0,type:"module"},t),(t=mn.get(s))&&td(e,t),c=a.createElement("script"),bt(c),Tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function lg(e,t,a,l){var s=(s=ae.current)?$i(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=gr(a.href),a=Bl(s).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=gr(a.href);var c=Bl(s).hoistableStyles,v=c.get(e);if(v||(s=s.ownerDocument||s,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,v),(c=s.querySelector(bo(e)))&&!c._p&&(v.instance=c,v.state.loading=5),mn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},mn.set(e,a),c||dS(s,e,a,v.state))),t&&l===null)throw Error(i(528,""));return v}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=vr(a),a=Bl(s).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(i(444,e))}}function gr(e){return'href="'+ln(e)+'"'}function bo(e){return'link[rel="stylesheet"]['+e+"]"}function rg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function dS(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}),Tt(t,"link",a),bt(t),e.head.appendChild(t))}function vr(e){return'[src="'+ln(e)+'"]'}function xo(e){return"script[async]"+e}function og(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+ln(a.href)+'"]');if(l)return t.instance=l,bt(l),l;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),bt(l),Tt(l,"style",s),Gi(l,a.precedence,e),t.instance=l;case"stylesheet":s=gr(a.href);var c=e.querySelector(bo(s));if(c)return t.state.loading|=4,t.instance=c,bt(c),c;l=rg(a),(s=mn.get(s))&&ed(l,s),c=(e.ownerDocument||e).createElement("link"),bt(c);var v=c;return v._p=new Promise(function(S,R){v.onload=S,v.onerror=R}),Tt(c,"link",l),t.state.loading|=4,Gi(c,a.precedence,e),t.instance=c;case"script":return c=vr(a.src),(s=e.querySelector(xo(c)))?(t.instance=s,bt(s),s):(l=a,(s=mn.get(c))&&(l=g({},a),td(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),bt(s),Tt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Gi(l,a.precedence,e));return t.instance}function Gi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,v=0;v<l.length;v++){var S=l[v];if(S.dataset.precedence===t)c=S;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ed(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function td(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xi=null;function ig(e,t,a){if(Xi===null){var l=new Map,s=Xi=new Map;s.set(a,l)}else s=Xi,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[kr]||c[St]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var v=c.getAttribute(t)||"";v=e+v;var S=l.get(v);S?S.push(c):l.set(v,[c])}}return l}function sg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function fS(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 cg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mS(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=gr(l.href),c=t.querySelector(bo(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,bt(c);return}c=t.ownerDocument||t,l=rg(l),(s=mn.get(s))&&ed(l,s),c=c.createElement("link"),bt(c);var v=c;v._p=new Promise(function(S,R){v.onload=S,v.onerror=R}),Tt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Qi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var nd=0;function hS(e,t){return e.stylesheets&&e.count===0&&Ki(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Ki(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&nd===0&&(nd=62500*K1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ki(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>nd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Qi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ki(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zi=null;function Ki(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zi=new Map,t.forEach(pS,e),Zi=null,Qi.call(e))}function pS(e,t){if(!(t.state.loading&4)){var a=Zi.get(e);if(a)var l=a.get(null);else{a=new Map,Zi.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var v=s[c];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),l=v)}l&&a.set(null,l)}s=t.instance,v=s.getAttribute("data-precedence"),c=a.get(v)||l,c===l&&a.set(null,s),a.set(v,s),this.count++,l=Qi.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var So={$$typeof:M,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function gS(e,t,a,l,s,c,v,S,R){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=ba(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ba(0),this.hiddenUpdates=ba(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function ug(e,t,a,l,s,c,v,S,R,U,Q,P){return e=new gS(e,t,a,v,R,U,Q,P,S),t=1,c===!0&&(t|=24),c=Zt(3,null,null,t),e.current=c,c.stateNode=e,t=kc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},Hc(c),e}function dg(e){return e?(e=Kl,e):Kl}function fg(e,t,a,l,s,c){s=dg(s),l.context===null?l.context=s:l.pendingContext=s,l=Aa(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Ra(e,l,t),a!==null&&($t(a,e,t),Ir(a,e,t))}function mg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ad(e,t){mg(e,t),(e=e.alternate)&&mg(e,t)}function hg(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&$t(t,e,67108864),ad(e,67108864)}}function pg(e){if(e.tag===13||e.tag===31){var t=It();t=zl(t);var a=cl(e,t);a!==null&&$t(a,e,t),ad(e,t)}}var Pi=!0;function vS(e,t,a,l){var s=j.T;j.T=null;var c=$.p;try{$.p=2,ld(e,t,a,l)}finally{$.p=c,j.T=s}}function yS(e,t,a,l){var s=j.T;j.T=null;var c=$.p;try{$.p=8,ld(e,t,a,l)}finally{$.p=c,j.T=s}}function ld(e,t,a,l){if(Pi){var s=rd(l);if(s===null)Gu(e,t,l,Ji,a),vg(e,l);else if(xS(s,e,t,a,l))l.stopPropagation();else if(vg(e,l),t&4&&-1<bS.indexOf(e)){for(;s!==null;){var c=Ul(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var v=Rn(c.pendingLanes);if(v!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var R=1<<31-At(v);S.entanglements[1]|=R,v&=~R}Mn(c),(qe&6)===0&&(Mi=Ot()+500,po(0))}}break;case 31:case 13:S=cl(c,2),S!==null&&$t(S,c,2),zi(),ad(c,2)}if(c=rd(l),c===null&&Gu(e,t,l,Ji,a),c===s)break;s=c}s!==null&&l.stopPropagation()}else Gu(e,t,l,null,a)}}function rd(e){return e=ic(e),od(e)}var Ji=null;function od(e){if(Ji=null,e=Ll(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=f(t),e!==null)return e;e=null}else if(a===31){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 Ji=e,null}function gg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fs()){case el:return 2;case qo:return 8;case tl:case Dr:return 32;case Qn:return 268435456;default:return 32}default:return 32}}var id=!1,Ha=null,Va=null,Ya=null,wo=new Map,Eo=new Map,qa=[],bS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vg(e,t){switch(e){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":wo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eo.delete(t.pointerId)}}function No(e,t,a,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Ul(t),t!==null&&hg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function xS(e,t,a,l,s){switch(t){case"focusin":return Ha=No(Ha,e,t,a,l,s),!0;case"dragenter":return Va=No(Va,e,t,a,l,s),!0;case"mouseover":return Ya=No(Ya,e,t,a,l,s),!0;case"pointerover":var c=s.pointerId;return wo.set(c,No(wo.get(c)||null,e,t,a,l,s)),!0;case"gotpointercapture":return c=s.pointerId,Eo.set(c,No(Eo.get(c)||null,e,t,a,l,s)),!0}return!1}function yg(e){var t=Ll(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=f(a),t!==null){e.blockedOn=t,Mf(e.priority,function(){pg(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Mf(e.priority,function(){pg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=rd(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);oc=l,a.target.dispatchEvent(l),oc=null}else return t=Ul(a),t!==null&&hg(t),e.blockedOn=a,!1;t.shift()}return!0}function bg(e,t,a){Fi(e)&&a.delete(t)}function SS(){id=!1,Ha!==null&&Fi(Ha)&&(Ha=null),Va!==null&&Fi(Va)&&(Va=null),Ya!==null&&Fi(Ya)&&(Ya=null),wo.forEach(bg),Eo.forEach(bg)}function Ii(e,t){e.blockedOn===t&&(e.blockedOn=null,id||(id=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,SS)))}var Wi=null;function xg(e){Wi!==e&&(Wi=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Wi===e&&(Wi=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(od(l||a)===null)continue;break}var c=Ul(a);c!==null&&(e.splice(t,3),t-=3,ru(c,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function yr(e){function t(R){return Ii(R,e)}Ha!==null&&Ii(Ha,e),Va!==null&&Ii(Va,e),Ya!==null&&Ii(Ya,e),wo.forEach(t),Eo.forEach(t);for(var a=0;a<qa.length;a++){var l=qa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<qa.length&&(a=qa[0],a.blockedOn===null);)yg(a),a.blockedOn===null&&qa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],c=a[l+1],v=s[Ut]||null;if(typeof c=="function")v||xg(a);else if(v){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,v=c[Ut]||null)S=v.formAction;else if(od(s)!==null)continue}else S=v.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),xg(a)}}}function Sg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(v){return s=v})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function sd(e){this._internalRoot=e}es.prototype.render=sd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,l=It();fg(a,l,e,t,null,null)},es.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fg(e.current,2,null,e,null,null),zi(),t[kl]=null}};function es(e){this._internalRoot=e}es.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ws();e={blockedOn:null,target:e,priority:t};for(var a=0;a<qa.length&&t!==0&&t<qa[a].priority;a++);qa.splice(a,0,e),a===0&&yg(e)}};var wg=r.version;if(wg!=="19.2.4")throw Error(i(527,wg,"19.2.4"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var wS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ts.isDisabled&&ts.supportsFiber)try{nl=ts.inject(wS),Mt=ts}catch{}}return Co.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,l="",s=_h,c=jh,v=Oh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=ug(e,1,!1,null,null,a,l,null,s,c,v,Sg),e[kl]=t.current,$u(e),new sd(t)},Co.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var l=!1,s="",c=_h,v=jh,S=Oh,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=ug(e,1,!0,t,a??null,l,s,R,c,v,S,Sg),t.context=dg(null),a=t.current,l=It(),l=zl(l),s=Aa(l),s.callback=null,Ra(a,s,l),a=l,t.current.lanes=a,nt(t,a),Mn(t),e[kl]=t.current,$u(e),new es(t)},Co.version="19.2.4",Co}var Mg;function MS(){if(Mg)return dd.exports;Mg=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(),dd.exports=OS(),dd.exports}var DS=MS();const zS="modulepreload",kS=function(n){return"/"+n},Dg={},jv=function(r,o,i){let u=Promise.resolve();if(o&&o.length>0){let f=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),y=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=f(o.map(p=>{if(p=kS(p),p in Dg)return;Dg[p]=!0;const x=p.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":zS,x||(w.as="script"),w.crossOrigin="",w.href=p,y&&w.setAttribute("nonce",y),document.head.appendChild(w),x)return new Promise((E,A)=>{w.addEventListener("load",E),w.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(f){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=f,window.dispatchEvent(m),!m.defaultPrevented)throw f}return u.then(f=>{for(const m of f||[])m.status==="rejected"&&d(m.reason);return r().catch(d)})};/**
|
|
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 zg="popstate";function kg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function LS(n={}){function r(i,u){var p;let d=(p=u.state)==null?void 0:p.masked,{pathname:f,search:m,hash:y}=d||i.location;return Md("",{pathname:f,search:m,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default",d?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,u){return typeof u=="string"?u:Mo(u)}return BS(r,o,null,n)}function et(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function En(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function US(){return Math.random().toString(36).substring(2,10)}function Lg(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 Md(n,r,o=null,i,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Ar(r):r,state:o,key:r&&r.key||i||US(),unstable_mask:u}}function Mo({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 Ar(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let i=n.indexOf("?");i>=0&&(r.search=n.substring(i),n=n.substring(0,i)),n&&(r.pathname=n)}return r}function BS(n,r,o,i={}){let{window:u=document.defaultView,v5Compat:d=!1}=i,f=u.history,m="POP",y=null,p=x();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function x(){return(f.state||{idx:null}).idx}function g(){m="POP";let T=x(),C=T==null?null:T-p;p=T,y&&y({action:m,location:N.location,delta:C})}function w(T,C){m="PUSH";let O=kg(T)?T:Md(N.location,T,C);p=x()+1;let M=Lg(O,p),z=N.createHref(O.unstable_mask||O);try{f.pushState(M,"",z)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;u.location.assign(z)}d&&y&&y({action:m,location:N.location,delta:1})}function E(T,C){m="REPLACE";let O=kg(T)?T:Md(N.location,T,C);p=x();let M=Lg(O,p),z=N.createHref(O.unstable_mask||O);f.replaceState(M,"",z),d&&y&&y({action:m,location:N.location,delta:0})}function A(T){return HS(T)}let N={get action(){return m},get location(){return n(u,f)},listen(T){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(zg,g),y=T,()=>{u.removeEventListener(zg,g),y=null}},createHref(T){return r(u,T)},createURL:A,encodeLocation(T){let C=A(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:w,replace:E,go(T){return f.go(T)}};return N}function HS(n,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),et(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Mo(n);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function Ov(n,r,o="/"){return VS(n,r,o,!1)}function VS(n,r,o,i){let u=typeof r=="string"?Ar(r):r,d=fa(u.pathname||"/",o);if(d==null)return null;let f=Mv(n);YS(f);let m=null;for(let y=0;m==null&&y<f.length;++y){let p=IS(d);m=JS(f[y],p,i)}return m}function Mv(n,r=[],o=[],i="",u=!1){let d=(f,m,y=u,p)=>{let x={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&y)return;et(x.relativePath.startsWith(i),`Absolute route path "${x.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(i.length)}let g=Yn([i,x.relativePath]),w=o.concat(x);f.children&&f.children.length>0&&(et(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Mv(f.children,r,w,g,y)),!(f.path==null&&!f.index)&&r.push({path:g,score:KS(g,f.index),routesMeta:w})};return n.forEach((f,m)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))d(f,m);else for(let p of Dv(f.path))d(f,m,!0,p)}),r}function Dv(n){let r=n.split("/");if(r.length===0)return[];let[o,...i]=r,u=o.endsWith("?"),d=o.replace(/\?$/,"");if(i.length===0)return u?[d,""]:[d];let f=Dv(i.join("/")),m=[];return m.push(...f.map(y=>y===""?d:[d,y].join("/"))),u&&m.push(...f),m.map(y=>n.startsWith("/")&&y===""?"/":y)}function YS(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:PS(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var qS=/^:[\w-]+$/,$S=3,GS=2,XS=1,QS=10,ZS=-2,Ug=n=>n==="*";function KS(n,r){let o=n.split("/"),i=o.length;return o.some(Ug)&&(i+=ZS),r&&(i+=GS),o.filter(u=>!Ug(u)).reduce((u,d)=>u+(qS.test(d)?$S:d===""?XS:QS),i)}function PS(n,r){return n.length===r.length&&n.slice(0,-1).every((i,u)=>i===r[u])?n[n.length-1]-r[r.length-1]:0}function JS(n,r,o=!1){let{routesMeta:i}=n,u={},d="/",f=[];for(let m=0;m<i.length;++m){let y=i[m],p=m===i.length-1,x=d==="/"?r:r.slice(d.length)||"/",g=Ss({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!g&&p&&o&&!i[i.length-1].route.index&&(g=Ss({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!g)return null;Object.assign(u,g.params),f.push({params:u,pathname:Yn([d,g.pathname]),pathnameBase:n2(Yn([d,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(d=Yn([d,g.pathnameBase]))}return f}function Ss(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=FS(n.path,n.caseSensitive,n.end),u=r.match(o);if(!u)return null;let d=u[0],f=d.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:g},w)=>{if(x==="*"){let A=m[w]||"";f=d.slice(0,d.length-A.length).replace(/(.)\/+$/,"$1")}const E=m[w];return g&&!E?p[x]=void 0:p[x]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:f,pattern:n}}function FS(n,r=!1,o=!0){En(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 i=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,y,p,x)=>{if(i.push({paramName:m,isOptional:y!=null}),y){let g=x.charAt(p+f.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),i]}function IS(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return En(!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 fa(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,i=n.charAt(o);return i&&i!=="/"?null:n.slice(o)||"/"}var WS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function e2(n,r="/"){let{pathname:o,search:i="",hash:u=""}=typeof n=="string"?Ar(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=Bg(o.substring(1),"/"):d=Bg(o,r)):d=r,{pathname:d,search:a2(i),hash:l2(u)}}function Bg(n,r){let o=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function pd(n,r,o,i){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. 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 t2(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Id(n){let r=t2(n);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}function Us(n,r,o,i=!1){let u;typeof n=="string"?u=Ar(n):(u={...n},et(!u.pathname||!u.pathname.includes("?"),pd("?","pathname","search",u)),et(!u.pathname||!u.pathname.includes("#"),pd("#","pathname","hash",u)),et(!u.search||!u.search.includes("#"),pd("#","search","hash",u)));let d=n===""||u.pathname==="",f=d?"/":u.pathname,m;if(f==null)m=o;else{let g=r.length-1;if(!i&&f.startsWith("..")){let w=f.split("/");for(;w[0]==="..";)w.shift(),g-=1;u.pathname=w.join("/")}m=g>=0?r[g]:"/"}let y=e2(u,m),p=f&&f!=="/"&&f.endsWith("/"),x=(d||f===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Yn=n=>n.join("/").replace(/\/\/+/g,"/"),n2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),a2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,l2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,r2=class{constructor(n,r,o,i=!1){this.status=n,this.statusText=r||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function o2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function i2(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kv(n,r){let o=n;if(typeof o!="string"||!WS.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(zv)try{let d=new URL(window.location.href),f=o.startsWith("//")?new URL(d.protocol+o):new URL(o),m=fa(f.pathname,r);f.origin===d.origin&&m!=null?o=m+f.search+f.hash:u=!0}catch{En(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:u,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Lv=["POST","PUT","PATCH","DELETE"];new Set(Lv);var s2=["GET",...Lv];new Set(s2);var Rr=b.createContext(null);Rr.displayName="DataRouter";var Bs=b.createContext(null);Bs.displayName="DataRouterState";var c2=b.createContext(!1),Uv=b.createContext({isTransitioning:!1});Uv.displayName="ViewTransition";var u2=b.createContext(new Map);u2.displayName="Fetchers";var d2=b.createContext(null);d2.displayName="Await";var tn=b.createContext(null);tn.displayName="Navigation";var Lo=b.createContext(null);Lo.displayName="Location";var pn=b.createContext({outlet:null,matches:[],isDataRoute:!1});pn.displayName="Route";var Wd=b.createContext(null);Wd.displayName="RouteError";var Bv="REACT_ROUTER_ERROR",f2="REDIRECT",m2="ROUTE_ERROR_RESPONSE";function h2(n){if(n.startsWith(`${Bv}:${f2}:{`))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 p2(n){if(n.startsWith(`${Bv}:${m2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new r2(r.status,r.statusText,r.data)}catch{}}function g2(n,{relative:r}={}){et(_r(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=b.useContext(tn),{hash:u,pathname:d,search:f}=Uo(n,{relative:r}),m=d;return o!=="/"&&(m=d==="/"?o:Yn([o,d])),i.createHref({pathname:m,search:f,hash:u})}function _r(){return b.useContext(Lo)!=null}function Gn(){return et(_r(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Lo).location}var Hv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vv(n){b.useContext(tn).static||b.useLayoutEffect(n)}function Yv(){let{isDataRoute:n}=b.useContext(pn);return n?j2():v2()}function v2(){et(_r(),"useNavigate() may be used only in the context of a <Router> component.");let n=b.useContext(Rr),{basename:r,navigator:o}=b.useContext(tn),{matches:i}=b.useContext(pn),{pathname:u}=Gn(),d=JSON.stringify(Id(i)),f=b.useRef(!1);return Vv(()=>{f.current=!0}),b.useCallback((y,p={})=>{if(En(f.current,Hv),!f.current)return;if(typeof y=="number"){o.go(y);return}let x=Us(y,JSON.parse(d),u,p.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Yn([r,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[r,o,d,u,n])}var qv=b.createContext(null);function m3(){return b.useContext(qv)}function y2(n){let r=b.useContext(pn).outlet;return b.useMemo(()=>r&&b.createElement(qv.Provider,{value:n},r),[r,n])}function h3(){let{matches:n}=b.useContext(pn),r=n[n.length-1];return r?r.params:{}}function Uo(n,{relative:r}={}){let{matches:o}=b.useContext(pn),{pathname:i}=Gn(),u=JSON.stringify(Id(o));return b.useMemo(()=>Us(n,JSON.parse(u),i,r==="path"),[n,u,i,r])}function b2(n,r){return $v(n,r)}function $v(n,r,o){var T;et(_r(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=b.useContext(tn),{matches:u}=b.useContext(pn),d=u[u.length-1],f=d?d.params:{},m=d?d.pathname:"/",y=d?d.pathnameBase:"/",p=d&&d.route;{let C=p&&p.path||"";Xv(m,!p||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let x=Gn(),g;if(r){let C=typeof r=="string"?Ar(r):r;et(y==="/"||((T=C.pathname)==null?void 0:T.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${C.pathname}" was given in the \`location\` prop.`),g=C}else g=x;let w=g.pathname||"/",E=w;if(y!=="/"){let C=y.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let A=Ov(n,{pathname:E});En(p||A!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),En(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=N2(A&&A.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:Yn([y,i.encodeLocation?i.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?y:Yn([y,i.encodeLocation?i.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),u,o);return r&&N?b.createElement(Lo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},N):N}function x2(){let n=_2(),r=o2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:d},"ErrorBoundary")," or"," ",b.createElement("code",{style:d},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},r),o?b.createElement("pre",{style:u},o):null,f)}var S2=b.createElement(x2,null),Gv=class extends b.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=p2(n.digest);o&&(n=o)}let r=n!==void 0?b.createElement(pn.Provider,{value:this.props.routeContext},b.createElement(Wd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?b.createElement(w2,{error:n},r):r}};Gv.contextType=c2;var gd=new WeakMap;function w2({children:n,error:r}){let{basename:o}=b.useContext(tn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=h2(r.digest);if(i){let u=gd.get(r);if(u)throw u;let d=kv(i.location,o);if(zv&&!gd.get(r))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw gd.set(r,f),f}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function E2({routeContext:n,match:r,children:o}){let i=b.useContext(Rr);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(pn.Provider,{value:n},o)}function N2(n,r=[],o){let i=o==null?void 0:o.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let u=n,d=i==null?void 0:i.errors;if(d!=null){let x=u.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);et(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let f=!1,m=-1;if(o&&i){f=i.renderFallback;for(let x=0;x<u.length;x++){let g=u[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=x),g.route.id){let{loaderData:w,errors:E}=i,A=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!E||E[g.route.id]===void 0);if(g.route.lazy||A){o.isStatic&&(f=!0),m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}}let y=o==null?void 0:o.onError,p=i&&y?(x,g)=>{var w,E;y(x,{location:i.location,params:((E=(w=i.matches)==null?void 0:w[0])==null?void 0:E.params)??{},unstable_pattern:i2(i.matches),errorInfo:g})}:void 0;return u.reduceRight((x,g,w)=>{let E,A=!1,N=null,T=null;i&&(E=d&&g.route.id?d[g.route.id]:void 0,N=g.route.errorElement||S2,f&&(m<0&&w===0?(Xv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,T=null):m===w&&(A=!0,T=g.route.hydrateFallbackElement||null)));let C=r.concat(u.slice(0,w+1)),O=()=>{let M;return E?M=N:A?M=T:g.route.Component?M=b.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=x,b.createElement(E2,{match:g,routeContext:{outlet:x,matches:C,isDataRoute:i!=null},children:M})};return i&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?b.createElement(Gv,{location:i.location,revalidation:i.revalidation,component:N,error:E,children:O(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:p}):O()},null)}function ef(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function T2(n){let r=b.useContext(Rr);return et(r,ef(n)),r}function C2(n){let r=b.useContext(Bs);return et(r,ef(n)),r}function A2(n){let r=b.useContext(pn);return et(r,ef(n)),r}function tf(n){let r=A2(n),o=r.matches[r.matches.length-1];return et(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function R2(){return tf("useRouteId")}function _2(){var i;let n=b.useContext(Wd),r=C2("useRouteError"),o=tf("useRouteError");return n!==void 0?n:(i=r.errors)==null?void 0:i[o]}function j2(){let{router:n}=T2("useNavigate"),r=tf("useNavigate"),o=b.useRef(!1);return Vv(()=>{o.current=!0}),b.useCallback(async(u,d={})=>{En(o.current,Hv),o.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:r,...d}))},[n,r])}var Hg={};function Xv(n,r,o){!r&&!Hg[n]&&(Hg[n]=!0,En(!1,o))}b.memo(O2);function O2({routes:n,future:r,state:o,isStatic:i,onError:u}){return $v(n,void 0,{state:o,isStatic:i,onError:u})}function Vg({to:n,replace:r,state:o,relative:i}){et(_r(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=b.useContext(tn);En(!u,"<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:d}=b.useContext(pn),{pathname:f}=Gn(),m=Yv(),y=Us(n,Id(d),f,i==="path"),p=JSON.stringify(y);return b.useEffect(()=>{m(JSON.parse(p),{replace:r,state:o,relative:i})},[m,p,i,r,o]),null}function M2(n){return y2(n.context)}function Tl(n){et(!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 D2({basename:n="/",children:r=null,location:o,navigationType:i="POP",navigator:u,static:d=!1,unstable_useTransitions:f}){et(!_r(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),y=b.useMemo(()=>({basename:m,navigator:u,static:d,unstable_useTransitions:f,future:{}}),[m,u,d,f]);typeof o=="string"&&(o=Ar(o));let{pathname:p="/",search:x="",hash:g="",state:w=null,key:E="default",unstable_mask:A}=o,N=b.useMemo(()=>{let T=fa(p,m);return T==null?null:{location:{pathname:T,search:x,hash:g,state:w,key:E,unstable_mask:A},navigationType:i}},[m,p,x,g,w,E,i,A]);return En(N!=null,`<Router basename="${m}"> is not able to match the URL "${p}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:b.createElement(tn.Provider,{value:y},b.createElement(Lo.Provider,{children:r,value:N}))}function z2({children:n,location:r}){return b2(Dd(n),r)}function Dd(n,r=[]){let o=[];return b.Children.forEach(n,(i,u)=>{if(!b.isValidElement(i))return;let d=[...r,u];if(i.type===b.Fragment){o.push.apply(o,Dd(i.props.children,d));return}et(i.type===Tl,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),et(!i.props.index||!i.props.children,"An index route cannot have child routes.");let f={id:i.props.id||d.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(f.children=Dd(i.props.children,d)),o.push(f)}),o}var hs="get",ps="application/x-www-form-urlencoded";function Hs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function k2(n){return Hs(n)&&n.tagName.toLowerCase()==="button"}function L2(n){return Hs(n)&&n.tagName.toLowerCase()==="form"}function U2(n){return Hs(n)&&n.tagName.toLowerCase()==="input"}function B2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function H2(n,r){return n.button===0&&(!r||r==="_self")&&!B2(n)}var ns=null;function V2(){if(ns===null)try{new FormData(document.createElement("form"),0),ns=!1}catch{ns=!0}return ns}var Y2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vd(n){return n!=null&&!Y2.has(n)?(En(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ps}"`),null):n}function q2(n,r){let o,i,u,d,f;if(L2(n)){let m=n.getAttribute("action");i=m?fa(m,r):null,o=n.getAttribute("method")||hs,u=vd(n.getAttribute("enctype"))||ps,d=new FormData(n)}else if(k2(n)||U2(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=n.getAttribute("formaction")||m.getAttribute("action");if(i=y?fa(y,r):null,o=n.getAttribute("formmethod")||m.getAttribute("method")||hs,u=vd(n.getAttribute("formenctype"))||vd(m.getAttribute("enctype"))||ps,d=new FormData(m,n),!V2()){let{name:p,type:x,value:g}=n;if(x==="image"){let w=p?`${p}.`:"";d.append(`${w}x`,"0"),d.append(`${w}y`,"0")}else p&&d.append(p,g)}}else{if(Hs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=hs,i=null,u=ps,f=n}return d&&u==="text/plain"&&(f=d,d=void 0),{action:i,method:o.toLowerCase(),encType:u,formData:d,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function $2(n,r,o,i){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${i}`:u.pathname=`${u.pathname}.${i}`:u.pathname==="/"?u.pathname=`_root.${i}`:r&&fa(u.pathname,r)==="/"?u.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function G2(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 X2(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 Q2(n,r,o){let i=await Promise.all(n.map(async u=>{let d=r.routes[u.route.id];if(d){let f=await G2(d,o);return f.links?f.links():[]}return[]}));return J2(i.flat(1).filter(X2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Yg(n,r,o,i,u,d){let f=(y,p)=>o[p]?y.route.id!==o[p].route.id:!0,m=(y,p)=>{var x;return o[p].pathname!==y.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==y.params["*"]};return d==="assets"?r.filter((y,p)=>f(y,p)||m(y,p)):d==="data"?r.filter((y,p)=>{var g;let x=i.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(f(y,p)||m(y,p))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((g=o[0])==null?void 0:g.params)||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Z2(n,r,{includeHydrateFallback:o}={}){return K2(n.map(i=>{let u=r.routes[i.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function K2(n){return[...new Set(n)]}function P2(n){let r={},o=Object.keys(n).sort();for(let i of o)r[i]=n[i];return r}function J2(n,r){let o=new Set;return new Set(r),n.reduce((i,u)=>{let d=JSON.stringify(P2(u));return o.has(d)||(o.add(d),i.push({key:d,link:u})),i},[])}function Qv(){let n=b.useContext(Rr);return nf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function F2(){let n=b.useContext(Bs);return nf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var af=b.createContext(void 0);af.displayName="FrameworkContext";function Zv(){let n=b.useContext(af);return nf(n,"You must render this element inside a <HydratedRouter> element"),n}function I2(n,r){let o=b.useContext(af),[i,u]=b.useState(!1),[d,f]=b.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=r,w=b.useRef(null);b.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let N=C=>{C.forEach(O=>{f(O.isIntersecting)})},T=new IntersectionObserver(N,{threshold:.5});return w.current&&T.observe(w.current),()=>{T.disconnect()}}},[n]),b.useEffect(()=>{if(i){let N=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(N)}}},[i]);let E=()=>{u(!0)},A=()=>{u(!1),f(!1)};return o?n!=="intent"?[d,w,{}]:[d,w,{onFocus:Ao(m,E),onBlur:Ao(y,A),onMouseEnter:Ao(p,E),onMouseLeave:Ao(x,A),onTouchStart:Ao(g,E)}]:[!1,w,{}]}function Ao(n,r){return o=>{n&&n(o),o.defaultPrevented||r(o)}}function W2({page:n,...r}){let{router:o}=Qv(),i=b.useMemo(()=>Ov(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?b.createElement(tw,{page:n,matches:i,...r}):null}function ew(n){let{manifest:r,routeModules:o}=Zv(),[i,u]=b.useState([]);return b.useEffect(()=>{let d=!1;return Q2(n,r,o).then(f=>{d||u(f)}),()=>{d=!0}},[n,r,o]),i}function tw({page:n,matches:r,...o}){let i=Gn(),{future:u,manifest:d,routeModules:f}=Zv(),{basename:m}=Qv(),{loaderData:y,matches:p}=F2(),x=b.useMemo(()=>Yg(n,r,p,d,i,"data"),[n,r,p,d,i]),g=b.useMemo(()=>Yg(n,r,p,d,i,"assets"),[n,r,p,d,i]),w=b.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let N=new Set,T=!1;if(r.forEach(O=>{var z;let M=d.routes[O.route.id];!M||!M.hasLoader||(!x.some(q=>q.route.id===O.route.id)&&O.route.id in y&&((z=f[O.route.id])!=null&&z.shouldRevalidate)||M.hasClientLoader?T=!0:N.add(O.route.id))}),N.size===0)return[];let C=$2(n,m,u.unstable_trailingSlashAwareDataRequests,"data");return T&&N.size>0&&C.searchParams.set("_routes",r.filter(O=>N.has(O.route.id)).map(O=>O.route.id).join(",")),[C.pathname+C.search]},[m,u.unstable_trailingSlashAwareDataRequests,y,i,d,x,r,n,f]),E=b.useMemo(()=>Z2(g,d),[g,d]),A=ew(g);return b.createElement(b.Fragment,null,w.map(N=>b.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...o})),E.map(N=>b.createElement("link",{key:N,rel:"modulepreload",href:N,...o})),A.map(({key:N,link:T})=>b.createElement("link",{key:N,nonce:o.nonce,...T,crossOrigin:T.crossOrigin??o.crossOrigin})))}function nw(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aw&&(window.__reactRouterVersion="7.13.2")}catch{}function lw({basename:n,children:r,unstable_useTransitions:o,window:i}){let u=b.useRef();u.current==null&&(u.current=LS({window:i,v5Compat:!0}));let d=u.current,[f,m]=b.useState({action:d.action,location:d.location}),y=b.useCallback(p=>{o===!1?m(p):b.startTransition(()=>m(p))},[o]);return b.useLayoutEffect(()=>d.listen(y),[d,y]),b.createElement(D2,{basename:n,children:r,location:f.location,navigationType:f.action,navigator:d,unstable_useTransitions:o})}var Kv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pv=b.forwardRef(function({onClick:r,discover:o="render",prefetch:i="none",relative:u,reloadDocument:d,replace:f,unstable_mask:m,state:y,target:p,to:x,preventScrollReset:g,viewTransition:w,unstable_defaultShouldRevalidate:E,...A},N){let{basename:T,navigator:C,unstable_useTransitions:O}=b.useContext(tn),M=typeof x=="string"&&Kv.test(x),z=kv(x,T);x=z.to;let q=g2(x,{relative:u}),G=Gn(),H=null;if(m){let de=Us(m,[],G.unstable_mask?G.unstable_mask.pathname:"/",!0);T!=="/"&&(de.pathname=de.pathname==="/"?T:Yn([T,de.pathname])),H=C.createHref(de)}let[V,le,he]=I2(i,A),ge=iw(x,{replace:f,unstable_mask:m,state:y,target:p,preventScrollReset:g,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:E,unstable_useTransitions:O});function fe(de){r&&r(de),de.defaultPrevented||ge(de)}let pe=!(z.isExternal||d),ve=b.createElement("a",{...A,...he,href:(pe?H:void 0)||z.absoluteURL||q,onClick:pe?fe:r,ref:nw(N,le),target:p,"data-discover":!M&&o==="render"?"true":void 0});return V&&!M?b.createElement(b.Fragment,null,ve,b.createElement(W2,{page:q})):ve});Pv.displayName="Link";var Jv=b.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:i="",end:u=!1,style:d,to:f,viewTransition:m,children:y,...p},x){let g=Uo(f,{relative:p.relative}),w=Gn(),E=b.useContext(Bs),{navigator:A,basename:N}=b.useContext(tn),T=E!=null&&fw(g)&&m===!0,C=A.encodeLocation?A.encodeLocation(g).pathname:g.pathname,O=w.pathname,M=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;o||(O=O.toLowerCase(),M=M?M.toLowerCase():null,C=C.toLowerCase()),M&&N&&(M=fa(M,N)||M);const z=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let q=O===C||!u&&O.startsWith(C)&&O.charAt(z)==="/",G=M!=null&&(M===C||!u&&M.startsWith(C)&&M.charAt(C.length)==="/"),H={isActive:q,isPending:G,isTransitioning:T},V=q?r:void 0,le;typeof i=="function"?le=i(H):le=[i,q?"active":null,G?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let he=typeof d=="function"?d(H):d;return b.createElement(Pv,{...p,"aria-current":V,className:le,ref:x,style:he,to:f,viewTransition:m},typeof y=="function"?y(H):y)});Jv.displayName="NavLink";var rw=b.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,reloadDocument:i,replace:u,state:d,method:f=hs,action:m,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w,...E},A)=>{let{unstable_useTransitions:N}=b.useContext(tn),T=uw(),C=dw(m,{relative:p}),O=f.toLowerCase()==="get"?"get":"post",M=typeof m=="string"&&Kv.test(m),z=q=>{if(y&&y(q),q.defaultPrevented)return;q.preventDefault();let G=q.nativeEvent.submitter,H=(G==null?void 0:G.getAttribute("formmethod"))||f,V=()=>T(G||q.currentTarget,{fetcherKey:r,method:H,navigate:o,replace:u,state:d,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w});N&&o!==!1?b.startTransition(()=>V()):V()};return b.createElement("form",{ref:A,method:O,action:C,onSubmit:i?y:z,...E,"data-discover":!M&&n==="render"?"true":void 0})});rw.displayName="Form";function ow(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fv(n){let r=b.useContext(Rr);return et(r,ow(n)),r}function iw(n,{target:r,replace:o,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:m,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let x=Yv(),g=Gn(),w=Uo(n,{relative:f});return b.useCallback(E=>{if(H2(E,r)){E.preventDefault();let A=o!==void 0?o:Mo(g)===Mo(w),N=()=>x(n,{replace:A,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:m,unstable_defaultShouldRevalidate:y});p?b.startTransition(()=>N()):N()}},[g,x,w,o,i,u,r,n,d,f,m,y,p])}var sw=0,cw=()=>`__${String(++sw)}__`;function uw(){let{router:n}=Fv("useSubmit"),{basename:r}=b.useContext(tn),o=R2(),i=n.fetch,u=n.navigate;return b.useCallback(async(d,f={})=>{let{action:m,method:y,encType:p,formData:x,body:g}=q2(d,r);if(f.navigate===!1){let w=f.fetcherKey||cw();await i(w,o,f.action||m,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:g,formMethod:f.method||y,formEncType:f.encType||p,flushSync:f.flushSync})}else await u(f.action||m,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:g,formMethod:f.method||y,formEncType:f.encType||p,replace:f.replace,state:f.state,fromRouteId:o,flushSync:f.flushSync,viewTransition:f.viewTransition})},[i,u,r,o])}function dw(n,{relative:r}={}){let{basename:o}=b.useContext(tn),i=b.useContext(pn);et(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),d={...Uo(n||".",{relative:r})},f=Gn();if(n==null){d.search=f.search;let m=new URLSearchParams(d.search),y=m.getAll("index");if(y.some(x=>x==="")){m.delete("index"),y.filter(g=>g).forEach(g=>m.append("index",g));let x=m.toString();d.search=x?`?${x}`:""}}return(!n||n===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Yn([o,d.pathname])),Mo(d)}function fw(n,{relative:r}={}){let o=b.useContext(Uv);et(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Fv("useViewTransitionState"),u=Uo(n,{relative:r});if(!o.isTransitioning)return!1;let d=fa(o.currentLocation.pathname,i)||o.currentLocation.pathname,f=fa(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Ss(u.pathname,f)!=null||Ss(u.pathname,d)!=null}var Bo=_v();const Iv=Rv(Bo),mw="/api";function hw(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return r}async function Ne(n,r){const o=await fetch(`${mw}${n}`,{...r,headers:{"Content-Type":"application/json",...r==null?void 0:r.headers}});if(!o.ok){const i=await o.json().catch(()=>o.statusText);throw new Error(hw(i,`HTTP ${o.status}`))}return o.json()}function pw(){return Ne("/system/info")}function p3(n){return Ne("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function gw(n){return Ne("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function vw(){return Ne("/system/runtime/stop",{method:"POST"})}function yw(){return Ne("/cluster/state")}function g3(){return Ne("/cluster/promote",{method:"POST"})}function v3(n){return Ne("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function y3(){return Ne("/cluster/disconnect",{method:"POST"})}function bw(n){return Ne(`/node-operations/${n}`)}async function xw(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 Ne(`/node-operations${o?`?${o}`:""}`)).operations}function Sw(n,r){return Ne(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function ww(n,r){return Ne(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}function b3(n,r){return Ne(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function x3(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 i=o.toString();return Ne(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function S3(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),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 i=o.toString();return Ne(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function w3(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),Ne(`/nodes/${n}/native-sessions?${o.toString()}`)}function E3(n,r){return Ne(`/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 N3(n,r){return Ne(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function T3(n){return Ne(`/nodes/${n}/terminal/sessions`)}function C3(n,r){return Ne(`/nodes/${n}/terminal/sessions/${r}`)}function A3(n,r){return Ne(`/nodes/${n}/terminal/sessions/${r}/stop`,{method:"POST"})}async function R3(n){const r=new URLSearchParams;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);{const u=Math.min(Math.max(1,n.limit),100);r.set("limit",String(u))}n!=null&&n.offset&&r.set("offset",String(n.offset));const o=r.toString();return(await Ne(`/tasks${o?`?${o}`:""}`)).tasks}function _3(n){return Ne(`/tasks/${n}`)}function j3(n){return Ne("/tasks",{method:"POST",body:JSON.stringify(n)})}function O3(n){return Ne("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function M3(n){return Ne("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function D3(n){return Ne("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function z3(n){return Ne(`/tasks/${n}/cancel`,{method:"POST"})}function k3(n){return Ne(`/tasks/${n}/retry`,{method:"POST"})}function L3(n,r){return Ne(`/tasks/${n}/logs`)}function U3(n,r){return Ne(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function B3(n,r){return Ne(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function H3(n){return Ne(`/tasks/${n}/share`,{method:"DELETE"})}function V3(n){return Ne(`/shared/conversations/${encodeURIComponent(n)}`)}function Y3(n,r){return Ne(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function q3(n){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output`)}function $3(n,r="."){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function G3(n,r){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function X3(n,r){return Ne(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function Ew(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function Q3(n){return Ne(`/tasks/${n}/output`)}function Z3(n,r="."){return Ne(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function K3(n,r){return Ne(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function P3(n,r){return Ne(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(Ew(r))})}function J3(n){return Ne(`/tasks/${n}/output/diff`)}function Nw(n,r,o=!0){const i=b.useRef(n);b.useEffect(()=>{i.current=n},[n]),b.useEffect(()=>{if(!o)return;const u=()=>i.current();u();const d=setInterval(u,r);return()=>clearInterval(d)},[r,o])}let Tw=0;function Cw(n=50){const[r,o]=b.useState([]),[i,u]=b.useState(!1),d=b.useRef(null),f=b.useRef(0),m=b.useRef(new Map);b.useEffect(()=>{const x=new EventSource("/api/events");d.current=x,x.onopen=()=>u(!0),x.onerror=()=>u(!1);const g=["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"];for(const w of g)x.addEventListener(w,E=>{const A={id:String(++Tw),type:w,data:JSON.parse(E.data),timestamp:Date.now()};o(N=>[A,...N].slice(0,n));for(const[,{pattern:N,callback:T}]of m.current)w.startsWith(N)&&T(A)});return()=>{x.close(),d.current=null,u(!1)}},[n]);const y=b.useCallback((x,g)=>{const w=++f.current;return m.current.set(w,{pattern:x,callback:g}),()=>{m.current.delete(w)}},[]),p=b.useCallback(()=>o([]),[]);return{events:r,connected:i,subscribe:y,clearEvents:p}}const Wv=b.createContext(null);function Aw({children:n}){const[r,o]=b.useState(null),[i,u]=b.useState(null),[d,f]=b.useState(!0),[m,y]=b.useState(null),{events:p,connected:x,subscribe:g}=Cw(),w=b.useCallback(async()=>{try{const[E,A]=await Promise.all([yw(),pw()]),N=E,T=A.nodeId??A.id,C=N.nodes??[],O=C.find(z=>z.id===T)??{id:T,name:A.name,endpoint:A.endpoint,role:A.role,status:A.status,capabilities:A.capabilities,joinedAt:A.joinedAt,lastHeartbeat:A.lastHeartbeat},M=N.leaderId?C.find(z=>z.id===N.leaderId)??null:null;o({leader:M?{id:M.id,name:M.name,endpoint:M.endpoint,...M.dashboardOrigin?{dashboardOrigin:M.dashboardOrigin}:{}}:null,term:N.term??0,nodes:C,self:O,taskSummary:N.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}}),u(A),y(null)}catch(E){y(E instanceof Error?E.message:"Failed to fetch cluster state")}finally{f(!1)}},[]);return Nw(w,1e4),b.useEffect(()=>{const E=[g("cluster",w),g("election",w),g("node",w),g("transport",w),g("task",w)];return()=>E.forEach(A=>A())},[g,w]),h.jsx(Wv.Provider,{value:{cluster:r,systemInfo:i,events:p,sseConnected:x,subscribe:g,refresh:w,loading:d,error:m},children:n})}function e0(){const n=b.useContext(Wv);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 t0=(...n)=>n.filter((r,o,i)=>!!r&&r.trim()!==""&&i.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 Rw=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 _w=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,i)=>i?i.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 qg=n=>{const r=_w(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 yd={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 jw=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},Ow=b.createContext({}),Mw=()=>b.useContext(Ow),Dw=b.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:i,className:u="",children:d,iconNode:f,...m},y)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:w="currentColor",className:E=""}=Mw()??{},A=i??g?Number(o??x)*24/Number(r??p):o??x;return b.createElement("svg",{ref:y,...yd,width:r??p??yd.width,height:r??p??yd.height,stroke:n??w,strokeWidth:A,className:t0("lucide",E,u),...!d&&!jw(m)&&{"aria-hidden":"true"},...m},[...f.map(([N,T])=>b.createElement(N,T)),...Array.isArray(d)?d:[d]])});/**
|
|
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 $e=(n,r)=>{const o=b.forwardRef(({className:i,...u},d)=>b.createElement(Dw,{ref:d,iconNode:r,className:t0(`lucide-${Rw(qg(n))}`,`lucide-${n}`,i),...u}));return o.displayName=qg(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 zw=[["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"}]],zd=$e("activity",zw);/**
|
|
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 kw=[["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"}]],Lw=$e("book-open",kw);/**
|
|
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 Uw=[["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"}]],n0=$e("bot",Uw);/**
|
|
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 Bw=[["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"}]],Hw=$e("cable",Bw);/**
|
|
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 Vw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],a0=$e("check",Vw);/**
|
|
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 Yw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],lf=$e("chevron-down",Yw);/**
|
|
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 qw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$w=$e("chevron-right",qw);/**
|
|
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 Gw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Xw=$e("chevron-up",Gw);/**
|
|
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 Qw=[["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"}]],as=$e("circle-alert",Qw);/**
|
|
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 Zw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_o=$e("circle-check",Zw);/**
|
|
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 Kw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],$g=$e("circle-dot",Kw);/**
|
|
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 Pw=[["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"}]],Jw=$e("circle-x",Pw);/**
|
|
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 Fw=[["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"}]],Iw=$e("copy",Fw);/**
|
|
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 Ww=[["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"}]],eE=$e("cpu",Ww);/**
|
|
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 tE=[["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"}]],nE=$e("external-link",tE);/**
|
|
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 aE=[["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"}]],lE=$e("folder-tree",aE);/**
|
|
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 rE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],oE=$e("info",rE);/**
|
|
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 iE=[["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"}]],sE=$e("monitor-cog",iE);/**
|
|
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 cE=[["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"}]],l0=$e("monitor",cE);/**
|
|
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 uE=[["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"}]],r0=$e("moon",uE);/**
|
|
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 dE=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],fE=$e("power",dE);/**
|
|
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 mE=[["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"}]],o0=$e("radio",mE);/**
|
|
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 hE=[["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"}]],pE=$e("refresh-cw",hE);/**
|
|
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 gE=[["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"}]],vE=$e("server",gE);/**
|
|
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 yE=[["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"}]],bE=$e("settings",yE);/**
|
|
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 xE=[["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"}]],SE=$e("shield",xE);/**
|
|
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 wE=[["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"}]],EE=$e("sparkles",wE);/**
|
|
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 NE=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],i0=$e("sun",NE);/**
|
|
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 TE=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],CE=$e("terminal",TE);/**
|
|
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 AE=[["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"}]],RE=$e("wifi-off",AE);/**
|
|
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 _E=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],s0=$e("x",_E);function c0(n){var r,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(o=c0(n[r]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function u0(){for(var n,r,o=0,i="",u=arguments.length;o<u;o++)(n=arguments[o])&&(r=c0(n))&&(i&&(i+=" "),i+=r);return i}const jE=(n,r)=>{const o=new Array(n.length+r.length);for(let i=0;i<n.length;i++)o[i]=n[i];for(let i=0;i<r.length;i++)o[n.length+i]=r[i];return o},OE=(n,r)=>({classGroupId:n,validator:r}),d0=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),ws="-",Gg=[],ME="arbitrary..",DE=n=>{const r=kE(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return zE(f);const m=f.split(ws),y=m[0]===""&&m.length>1?1:0;return f0(m,y,r)},getConflictingClassGroupIds:(f,m)=>{if(m){const y=i[f],p=o[f];return y?p?jE(p,y):y:p||Gg}return o[f]||Gg}}},f0=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const u=n[r],d=o.nextPart.get(u);if(d){const p=f0(n,r+1,d);if(p)return p}const f=o.validators;if(f===null)return;const m=r===0?n.join(ws):n.slice(r).join(ws),y=f.length;for(let p=0;p<y;p++){const x=f[p];if(x.validator(m))return x.classGroupId}},zE=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?ME+i:void 0})(),kE=n=>{const{theme:r,classGroups:o}=n;return LE(o,r)},LE=(n,r)=>{const o=d0();for(const i in n){const u=n[i];rf(u,o,i,r)}return o},rf=(n,r,o,i)=>{const u=n.length;for(let d=0;d<u;d++){const f=n[d];UE(f,r,o,i)}},UE=(n,r,o,i)=>{if(typeof n=="string"){BE(n,r,o);return}if(typeof n=="function"){HE(n,r,o,i);return}VE(n,r,o,i)},BE=(n,r,o)=>{const i=n===""?r:m0(r,n);i.classGroupId=o},HE=(n,r,o,i)=>{if(YE(n)){rf(n(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(OE(o,n))},VE=(n,r,o,i)=>{const u=Object.entries(n),d=u.length;for(let f=0;f<d;f++){const[m,y]=u[f];rf(y,m0(r,m),o,i)}},m0=(n,r)=>{let o=n;const i=r.split(ws),u=i.length;for(let d=0;d<u;d++){const f=i[d];let m=o.nextPart.get(f);m||(m=d0(),o.nextPart.set(f,m)),o=m}return o},YE=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,qE=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const u=(d,f)=>{o[d]=f,r++,r>n&&(r=0,i=o,o=Object.create(null))};return{get(d){let f=o[d];if(f!==void 0)return f;if((f=i[d])!==void 0)return u(d,f),f},set(d,f){d in o?o[d]=f:u(d,f)}}},kd="!",Xg=":",$E=[],Qg=(n,r,o,i,u)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),GE=n=>{const{prefix:r,experimentalParseClassName:o}=n;let i=u=>{const d=[];let f=0,m=0,y=0,p;const x=u.length;for(let N=0;N<x;N++){const T=u[N];if(f===0&&m===0){if(T===Xg){d.push(u.slice(y,N)),y=N+1;continue}if(T==="/"){p=N;continue}}T==="["?f++:T==="]"?f--:T==="("?m++:T===")"&&m--}const g=d.length===0?u:u.slice(y);let w=g,E=!1;g.endsWith(kd)?(w=g.slice(0,-1),E=!0):g.startsWith(kd)&&(w=g.slice(1),E=!0);const A=p&&p>y?p-y:void 0;return Qg(d,E,w,A)};if(r){const u=r+Xg,d=i;i=f=>f.startsWith(u)?d(f.slice(u.length)):Qg($E,!1,f,void 0,!0)}if(o){const u=i;i=d=>o({className:d,parseClassName:u})}return i},XE=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{r.set(o,1e6+i)}),o=>{const i=[];let u=[];for(let d=0;d<o.length;d++){const f=o[d],m=f[0]==="[",y=r.has(f);m||y?(u.length>0&&(u.sort(),i.push(...u),u=[]),i.push(f)):u.push(f)}return u.length>0&&(u.sort(),i.push(...u)),i}},QE=n=>({cache:qE(n.cacheSize),parseClassName:GE(n),sortModifiers:XE(n),...DE(n)}),ZE=/\s+/,KE=(n,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:d}=r,f=[],m=n.trim().split(ZE);let y="";for(let p=m.length-1;p>=0;p-=1){const x=m[p],{isExternal:g,modifiers:w,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:N}=o(x);if(g){y=x+(y.length>0?" "+y:y);continue}let T=!!N,C=i(T?A.substring(0,N):A);if(!C){if(!T){y=x+(y.length>0?" "+y:y);continue}if(C=i(A),!C){y=x+(y.length>0?" "+y:y);continue}T=!1}const O=w.length===0?"":w.length===1?w[0]:d(w).join(":"),M=E?O+kd:O,z=M+C;if(f.indexOf(z)>-1)continue;f.push(z);const q=u(C,T);for(let G=0;G<q.length;++G){const H=q[G];f.push(M+H)}y=x+(y.length>0?" "+y:y)}return y},PE=(...n)=>{let r=0,o,i,u="";for(;r<n.length;)(o=n[r++])&&(i=h0(o))&&(u&&(u+=" "),u+=i);return u},h0=n=>{if(typeof n=="string")return n;let r,o="";for(let i=0;i<n.length;i++)n[i]&&(r=h0(n[i]))&&(o&&(o+=" "),o+=r);return o},JE=(n,...r)=>{let o,i,u,d;const f=y=>{const p=r.reduce((x,g)=>g(x),n());return o=QE(p),i=o.cache.get,u=o.cache.set,d=m,m(y)},m=y=>{const p=i(y);if(p)return p;const x=KE(y,o);return u(y,x),x};return d=f,(...y)=>d(PE(...y))},FE=[],pt=n=>{const r=o=>o[n]||FE;return r.isThemeGetter=!0,r},p0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,g0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,IE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,WE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eN=/\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$/,tN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ga=n=>IE.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),Xa=n=>!!n&&Number.isInteger(Number(n)),bd=n=>n.endsWith("%")&&je(n.slice(0,-1)),da=n=>WE.test(n),v0=()=>!0,lN=n=>eN.test(n)&&!tN.test(n),of=()=>!1,rN=n=>nN.test(n),oN=n=>aN.test(n),iN=n=>!ce(n)&&!ue(n),sN=n=>Fa(n,x0,of),ce=n=>p0.test(n),wl=n=>Fa(n,S0,lN),Zg=n=>Fa(n,gN,je),cN=n=>Fa(n,E0,v0),uN=n=>Fa(n,w0,of),Kg=n=>Fa(n,y0,of),dN=n=>Fa(n,b0,oN),ls=n=>Fa(n,N0,rN),ue=n=>g0.test(n),Ro=n=>jl(n,S0),fN=n=>jl(n,w0),Pg=n=>jl(n,y0),mN=n=>jl(n,x0),hN=n=>jl(n,b0),rs=n=>jl(n,N0,!0),pN=n=>jl(n,E0,!0),Fa=(n,r,o)=>{const i=p0.exec(n);return i?i[1]?r(i[1]):o(i[2]):!1},jl=(n,r,o=!1)=>{const i=g0.exec(n);return i?i[1]?r(i[1]):o:!1},y0=n=>n==="position"||n==="percentage",b0=n=>n==="image"||n==="url",x0=n=>n==="length"||n==="size"||n==="bg-size",S0=n=>n==="length",gN=n=>n==="number",w0=n=>n==="family-name",E0=n=>n==="number"||n==="weight",N0=n=>n==="shadow",vN=()=>{const n=pt("color"),r=pt("font"),o=pt("text"),i=pt("font-weight"),u=pt("tracking"),d=pt("leading"),f=pt("breakpoint"),m=pt("container"),y=pt("spacing"),p=pt("radius"),x=pt("shadow"),g=pt("inset-shadow"),w=pt("text-shadow"),E=pt("drop-shadow"),A=pt("blur"),N=pt("perspective"),T=pt("aspect"),C=pt("ease"),O=pt("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...z(),ue,ce],G=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],V=()=>[ue,ce,y],le=()=>[Ga,"full","auto",...V()],he=()=>[Xa,"none","subgrid",ue,ce],ge=()=>["auto",{span:["full",Xa,ue,ce]},Xa,ue,ce],fe=()=>[Xa,"auto",ue,ce],pe=()=>["auto","min","max","fr",ue,ce],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...V()],$=()=>[Ga,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],J=()=>[Ga,"screen","full","dvw","lvw","svw","min","max","fit",...V()],oe=()=>[Ga,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],F=()=>[n,ue,ce],_=()=>[...z(),Pg,Kg,{position:[ue,ce]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",mN,sN,{size:[ue,ce]}],I=()=>[bd,Ro,wl],W=()=>["","none","full",p,ue,ce],ae=()=>["",je,Ro,wl],ee=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[je,bd,Pg,Kg],Te=()=>["","none",A,ue,ce],Se=()=>["none",je,ue,ce],ne=()=>["none",je,ue,ce],_e=()=>[je,ue,ce],Ce=()=>[Ga,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[da],breakpoint:[da],color:[v0],container:[da],"drop-shadow":[da],ease:["in","out","in-out"],font:[iN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[da],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[da],shadow:[da],spacing:["px",je],text:[da],"text-shadow":[da],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ga,ce,ue,T]}],container:["container"],columns:[{columns:[je,ce,ue,m]}],"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:q()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:le()}],"inset-x":[{"inset-x":le()}],"inset-y":[{"inset-y":le()}],start:[{"inset-s":le(),start:le()}],end:[{"inset-e":le(),end:le()}],"inset-bs":[{"inset-bs":le()}],"inset-be":[{"inset-be":le()}],top:[{top:le()}],right:[{right:le()}],bottom:[{bottom:le()}],left:[{left:le()}],visibility:["visible","invisible","collapse"],z:[{z:[Xa,"auto",ue,ce]}],basis:[{basis:[Ga,"full","auto",m,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Ga,"auto","initial","none",ce]}],grow:[{grow:["",je,ue,ce]}],shrink:[{shrink:["",je,ue,ce]}],order:[{order:[Xa,"first","last","none",ue,ce]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[m,"screen",...$()]}],"min-w":[{"min-w":[m,"screen","none",...$()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",o,Ro,wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,pN,cN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bd,ce]}],"font-family":[{font:[fN,uN,r]}],"font-features":[{"font-features":[ce]}],"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:[u,ue,ce]}],"line-clamp":[{"line-clamp":[je,"none",ue,Zg]}],leading:[{leading:[d,...V()]}],"list-image":[{"list-image":["none",ue,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ue,wl]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[je,"auto",ue,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,ce]}],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",ue,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xa,ue,ce],radial:["",ue,ce],conic:[Xa,ue,ce]},hN,dN]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],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:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ue,ce]}],"outline-w":[{outline:["",je,Ro,wl]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",x,rs,ls]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,rs,ls]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[je,wl]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",w,rs,ls]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[je,ue,ce]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ue,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,ce]}],filter:[{filter:["","none",ue,ce]}],blur:[{blur:Te()}],brightness:[{brightness:[je,ue,ce]}],contrast:[{contrast:[je,ue,ce]}],"drop-shadow":[{"drop-shadow":["","none",E,rs,ls]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",je,ue,ce]}],"hue-rotate":[{"hue-rotate":[je,ue,ce]}],invert:[{invert:["",je,ue,ce]}],saturate:[{saturate:[je,ue,ce]}],sepia:[{sepia:["",je,ue,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ce]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[je,ue,ce]}],"backdrop-contrast":[{"backdrop-contrast":[je,ue,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ue,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ue,ce]}],"backdrop-invert":[{"backdrop-invert":["",je,ue,ce]}],"backdrop-opacity":[{"backdrop-opacity":[je,ue,ce]}],"backdrop-saturate":[{"backdrop-saturate":[je,ue,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ue,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ue,ce]}],ease:[{ease:["linear","initial",C,ue,ce]}],delay:[{delay:[je,ue,ce]}],animate:[{animate:["none",O,ue,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,ue,ce]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[ue,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",ue,ce]}],"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":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",ue,ce]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[je,Ro,wl,Zg]}],stroke:[{stroke:["none",...F()]}],"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"]}},yN=JE(vN);function be(...n){return yN(u0(n))}const Jg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Fg=u0,T0=(n,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return Fg(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:u,defaultVariants:d}=r,f=Object.keys(u).map(p=>{const x=o==null?void 0:o[p],g=d==null?void 0:d[p];if(x===null)return null;const w=Jg(x)||Jg(g);return u[p][w]}),m=o&&Object.entries(o).reduce((p,x)=>{let[g,w]=x;return w===void 0||(p[g]=w),p},{}),y=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:g,className:w,...E}=x;return Object.entries(E).every(A=>{let[N,T]=A;return Array.isArray(T)?T.includes({...d,...m}[N]):{...d,...m}[N]===T})?[...p,g,w]:p},[]);return Fg(n,f,y,o==null?void 0:o.class,o==null?void 0:o.className)},bN=T0("inline-flex items-center rounded-[12px] border px-2.5 py-0.5 text-xs font-semibold 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 gt({className:n,variant:r,...o}){return h.jsx("div",{className:be(bN({variant:r}),n),...o})}const xN={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function C0({status:n}){return h.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&h.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),h.jsx("span",{className:be("relative inline-flex h-2.5 w-2.5 rounded-full",xN[n])})]})}function SN({role:n}){return h.jsx(gt,{variant:n==="leader"?"default":"secondary",className:"text-[11px]",children:n})}const wN={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-red-200",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 F3({status:n}){const r=wN[n];return h.jsxs(gt,{variant:r.variant,className:be("gap-1 rounded-[9px] px-1.5 py-0 text-[10px] font-medium leading-4 shadow-none",r.className),children:[h.jsx("span",{className:be("h-[5px] w-[5px] rounded-full",r.dotClass)}),n]})}const EN={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function I3({priority:n}){const r=EN[n];return h.jsx(gt,{variant:r.variant,className:"rounded-[9px] px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}function NN(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 TN=n=>{switch(n){case"success":return RN;case"info":return jN;case"warning":return _N;case"error":return ON;default:return null}},CN=Array(12).fill(0),AN=({visible:n,className:r})=>te.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},te.createElement("div",{className:"sonner-spinner"},CN.map((o,i)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),RN=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_N=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),jN=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ON=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),MN=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),DN=()=>{const[n,r]=te.useState(document.hidden);return te.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let Ld=1;class zN{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:i,...u}=r,d=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Ld++,f=this.toasts.find(y=>y.id===d),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),f?this.toasts=this.toasts.map(y=>y.id===d?(this.publish({...y,...r,id:d,title:i}),{...y,...r,id:d,dismissible:m,title:i}):y):this.addToast({title:i,...u,dismissible:m,id:d}),d},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(i=>i({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 i;o.loading!==void 0&&(i=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const u=Promise.resolve(r instanceof Function?r():r);let d=i!==void 0,f;const m=u.then(async p=>{if(f=["resolve",p],te.isValidElement(p))d=!1,this.create({id:i,type:"default",message:p});else if(LN(p)&&!p.ok){d=!1;const g=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,A=typeof g=="object"&&!te.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...A})}else if(p instanceof Error){d=!1;const g=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,A=typeof g=="object"&&!te.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...A})}else if(o.success!==void 0){d=!1;const g=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,A=typeof g=="object"&&!te.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...A})}}).catch(async p=>{if(f=["reject",p],o.error!==void 0){d=!1;const x=typeof o.error=="function"?await o.error(p):o.error,g=typeof o.description=="function"?await o.description(p):o.description,E=typeof x=="object"&&!te.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:g,...E})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((p,x)=>m.then(()=>f[0]==="reject"?x(f[1]):p(f[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:y}:Object.assign(i,{unwrap:y})},this.custom=(r,o)=>{const i=(o==null?void 0:o.id)||Ld++;return this.create({jsx:r(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Gt=new zN,kN=(n,r)=>{const o=(r==null?void 0:r.id)||Ld++;return Gt.addToast({title:n,...r,id:o}),o},LN=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",UN=kN,BN=()=>Gt.toasts,HN=()=>Gt.getActiveToasts(),Ct=Object.assign(UN,{success:Gt.success,info:Gt.info,warning:Gt.warning,error:Gt.error,custom:Gt.custom,message:Gt.message,promise:Gt.promise,dismiss:Gt.dismiss,loading:Gt.loading},{getHistory:BN,getToasts:HN});NN("[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 os(n){return n.label!==void 0}const VN=3,YN="24px",qN="16px",Ig=4e3,$N=356,GN=14,XN=45,QN=200;function Dn(...n){return n.filter(Boolean).join(" ")}function ZN(n){const[r,o]=n.split("-"),i=[];return r&&i.push(r),o&&i.push(o),i}const KN=n=>{var r,o,i,u,d,f,m,y,p;const{invert:x,toast:g,unstyled:w,interacting:E,setHeights:A,visibleToasts:N,heights:T,index:C,toasts:O,expanded:M,removeToast:z,defaultRichColors:q,closeButton:G,style:H,cancelButtonStyle:V,actionButtonStyle:le,className:he="",descriptionClassName:ge="",duration:fe,position:pe,gap:ve,expandByDefault:de,classNames:j,icons:$,closeButtonAriaLabel:J="Close toast"}=n,[oe,F]=te.useState(null),[_,X]=te.useState(null),[Z,I]=te.useState(!1),[W,ae]=te.useState(!1),[ee,re]=te.useState(!1),[ie,Te]=te.useState(!1),[Se,ne]=te.useState(!1),[_e,Ce]=te.useState(0),[vt,mt]=te.useState(0),st=te.useRef(g.duration||fe||Ig),nn=te.useRef(null),De=te.useRef(null),gn=C===0,Xt=C+1<=N,rt=g.type,va=g.dismissible!==!1,Ot=g.className||"",Fs=g.descriptionClassName||"",el=te.useMemo(()=>T.findIndex(we=>we.toastId===g.id)||0,[T,g.id]),qo=te.useMemo(()=>{var we;return(we=g.closeButton)!=null?we:G},[g.closeButton,G]),tl=te.useMemo(()=>g.duration||fe||Ig,[g.duration,fe]),Dr=te.useRef(0),Qn=te.useRef(0),$o=te.useRef(0),ya=te.useRef(null),[nl,Mt]=pe.split("-"),vn=te.useMemo(()=>T.reduce((we,Ie,yt)=>yt>=el?we:we+Ie.height,0),[T,el]),At=DN(),Is=g.invert||x,zr=rt==="loading";Qn.current=te.useMemo(()=>el*ve+vn,[el,vn]),te.useEffect(()=>{st.current=tl},[tl]),te.useEffect(()=>{I(!0)},[]),te.useEffect(()=>{const we=De.current;if(we){const Ie=we.getBoundingClientRect().height;return mt(Ie),A(yt=>[{toastId:g.id,height:Ie,position:g.position},...yt]),()=>A(yt=>yt.filter(Rt=>Rt.toastId!==g.id))}},[A,g.id]),te.useLayoutEffect(()=>{if(!Z)return;const we=De.current,Ie=we.style.height;we.style.height="auto";const yt=we.getBoundingClientRect().height;we.style.height=Ie,mt(yt),A(Rt=>Rt.find(nt=>nt.toastId===g.id)?Rt.map(nt=>nt.toastId===g.id?{...nt,height:yt}:nt):[{toastId:g.id,height:yt,position:g.position},...Rt])},[Z,g.title,g.description,A,g.id,g.jsx,g.action,g.cancel]);const An=te.useCallback(()=>{ae(!0),Ce(Qn.current),A(we=>we.filter(Ie=>Ie.toastId!==g.id)),setTimeout(()=>{z(g)},QN)},[g,z,A,Qn]);te.useEffect(()=>{if(g.promise&&rt==="loading"||g.duration===1/0||g.type==="loading")return;let we;return M||E||At?(()=>{if($o.current<Dr.current){const Rt=new Date().getTime()-Dr.current;st.current=st.current-Rt}$o.current=new Date().getTime()})():(()=>{st.current!==1/0&&(Dr.current=new Date().getTime(),we=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),An()},st.current))})(),()=>clearTimeout(we)},[M,E,g,rt,At,An]),te.useEffect(()=>{g.delete&&(An(),g.onDismiss==null||g.onDismiss.call(g,g))},[An,g.delete]);function Ml(){var we;if($!=null&&$.loading){var Ie;return te.createElement("div",{className:Dn(j==null?void 0:j.loader,g==null||(Ie=g.classNames)==null?void 0:Ie.loader,"sonner-loader"),"data-visible":rt==="loading"},$.loading)}return te.createElement(AN,{className:Dn(j==null?void 0:j.loader,g==null||(we=g.classNames)==null?void 0:we.loader),visible:rt==="loading"})}const Dl=g.icon||($==null?void 0:$[rt])||TN(rt);var al,Rn;return te.createElement("li",{tabIndex:0,ref:De,className:Dn(he,Ot,j==null?void 0:j.toast,g==null||(r=g.classNames)==null?void 0:r.toast,j==null?void 0:j.default,j==null?void 0:j[rt],g==null||(o=g.classNames)==null?void 0:o[rt]),"data-sonner-toast":"","data-rich-colors":(al=g.richColors)!=null?al:q,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":Z,"data-promise":!!g.promise,"data-swiped":Se,"data-removed":W,"data-visible":Xt,"data-y-position":nl,"data-x-position":Mt,"data-index":C,"data-front":gn,"data-swiping":ee,"data-dismissible":va,"data-type":rt,"data-invert":Is,"data-swipe-out":ie,"data-swipe-direction":_,"data-expanded":!!(M||de&&Z),"data-testid":g.testId,style:{"--index":C,"--toasts-before":C,"--z-index":O.length-C,"--offset":`${W?_e:Qn.current}px`,"--initial-height":de?"auto":`${vt}px`,...H,...g.style},onDragEnd:()=>{re(!1),F(null),ya.current=null},onPointerDown:we=>{we.button!==2&&(zr||!va||(nn.current=new Date,Ce(Qn.current),we.target.setPointerCapture(we.pointerId),we.target.tagName!=="BUTTON"&&(re(!0),ya.current={x:we.clientX,y:we.clientY})))},onPointerUp:()=>{var we,Ie,yt;if(ie||!va)return;ya.current=null;const Rt=Number(((we=De.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ba=Number(((Ie=De.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nt=new Date().getTime()-((yt=nn.current)==null?void 0:yt.getTime()),zt=oe==="x"?Rt:ba,ll=Math.abs(zt)/nt;if(Math.abs(zt)>=XN||ll>.11){Ce(Qn.current),g.onDismiss==null||g.onDismiss.call(g,g),X(oe==="x"?Rt>0?"right":"left":ba>0?"down":"up"),An(),Te(!0);return}else{var kt,Lt;(kt=De.current)==null||kt.style.setProperty("--swipe-amount-x","0px"),(Lt=De.current)==null||Lt.style.setProperty("--swipe-amount-y","0px")}ne(!1),re(!1),F(null)},onPointerMove:we=>{var Ie,yt,Rt;if(!ya.current||!va||((Ie=window.getSelection())==null?void 0:Ie.toString().length)>0)return;const nt=we.clientY-ya.current.y,zt=we.clientX-ya.current.x;var ll;const kt=(ll=n.swipeDirections)!=null?ll:ZN(pe);!oe&&(Math.abs(zt)>1||Math.abs(nt)>1)&&F(Math.abs(zt)>Math.abs(nt)?"x":"y");let Lt={x:0,y:0};const zl=yn=>1/(1.5+Math.abs(yn)/20);if(oe==="y"){if(kt.includes("top")||kt.includes("bottom"))if(kt.includes("top")&&nt<0||kt.includes("bottom")&&nt>0)Lt.y=nt;else{const yn=nt*zl(nt);Lt.y=Math.abs(yn)<Math.abs(nt)?yn:nt}}else if(oe==="x"&&(kt.includes("left")||kt.includes("right")))if(kt.includes("left")&&zt<0||kt.includes("right")&&zt>0)Lt.x=zt;else{const yn=zt*zl(zt);Lt.x=Math.abs(yn)<Math.abs(zt)?yn:zt}(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&ne(!0),(yt=De.current)==null||yt.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(Rt=De.current)==null||Rt.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},qo&&!g.jsx&&rt!=="loading"?te.createElement("button",{"aria-label":J,"data-disabled":zr,"data-close-button":!0,onClick:zr||!va?()=>{}:()=>{An(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Dn(j==null?void 0:j.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(Rn=$==null?void 0:$.close)!=null?Rn:MN):null,(rt||g.icon||g.promise)&&g.icon!==null&&(($==null?void 0:$[rt])!==null||g.icon)?te.createElement("div",{"data-icon":"",className:Dn(j==null?void 0:j.icon,g==null||(u=g.classNames)==null?void 0:u.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Ml():null,g.type!=="loading"?Dl:null):null,te.createElement("div",{"data-content":"",className:Dn(j==null?void 0:j.content,g==null||(d=g.classNames)==null?void 0:d.content)},te.createElement("div",{"data-title":"",className:Dn(j==null?void 0:j.title,g==null||(f=g.classNames)==null?void 0:f.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?te.createElement("div",{"data-description":"",className:Dn(ge,Fs,j==null?void 0:j.description,g==null||(m=g.classNames)==null?void 0:m.description)},typeof g.description=="function"?g.description():g.description):null),te.isValidElement(g.cancel)?g.cancel:g.cancel&&os(g.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||V,onClick:we=>{os(g.cancel)&&va&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,we),An())},className:Dn(j==null?void 0:j.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,te.isValidElement(g.action)?g.action:g.action&&os(g.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||le,onClick:we=>{os(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,we),!we.defaultPrevented&&An())},className:Dn(j==null?void 0:j.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function Wg(){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 PN(n,r){const o={};return[n,r].forEach((i,u)=>{const d=u===1,f=d?"--mobile-offset":"--offset",m=d?qN:YN;function y(p){["top","right","bottom","left"].forEach(x=>{o[`${f}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?y(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?o[`${f}-${p}`]=m:o[`${f}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):y(m)}),o}const JN=te.forwardRef(function(r,o){const{id:i,invert:u,position:d="bottom-right",hotkey:f=["altKey","KeyT"],expand:m,closeButton:y,className:p,offset:x,mobileOffset:g,theme:w="light",richColors:E,duration:A,style:N,visibleToasts:T=VN,toastOptions:C,dir:O=Wg(),gap:M=GN,icons:z,containerAriaLabel:q="Notifications"}=r,[G,H]=te.useState([]),V=te.useMemo(()=>i?G.filter(Z=>Z.toasterId===i):G.filter(Z=>!Z.toasterId),[G,i]),le=te.useMemo(()=>Array.from(new Set([d].concat(V.filter(Z=>Z.position).map(Z=>Z.position)))),[V,d]),[he,ge]=te.useState([]),[fe,pe]=te.useState(!1),[ve,de]=te.useState(!1),[j,$]=te.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),J=te.useRef(null),oe=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=te.useRef(null),_=te.useRef(!1),X=te.useCallback(Z=>{H(I=>{var W;return(W=I.find(ae=>ae.id===Z.id))!=null&&W.delete||Gt.dismiss(Z.id),I.filter(({id:ae})=>ae!==Z.id)})},[]);return te.useEffect(()=>Gt.subscribe(Z=>{if(Z.dismiss){requestAnimationFrame(()=>{H(I=>I.map(W=>W.id===Z.id?{...W,delete:!0}:W))});return}setTimeout(()=>{Iv.flushSync(()=>{H(I=>{const W=I.findIndex(ae=>ae.id===Z.id);return W!==-1?[...I.slice(0,W),{...I[W],...Z},...I.slice(W+1)]:[Z,...I]})})})}),[G]),te.useEffect(()=>{if(w!=="system"){$(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:I})=>{$(I?"dark":"light")})}catch{Z.addListener(({matches:W})=>{try{$(W?"dark":"light")}catch(ae){console.error(ae)}})}},[w]),te.useEffect(()=>{G.length<=1&&pe(!1)},[G]),te.useEffect(()=>{const Z=I=>{var W;if(f.every(re=>I[re]||I.code===re)){var ee;pe(!0),(ee=J.current)==null||ee.focus()}I.code==="Escape"&&(document.activeElement===J.current||(W=J.current)!=null&&W.contains(document.activeElement))&&pe(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[f]),te.useEffect(()=>{if(J.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,_.current=!1)}},[J.current]),te.createElement("section",{ref:o,"aria-label":`${q} ${oe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},le.map((Z,I)=>{var W;const[ae,ee]=Z.split("-");return V.length?te.createElement("ol",{key:Z,dir:O==="auto"?Wg():O,tabIndex:-1,ref:J,className:p,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":ae,"data-x-position":ee,style:{"--front-toast-height":`${((W=he[0])==null?void 0:W.height)||0}px`,"--width":`${$N}px`,"--gap":`${M}px`,...N,...PN(x,g)},onBlur:re=>{_.current&&!re.currentTarget.contains(re.relatedTarget)&&(_.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||_.current||(_.current=!0,F.current=re.relatedTarget)},onMouseEnter:()=>pe(!0),onMouseMove:()=>pe(!0),onMouseLeave:()=>{ve||pe(!1)},onDragEnd:()=>pe(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||de(!0)},onPointerUp:()=>de(!1)},V.filter(re=>!re.position&&I===0||re.position===Z).map((re,ie)=>{var Te,Se;return te.createElement(KN,{key:re.id,icons:z,index:ie,toast:re,defaultRichColors:E,duration:(Te=C==null?void 0:C.duration)!=null?Te:A,className:C==null?void 0:C.className,descriptionClassName:C==null?void 0:C.descriptionClassName,invert:u,visibleToasts:T,closeButton:(Se=C==null?void 0:C.closeButton)!=null?Se:y,interacting:ve,position:Z,style:C==null?void 0:C.style,unstyled:C==null?void 0:C.unstyled,classNames:C==null?void 0:C.classNames,cancelButtonStyle:C==null?void 0:C.cancelButtonStyle,actionButtonStyle:C==null?void 0:C.actionButtonStyle,closeButtonAriaLabel:C==null?void 0:C.closeButtonAriaLabel,removeToast:X,toasts:V.filter(ne=>ne.position==re.position),heights:he.filter(ne=>ne.position==re.position),setHeights:ge,expandByDefault:m,gap:M,expanded:fe,swipeDirections:r.swipeDirections})})):null}))});function ev(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function sf(...n){return r=>{let o=!1;const i=n.map(u=>{const d=ev(u,r);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let u=0;u<i.length;u++){const d=i[u];typeof d=="function"?d():ev(n[u],null)}}}}function tt(...n){return b.useCallback(sf(...n),n)}var FN=Symbol.for("react.lazy"),Es=Fd[" use ".trim().toString()];function IN(n){return typeof n=="object"&&n!==null&&"then"in n}function A0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===FN&&"_payload"in n&&IN(n._payload)}function WN(n){const r=tT(n),o=b.forwardRef((i,u)=>{let{children:d,...f}=i;A0(d)&&typeof Es=="function"&&(d=Es(d._payload));const m=b.Children.toArray(d),y=m.find(aT);if(y){const p=y.props.children,x=m.map(g=>g===y?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:g);return h.jsx(r,{...f,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return h.jsx(r,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}var eT=WN("Slot");function tT(n){const r=b.forwardRef((o,i)=>{let{children:u,...d}=o;if(A0(u)&&typeof Es=="function"&&(u=Es(u._payload)),b.isValidElement(u)){const f=rT(u),m=lT(d,u.props);return u.type!==b.Fragment&&(m.ref=i?sf(i,f):f),b.cloneElement(u,m)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var nT=Symbol("radix.slottable");function aT(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===nT}function lT(n,r){const o={...r};for(const i in r){const u=n[i],d=r[i];/^on[A-Z]/.test(i)?u&&d?o[i]=(...m)=>{const y=d(...m);return u(...m),y}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function rT(n){var i,u;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const cf=T0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[16px] text-sm 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-10 px-4 py-2",sm:"h-9 rounded-[14px] px-3",lg:"h-11 rounded-[18px] px-8",icon:"h-10 w-10 rounded-[16px]"}},defaultVariants:{variant:"default",size:"default"}}),$n=b.forwardRef(({className:n,variant:r,size:o,asChild:i=!1,...u},d)=>{const f=i?eT:"button";return h.jsx(f,{className:be(cf({variant:r,size:o,className:n})),ref:d,...u})});$n.displayName="Button";const zn=b.forwardRef(({className:n,...r},o)=>h.jsx("div",{ref:o,className:be("rounded-[18px] border bg-card text-card-foreground shadow-sm",n),...r}));zn.displayName="Card";const kn=b.forwardRef(({className:n,...r},o)=>h.jsx("div",{ref:o,className:be("flex flex-col space-y-1.5 p-6",n),...r}));kn.displayName="CardHeader";const Ln=b.forwardRef(({className:n,...r},o)=>h.jsx("div",{ref:o,className:be("text-2xl font-semibold leading-none tracking-tight",n),...r}));Ln.displayName="CardTitle";const Un=b.forwardRef(({className:n,...r},o)=>h.jsx("div",{ref:o,className:be("text-sm text-muted-foreground",n),...r}));Un.displayName="CardDescription";const Bn=b.forwardRef(({className:n,...r},o)=>h.jsx("div",{ref:o,className:be("p-6 pt-0",n),...r}));Bn.displayName="CardContent";const oT=b.forwardRef(({className:n,...r},o)=>h.jsx("div",{ref:o,className:be("flex items-center p-6 pt-0",n),...r}));oT.displayName="CardFooter";function Be(n,r,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n==null||n(u),o===!1||!u.defaultPrevented)return r==null?void 0:r(u)}}function iT(n,r){const o=b.createContext(r),i=d=>{const{children:f,...m}=d,y=b.useMemo(()=>m,Object.values(m));return h.jsx(o.Provider,{value:y,children:f})};i.displayName=n+"Provider";function u(d){const f=b.useContext(o);if(f)return f;if(r!==void 0)return r;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,u]}function Ol(n,r=[]){let o=[];function i(d,f){const m=b.createContext(f),y=o.length;o=[...o,f];const p=g=>{var C;const{scope:w,children:E,...A}=g,N=((C=w==null?void 0:w[n])==null?void 0:C[y])||m,T=b.useMemo(()=>A,Object.values(A));return h.jsx(N.Provider,{value:T,children:E})};p.displayName=d+"Provider";function x(g,w){var N;const E=((N=w==null?void 0:w[n])==null?void 0:N[y])||m,A=b.useContext(E);if(A)return A;if(f!==void 0)return f;throw new Error(`\`${g}\` must be used within \`${d}\``)}return[p,x]}const u=()=>{const d=o.map(f=>b.createContext(f));return function(m){const y=(m==null?void 0:m[n])||d;return b.useMemo(()=>({[`__scope${n}`]:{...m,[n]:y}}),[m,y])}};return u.scopeName=n,[i,sT(u,...r)]}function sT(...n){const r=n[0];if(n.length===1)return r;const o=()=>{const i=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const f=i.reduce((m,{useScope:y,scopeName:p})=>{const g=y(d)[`__scope${p}`];return{...m,...g}},{});return b.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])}};return o.scopeName=r.scopeName,o}var jt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},cT=Fd[" useId ".trim().toString()]||(()=>{}),uT=0;function Za(n){const[r,o]=b.useState(cT());return jt(()=>{o(i=>i??String(uT++))},[n]),r?`radix-${r}`:""}var dT=Fd[" useInsertionEffect ".trim().toString()]||jt;function Do({prop:n,defaultProp:r,onChange:o=()=>{},caller:i}){const[u,d,f]=fT({defaultProp:r,onChange:o}),m=n!==void 0,y=m?n:u;{const x=b.useRef(n!==void 0);b.useEffect(()=>{const g=x.current;g!==m&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${m?"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.`),x.current=m},[m,i])}const p=b.useCallback(x=>{var g;if(m){const w=mT(x)?x(n):x;w!==n&&((g=f.current)==null||g.call(f,w))}else d(x)},[m,n,d,f]);return[y,p]}function fT({defaultProp:n,onChange:r}){const[o,i]=b.useState(n),u=b.useRef(o),d=b.useRef(r);return dT(()=>{d.current=r},[r]),b.useEffect(()=>{var f;u.current!==o&&((f=d.current)==null||f.call(d,o),u.current=o)},[o,u]),[o,i,d]}function mT(n){return typeof n=="function"}function zo(n){const r=hT(n),o=b.forwardRef((i,u)=>{const{children:d,...f}=i,m=b.Children.toArray(d),y=m.find(gT);if(y){const p=y.props.children,x=m.map(g=>g===y?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:g);return h.jsx(r,{...f,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return h.jsx(r,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}function hT(n){const r=b.forwardRef((o,i)=>{const{children:u,...d}=o;if(b.isValidElement(u)){const f=yT(u),m=vT(d,u.props);return u.type!==b.Fragment&&(m.ref=i?sf(i,f):f),b.cloneElement(u,m)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var R0=Symbol("radix.slottable");function pT(n){const r=({children:o})=>h.jsx(h.Fragment,{children:o});return r.displayName=`${n}.Slottable`,r.__radixId=R0,r}function gT(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===R0}function vT(n,r){const o={...r};for(const i in r){const u=n[i],d=r[i];/^on[A-Z]/.test(i)?u&&d?o[i]=(...m)=>{const y=d(...m);return u(...m),y}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function yT(n){var i,u;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var bT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=bT.reduce((n,r)=>{const o=zo(`Primitive.${r}`),i=b.forwardRef((u,d)=>{const{asChild:f,...m}=u,y=f?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(y,{...m,ref:d})});return i.displayName=`Primitive.${r}`,{...n,[r]:i}},{});function xT(n,r){n&&Bo.flushSync(()=>n.dispatchEvent(r))}function Ka(n){const r=b.useRef(n);return b.useEffect(()=>{r.current=n}),b.useMemo(()=>(...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)},[])}function ST(n,r=globalThis==null?void 0:globalThis.document){const o=Ka(n);b.useEffect(()=>{const i=u=>{u.key==="Escape"&&o(u)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[o,r])}var wT="DismissableLayer",Ud="dismissableLayer.update",ET="dismissableLayer.pointerDownOutside",NT="dismissableLayer.focusOutside",tv,_0=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uf=b.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:m,...y}=n,p=b.useContext(_0),[x,g]=b.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=b.useState({}),A=tt(r,H=>g(H)),N=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=N.indexOf(T),O=x?N.indexOf(x):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,z=O>=C,q=AT(H=>{const V=H.target,le=[...p.branches].some(he=>he.contains(V));!z||le||(u==null||u(H),f==null||f(H),H.defaultPrevented||m==null||m())},w),G=RT(H=>{const V=H.target;[...p.branches].some(he=>he.contains(V))||(d==null||d(H),f==null||f(H),H.defaultPrevented||m==null||m())},w);return ST(H=>{O===p.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},w),b.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(tv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),nv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=tv)}},[x,w,o,p]),b.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),nv())},[x,p]),b.useEffect(()=>{const H=()=>E({});return document.addEventListener(Ud,H),()=>document.removeEventListener(Ud,H)},[]),h.jsx(Ye.div,{...y,ref:A,style:{pointerEvents:M?z?"auto":"none":void 0,...n.style},onFocusCapture:Be(n.onFocusCapture,G.onFocusCapture),onBlurCapture:Be(n.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Be(n.onPointerDownCapture,q.onPointerDownCapture)})});uf.displayName=wT;var TT="DismissableLayerBranch",CT=b.forwardRef((n,r)=>{const o=b.useContext(_0),i=b.useRef(null),u=tt(r,i);return b.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),h.jsx(Ye.div,{...n,ref:u})});CT.displayName=TT;function AT(n,r=globalThis==null?void 0:globalThis.document){const o=Ka(n),i=b.useRef(!1),u=b.useRef(()=>{});return b.useEffect(()=>{const d=m=>{if(m.target&&!i.current){let y=function(){j0(ET,o,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(r.removeEventListener("click",u.current),u.current=y,r.addEventListener("click",u.current,{once:!0})):y()}else r.removeEventListener("click",u.current);i.current=!1},f=window.setTimeout(()=>{r.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),r.removeEventListener("pointerdown",d),r.removeEventListener("click",u.current)}},[r,o]),{onPointerDownCapture:()=>i.current=!0}}function RT(n,r=globalThis==null?void 0:globalThis.document){const o=Ka(n),i=b.useRef(!1);return b.useEffect(()=>{const u=d=>{d.target&&!i.current&&j0(NT,o,{originalEvent:d},{discrete:!1})};return r.addEventListener("focusin",u),()=>r.removeEventListener("focusin",u)},[r,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function nv(){const n=new CustomEvent(Ud);document.dispatchEvent(n)}function j0(n,r,o,{discrete:i}){const u=o.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&u.addEventListener(n,r,{once:!0}),i?xT(u,d):u.dispatchEvent(d)}var xd="focusScope.autoFocusOnMount",Sd="focusScope.autoFocusOnUnmount",av={bubbles:!1,cancelable:!0},_T="FocusScope",df=b.forwardRef((n,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...f}=n,[m,y]=b.useState(null),p=Ka(u),x=Ka(d),g=b.useRef(null),w=tt(r,N=>y(N)),E=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let N=function(M){if(E.paused||!m)return;const z=M.target;m.contains(z)?g.current=z:Qa(g.current,{select:!0})},T=function(M){if(E.paused||!m)return;const z=M.relatedTarget;z!==null&&(m.contains(z)||Qa(g.current,{select:!0}))},C=function(M){if(document.activeElement===document.body)for(const q of M)q.removedNodes.length>0&&Qa(m)};document.addEventListener("focusin",N),document.addEventListener("focusout",T);const O=new MutationObserver(C);return m&&O.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",T),O.disconnect()}}},[i,m,E.paused]),b.useEffect(()=>{if(m){rv.add(E);const N=document.activeElement;if(!m.contains(N)){const C=new CustomEvent(xd,av);m.addEventListener(xd,p),m.dispatchEvent(C),C.defaultPrevented||(jT(kT(O0(m)),{select:!0}),document.activeElement===N&&Qa(m))}return()=>{m.removeEventListener(xd,p),setTimeout(()=>{const C=new CustomEvent(Sd,av);m.addEventListener(Sd,x),m.dispatchEvent(C),C.defaultPrevented||Qa(N??document.body,{select:!0}),m.removeEventListener(Sd,x),rv.remove(E)},0)}}},[m,p,x,E]);const A=b.useCallback(N=>{if(!o&&!i||E.paused)return;const T=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,C=document.activeElement;if(T&&C){const O=N.currentTarget,[M,z]=OT(O);M&&z?!N.shiftKey&&C===z?(N.preventDefault(),o&&Qa(M,{select:!0})):N.shiftKey&&C===M&&(N.preventDefault(),o&&Qa(z,{select:!0})):C===O&&N.preventDefault()}},[o,i,E.paused]);return h.jsx(Ye.div,{tabIndex:-1,...f,ref:w,onKeyDown:A})});df.displayName=_T;function jT(n,{select:r=!1}={}){const o=document.activeElement;for(const i of n)if(Qa(i,{select:r}),document.activeElement!==o)return}function OT(n){const r=O0(n),o=lv(r,n),i=lv(r.reverse(),n);return[o,i]}function O0(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function lv(n,r){for(const o of n)if(!MT(o,{upTo:r}))return o}function MT(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 DT(n){return n instanceof HTMLInputElement&&"select"in n}function Qa(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&DT(n)&&r&&n.select()}}var rv=zT();function zT(){let n=[];return{add(r){const o=n[0];r!==o&&(o==null||o.pause()),n=ov(n,r),n.unshift(r)},remove(r){var o;n=ov(n,r),(o=n[0])==null||o.resume()}}}function ov(n,r){const o=[...n],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function kT(n){return n.filter(r=>r.tagName!=="A")}var LT="Portal",ff=b.forwardRef((n,r)=>{var m;const{container:o,...i}=n,[u,d]=b.useState(!1);jt(()=>d(!0),[]);const f=o||u&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return f?Iv.createPortal(h.jsx(Ye.div,{...i,ref:r}),f):null});ff.displayName=LT;function UT(n,r){return b.useReducer((o,i)=>r[o][i]??o,n)}var Ho=n=>{const{present:r,children:o}=n,i=BT(r),u=typeof o=="function"?o({present:i.isPresent}):b.Children.only(o),d=tt(i.ref,HT(u));return typeof o=="function"||i.isPresent?b.cloneElement(u,{ref:d}):null};Ho.displayName="Presence";function BT(n){const[r,o]=b.useState(),i=b.useRef(null),u=b.useRef(n),d=b.useRef("none"),f=n?"mounted":"unmounted",[m,y]=UT(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=is(i.current);d.current=m==="mounted"?p:"none"},[m]),jt(()=>{const p=i.current,x=u.current;if(x!==n){const w=d.current,E=is(p);n?y("MOUNT"):E==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&w!==E?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,y]),jt(()=>{if(r){let p;const x=r.ownerDocument.defaultView??window,g=E=>{const N=is(i.current).includes(CSS.escape(E.animationName));if(E.target===r&&N&&(y("ANIMATION_END"),!u.current)){const T=r.style.animationFillMode;r.style.animationFillMode="forwards",p=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=T)})}},w=E=>{E.target===r&&(d.current=is(i.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",g),r.addEventListener("animationend",g),()=>{x.clearTimeout(p),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",g),r.removeEventListener("animationend",g)}}else y("ANIMATION_END")},[r,y]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function is(n){return(n==null?void 0:n.animationName)||"none"}function HT(n){var i,u;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var wd=0;function M0(){b.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??iv()),document.body.insertAdjacentElement("beforeend",n[1]??iv()),wd++,()=>{wd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),wd--}},[])}function iv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Hn=function(){return Hn=Object.assign||function(r){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(r[d]=o[d])}return r},Hn.apply(this,arguments)};function D0(n,r){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(n);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(n,i[u])&&(o[i[u]]=n[i[u]]);return o}function VT(n,r,o){if(o||arguments.length===2)for(var i=0,u=r.length,d;i<u;i++)(d||!(i in r))&&(d||(d=Array.prototype.slice.call(r,0,i)),d[i]=r[i]);return n.concat(d||Array.prototype.slice.call(r))}var gs="right-scroll-bar-position",vs="width-before-scroll-bar",YT="with-scroll-bars-hidden",qT="--removed-body-scroll-bar-size";function Ed(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function $T(n,r){var o=b.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(i){var u=o.value;u!==i&&(o.value=i,o.callback(i,u))}}}})[0];return o.callback=r,o.facade}var GT=typeof window<"u"?b.useLayoutEffect:b.useEffect,sv=new WeakMap;function XT(n,r){var o=$T(null,function(i){return n.forEach(function(u){return Ed(u,i)})});return GT(function(){var i=sv.get(o);if(i){var u=new Set(i),d=new Set(n),f=o.current;u.forEach(function(m){d.has(m)||Ed(m,null)}),d.forEach(function(m){u.has(m)||Ed(m,f)})}sv.set(o,n)},[n]),o}function QT(n){return n}function ZT(n,r){r===void 0&&(r=QT);var o=[],i=!1,u={read:function(){if(i)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(d){var f=r(d,i);return o.push(f),function(){o=o.filter(function(m){return m!==f})}},assignSyncMedium:function(d){for(i=!0;o.length;){var f=o;o=[],f.forEach(d)}o={push:function(m){return d(m)},filter:function(){return o}}},assignMedium:function(d){i=!0;var f=[];if(o.length){var m=o;o=[],m.forEach(d),f=o}var y=function(){var x=f;f=[],x.forEach(d)},p=function(){return Promise.resolve().then(y)};p(),o={push:function(x){f.push(x),p()},filter:function(x){return f=f.filter(x),o}}}};return u}function KT(n){n===void 0&&(n={});var r=ZT(null);return r.options=Hn({async:!0,ssr:!1},n),r}var z0=function(n){var r=n.sideCar,o=D0(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return b.createElement(i,Hn({},o))};z0.isSideCarExport=!0;function PT(n,r){return n.useMedium(r),z0}var k0=KT(),Nd=function(){},Vs=b.forwardRef(function(n,r){var o=b.useRef(null),i=b.useState({onScrollCapture:Nd,onWheelCapture:Nd,onTouchMoveCapture:Nd}),u=i[0],d=i[1],f=n.forwardProps,m=n.children,y=n.className,p=n.removeScrollBar,x=n.enabled,g=n.shards,w=n.sideCar,E=n.noRelative,A=n.noIsolation,N=n.inert,T=n.allowPinchZoom,C=n.as,O=C===void 0?"div":C,M=n.gapMode,z=D0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),q=w,G=XT([o,r]),H=Hn(Hn({},z),u);return b.createElement(b.Fragment,null,x&&b.createElement(q,{sideCar:k0,removeScrollBar:p,shards:g,noRelative:E,noIsolation:A,inert:N,setCallbacks:d,allowPinchZoom:!!T,lockRef:o,gapMode:M}),f?b.cloneElement(b.Children.only(m),Hn(Hn({},H),{ref:G})):b.createElement(O,Hn({},H,{className:y,ref:G}),m))});Vs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vs.classNames={fullWidth:vs,zeroRight:gs};var JT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=JT();return r&&n.setAttribute("nonce",r),n}function IT(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function WT(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var eC=function(){var n=0,r=null;return{add:function(o){n==0&&(r=FT())&&(IT(r,o),WT(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},tC=function(){var n=eC();return function(r,o){b.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},L0=function(){var n=tC(),r=function(o){var i=o.styles,u=o.dynamic;return n(i,u),null};return r},nC={left:0,top:0,right:0,gap:0},Td=function(n){return parseInt(n||"",10)||0},aC=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],i=r[n==="padding"?"paddingTop":"marginTop"],u=r[n==="padding"?"paddingRight":"marginRight"];return[Td(o),Td(i),Td(u)]},lC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return nC;var r=aC(n),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-o+r[2]-r[0])}},rC=L0(),Er="data-scroll-locked",oC=function(n,r,o,i){var u=n.left,d=n.top,f=n.right,m=n.gap;return o===void 0&&(o="margin"),`
|
|
252
|
-
.`.concat(YT,` {
|
|
253
|
-
overflow: hidden `).concat(i,`;
|
|
254
|
-
padding-right: `).concat(m,"px ").concat(i,`;
|
|
255
|
-
}
|
|
256
|
-
body[`).concat(Er,`] {
|
|
257
|
-
overflow: hidden `).concat(i,`;
|
|
258
|
-
overscroll-behavior: contain;
|
|
259
|
-
`).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
|
|
260
|
-
padding-left: `.concat(u,`px;
|
|
261
|
-
padding-top: `).concat(d,`px;
|
|
262
|
-
padding-right: `).concat(f,`px;
|
|
263
|
-
margin-left:0;
|
|
264
|
-
margin-top:0;
|
|
265
|
-
margin-right: `).concat(m,"px ").concat(i,`;
|
|
266
|
-
`),o==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.`).concat(gs,` {
|
|
270
|
-
right: `).concat(m,"px ").concat(i,`;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.`).concat(vs,` {
|
|
274
|
-
margin-right: `).concat(m,"px ").concat(i,`;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.`).concat(gs," .").concat(gs,` {
|
|
278
|
-
right: 0 `).concat(i,`;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.`).concat(vs," .").concat(vs,` {
|
|
282
|
-
margin-right: 0 `).concat(i,`;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
body[`).concat(Er,`] {
|
|
286
|
-
`).concat(qT,": ").concat(m,`px;
|
|
287
|
-
}
|
|
288
|
-
`)},cv=function(){var n=parseInt(document.body.getAttribute(Er)||"0",10);return isFinite(n)?n:0},iC=function(){b.useEffect(function(){return document.body.setAttribute(Er,(cv()+1).toString()),function(){var n=cv()-1;n<=0?document.body.removeAttribute(Er):document.body.setAttribute(Er,n.toString())}},[])},sC=function(n){var r=n.noRelative,o=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;iC();var d=b.useMemo(function(){return lC(u)},[u]);return b.createElement(rC,{styles:oC(d,!r,u,o?"":"!important")})},Bd=!1;if(typeof window<"u")try{var ss=Object.defineProperty({},"passive",{get:function(){return Bd=!0,!0}});window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Bd=!1}var br=Bd?{passive:!1}:!1,cC=function(n){return n.tagName==="TEXTAREA"},U0=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!cC(n)&&o[r]==="visible")},uC=function(n){return U0(n,"overflowY")},dC=function(n){return U0(n,"overflowX")},uv=function(n,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=B0(n,i);if(u){var d=H0(n,i),f=d[1],m=d[2];if(f>m)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},fC=function(n){var r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[r,o,i]},mC=function(n){var r=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[r,o,i]},B0=function(n,r){return n==="v"?uC(r):dC(r)},H0=function(n,r){return n==="v"?fC(r):mC(r)},hC=function(n,r){return n==="h"&&r==="rtl"?-1:1},pC=function(n,r,o,i,u){var d=hC(n,window.getComputedStyle(r).direction),f=d*i,m=o.target,y=r.contains(m),p=!1,x=f>0,g=0,w=0;do{if(!m)break;var E=H0(n,m),A=E[0],N=E[1],T=E[2],C=N-T-d*A;(A||C)&&B0(n,m)&&(g+=C,w+=A);var O=m.parentNode;m=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!y&&m!==document.body||y&&(r.contains(m)||r===m));return(x&&Math.abs(g)<1||!x&&Math.abs(w)<1)&&(p=!0),p},cs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},dv=function(n){return[n.deltaX,n.deltaY]},fv=function(n){return n&&"current"in n?n.current:n},gC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},vC=function(n){return`
|
|
289
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
290
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
291
|
-
`)},yC=0,xr=[];function bC(n){var r=b.useRef([]),o=b.useRef([0,0]),i=b.useRef(),u=b.useState(yC++)[0],d=b.useState(L0)[0],f=b.useRef(n);b.useEffect(function(){f.current=n},[n]),b.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var N=VT([n.lockRef.current],(n.shards||[]).map(fv),!0).filter(Boolean);return N.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),N.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var m=b.useCallback(function(N,T){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!f.current.allowPinchZoom;var C=cs(N),O=o.current,M="deltaX"in N?N.deltaX:O[0]-C[0],z="deltaY"in N?N.deltaY:O[1]-C[1],q,G=N.target,H=Math.abs(M)>Math.abs(z)?"h":"v";if("touches"in N&&H==="h"&&G.type==="range")return!1;var V=window.getSelection(),le=V&&V.anchorNode,he=le?le===G||le.contains(G):!1;if(he)return!1;var ge=uv(H,G);if(!ge)return!0;if(ge?q=H:(q=H==="v"?"h":"v",ge=uv(H,G)),!ge)return!1;if(!i.current&&"changedTouches"in N&&(M||z)&&(i.current=q),!q)return!0;var fe=i.current||q;return pC(fe,T,N,fe==="h"?M:z)},[]),y=b.useCallback(function(N){var T=N;if(!(!xr.length||xr[xr.length-1]!==d)){var C="deltaY"in T?dv(T):cs(T),O=r.current.filter(function(q){return q.name===T.type&&(q.target===T.target||T.target===q.shadowParent)&&gC(q.delta,C)})[0];if(O&&O.should){T.cancelable&&T.preventDefault();return}if(!O){var M=(f.current.shards||[]).map(fv).filter(Boolean).filter(function(q){return q.contains(T.target)}),z=M.length>0?m(T,M[0]):!f.current.noIsolation;z&&T.cancelable&&T.preventDefault()}}},[]),p=b.useCallback(function(N,T,C,O){var M={name:N,delta:T,target:C,should:O,shadowParent:xC(C)};r.current.push(M),setTimeout(function(){r.current=r.current.filter(function(z){return z!==M})},1)},[]),x=b.useCallback(function(N){o.current=cs(N),i.current=void 0},[]),g=b.useCallback(function(N){p(N.type,dv(N),N.target,m(N,n.lockRef.current))},[]),w=b.useCallback(function(N){p(N.type,cs(N),N.target,m(N,n.lockRef.current))},[]);b.useEffect(function(){return xr.push(d),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",y,br),document.addEventListener("touchmove",y,br),document.addEventListener("touchstart",x,br),function(){xr=xr.filter(function(N){return N!==d}),document.removeEventListener("wheel",y,br),document.removeEventListener("touchmove",y,br),document.removeEventListener("touchstart",x,br)}},[]);var E=n.removeScrollBar,A=n.inert;return b.createElement(b.Fragment,null,A?b.createElement(d,{styles:vC(u)}):null,E?b.createElement(sC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function xC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const SC=PT(k0,bC);var mf=b.forwardRef(function(n,r){return b.createElement(Vs,Hn({},n,{ref:r,sideCar:SC}))});mf.classNames=Vs.classNames;var wC=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},Sr=new WeakMap,us=new WeakMap,ds={},Cd=0,V0=function(n){return n&&(n.host||V0(n.parentNode))},EC=function(n,r){return r.map(function(o){if(n.contains(o))return o;var i=V0(o);return i&&n.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},NC=function(n,r,o,i){var u=EC(r,Array.isArray(n)?n:[n]);ds[o]||(ds[o]=new WeakMap);var d=ds[o],f=[],m=new Set,y=new Set(u),p=function(g){!g||m.has(g)||(m.add(g),p(g.parentNode))};u.forEach(p);var x=function(g){!g||y.has(g)||Array.prototype.forEach.call(g.children,function(w){if(m.has(w))x(w);else try{var E=w.getAttribute(i),A=E!==null&&E!=="false",N=(Sr.get(w)||0)+1,T=(d.get(w)||0)+1;Sr.set(w,N),d.set(w,T),f.push(w),N===1&&A&&us.set(w,!0),T===1&&w.setAttribute(o,"true"),A||w.setAttribute(i,"true")}catch(C){console.error("aria-hidden: cannot operate on ",w,C)}})};return x(r),m.clear(),Cd++,function(){f.forEach(function(g){var w=Sr.get(g)-1,E=d.get(g)-1;Sr.set(g,w),d.set(g,E),w||(us.has(g)||g.removeAttribute(i),us.delete(g)),E||g.removeAttribute(o)}),Cd--,Cd||(Sr=new WeakMap,Sr=new WeakMap,us=new WeakMap,ds={})}},Y0=function(n,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=wC(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),NC(i,u,o,"aria-hidden")):function(){return null}},Ys="Dialog",[q0,$0]=Ol(Ys),[TC,Cn]=q0(Ys),G0=n=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:d,modal:f=!0}=n,m=b.useRef(null),y=b.useRef(null),[p,x]=Do({prop:i,defaultProp:u??!1,onChange:d,caller:Ys});return h.jsx(TC,{scope:r,triggerRef:m,contentRef:y,contentId:Za(),titleId:Za(),descriptionId:Za(),open:p,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(g=>!g),[x]),modal:f,children:o})};G0.displayName=Ys;var X0="DialogTrigger",Q0=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Cn(X0,o),d=tt(r,u.triggerRef);return h.jsx(Ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":gf(u.open),...i,ref:d,onClick:Be(n.onClick,u.onOpenToggle)})});Q0.displayName=X0;var hf="DialogPortal",[CC,Z0]=q0(hf,{forceMount:void 0}),K0=n=>{const{__scopeDialog:r,forceMount:o,children:i,container:u}=n,d=Cn(hf,r);return h.jsx(CC,{scope:r,forceMount:o,children:b.Children.map(i,f=>h.jsx(Ho,{present:o||d.open,children:h.jsx(ff,{asChild:!0,container:u,children:f})}))})};K0.displayName=hf;var Ns="DialogOverlay",P0=b.forwardRef((n,r)=>{const o=Z0(Ns,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=Cn(Ns,n.__scopeDialog);return d.modal?h.jsx(Ho,{present:i||d.open,children:h.jsx(RC,{...u,ref:r})}):null});P0.displayName=Ns;var AC=zo("DialogOverlay.RemoveScroll"),RC=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Cn(Ns,o);return h.jsx(mf,{as:AC,allowPinchZoom:!0,shards:[u.contentRef],children:h.jsx(Ye.div,{"data-state":gf(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),Cl="DialogContent",J0=b.forwardRef((n,r)=>{const o=Z0(Cl,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=Cn(Cl,n.__scopeDialog);return h.jsx(Ho,{present:i||d.open,children:d.modal?h.jsx(_C,{...u,ref:r}):h.jsx(jC,{...u,ref:r})})});J0.displayName=Cl;var _C=b.forwardRef((n,r)=>{const o=Cn(Cl,n.__scopeDialog),i=b.useRef(null),u=tt(r,o.contentRef,i);return b.useEffect(()=>{const d=i.current;if(d)return Y0(d)},[]),h.jsx(F0,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Be(n.onCloseAutoFocus,d=>{var f;d.preventDefault(),(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Be(n.onPointerDownOutside,d=>{const f=d.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0;(f.button===2||m)&&d.preventDefault()}),onFocusOutside:Be(n.onFocusOutside,d=>d.preventDefault())})}),jC=b.forwardRef((n,r)=>{const o=Cn(Cl,n.__scopeDialog),i=b.useRef(!1),u=b.useRef(!1);return h.jsx(F0,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var f,m;(f=n.onCloseAutoFocus)==null||f.call(n,d),d.defaultPrevented||(i.current||(m=o.triggerRef.current)==null||m.focus(),d.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:d=>{var y,p;(y=n.onInteractOutside)==null||y.call(n,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const f=d.target;((p=o.triggerRef.current)==null?void 0:p.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})}),F0=b.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:d,...f}=n,m=Cn(Cl,o),y=b.useRef(null),p=tt(r,y);return M0(),h.jsxs(h.Fragment,{children:[h.jsx(df,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:d,children:h.jsx(uf,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":gf(m.open),...f,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(MC,{titleId:m.titleId}),h.jsx(zC,{contentRef:y,descriptionId:m.descriptionId})]})]})}),pf="DialogTitle",I0=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Cn(pf,o);return h.jsx(Ye.h2,{id:u.titleId,...i,ref:r})});I0.displayName=pf;var W0="DialogDescription",ey=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Cn(W0,o);return h.jsx(Ye.p,{id:u.descriptionId,...i,ref:r})});ey.displayName=W0;var ty="DialogClose",ny=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Cn(ty,o);return h.jsx(Ye.button,{type:"button",...i,ref:r,onClick:Be(n.onClick,()=>u.onOpenChange(!1))})});ny.displayName=ty;function gf(n){return n?"open":"closed"}var ay="DialogTitleWarning",[OC,ly]=iT(ay,{contentName:Cl,titleName:pf,docsSlug:"dialog"}),MC=({titleId:n})=>{const r=ly(ay),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
292
|
-
|
|
293
|
-
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
294
|
-
|
|
295
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return b.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},DC="DialogDescriptionWarning",zC=({contentRef:n,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ly(DC).contentName}}.`;return b.useEffect(()=>{var d;const u=(d=n.current)==null?void 0:d.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,n,r]),null},ry=G0,oy=Q0,iy=K0,vf=P0,yf=J0,bf=I0,xf=ey,qs=ny;const kC=ry,LC=oy,UC=iy,W3=qs,sy=b.forwardRef(({className:n,...r},o)=>h.jsx(vf,{ref:o,className:be("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}));sy.displayName=vf.displayName;const cy=b.forwardRef(({className:n,children:r,...o},i)=>h.jsxs(UC,{children:[h.jsx(sy,{}),h.jsxs(yf,{ref:i,className:be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-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,h.jsxs(qs,{className:"absolute right-4 top-4 rounded-[10px] 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:[h.jsx(s0,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cy.displayName=yf.displayName;const uy=({className:n,...r})=>h.jsx("div",{className:be("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});uy.displayName="DialogHeader";const BC=({className:n,...r})=>h.jsx("div",{className:be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});BC.displayName="DialogFooter";const dy=b.forwardRef(({className:n,...r},o)=>h.jsx(bf,{ref:o,className:be("text-lg font-semibold leading-none tracking-tight",n),...r}));dy.displayName=bf.displayName;const fy=b.forwardRef(({className:n,...r},o)=>h.jsx(xf,{ref:o,className:be("text-sm text-muted-foreground",n),...r}));fy.displayName=xf.displayName;function mv(n,[r,o]){return Math.min(o,Math.max(r,n))}function my(n){const r=n+"CollectionProvider",[o,i]=Ol(r),[u,d]=o(r,{collectionRef:{current:null},itemMap:new Map}),f=N=>{const{scope:T,children:C}=N,O=te.useRef(null),M=te.useRef(new Map).current;return h.jsx(u,{scope:T,itemMap:M,collectionRef:O,children:C})};f.displayName=r;const m=n+"CollectionSlot",y=zo(m),p=te.forwardRef((N,T)=>{const{scope:C,children:O}=N,M=d(m,C),z=tt(T,M.collectionRef);return h.jsx(y,{ref:z,children:O})});p.displayName=m;const x=n+"CollectionItemSlot",g="data-radix-collection-item",w=zo(x),E=te.forwardRef((N,T)=>{const{scope:C,children:O,...M}=N,z=te.useRef(null),q=tt(T,z),G=d(x,C);return te.useEffect(()=>(G.itemMap.set(z,{ref:z,...M}),()=>void G.itemMap.delete(z))),h.jsx(w,{[g]:"",ref:q,children:O})});E.displayName=x;function A(N){const T=d(n+"CollectionConsumer",N);return te.useCallback(()=>{const O=T.collectionRef.current;if(!O)return[];const M=Array.from(O.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((G,H)=>M.indexOf(G.ref.current)-M.indexOf(H.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:f,Slot:p,ItemSlot:E},A,i]}var HC=b.createContext(void 0);function Sf(n){const r=b.useContext(HC);return n||r||"ltr"}const VC=["top","right","bottom","left"],Pa=Math.min,Wt=Math.max,Ts=Math.round,fs=Math.floor,qn=n=>({x:n,y:n}),YC={left:"right",right:"left",bottom:"top",top:"bottom"};function Hd(n,r,o){return Wt(n,Pa(r,o))}function ma(n,r){return typeof n=="function"?n(r):n}function ha(n){return n.split("-")[0]}function jr(n){return n.split("-")[1]}function wf(n){return n==="x"?"y":"x"}function Ef(n){return n==="y"?"height":"width"}function Vn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function Nf(n){return wf(Vn(n))}function qC(n,r,o){o===void 0&&(o=!1);const i=jr(n),u=Nf(n),d=Ef(u);let f=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[d]>r.floating[d]&&(f=Cs(f)),[f,Cs(f)]}function $C(n){const r=Cs(n);return[Vd(n),r,Vd(r)]}function Vd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const hv=["left","right"],pv=["right","left"],GC=["top","bottom"],XC=["bottom","top"];function QC(n,r,o){switch(n){case"top":case"bottom":return o?r?pv:hv:r?hv:pv;case"left":case"right":return r?GC:XC;default:return[]}}function ZC(n,r,o,i){const u=jr(n);let d=QC(ha(n),o==="start",i);return u&&(d=d.map(f=>f+"-"+u),r&&(d=d.concat(d.map(Vd)))),d}function Cs(n){const r=ha(n);return YC[r]+n.slice(r.length)}function KC(n){return{top:0,right:0,bottom:0,left:0,...n}}function hy(n){return typeof n!="number"?KC(n):{top:n,right:n,bottom:n,left:n}}function As(n){const{x:r,y:o,width:i,height:u}=n;return{width:i,height:u,top:o,left:r,right:r+i,bottom:o+u,x:r,y:o}}function gv(n,r,o){let{reference:i,floating:u}=n;const d=Vn(r),f=Nf(r),m=Ef(f),y=ha(r),p=d==="y",x=i.x+i.width/2-u.width/2,g=i.y+i.height/2-u.height/2,w=i[m]/2-u[m]/2;let E;switch(y){case"top":E={x,y:i.y-u.height};break;case"bottom":E={x,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:g};break;case"left":E={x:i.x-u.width,y:g};break;default:E={x:i.x,y:i.y}}switch(jr(r)){case"start":E[f]-=w*(o&&p?-1:1);break;case"end":E[f]+=w*(o&&p?-1:1);break}return E}async function PC(n,r){var o;r===void 0&&(r={});const{x:i,y:u,platform:d,rects:f,elements:m,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:w=!1,padding:E=0}=ma(r,n),A=hy(E),T=m[w?g==="floating"?"reference":"floating":g],C=As(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(T)))==null||o?T:T.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(m.floating)),boundary:p,rootBoundary:x,strategy:y})),O=g==="floating"?{x:i,y:u,width:f.floating.width,height:f.floating.height}:f.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m.floating)),z=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},q=As(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:O,offsetParent:M,strategy:y}):O);return{top:(C.top-q.top+A.top)/z.y,bottom:(q.bottom-C.bottom+A.bottom)/z.y,left:(C.left-q.left+A.left)/z.x,right:(q.right-C.right+A.right)/z.x}}const JC=50,FC=async(n,r,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:d=[],platform:f}=o,m=f.detectOverflow?f:{...f,detectOverflow:PC},y=await(f.isRTL==null?void 0:f.isRTL(r));let p=await f.getElementRects({reference:n,floating:r,strategy:u}),{x,y:g}=gv(p,i,y),w=i,E=0;const A={};for(let N=0;N<d.length;N++){const T=d[N];if(!T)continue;const{name:C,fn:O}=T,{x:M,y:z,data:q,reset:G}=await O({x,y:g,initialPlacement:i,placement:w,strategy:u,middlewareData:A,rects:p,platform:m,elements:{reference:n,floating:r}});x=M??x,g=z??g,A[C]={...A[C],...q},G&&E<JC&&(E++,typeof G=="object"&&(G.placement&&(w=G.placement),G.rects&&(p=G.rects===!0?await f.getElementRects({reference:n,floating:r,strategy:u}):G.rects),{x,y:g}=gv(p,w,y)),N=-1)}return{x,y:g,placement:w,strategy:u,middlewareData:A}},IC=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:i,placement:u,rects:d,platform:f,elements:m,middlewareData:y}=r,{element:p,padding:x=0}=ma(n,r)||{};if(p==null)return{};const g=hy(x),w={x:o,y:i},E=Nf(u),A=Ef(E),N=await f.getDimensions(p),T=E==="y",C=T?"top":"left",O=T?"bottom":"right",M=T?"clientHeight":"clientWidth",z=d.reference[A]+d.reference[E]-w[E]-d.floating[A],q=w[E]-d.reference[E],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let H=G?G[M]:0;(!H||!await(f.isElement==null?void 0:f.isElement(G)))&&(H=m.floating[M]||d.floating[A]);const V=z/2-q/2,le=H/2-N[A]/2-1,he=Pa(g[C],le),ge=Pa(g[O],le),fe=he,pe=H-N[A]-ge,ve=H/2-N[A]/2+V,de=Hd(fe,ve,pe),j=!y.arrow&&jr(u)!=null&&ve!==de&&d.reference[A]/2-(ve<fe?he:ge)-N[A]/2<0,$=j?ve<fe?ve-fe:ve-pe:0;return{[E]:w[E]+$,data:{[E]:de,centerOffset:ve-de-$,...j&&{alignmentOffset:$}},reset:j}}}),WC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,i;const{placement:u,middlewareData:d,rects:f,initialPlacement:m,platform:y,elements:p}=r,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:N=!0,...T}=ma(n,r);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const C=ha(u),O=Vn(m),M=ha(m)===m,z=await(y.isRTL==null?void 0:y.isRTL(p.floating)),q=w||(M||!N?[Cs(m)]:$C(m)),G=A!=="none";!w&&G&&q.push(...ZC(m,N,A,z));const H=[m,...q],V=await y.detectOverflow(r,T),le=[];let he=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&le.push(V[C]),g){const ve=qC(u,f,z);le.push(V[ve[0]],V[ve[1]])}if(he=[...he,{placement:u,overflows:le}],!le.every(ve=>ve<=0)){var ge,fe;const ve=(((ge=d.flip)==null?void 0:ge.index)||0)+1,de=H[ve];if(de&&(!(g==="alignment"?O!==Vn(de):!1)||he.every(J=>Vn(J.placement)===O?J.overflows[0]>0:!0)))return{data:{index:ve,overflows:he},reset:{placement:de}};let j=(fe=he.filter($=>$.overflows[0]<=0).sort(($,J)=>$.overflows[1]-J.overflows[1])[0])==null?void 0:fe.placement;if(!j)switch(E){case"bestFit":{var pe;const $=(pe=he.filter(J=>{if(G){const oe=Vn(J.placement);return oe===O||oe==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(oe=>oe>0).reduce((oe,F)=>oe+F,0)]).sort((J,oe)=>J[1]-oe[1])[0])==null?void 0:pe[0];$&&(j=$);break}case"initialPlacement":j=m;break}if(u!==j)return{reset:{placement:j}}}return{}}}};function vv(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function yv(n){return VC.some(r=>n[r]>=0)}const e5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:i}=r,{strategy:u="referenceHidden",...d}=ma(n,r);switch(u){case"referenceHidden":{const f=await i.detectOverflow(r,{...d,elementContext:"reference"}),m=vv(f,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:yv(m)}}}case"escaped":{const f=await i.detectOverflow(r,{...d,altBoundary:!0}),m=vv(f,o.floating);return{data:{escapedOffsets:m,escaped:yv(m)}}}default:return{}}}}},py=new Set(["left","top"]);async function t5(n,r){const{placement:o,platform:i,elements:u}=n,d=await(i.isRTL==null?void 0:i.isRTL(u.floating)),f=ha(o),m=jr(o),y=Vn(o)==="y",p=py.has(f)?-1:1,x=d&&y?-1:1,g=ma(r,n);let{mainAxis:w,crossAxis:E,alignmentAxis:A}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof A=="number"&&(E=m==="end"?A*-1:A),y?{x:E*x,y:w*p}:{x:w*p,y:E*x}}const n5=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,i;const{x:u,y:d,placement:f,middlewareData:m}=r,y=await t5(r,n);return f===((o=m.offset)==null?void 0:o.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:u+y.x,y:d+y.y,data:{...y,placement:f}}}}},a5=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:i,placement:u,platform:d}=r,{mainAxis:f=!0,crossAxis:m=!1,limiter:y={fn:C=>{let{x:O,y:M}=C;return{x:O,y:M}}},...p}=ma(n,r),x={x:o,y:i},g=await d.detectOverflow(r,p),w=Vn(ha(u)),E=wf(w);let A=x[E],N=x[w];if(f){const C=E==="y"?"top":"left",O=E==="y"?"bottom":"right",M=A+g[C],z=A-g[O];A=Hd(M,A,z)}if(m){const C=w==="y"?"top":"left",O=w==="y"?"bottom":"right",M=N+g[C],z=N-g[O];N=Hd(M,N,z)}const T=y.fn({...r,[E]:A,[w]:N});return{...T,data:{x:T.x-o,y:T.y-i,enabled:{[E]:f,[w]:m}}}}}},l5=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:o,y:i,placement:u,rects:d,middlewareData:f}=r,{offset:m=0,mainAxis:y=!0,crossAxis:p=!0}=ma(n,r),x={x:o,y:i},g=Vn(u),w=wf(g);let E=x[w],A=x[g];const N=ma(m,r),T=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(y){const M=w==="y"?"height":"width",z=d.reference[w]-d.floating[M]+T.mainAxis,q=d.reference[w]+d.reference[M]-T.mainAxis;E<z?E=z:E>q&&(E=q)}if(p){var C,O;const M=w==="y"?"width":"height",z=py.has(ha(u)),q=d.reference[g]-d.floating[M]+(z&&((C=f.offset)==null?void 0:C[g])||0)+(z?0:T.crossAxis),G=d.reference[g]+d.reference[M]+(z?0:((O=f.offset)==null?void 0:O[g])||0)-(z?T.crossAxis:0);A<q?A=q:A>G&&(A=G)}return{[w]:E,[g]:A}}}},r5=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var o,i;const{placement:u,rects:d,platform:f,elements:m}=r,{apply:y=()=>{},...p}=ma(n,r),x=await f.detectOverflow(r,p),g=ha(u),w=jr(u),E=Vn(u)==="y",{width:A,height:N}=d.floating;let T,C;g==="top"||g==="bottom"?(T=g,C=w===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(C=g,T=w==="end"?"top":"bottom");const O=N-x.top-x.bottom,M=A-x.left-x.right,z=Pa(N-x[T],O),q=Pa(A-x[C],M),G=!r.middlewareData.shift;let H=z,V=q;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(V=M),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(H=O),G&&!w){const he=Wt(x.left,0),ge=Wt(x.right,0),fe=Wt(x.top,0),pe=Wt(x.bottom,0);E?V=A-2*(he!==0||ge!==0?he+ge:Wt(x.left,x.right)):H=N-2*(fe!==0||pe!==0?fe+pe:Wt(x.top,x.bottom))}await y({...r,availableWidth:V,availableHeight:H});const le=await f.getDimensions(m.floating);return A!==le.width||N!==le.height?{reset:{rects:!0}}:{}}}};function $s(){return typeof window<"u"}function Or(n){return gy(n)?(n.nodeName||"").toLowerCase():"#document"}function en(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Xn(n){var r;return(r=(gy(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function gy(n){return $s()?n instanceof Node||n instanceof en(n).Node:!1}function Nn(n){return $s()?n instanceof Element||n instanceof en(n).Element:!1}function pa(n){return $s()?n instanceof HTMLElement||n instanceof en(n).HTMLElement:!1}function bv(n){return!$s()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof en(n).ShadowRoot}function Vo(n){const{overflow:r,overflowX:o,overflowY:i,display:u}=Tn(n);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&u!=="inline"&&u!=="contents"}function o5(n){return/^(table|td|th)$/.test(Or(n))}function Gs(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const i5=/transform|translate|scale|rotate|perspective|filter/,s5=/paint|layout|strict|content/,El=n=>!!n&&n!=="none";let Ad;function Tf(n){const r=Nn(n)?Tn(n):n;return El(r.transform)||El(r.translate)||El(r.scale)||El(r.rotate)||El(r.perspective)||!Cf()&&(El(r.backdropFilter)||El(r.filter))||i5.test(r.willChange||"")||s5.test(r.contain||"")}function c5(n){let r=Ja(n);for(;pa(r)&&!Cr(r);){if(Tf(r))return r;if(Gs(r))return null;r=Ja(r)}return null}function Cf(){return Ad==null&&(Ad=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ad}function Cr(n){return/^(html|body|#document)$/.test(Or(n))}function Tn(n){return en(n).getComputedStyle(n)}function Xs(n){return Nn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ja(n){if(Or(n)==="html")return n;const r=n.assignedSlot||n.parentNode||bv(n)&&n.host||Xn(n);return bv(r)?r.host:r}function vy(n){const r=Ja(n);return Cr(r)?n.ownerDocument?n.ownerDocument.body:n.body:pa(r)&&Vo(r)?r:vy(r)}function ko(n,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const u=vy(n),d=u===((i=n.ownerDocument)==null?void 0:i.body),f=en(u);if(d){const m=Yd(f);return r.concat(f,f.visualViewport||[],Vo(u)?u:[],m&&o?ko(m):[])}else return r.concat(u,ko(u,[],o))}function Yd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function yy(n){const r=Tn(n);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const u=pa(n),d=u?n.offsetWidth:o,f=u?n.offsetHeight:i,m=Ts(o)!==d||Ts(i)!==f;return m&&(o=d,i=f),{width:o,height:i,$:m}}function Af(n){return Nn(n)?n:n.contextElement}function Nr(n){const r=Af(n);if(!pa(r))return qn(1);const o=r.getBoundingClientRect(),{width:i,height:u,$:d}=yy(r);let f=(d?Ts(o.width):o.width)/i,m=(d?Ts(o.height):o.height)/u;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const u5=qn(0);function by(n){const r=en(n);return!Cf()||!r.visualViewport?u5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function d5(n,r,o){return r===void 0&&(r=!1),!o||r&&o!==en(n)?!1:r}function Al(n,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const u=n.getBoundingClientRect(),d=Af(n);let f=qn(1);r&&(i?Nn(i)&&(f=Nr(i)):f=Nr(n));const m=d5(d,o,i)?by(d):qn(0);let y=(u.left+m.x)/f.x,p=(u.top+m.y)/f.y,x=u.width/f.x,g=u.height/f.y;if(d){const w=en(d),E=i&&Nn(i)?en(i):i;let A=w,N=Yd(A);for(;N&&i&&E!==A;){const T=Nr(N),C=N.getBoundingClientRect(),O=Tn(N),M=C.left+(N.clientLeft+parseFloat(O.paddingLeft))*T.x,z=C.top+(N.clientTop+parseFloat(O.paddingTop))*T.y;y*=T.x,p*=T.y,x*=T.x,g*=T.y,y+=M,p+=z,A=en(N),N=Yd(A)}}return As({width:x,height:g,x:y,y:p})}function Qs(n,r){const o=Xs(n).scrollLeft;return r?r.left+o:Al(Xn(n)).left+o}function xy(n,r){const o=n.getBoundingClientRect(),i=o.left+r.scrollLeft-Qs(n,o),u=o.top+r.scrollTop;return{x:i,y:u}}function f5(n){let{elements:r,rect:o,offsetParent:i,strategy:u}=n;const d=u==="fixed",f=Xn(i),m=r?Gs(r.floating):!1;if(i===f||m&&d)return o;let y={scrollLeft:0,scrollTop:0},p=qn(1);const x=qn(0),g=pa(i);if((g||!g&&!d)&&((Or(i)!=="body"||Vo(f))&&(y=Xs(i)),g)){const E=Al(i);p=Nr(i),x.x=E.x+i.clientLeft,x.y=E.y+i.clientTop}const w=f&&!g&&!d?xy(f,y):qn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-y.scrollLeft*p.x+x.x+w.x,y:o.y*p.y-y.scrollTop*p.y+x.y+w.y}}function m5(n){return Array.from(n.getClientRects())}function h5(n){const r=Xn(n),o=Xs(n),i=n.ownerDocument.body,u=Wt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),d=Wt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+Qs(n);const m=-o.scrollTop;return Tn(i).direction==="rtl"&&(f+=Wt(r.clientWidth,i.clientWidth)-u),{width:u,height:d,x:f,y:m}}const xv=25;function p5(n,r){const o=en(n),i=Xn(n),u=o.visualViewport;let d=i.clientWidth,f=i.clientHeight,m=0,y=0;if(u){d=u.width,f=u.height;const x=Cf();(!x||x&&r==="fixed")&&(m=u.offsetLeft,y=u.offsetTop)}const p=Qs(i);if(p<=0){const x=i.ownerDocument,g=x.body,w=getComputedStyle(g),E=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(i.clientWidth-g.clientWidth-E);A<=xv&&(d-=A)}else p<=xv&&(d+=p);return{width:d,height:f,x:m,y}}function g5(n,r){const o=Al(n,!0,r==="fixed"),i=o.top+n.clientTop,u=o.left+n.clientLeft,d=pa(n)?Nr(n):qn(1),f=n.clientWidth*d.x,m=n.clientHeight*d.y,y=u*d.x,p=i*d.y;return{width:f,height:m,x:y,y:p}}function Sv(n,r,o){let i;if(r==="viewport")i=p5(n,o);else if(r==="document")i=h5(Xn(n));else if(Nn(r))i=g5(r,o);else{const u=by(n);i={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return As(i)}function Sy(n,r){const o=Ja(n);return o===r||!Nn(o)||Cr(o)?!1:Tn(o).position==="fixed"||Sy(o,r)}function v5(n,r){const o=r.get(n);if(o)return o;let i=ko(n,[],!1).filter(m=>Nn(m)&&Or(m)!=="body"),u=null;const d=Tn(n).position==="fixed";let f=d?Ja(n):n;for(;Nn(f)&&!Cr(f);){const m=Tn(f),y=Tf(f);!y&&m.position==="fixed"&&(u=null),(d?!y&&!u:!y&&m.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Vo(f)&&!y&&Sy(n,f))?i=i.filter(x=>x!==f):u=m,f=Ja(f)}return r.set(n,i),i}function y5(n){let{element:r,boundary:o,rootBoundary:i,strategy:u}=n;const f=[...o==="clippingAncestors"?Gs(r)?[]:v5(r,this._c):[].concat(o),i],m=Sv(r,f[0],u);let y=m.top,p=m.right,x=m.bottom,g=m.left;for(let w=1;w<f.length;w++){const E=Sv(r,f[w],u);y=Wt(E.top,y),p=Pa(E.right,p),x=Pa(E.bottom,x),g=Wt(E.left,g)}return{width:p-g,height:x-y,x:g,y}}function b5(n){const{width:r,height:o}=yy(n);return{width:r,height:o}}function x5(n,r,o){const i=pa(r),u=Xn(r),d=o==="fixed",f=Al(n,!0,d,r);let m={scrollLeft:0,scrollTop:0};const y=qn(0);function p(){y.x=Qs(u)}if(i||!i&&!d)if((Or(r)!=="body"||Vo(u))&&(m=Xs(r)),i){const E=Al(r,!0,d,r);y.x=E.x+r.clientLeft,y.y=E.y+r.clientTop}else u&&p();d&&!i&&u&&p();const x=u&&!i&&!d?xy(u,m):qn(0),g=f.left+m.scrollLeft-y.x-x.x,w=f.top+m.scrollTop-y.y-x.y;return{x:g,y:w,width:f.width,height:f.height}}function Rd(n){return Tn(n).position==="static"}function wv(n,r){if(!pa(n)||Tn(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Xn(n)===o&&(o=o.ownerDocument.body),o}function wy(n,r){const o=en(n);if(Gs(n))return o;if(!pa(n)){let u=Ja(n);for(;u&&!Cr(u);){if(Nn(u)&&!Rd(u))return u;u=Ja(u)}return o}let i=wv(n,r);for(;i&&o5(i)&&Rd(i);)i=wv(i,r);return i&&Cr(i)&&Rd(i)&&!Tf(i)?o:i||c5(n)||o}const S5=async function(n){const r=this.getOffsetParent||wy,o=this.getDimensions,i=await o(n.floating);return{reference:x5(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function w5(n){return Tn(n).direction==="rtl"}const E5={convertOffsetParentRelativeRectToViewportRelativeRect:f5,getDocumentElement:Xn,getClippingRect:y5,getOffsetParent:wy,getElementRects:S5,getClientRects:m5,getDimensions:b5,getScale:Nr,isElement:Nn,isRTL:w5};function Ey(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function N5(n,r){let o=null,i;const u=Xn(n);function d(){var m;clearTimeout(i),(m=o)==null||m.disconnect(),o=null}function f(m,y){m===void 0&&(m=!1),y===void 0&&(y=1),d();const p=n.getBoundingClientRect(),{left:x,top:g,width:w,height:E}=p;if(m||r(),!w||!E)return;const A=fs(g),N=fs(u.clientWidth-(x+w)),T=fs(u.clientHeight-(g+E)),C=fs(x),M={rootMargin:-A+"px "+-N+"px "+-T+"px "+-C+"px",threshold:Wt(0,Pa(1,y))||1};let z=!0;function q(G){const H=G[0].intersectionRatio;if(H!==y){if(!z)return f();H?f(!1,H):i=setTimeout(()=>{f(!1,1e-7)},1e3)}H===1&&!Ey(p,n.getBoundingClientRect())&&f(),z=!1}try{o=new IntersectionObserver(q,{...M,root:u.ownerDocument})}catch{o=new IntersectionObserver(q,M)}o.observe(n)}return f(!0),d}function T5(n,r,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,p=Af(n),x=u||d?[...p?ko(p):[],...r?ko(r):[]]:[];x.forEach(C=>{u&&C.addEventListener("scroll",o,{passive:!0}),d&&C.addEventListener("resize",o)});const g=p&&m?N5(p,o):null;let w=-1,E=null;f&&(E=new ResizeObserver(C=>{let[O]=C;O&&O.target===p&&E&&r&&(E.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=E)==null||M.observe(r)})),o()}),p&&!y&&E.observe(p),r&&E.observe(r));let A,N=y?Al(n):null;y&&T();function T(){const C=Al(n);N&&!Ey(N,C)&&o(),N=C,A=requestAnimationFrame(T)}return o(),()=>{var C;x.forEach(O=>{u&&O.removeEventListener("scroll",o),d&&O.removeEventListener("resize",o)}),g==null||g(),(C=E)==null||C.disconnect(),E=null,y&&cancelAnimationFrame(A)}}const C5=n5,A5=a5,R5=WC,_5=r5,j5=e5,Ev=IC,O5=l5,M5=(n,r,o)=>{const i=new Map,u={platform:E5,...o},d={...u.platform,_c:i};return FC(n,r,{...u,platform:d})};var D5=typeof document<"u",z5=function(){},ys=D5?b.useLayoutEffect:z5;function Rs(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,i,u;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!Rs(n[i],r[i]))return!1;return!0}if(u=Object.keys(n),o=u.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,u[i]))return!1;for(i=o;i--!==0;){const d=u[i];if(!(d==="_owner"&&n.$$typeof)&&!Rs(n[d],r[d]))return!1}return!0}return n!==n&&r!==r}function Ny(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Nv(n,r){const o=Ny(n);return Math.round(r*o)/o}function _d(n){const r=b.useRef(n);return ys(()=>{r.current=n}),r}function k5(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:d,floating:f}={},transform:m=!0,whileElementsMounted:y,open:p}=n,[x,g]=b.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,E]=b.useState(i);Rs(w,i)||E(i);const[A,N]=b.useState(null),[T,C]=b.useState(null),O=b.useCallback(J=>{J!==G.current&&(G.current=J,N(J))},[]),M=b.useCallback(J=>{J!==H.current&&(H.current=J,C(J))},[]),z=d||A,q=f||T,G=b.useRef(null),H=b.useRef(null),V=b.useRef(x),le=y!=null,he=_d(y),ge=_d(u),fe=_d(p),pe=b.useCallback(()=>{if(!G.current||!H.current)return;const J={placement:r,strategy:o,middleware:w};ge.current&&(J.platform=ge.current),M5(G.current,H.current,J).then(oe=>{const F={...oe,isPositioned:fe.current!==!1};ve.current&&!Rs(V.current,F)&&(V.current=F,Bo.flushSync(()=>{g(F)}))})},[w,r,o,ge,fe]);ys(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[p]);const ve=b.useRef(!1);ys(()=>(ve.current=!0,()=>{ve.current=!1}),[]),ys(()=>{if(z&&(G.current=z),q&&(H.current=q),z&&q){if(he.current)return he.current(z,q,pe);pe()}},[z,q,pe,he,le]);const de=b.useMemo(()=>({reference:G,floating:H,setReference:O,setFloating:M}),[O,M]),j=b.useMemo(()=>({reference:z,floating:q}),[z,q]),$=b.useMemo(()=>{const J={position:o,left:0,top:0};if(!j.floating)return J;const oe=Nv(j.floating,x.x),F=Nv(j.floating,x.y);return m?{...J,transform:"translate("+oe+"px, "+F+"px)",...Ny(j.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:oe,top:F}},[o,m,j.floating,x.x,x.y]);return b.useMemo(()=>({...x,update:pe,refs:de,elements:j,floatingStyles:$}),[x,pe,de,j,$])}const L5=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:u}=typeof n=="function"?n(o):n;return i&&r(i)?i.current!=null?Ev({element:i.current,padding:u}).fn(o):{}:i?Ev({element:i,padding:u}).fn(o):{}}}},U5=(n,r)=>{const o=C5(n);return{name:o.name,fn:o.fn,options:[n,r]}},B5=(n,r)=>{const o=A5(n);return{name:o.name,fn:o.fn,options:[n,r]}},H5=(n,r)=>({fn:O5(n).fn,options:[n,r]}),V5=(n,r)=>{const o=R5(n);return{name:o.name,fn:o.fn,options:[n,r]}},Y5=(n,r)=>{const o=_5(n);return{name:o.name,fn:o.fn,options:[n,r]}},q5=(n,r)=>{const o=j5(n);return{name:o.name,fn:o.fn,options:[n,r]}},$5=(n,r)=>{const o=L5(n);return{name:o.name,fn:o.fn,options:[n,r]}};var G5="Arrow",Ty=b.forwardRef((n,r)=>{const{children:o,width:i=10,height:u=5,...d}=n;return h.jsx(Ye.svg,{...d,ref:r,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ty.displayName=G5;var X5=Ty;function Q5(n){const[r,o]=b.useState(void 0);return jt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const d=u[0];let f,m;if("borderBoxSize"in d){const y=d.borderBoxSize,p=Array.isArray(y)?y[0]:y;f=p.inlineSize,m=p.blockSize}else f=n.offsetWidth,m=n.offsetHeight;o({width:f,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),r}var Rf="Popper",[Cy,Ay]=Ol(Rf),[Z5,Ry]=Cy(Rf),_y=n=>{const{__scopePopper:r,children:o}=n,[i,u]=b.useState(null);return h.jsx(Z5,{scope:r,anchor:i,onAnchorChange:u,children:o})};_y.displayName=Rf;var jy="PopperAnchor",Oy=b.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:i,...u}=n,d=Ry(jy,o),f=b.useRef(null),m=tt(r,f),y=b.useRef(null);return b.useEffect(()=>{const p=y.current;y.current=(i==null?void 0:i.current)||f.current,p!==y.current&&d.onAnchorChange(y.current)}),i?null:h.jsx(Ye.div,{...u,ref:m})});Oy.displayName=jy;var _f="PopperContent",[K5,P5]=Cy(_f),My=b.forwardRef((n,r)=>{var ee,re,ie,Te,Se,ne;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:d="center",alignOffset:f=0,arrowPadding:m=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:A,...N}=n,T=Ry(_f,o),[C,O]=b.useState(null),M=tt(r,_e=>O(_e)),[z,q]=b.useState(null),G=Q5(z),H=(G==null?void 0:G.width)??0,V=(G==null?void 0:G.height)??0,le=i+(d!=="center"?"-"+d:""),he=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ge=Array.isArray(p)?p:[p],fe=ge.length>0,pe={padding:he,boundary:ge.filter(F5),altBoundary:fe},{refs:ve,floatingStyles:de,placement:j,isPositioned:$,middlewareData:J}=k5({strategy:"fixed",placement:le,whileElementsMounted:(..._e)=>T5(..._e,{animationFrame:E==="always"}),elements:{reference:T.anchor},middleware:[U5({mainAxis:u+V,alignmentAxis:f}),y&&B5({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?H5():void 0,...pe}),y&&V5({...pe}),Y5({...pe,apply:({elements:_e,rects:Ce,availableWidth:vt,availableHeight:mt})=>{const{width:st,height:nn}=Ce.reference,De=_e.floating.style;De.setProperty("--radix-popper-available-width",`${vt}px`),De.setProperty("--radix-popper-available-height",`${mt}px`),De.setProperty("--radix-popper-anchor-width",`${st}px`),De.setProperty("--radix-popper-anchor-height",`${nn}px`)}}),z&&$5({element:z,padding:m}),I5({arrowWidth:H,arrowHeight:V}),w&&q5({strategy:"referenceHidden",...pe})]}),[oe,F]=ky(j),_=Ka(A);jt(()=>{$&&(_==null||_())},[$,_]);const X=(ee=J.arrow)==null?void 0:ee.x,Z=(re=J.arrow)==null?void 0:re.y,I=((ie=J.arrow)==null?void 0:ie.centerOffset)!==0,[W,ae]=b.useState();return jt(()=>{C&&ae(window.getComputedStyle(C).zIndex)},[C]),h.jsx("div",{ref:ve.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:$?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(Te=J.transformOrigin)==null?void 0:Te.x,(Se=J.transformOrigin)==null?void 0:Se.y].join(" "),...((ne=J.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:h.jsx(K5,{scope:o,placedSide:oe,onArrowChange:q,arrowX:X,arrowY:Z,shouldHideArrow:I,children:h.jsx(Ye.div,{"data-side":oe,"data-align":F,...N,ref:M,style:{...N.style,animation:$?void 0:"none"}})})})});My.displayName=_f;var Dy="PopperArrow",J5={top:"bottom",right:"left",bottom:"top",left:"right"},zy=b.forwardRef(function(r,o){const{__scopePopper:i,...u}=r,d=P5(Dy,i),f=J5[d.placedSide];return h.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:h.jsx(X5,{...u,ref:o,style:{...u.style,display:"block"}})})});zy.displayName=Dy;function F5(n){return n!==null}var I5=n=>({name:"transformOrigin",options:n,fn(r){var T,C,O;const{placement:o,rects:i,middlewareData:u}=r,f=((T=u.arrow)==null?void 0:T.centerOffset)!==0,m=f?0:n.arrowWidth,y=f?0:n.arrowHeight,[p,x]=ky(o),g={start:"0%",center:"50%",end:"100%"}[x],w=(((C=u.arrow)==null?void 0:C.x)??0)+m/2,E=(((O=u.arrow)==null?void 0:O.y)??0)+y/2;let A="",N="";return p==="bottom"?(A=f?g:`${w}px`,N=`${-y}px`):p==="top"?(A=f?g:`${w}px`,N=`${i.floating.height+y}px`):p==="right"?(A=`${-y}px`,N=f?g:`${E}px`):p==="left"&&(A=`${i.floating.width+y}px`,N=f?g:`${E}px`),{data:{x:A,y:N}}}});function ky(n){const[r,o="center"]=n.split("-");return[r,o]}var W5=_y,eA=Oy,tA=My,nA=zy;function aA(n){const r=b.useRef({value:n,previous:n});return b.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var Ly=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"}),lA="VisuallyHidden",rA=b.forwardRef((n,r)=>h.jsx(Ye.span,{...n,ref:r,style:{...Ly,...n.style}}));rA.displayName=lA;var oA=[" ","Enter","ArrowUp","ArrowDown"],iA=[" ","Enter"],Rl="Select",[Zs,Ks,sA]=my(Rl),[Mr]=Ol(Rl,[sA,Ay]),Ps=Ay(),[cA,Ia]=Mr(Rl),[uA,dA]=Mr(Rl),Uy=n=>{const{__scopeSelect:r,children:o,open:i,defaultOpen:u,onOpenChange:d,value:f,defaultValue:m,onValueChange:y,dir:p,name:x,autoComplete:g,disabled:w,required:E,form:A}=n,N=Ps(r),[T,C]=b.useState(null),[O,M]=b.useState(null),[z,q]=b.useState(!1),G=Sf(p),[H,V]=Do({prop:i,defaultProp:u??!1,onChange:d,caller:Rl}),[le,he]=Do({prop:f,defaultProp:m,onChange:y,caller:Rl}),ge=b.useRef(null),fe=T?A||!!T.closest("form"):!0,[pe,ve]=b.useState(new Set),de=Array.from(pe).map(j=>j.props.value).join(";");return h.jsx(W5,{...N,children:h.jsxs(cA,{required:E,scope:r,trigger:T,onTriggerChange:C,valueNode:O,onValueNodeChange:M,valueNodeHasChildren:z,onValueNodeHasChildrenChange:q,contentId:Za(),value:le,onValueChange:he,open:H,onOpenChange:V,dir:G,triggerPointerDownPosRef:ge,disabled:w,children:[h.jsx(Zs.Provider,{scope:r,children:h.jsx(uA,{scope:n.__scopeSelect,onNativeOptionAdd:b.useCallback(j=>{ve($=>new Set($).add(j))},[]),onNativeOptionRemove:b.useCallback(j=>{ve($=>{const J=new Set($);return J.delete(j),J})},[]),children:o})}),fe?h.jsxs(ib,{"aria-hidden":!0,required:E,tabIndex:-1,name:x,autoComplete:g,value:le,onChange:j=>he(j.target.value),disabled:w,form:A,children:[le===void 0?h.jsx("option",{value:""}):null,Array.from(pe)]},de):null]})})};Uy.displayName=Rl;var By="SelectTrigger",Hy=b.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:i=!1,...u}=n,d=Ps(o),f=Ia(By,o),m=f.disabled||i,y=tt(r,f.onTriggerChange),p=Ks(o),x=b.useRef("touch"),[g,w,E]=cb(N=>{const T=p().filter(M=>!M.disabled),C=T.find(M=>M.value===f.value),O=ub(T,N,C);O!==void 0&&f.onValueChange(O.value)}),A=N=>{m||(f.onOpenChange(!0),E()),N&&(f.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return h.jsx(eA,{asChild:!0,...d,children:h.jsx(Ye.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":sb(f.value)?"":void 0,...u,ref:y,onClick:Be(u.onClick,N=>{N.currentTarget.focus(),x.current!=="mouse"&&A(N)}),onPointerDown:Be(u.onPointerDown,N=>{x.current=N.pointerType;const T=N.target;T.hasPointerCapture(N.pointerId)&&T.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(A(N),N.preventDefault())}),onKeyDown:Be(u.onKeyDown,N=>{const T=g.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&w(N.key),!(T&&N.key===" ")&&oA.includes(N.key)&&(A(),N.preventDefault())})})})});Hy.displayName=By;var Vy="SelectValue",Yy=b.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:u,children:d,placeholder:f="",...m}=n,y=Ia(Vy,o),{onValueNodeHasChildrenChange:p}=y,x=d!==void 0,g=tt(r,y.onValueNodeChange);return jt(()=>{p(x)},[p,x]),h.jsx(Ye.span,{...m,ref:g,style:{pointerEvents:"none"},children:sb(y.value)?h.jsx(h.Fragment,{children:f}):d})});Yy.displayName=Vy;var fA="SelectIcon",qy=b.forwardRef((n,r)=>{const{__scopeSelect:o,children:i,...u}=n;return h.jsx(Ye.span,{"aria-hidden":!0,...u,ref:r,children:i||"▼"})});qy.displayName=fA;var mA="SelectPortal",$y=n=>h.jsx(ff,{asChild:!0,...n});$y.displayName=mA;var _l="SelectContent",Gy=b.forwardRef((n,r)=>{const o=Ia(_l,n.__scopeSelect),[i,u]=b.useState();if(jt(()=>{u(new DocumentFragment)},[]),!o.open){const d=i;return d?Bo.createPortal(h.jsx(Xy,{scope:n.__scopeSelect,children:h.jsx(Zs.Slot,{scope:n.__scopeSelect,children:h.jsx("div",{children:n.children})})}),d):null}return h.jsx(Qy,{...n,ref:r})});Gy.displayName=_l;var wn=10,[Xy,Wa]=Mr(_l),hA="SelectContentImpl",pA=zo("SelectContent.RemoveScroll"),Qy=b.forwardRef((n,r)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,side:m,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:E,sticky:A,hideWhenDetached:N,avoidCollisions:T,...C}=n,O=Ia(_l,o),[M,z]=b.useState(null),[q,G]=b.useState(null),H=tt(r,ee=>z(ee)),[V,le]=b.useState(null),[he,ge]=b.useState(null),fe=Ks(o),[pe,ve]=b.useState(!1),de=b.useRef(!1);b.useEffect(()=>{if(M)return Y0(M)},[M]),M0();const j=b.useCallback(ee=>{const[re,...ie]=fe().map(ne=>ne.ref.current),[Te]=ie.slice(-1),Se=document.activeElement;for(const ne of ee)if(ne===Se||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===re&&q&&(q.scrollTop=0),ne===Te&&q&&(q.scrollTop=q.scrollHeight),ne==null||ne.focus(),document.activeElement!==Se))return},[fe,q]),$=b.useCallback(()=>j([V,M]),[j,V,M]);b.useEffect(()=>{pe&&$()},[pe,$]);const{onOpenChange:J,triggerPointerDownPosRef:oe}=O;b.useEffect(()=>{if(M){let ee={x:0,y:0};const re=Te=>{var Se,ne;ee={x:Math.abs(Math.round(Te.pageX)-(((Se=oe.current)==null?void 0:Se.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((ne=oe.current)==null?void 0:ne.y)??0))}},ie=Te=>{ee.x<=10&&ee.y<=10?Te.preventDefault():M.contains(Te.target)||J(!1),document.removeEventListener("pointermove",re),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",ie,{capture:!0})}}},[M,J,oe]),b.useEffect(()=>{const ee=()=>J(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[J]);const[F,_]=cb(ee=>{const re=fe().filter(Se=>!Se.disabled),ie=re.find(Se=>Se.ref.current===document.activeElement),Te=ub(re,ee,ie);Te&&setTimeout(()=>Te.ref.current.focus())}),X=b.useCallback((ee,re,ie)=>{const Te=!de.current&&!ie;(O.value!==void 0&&O.value===re||Te)&&(le(ee),Te&&(de.current=!0))},[O.value]),Z=b.useCallback(()=>M==null?void 0:M.focus(),[M]),I=b.useCallback((ee,re,ie)=>{const Te=!de.current&&!ie;(O.value!==void 0&&O.value===re||Te)&&ge(ee)},[O.value]),W=i==="popper"?qd:Zy,ae=W===qd?{side:m,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:E,sticky:A,hideWhenDetached:N,avoidCollisions:T}:{};return h.jsx(Xy,{scope:o,content:M,viewport:q,onViewportChange:G,itemRefCallback:X,selectedItem:V,onItemLeave:Z,itemTextRefCallback:I,focusSelectedItem:$,selectedItemText:he,position:i,isPositioned:pe,searchRef:F,children:h.jsx(mf,{as:pA,allowPinchZoom:!0,children:h.jsx(df,{asChild:!0,trapped:O.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Be(u,ee=>{var re;(re=O.trigger)==null||re.focus({preventScroll:!0}),ee.preventDefault()}),children:h.jsx(uf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:h.jsx(W,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:ee=>ee.preventDefault(),...C,...ae,onPlaced:()=>ve(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:Be(C.onKeyDown,ee=>{const re=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!re&&ee.key.length===1&&_(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Te=fe().filter(Se=>!Se.disabled).map(Se=>Se.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Se=ee.target,ne=Te.indexOf(Se);Te=Te.slice(ne+1)}setTimeout(()=>j(Te)),ee.preventDefault()}})})})})})})});Qy.displayName=hA;var gA="SelectItemAlignedPosition",Zy=b.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:i,...u}=n,d=Ia(_l,o),f=Wa(_l,o),[m,y]=b.useState(null),[p,x]=b.useState(null),g=tt(r,H=>x(H)),w=Ks(o),E=b.useRef(!1),A=b.useRef(!0),{viewport:N,selectedItem:T,selectedItemText:C,focusSelectedItem:O}=f,M=b.useCallback(()=>{if(d.trigger&&d.valueNode&&m&&p&&N&&T&&C){const H=d.trigger.getBoundingClientRect(),V=p.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),he=C.getBoundingClientRect();if(d.dir!=="rtl"){const Se=he.left-V.left,ne=le.left-Se,_e=H.left-ne,Ce=H.width+_e,vt=Math.max(Ce,V.width),mt=window.innerWidth-wn,st=mv(ne,[wn,Math.max(wn,mt-vt)]);m.style.minWidth=Ce+"px",m.style.left=st+"px"}else{const Se=V.right-he.right,ne=window.innerWidth-le.right-Se,_e=window.innerWidth-H.right-ne,Ce=H.width+_e,vt=Math.max(Ce,V.width),mt=window.innerWidth-wn,st=mv(ne,[wn,Math.max(wn,mt-vt)]);m.style.minWidth=Ce+"px",m.style.right=st+"px"}const ge=w(),fe=window.innerHeight-wn*2,pe=N.scrollHeight,ve=window.getComputedStyle(p),de=parseInt(ve.borderTopWidth,10),j=parseInt(ve.paddingTop,10),$=parseInt(ve.borderBottomWidth,10),J=parseInt(ve.paddingBottom,10),oe=de+j+pe+J+$,F=Math.min(T.offsetHeight*5,oe),_=window.getComputedStyle(N),X=parseInt(_.paddingTop,10),Z=parseInt(_.paddingBottom,10),I=H.top+H.height/2-wn,W=fe-I,ae=T.offsetHeight/2,ee=T.offsetTop+ae,re=de+j+ee,ie=oe-re;if(re<=I){const Se=ge.length>0&&T===ge[ge.length-1].ref.current;m.style.bottom="0px";const ne=p.clientHeight-N.offsetTop-N.offsetHeight,_e=Math.max(W,ae+(Se?Z:0)+ne+$),Ce=re+_e;m.style.height=Ce+"px"}else{const Se=ge.length>0&&T===ge[0].ref.current;m.style.top="0px";const _e=Math.max(I,de+N.offsetTop+(Se?X:0)+ae)+ie;m.style.height=_e+"px",N.scrollTop=re-I+N.offsetTop}m.style.margin=`${wn}px 0`,m.style.minHeight=F+"px",m.style.maxHeight=fe+"px",i==null||i(),requestAnimationFrame(()=>E.current=!0)}},[w,d.trigger,d.valueNode,m,p,N,T,C,d.dir,i]);jt(()=>M(),[M]);const[z,q]=b.useState();jt(()=>{p&&q(window.getComputedStyle(p).zIndex)},[p]);const G=b.useCallback(H=>{H&&A.current===!0&&(M(),O==null||O(),A.current=!1)},[M,O]);return h.jsx(yA,{scope:o,contentWrapper:m,shouldExpandOnScrollRef:E,onScrollButtonChange:G,children:h.jsx("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:h.jsx(Ye.div,{...u,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Zy.displayName=gA;var vA="SelectPopperPosition",qd=b.forwardRef((n,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=wn,...d}=n,f=Ps(o);return h.jsx(tA,{...f,...d,ref:r,align:i,collisionPadding:u,style:{boxSizing:"border-box",...d.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)"}})});qd.displayName=vA;var[yA,jf]=Mr(_l,{}),$d="SelectViewport",Ky=b.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:i,...u}=n,d=Wa($d,o),f=jf($d,o),m=tt(r,d.onViewportChange),y=b.useRef(0);return h.jsxs(h.Fragment,{children:[h.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:i}),h.jsx(Zs.Slot,{scope:o,children:h.jsx(Ye.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Be(u.onScroll,p=>{const x=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=f;if(w!=null&&w.current&&g){const E=Math.abs(y.current-x.scrollTop);if(E>0){const A=window.innerHeight-wn*2,N=parseFloat(g.style.minHeight),T=parseFloat(g.style.height),C=Math.max(N,T);if(C<A){const O=C+E,M=Math.min(A,O),z=O-M;g.style.height=M+"px",g.style.bottom==="0px"&&(x.scrollTop=z>0?z:0,g.style.justifyContent="flex-end")}}}y.current=x.scrollTop})})})]})});Ky.displayName=$d;var Py="SelectGroup",[bA,xA]=Mr(Py),SA=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=Za();return h.jsx(bA,{scope:o,id:u,children:h.jsx(Ye.div,{role:"group","aria-labelledby":u,...i,ref:r})})});SA.displayName=Py;var Jy="SelectLabel",Fy=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=xA(Jy,o);return h.jsx(Ye.div,{id:u.id,...i,ref:r})});Fy.displayName=Jy;var _s="SelectItem",[wA,Iy]=Mr(_s),Wy=b.forwardRef((n,r)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:d,...f}=n,m=Ia(_s,o),y=Wa(_s,o),p=m.value===i,[x,g]=b.useState(d??""),[w,E]=b.useState(!1),A=tt(r,O=>{var M;return(M=y.itemRefCallback)==null?void 0:M.call(y,O,i,u)}),N=Za(),T=b.useRef("touch"),C=()=>{u||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")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 h.jsx(wA,{scope:o,value:i,disabled:u,textId:N,isSelected:p,onItemTextChange:b.useCallback(O=>{g(M=>M||((O==null?void 0:O.textContent)??"").trim())},[]),children:h.jsx(Zs.ItemSlot,{scope:o,value:i,disabled:u,textValue:x,children:h.jsx(Ye.div,{role:"option","aria-labelledby":N,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...f,ref:A,onFocus:Be(f.onFocus,()=>E(!0)),onBlur:Be(f.onBlur,()=>E(!1)),onClick:Be(f.onClick,()=>{T.current!=="mouse"&&C()}),onPointerUp:Be(f.onPointerUp,()=>{T.current==="mouse"&&C()}),onPointerDown:Be(f.onPointerDown,O=>{T.current=O.pointerType}),onPointerMove:Be(f.onPointerMove,O=>{var M;T.current=O.pointerType,u?(M=y.onItemLeave)==null||M.call(y):T.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Be(f.onPointerLeave,O=>{var M;O.currentTarget===document.activeElement&&((M=y.onItemLeave)==null||M.call(y))}),onKeyDown:Be(f.onKeyDown,O=>{var z;((z=y.searchRef)==null?void 0:z.current)!==""&&O.key===" "||(iA.includes(O.key)&&C(),O.key===" "&&O.preventDefault())})})})})});Wy.displayName=_s;var jo="SelectItemText",eb=b.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:u,...d}=n,f=Ia(jo,o),m=Wa(jo,o),y=Iy(jo,o),p=dA(jo,o),[x,g]=b.useState(null),w=tt(r,C=>g(C),y.onItemTextChange,C=>{var O;return(O=m.itemTextRefCallback)==null?void 0:O.call(m,C,y.value,y.disabled)}),E=x==null?void 0:x.textContent,A=b.useMemo(()=>h.jsx("option",{value:y.value,disabled:y.disabled,children:E},y.value),[y.disabled,y.value,E]),{onNativeOptionAdd:N,onNativeOptionRemove:T}=p;return jt(()=>(N(A),()=>T(A)),[N,T,A]),h.jsxs(h.Fragment,{children:[h.jsx(Ye.span,{id:y.textId,...d,ref:w}),y.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Bo.createPortal(d.children,f.valueNode):null]})});eb.displayName=jo;var tb="SelectItemIndicator",nb=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return Iy(tb,o).isSelected?h.jsx(Ye.span,{"aria-hidden":!0,...i,ref:r}):null});nb.displayName=tb;var Gd="SelectScrollUpButton",ab=b.forwardRef((n,r)=>{const o=Wa(Gd,n.__scopeSelect),i=jf(Gd,n.__scopeSelect),[u,d]=b.useState(!1),f=tt(r,i.onScrollButtonChange);return jt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const p=y.scrollTop>0;d(p)};const y=o.viewport;return m(),y.addEventListener("scroll",m),()=>y.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),u?h.jsx(rb,{...n,ref:f,onAutoScroll:()=>{const{viewport:m,selectedItem:y}=o;m&&y&&(m.scrollTop=m.scrollTop-y.offsetHeight)}}):null});ab.displayName=Gd;var Xd="SelectScrollDownButton",lb=b.forwardRef((n,r)=>{const o=Wa(Xd,n.__scopeSelect),i=jf(Xd,n.__scopeSelect),[u,d]=b.useState(!1),f=tt(r,i.onScrollButtonChange);return jt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const p=y.scrollHeight-y.clientHeight,x=Math.ceil(y.scrollTop)<p;d(x)};const y=o.viewport;return m(),y.addEventListener("scroll",m),()=>y.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),u?h.jsx(rb,{...n,ref:f,onAutoScroll:()=>{const{viewport:m,selectedItem:y}=o;m&&y&&(m.scrollTop=m.scrollTop+y.offsetHeight)}}):null});lb.displayName=Xd;var rb=b.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=n,d=Wa("SelectScrollButton",o),f=b.useRef(null),m=Ks(o),y=b.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return b.useEffect(()=>()=>y(),[y]),jt(()=>{var x;const p=m().find(g=>g.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[m]),h.jsx(Ye.div,{"aria-hidden":!0,...u,ref:r,style:{flexShrink:0,...u.style},onPointerDown:Be(u.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:Be(u.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:Be(u.onPointerLeave,()=>{y()})})}),EA="SelectSeparator",ob=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return h.jsx(Ye.div,{"aria-hidden":!0,...i,ref:r})});ob.displayName=EA;var Qd="SelectArrow",NA=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=Ps(o),d=Ia(Qd,o),f=Wa(Qd,o);return d.open&&f.position==="popper"?h.jsx(nA,{...u,...i,ref:r}):null});NA.displayName=Qd;var TA="SelectBubbleInput",ib=b.forwardRef(({__scopeSelect:n,value:r,...o},i)=>{const u=b.useRef(null),d=tt(i,u),f=aA(r);return b.useEffect(()=>{const m=u.current;if(!m)return;const y=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(y,"value").set;if(f!==r&&x){const g=new Event("change",{bubbles:!0});x.call(m,r),m.dispatchEvent(g)}},[f,r]),h.jsx(Ye.select,{...o,style:{...Ly,...o.style},ref:d,defaultValue:r})});ib.displayName=TA;function sb(n){return n===""||n===void 0}function cb(n){const r=Ka(n),o=b.useRef(""),i=b.useRef(0),u=b.useCallback(f=>{const m=o.current+f;r(m),(function y(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>y(""),1e3))})(m)},[r]),d=b.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,d]}function ub(n,r,o){const u=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,d=o?n.indexOf(o):-1;let f=CA(n,Math.max(d,0));u.length===1&&(f=f.filter(p=>p!==o));const y=f.find(p=>p.textValue.toLowerCase().startsWith(u.toLowerCase()));return y!==o?y:void 0}function CA(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var AA=Uy,db=Hy,RA=Yy,_A=qy,jA=$y,fb=Gy,OA=Ky,mb=Fy,hb=Wy,MA=eb,DA=nb,pb=ab,gb=lb,vb=ob;const zA=AA,kA=RA,yb=b.forwardRef(({className:n,children:r,...o},i)=>h.jsxs(db,{ref:i,className:be("flex h-10 w-full items-center justify-between rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm 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,h.jsx(_A,{asChild:!0,children:h.jsx(lf,{className:"h-4 w-4 opacity-50"})})]}));yb.displayName=db.displayName;const bb=b.forwardRef(({className:n,...r},o)=>h.jsx(pb,{ref:o,className:be("flex cursor-default items-center justify-center py-1",n),...r,children:h.jsx(Xw,{className:"h-4 w-4"})}));bb.displayName=pb.displayName;const xb=b.forwardRef(({className:n,...r},o)=>h.jsx(gb,{ref:o,className:be("flex cursor-default items-center justify-center py-1",n),...r,children:h.jsx(lf,{className:"h-4 w-4"})}));xb.displayName=gb.displayName;const Sb=b.forwardRef(({className:n,children:r,position:o="popper",...i},u)=>h.jsx(jA,{children:h.jsxs(fb,{ref:u,className:be("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[18px] border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_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,...i,children:[h.jsx(bb,{}),h.jsx(OA,{className:be("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),h.jsx(xb,{})]})}));Sb.displayName=fb.displayName;const LA=b.forwardRef(({className:n,...r},o)=>h.jsx(mb,{ref:o,className:be("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...r}));LA.displayName=mb.displayName;const wb=b.forwardRef(({className:n,children:r,...o},i)=>h.jsxs(hb,{ref:i,className:be("relative flex w-full cursor-default select-none items-center rounded-[12px] py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(DA,{children:h.jsx(a0,{className:"h-4 w-4"})})}),h.jsx(MA,{children:r})]}));wb.displayName=hb.displayName;const UA=b.forwardRef(({className:n,...r},o)=>h.jsx(vb,{ref:o,className:be("-mx-1 my-1 h-px bg-muted",n),...r}));UA.displayName=vb.displayName;var jd="rovingFocusGroup.onEntryFocus",BA={bubbles:!1,cancelable:!0},Yo="RovingFocusGroup",[Zd,Eb,HA]=my(Yo),[VA,Nb]=Ol(Yo,[HA]),[YA,qA]=VA(Yo),Tb=b.forwardRef((n,r)=>h.jsx(Zd.Provider,{scope:n.__scopeRovingFocusGroup,children:h.jsx(Zd.Slot,{scope:n.__scopeRovingFocusGroup,children:h.jsx($A,{...n,ref:r})})}));Tb.displayName=Yo;var $A=b.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=n,w=b.useRef(null),E=tt(r,w),A=Sf(d),[N,T]=Do({prop:f,defaultProp:m??null,onChange:y,caller:Yo}),[C,O]=b.useState(!1),M=Ka(p),z=Eb(o),q=b.useRef(!1),[G,H]=b.useState(0);return b.useEffect(()=>{const V=w.current;if(V)return V.addEventListener(jd,M),()=>V.removeEventListener(jd,M)},[M]),h.jsx(YA,{scope:o,orientation:i,dir:A,loop:u,currentTabStopId:N,onItemFocus:b.useCallback(V=>T(V),[T]),onItemShiftTab:b.useCallback(()=>O(!0),[]),onFocusableItemAdd:b.useCallback(()=>H(V=>V+1),[]),onFocusableItemRemove:b.useCallback(()=>H(V=>V-1),[]),children:h.jsx(Ye.div,{tabIndex:C||G===0?-1:0,"data-orientation":i,...g,ref:E,style:{outline:"none",...n.style},onMouseDown:Be(n.onMouseDown,()=>{q.current=!0}),onFocus:Be(n.onFocus,V=>{const le=!q.current;if(V.target===V.currentTarget&&le&&!C){const he=new CustomEvent(jd,BA);if(V.currentTarget.dispatchEvent(he),!he.defaultPrevented){const ge=z().filter(j=>j.focusable),fe=ge.find(j=>j.active),pe=ge.find(j=>j.id===N),de=[fe,pe,...ge].filter(Boolean).map(j=>j.ref.current);Rb(de,x)}}q.current=!1}),onBlur:Be(n.onBlur,()=>O(!1))})})}),Cb="RovingFocusGroupItem",Ab=b.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:d,children:f,...m}=n,y=Za(),p=d||y,x=qA(Cb,o),g=x.currentTabStopId===p,w=Eb(o),{onFocusableItemAdd:E,onFocusableItemRemove:A,currentTabStopId:N}=x;return b.useEffect(()=>{if(i)return E(),()=>A()},[i,E,A]),h.jsx(Zd.ItemSlot,{scope:o,id:p,focusable:i,active:u,children:h.jsx(Ye.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...m,ref:r,onMouseDown:Be(n.onMouseDown,T=>{i?x.onItemFocus(p):T.preventDefault()}),onFocus:Be(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:Be(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const C=QA(T,x.orientation,x.dir);if(C!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let M=w().filter(z=>z.focusable).map(z=>z.ref.current);if(C==="last")M.reverse();else if(C==="prev"||C==="next"){C==="prev"&&M.reverse();const z=M.indexOf(T.currentTarget);M=x.loop?ZA(M,z+1):M.slice(z+1)}setTimeout(()=>Rb(M))}}),children:typeof f=="function"?f({isCurrentTabStop:g,hasTabStop:N!=null}):f})})});Ab.displayName=Cb;var GA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function XA(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function QA(n,r,o){const i=XA(n.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return GA[i]}function Rb(n,r=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:r}),document.activeElement!==o))return}function ZA(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var KA=Tb,PA=Ab,Js="Tabs",[JA]=Ol(Js,[Nb]),_b=Nb(),[FA,Of]=JA(Js),jb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:d,orientation:f="horizontal",dir:m,activationMode:y="automatic",...p}=n,x=Sf(m),[g,w]=Do({prop:i,onChange:u,defaultProp:d??"",caller:Js});return h.jsx(FA,{scope:o,baseId:Za(),value:g,onValueChange:w,orientation:f,dir:x,activationMode:y,children:h.jsx(Ye.div,{dir:x,"data-orientation":f,...p,ref:r})})});jb.displayName=Js;var Ob="TabsList",Mb=b.forwardRef((n,r)=>{const{__scopeTabs:o,loop:i=!0,...u}=n,d=Of(Ob,o),f=_b(o);return h.jsx(KA,{asChild:!0,...f,orientation:d.orientation,dir:d.dir,loop:i,children:h.jsx(Ye.div,{role:"tablist","aria-orientation":d.orientation,...u,ref:r})})});Mb.displayName=Ob;var Db="TabsTrigger",zb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...d}=n,f=Of(Db,o),m=_b(o),y=Ub(f.baseId,i),p=Bb(f.baseId,i),x=i===f.value;return h.jsx(PA,{asChild:!0,...m,focusable:!u,active:x,children:h.jsx(Ye.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:y,...d,ref:r,onMouseDown:Be(n.onMouseDown,g=>{!u&&g.button===0&&g.ctrlKey===!1?f.onValueChange(i):g.preventDefault()}),onKeyDown:Be(n.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&f.onValueChange(i)}),onFocus:Be(n.onFocus,()=>{const g=f.activationMode!=="manual";!x&&!u&&g&&f.onValueChange(i)})})})});zb.displayName=Db;var kb="TabsContent",Lb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,forceMount:u,children:d,...f}=n,m=Of(kb,o),y=Ub(m.baseId,i),p=Bb(m.baseId,i),x=i===m.value,g=b.useRef(x);return b.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),h.jsx(Ho,{present:u||x,children:({present:w})=>h.jsx(Ye.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":y,hidden:!w,id:p,tabIndex:0,...f,ref:r,style:{...n.style,animationDuration:g.current?"0s":void 0},children:w&&d})})});Lb.displayName=kb;function Ub(n,r){return`${n}-trigger-${r}`}function Bb(n,r){return`${n}-content-${r}`}var IA=jb,Hb=Mb,Vb=zb,Yb=Lb;const WA=IA,qb=b.forwardRef(({className:n,...r},o)=>h.jsx(Hb,{ref:o,className:be("inline-flex h-10 items-center justify-center rounded-[18px] bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...r}));qb.displayName=Hb.displayName;const bs=b.forwardRef(({className:n,...r},o)=>h.jsx(Vb,{ref:o,className:be("inline-flex items-center justify-center whitespace-nowrap rounded-[14px] px-3 py-1.5 text-sm 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)] data-[state=active]:ring-1 data-[state=active]:ring-primary/22",n),...r}));bs.displayName=Vb.displayName;const xs=b.forwardRef(({className:n,...r},o)=>h.jsx(Yb,{ref:o,className:be("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}));xs.displayName=Yb.displayName;var $b="AlertDialog",[eR]=Ol($b,[$0]),ga=$0(),Gb=n=>{const{__scopeAlertDialog:r,...o}=n,i=ga(r);return h.jsx(ry,{...i,...o,modal:!0})};Gb.displayName=$b;var tR="AlertDialogTrigger",Xb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ga(o);return h.jsx(oy,{...u,...i,ref:r})});Xb.displayName=tR;var nR="AlertDialogPortal",Qb=n=>{const{__scopeAlertDialog:r,...o}=n,i=ga(r);return h.jsx(iy,{...i,...o})};Qb.displayName=nR;var aR="AlertDialogOverlay",Zb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ga(o);return h.jsx(vf,{...u,...i,ref:r})});Zb.displayName=aR;var Tr="AlertDialogContent",[lR,rR]=eR(Tr),oR=pT("AlertDialogContent"),Kb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:i,...u}=n,d=ga(o),f=b.useRef(null),m=tt(r,f),y=b.useRef(null);return h.jsx(OC,{contentName:Tr,titleName:Pb,docsSlug:"alert-dialog",children:h.jsx(lR,{scope:o,cancelRef:y,children:h.jsxs(yf,{role:"alertdialog",...d,...u,ref:m,onOpenAutoFocus:Be(u.onOpenAutoFocus,p=>{var x;p.preventDefault(),(x=y.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[h.jsx(oR,{children:i}),h.jsx(sR,{contentRef:f})]})})})});Kb.displayName=Tr;var Pb="AlertDialogTitle",Jb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ga(o);return h.jsx(bf,{...u,...i,ref:r})});Jb.displayName=Pb;var Fb="AlertDialogDescription",Ib=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ga(o);return h.jsx(xf,{...u,...i,ref:r})});Ib.displayName=Fb;var iR="AlertDialogAction",Wb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ga(o);return h.jsx(qs,{...u,...i,ref:r})});Wb.displayName=iR;var ex="AlertDialogCancel",tx=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:u}=rR(ex,o),d=ga(o),f=tt(r,u);return h.jsx(qs,{...d,...i,ref:f})});tx.displayName=ex;var sR=({contentRef:n})=>{const r=`\`${Tr}\` requires a description for the component to be accessible for screen reader users.
|
|
296
|
-
|
|
297
|
-
You can add a description to the \`${Tr}\` by passing a \`${Fb}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
298
|
-
|
|
299
|
-
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 \`${Tr}\`. 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.
|
|
300
|
-
|
|
301
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{var i;document.getElementById((i=n.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(r)},[r,n]),null},cR=Gb,uR=Xb,dR=Qb,nx=Zb,ax=Kb,lx=Wb,rx=tx,ox=Jb,ix=Ib;const Kd=cR,Pd=uR,fR=dR,sx=b.forwardRef(({className:n,...r},o)=>h.jsx(nx,{className:be("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}));sx.displayName=nx.displayName;const js=b.forwardRef(({className:n,...r},o)=>h.jsxs(fR,{children:[h.jsx(sx,{}),h.jsx(ax,{ref:o,className:be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-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})]}));js.displayName=ax.displayName;const Os=({className:n,...r})=>h.jsx("div",{className:be("flex flex-col space-y-2 text-center sm:text-left",n),...r});Os.displayName="AlertDialogHeader";const Ms=({className:n,...r})=>h.jsx("div",{className:be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Ms.displayName="AlertDialogFooter";const Ds=b.forwardRef(({className:n,...r},o)=>h.jsx(ox,{ref:o,className:be("text-lg font-semibold",n),...r}));Ds.displayName=ox.displayName;const zs=b.forwardRef(({className:n,...r},o)=>h.jsx(ix,{ref:o,className:be("text-sm text-muted-foreground",n),...r}));zs.displayName=ix.displayName;const ks=b.forwardRef(({className:n,...r},o)=>h.jsx(lx,{ref:o,className:be(cf(),n),...r}));ks.displayName=lx.displayName;const Ls=b.forwardRef(({className:n,...r},o)=>h.jsx(rx,{ref:o,className:be(cf({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));Ls.displayName=rx.displayName;const Tv=["queued","running"];function mR(n){return n==="claude"||n==="codex"}function cx(n){var o;if(n.kind!=="agent.upgrade")return null;const r=(o=n.payload)==null?void 0:o.agent;return mR(r)?`${n.nodeId}:${r}`:null}function hR(n){return n.status==="succeeded"||n.status==="failed"}async function ux(n,r={}){const o=r.getOperation??bw,i=r.pollIntervalMs??2e3,u=r.timeoutMs??24e4,d=Date.now()+u;let f=n;for(;!hR(f)&&Date.now()<d;)await gR(i),f=await o(n.id);return f}async function pR(n,r=xw){const o=new Set(n),i=await Promise.all(Tv.map(d=>r({kind:"agent.upgrade",status:d}))),u=new Map;for(const d of i.flat()){if(!Tv.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const f=cx(d);if(!f)continue;const m=u.get(f);(!m||d.updatedAt>m.updatedAt)&&u.set(f,d)}return u}function gR(n){return new Promise(r=>setTimeout(r,n))}function vR(n,r=!0){return r?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Update & restart":"Restart runtime":n!=null&&n.updateAvailable?"Update & restart follower":"Restart follower"}function yR({checkedLabel:n,isLiveLocalNode:r,nodeId:o,nodeName:i,pid:u,update:d}){const f=vR(d,r),[m,y]=b.useState(null),[p,x]=b.useState(!1),[g,w]=b.useState(!1);async function E(){if(!o||p||g)return;const N=d.updateAvailable?"update":"restart";x(!0);try{if(r){const M=await gw({reason:N});y({...M,pid:M.pid??u,status:"accepted"}),Ct.info(`Restarting ${i} from a detached helper. PID ${M.pid??u??"unknown"} will not stay attached to the original terminal window; follow ${M.logPath} for launch output.`);return}const T=await ww(o,{reason:N});y({operationId:T.id,pid:u,status:T.status}),Ct.info(`Restart requested on ${i}. Operation ${Od(T.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const C=await ux(T,{timeoutMs:6e4}),O=bR(C);y({command:O==null?void 0:O.command,logPath:O==null?void 0:O.logPath,mode:O==null?void 0:O.mode,operationId:C.id,pid:(O==null?void 0:O.pid)??u,status:C.status}),C.status==="succeeded"?Ct.success(`Restart handoff accepted on ${i}. Follow ${(O==null?void 0:O.logPath)??"the node restart log"} for launch output.`):C.status==="failed"?Ct.error(C.error??`Restart failed on ${i}`):Ct.info(`Restart operation ${Od(C.id)} is still ${C.status}. More details will update after the node reports back.`),x(!1)}catch(T){x(!1),Ct.error(T instanceof Error?T.message:"Runtime restart failed")}}async function A(){if(!(!r||p||g)){w(!0);try{const N=await vw();Ct.info(`Stopping Meshy process ${N.pid}`)}catch(N){w(!1),Ct.error(N instanceof Error?N.message:"Runtime stop failed")}}}return h.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-[11px] font-medium text-foreground",children:"Runtime update"}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:d.restartMode==="development"?"Development launcher restarts from this workspace.":`Latest ${d.latestVersion??"Unavailable"}`})]}),h.jsx(gt,{variant:d.updateAvailable?"default":"outline",className:"rounded-[11px] border-border/70 bg-background/60 font-mono text-[10px]",children:d.restartMode==="development"?"dev":d.updateAvailable?`latest ${d.latestVersion}`:"current"})]}),h.jsxs("div",{className:"mt-2 flex flex-wrap items-center justify-between gap-2",children:[h.jsxs("div",{className:"space-y-0.5 text-[10px] text-muted-foreground",children:[h.jsxs("div",{children:["Checked ",n]}),h.jsxs("div",{children:["PID ",h.jsx("span",{className:"font-mono text-foreground",children:u??"Unavailable"})]})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[r&&h.jsxs(Kd,{children:[h.jsx(Pd,{asChild:!0,children:h.jsxs($n,{type:"button",size:"sm",variant:"outline",disabled:p||g,className:"h-7 rounded-lg px-2 text-[11px]",children:[h.jsx(fE,{className:"mr-1 h-3.5 w-3.5"}),g?"Stopping":"Stop runtime"]})}),h.jsxs(js,{children:[h.jsxs(Os,{children:[h.jsx(Ds,{children:"Stop runtime?"}),h.jsx(zs,{children:"This gracefully stops the current Meshy process without launching a replacement. The dashboard will disconnect until the node is started again."})]}),h.jsxs(Ms,{children:[h.jsx(Ls,{children:"Cancel"}),h.jsx(ks,{onClick:()=>void A(),children:"Stop runtime"})]})]})]}),h.jsxs(Kd,{children:[h.jsx(Pd,{asChild:!0,children:h.jsxs($n,{type:"button",size:"sm",variant:d.updateAvailable?"default":"outline",disabled:!o||p||g,className:"h-7 rounded-lg px-2 text-[11px]",children:[h.jsx(pE,{className:be("mr-1 h-3.5 w-3.5",p&&"animate-spin")}),p?"Restarting":f]})}),h.jsxs(js,{children:[h.jsxs(Os,{children:[h.jsxs(Ds,{children:[f,"?"]}),h.jsxs(zs,{children:["This starts a detached restart helper, shuts down ",r?"the current node":i,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),h.jsxs(Ms,{children:[h.jsx(Ls,{children:"Cancel"}),h.jsx(ks,{onClick:()=>void E(),children:f})]})]})]})]})]}),h.jsxs("details",{className:"mt-2 rounded-md border border-border/60 bg-muted/30 px-2 py-1 text-[10px] text-muted-foreground",children:[h.jsx("summary",{className:"cursor-pointer select-none text-foreground",children:"More details"}),h.jsxs("div",{className:"mt-1.5 space-y-1",children:[h.jsx(Nl,{label:"Current PID",value:u===void 0?"Unavailable":String(u),mono:u!==void 0}),h.jsx(Nl,{label:"Restart PID",value:(m==null?void 0:m.pid)===void 0?"Pending":String(m.pid),mono:(m==null?void 0:m.pid)!==void 0}),h.jsx(Nl,{label:"Operation",value:m!=null&&m.operationId?Od(m.operationId):"Local direct request",mono:!!(m!=null&&m.operationId)}),h.jsx(Nl,{label:"Status",value:(m==null?void 0:m.status)??(p?"requested":"idle")}),h.jsx(Nl,{label:"Launcher",value:(m==null?void 0:m.command)??"Available after restart is accepted",mono:!!(m!=null&&m.command)}),h.jsx(Nl,{label:"Restart log",value:(m==null?void 0:m.logPath)??"Available after restart is accepted",mono:!!(m!=null&&m.logPath)}),h.jsx(Nl,{label:"Terminal",value:"Replacement process is detached from the original terminal window"})]})]}),d.detail&&h.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:d.detail})]})}function Nl({label:n,value:r,mono:o=!1}){return h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em]",children:n}),h.jsx("span",{className:be("break-all text-right text-foreground",o&&"font-mono"),children:r})]})}function bR(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 Od(n){return n.length<=8?n:n.slice(0,8)}function ms({formatDateTime:n,name:r,status:o,statusVariant:i}){return h.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:[h.jsxs("div",{children:[h.jsx("div",{className:"text-[11px] font-medium text-foreground",children:r}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&h.jsx(gt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),h.jsx(gt,{variant:i(o==null?void 0:o.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(o==null?void 0:o.status)??"unknown"})]})]})}function hn(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 xR(n){const r=Math.max(0,Math.floor(n)),o=Math.floor(r/86400),i=Math.floor(r%86400/3600),u=Math.floor(r%3600/60);return o>0?`${o}d ${i}h`:i>0?`${i}h ${u}m`:`${u}m`}function Cv(n){if(n==null||Number.isNaN(n))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=n,i=0;for(;o>=1024&&i<r.length-1;)o/=1024,i+=1;return`${o.toFixed(o>=10||i===0?0:1)} ${r[i]}`}function Oo(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function SR(n){return n.available?h.jsxs(gt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[h.jsx(_o,{className:"h-3 w-3"}),"Available"]}):h.jsxs(gt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[h.jsx(Jw,{className:"h-3 w-3"}),"Unavailable"]})}function wR(n){return n.update?n.update.updateAvailable?h.jsxs(gt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):h.jsx(gt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function ER(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 NR(n){if(n.error)return n.error;const r=n.result;return(r==null?void 0:r.detail)??null}function Ue({label:n,value:r,mono:o=!1}){return h.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:[h.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),h.jsx("span",{className:be("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function TR({agent:n,nodeName:r,activeOperation:o,onUpgrade:i}){var m,y;const u=((m=n.update)==null?void 0:m.updateAvailable)===!0,d=wR(n),f=!!o;return h.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 p-2.5 shadow-sm",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[h.jsx(n0,{className:"h-3.5 w-3.5 text-primary"}),n.label]}),h.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:["Command: ",h.jsx("span",{className:"font-mono text-[10px]",children:n.command})]})]}),h.jsxs("div",{className:"flex flex-col items-end gap-1",children:[SR(n),o?h.jsxs(gt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):u?h.jsxs(Kd,{children:[h.jsx(Pd,{asChild:!0,children:h.jsx("button",{type:"button",disabled:f,className:"rounded-full transition duration-150 hover:-translate-y-0.5 hover:scale-[1.03] hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:scale-100 disabled:hover:shadow-none",children:d})}),h.jsxs(js,{children:[h.jsxs(Os,{children:[h.jsxs(Ds,{children:["Upgrade ",n.label,"?"]}),h.jsxs(zs,{children:["This runs ",ER(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),h.jsxs(Ms,{children:[h.jsx(Ls,{children:"Cancel"}),h.jsx(ks,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):d]})]}),h.jsxs("div",{className:"mt-2 space-y-1 text-[11px]",children:[h.jsx(Ue,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&h.jsx(Ue,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),h.jsx(Ue,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path}),h.jsx(Ue,{label:"Checked",value:hn(n.checkedAt)}),n.update&&h.jsx(Ue,{label:"Update check",value:hn(n.update.checkedAt)})]}),((y=n.update)==null?void 0:y.detail)&&h.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.metadataStatus&&h.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[h.jsx(gt,{variant:Oo(n.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:n.metadataStatus}),h.jsx("span",{children:"Startup preflight"})]}),n.detail&&h.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function CR(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 AR(n,r){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:r?[r]:[]}function RR(n,r){var i;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:((i=o==null?void 0:o.runtime)==null?void 0:i.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 _R(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function jR(n){return n==="claude"?"Claude Code":"Codex"}function OR(n){var o;const r=(o=n.payload)==null?void 0:o.agent;return r==="claude"||r==="codex"?r:null}function MR({cluster:n,systemInfo:r,sseConnected:o,onRefresh:i}){var H,V,le,he,ge,fe,pe,ve,de,j,$,J,oe,F,_,X,Z,I,W,ae,ee,re,ie,Te,Se;const u=b.useMemo(()=>AR(n,r),[n,r]),[d,f]=b.useState(()=>{var ne;return(r==null?void 0:r.nodeId)??((ne=n==null?void 0:n.self)==null?void 0:ne.id)??""}),[m,y]=b.useState(()=>new Map),p=b.useRef(new Set),x=b.useRef(new Set),g=(n==null?void 0:n.self)??r??u[0]??null,w=u.find(ne=>ne.id===d)??g,E=w?RR(w,r):null,A=!!(r&&w&&w.id===r.nodeId),N=A||!!(w!=null&&w.settingsSnapshot),T=b.useMemo(()=>CR(E==null?void 0:E.packages),[E==null?void 0:E.packages]),C=E==null?void 0:E.runtimeUpdate,O=((H=E==null?void 0:E.startupRequirements)==null?void 0:H.components)??(E==null?void 0:E.components)??{},M=b.useMemo(()=>u.map(ne=>ne.id),[u]),z=M.join("\0"),q=b.useCallback(async(ne,_e)=>{const Ce=cx(ne);if(!Ce||p.current.has(ne.id))return;const vt=OR(ne),mt=u.find(De=>De.id===ne.nodeId),st=(_e==null?void 0:_e.agentLabel)??(vt?jR(vt):"Agent"),nn=(_e==null?void 0:_e.nodeName)??(mt==null?void 0:mt.name)??ne.nodeId;p.current.add(ne.id),y(De=>new Map(De).set(Ce,ne));try{const De=await ux(ne);if(De.status==="succeeded")await(i==null?void 0:i()),x.current.has(De.id)||(Ct.success(`${st} upgrade finished on ${nn}`),x.current.add(De.id));else if(De.status==="failed")x.current.has(De.id)||(Ct.error(NR(De)??`${st} upgrade failed`),x.current.add(De.id));else{y(gn=>new Map(gn).set(Ce,De)),Ct.info(`${st} upgrade is still ${De.status} on ${nn}`);return}y(gn=>{const Xt=new Map(gn),rt=Xt.get(Ce);return(!rt||rt.id===De.id)&&Xt.delete(Ce),Xt})}catch(De){y(gn=>{const Xt=new Map(gn),rt=Xt.get(Ce);return(!rt||rt.id===ne.id)&&Xt.delete(Ce),Xt}),Ct.error(De instanceof Error?De.message:`${st} upgrade failed`)}finally{p.current.delete(ne.id)}},[i,u]);b.useEffect(()=>{if(M.length===0)return;let ne=!1;async function _e(){let Ce;try{Ce=await pR(M)}catch{return}if(!ne){y(vt=>{const mt=new Map(vt);for(const[st,nn]of Ce)mt.set(st,nn);return mt});for(const vt of Ce.values())q(vt)}}return _e(),()=>{ne=!0}},[q,z]);async function G(ne){if(w)try{const _e=await Sw(w.id,ne.id);Ct.info(`${ne.label} upgrade started on ${w.name}`),await q(_e,{agentLabel:ne.label,nodeName:w.name})}catch(_e){Ct.error(_e instanceof Error?_e.message:`${ne.label} upgrade failed`)}}return!w||!E?h.jsx("div",{className:"rounded-2xl border border-dashed border-border/70 bg-muted/20 px-4 py-8 text-center text-[12px] text-muted-foreground",children:"Loading session metadata..."}):h.jsxs("div",{className:"space-y-4",children:[h.jsx("section",{className:"rounded-2xl border border-border/70 bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(255,255,255,0.72)] p-3 shadow-[0_24px_90px_-54px_rgba(15,23,42,0.55)] dark:bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(10,15,23,0.78)]",children:h.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[h.jsxs("span",{className:"flex items-center gap-1.5 rounded-full border border-border/70 bg-background/75 px-2 py-0.5 text-[10px] text-muted-foreground backdrop-blur",children:[h.jsx(C0,{status:w.status}),h.jsx("span",{className:"font-medium text-foreground",children:w.name})]}),h.jsx(SN,{role:w.role}),h.jsx(gt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:w.transportType??E.transportType??"direct"}),h.jsx(gt,{variant:A?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:A?"Live local session":"Leader-synced snapshot"})]}),h.jsxs("div",{children:[h.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),h.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),h.jsx("p",{className:"mt-1 max-w-2xl text-[11px] text-muted-foreground",children:"Inspect the selected node's runtime environment, connectivity surface, and packaged build metadata from one place."})]}),u.length>1&&h.jsxs("div",{className:"max-w-md space-y-1.5",children:[h.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),h.jsxs(zA,{value:w.id,onValueChange:f,children:[h.jsx(yb,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:h.jsx(kA,{placeholder:"Choose a node"})}),h.jsx(Sb,{children:u.map(ne=>h.jsx(wb,{value:ne.id,children:_R(ne,r==null?void 0:r.nodeId)},ne.id))})]})]})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[h.jsxs(gt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[h.jsx(o0,{className:"h-3 w-3"}),o?"Live link connected":"Live link reconnecting"]}),h.jsxs(gt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",xR(E.uptime)]}),!A&&h.jsxs(gt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Updated ",hn((V=w.settingsSnapshot)==null?void 0:V.collectedAt)]})]})]})}),!N&&h.jsx("div",{className:"rounded-xl 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."}),h.jsxs(WA,{defaultValue:"session",className:"space-y-2",children:[h.jsxs(qb,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[h.jsx(bs,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),h.jsx(bs,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),h.jsx(bs,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),h.jsxs(xs,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(vE,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),h.jsx(Un,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),h.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[h.jsx(Ue,{label:"Node ID",value:E.nodeId,mono:!0}),h.jsx(Ue,{label:"Status",value:w.status}),h.jsx(Ue,{label:"Role",value:w.role}),h.jsx(Ue,{label:"Endpoint",value:w.endpoint,mono:!0}),h.jsx(Ue,{label:"Joined",value:hn(w.joinedAt)}),h.jsx(Ue,{label:"Heartbeat",value:hn(w.lastHeartbeat)}),h.jsx(Ue,{label:"Capabilities",value:w.capabilities.length>0?w.capabilities.join(", "):"None"})]})]}),h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(eE,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),h.jsx(Un,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),h.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[h.jsx(Ue,{label:"Host",value:((le=E.os)==null?void 0:le.hostname)??"Unavailable"}),h.jsx(Ue,{label:"Platform",value:E.os?`${E.os.platform} ${E.os.release}`:"Unavailable"}),h.jsx(Ue,{label:"Arch",value:((he=E.os)==null?void 0:he.arch)??"Unavailable"}),h.jsx(Ue,{label:"CPU",value:((ge=E.os)==null?void 0:ge.cpuModel)??"Unavailable"}),h.jsx(Ue,{label:"Cores",value:String(((fe=E.os)==null?void 0:fe.cpuCount)??"Unavailable")}),h.jsx(Ue,{label:"Memory",value:E.os?`${Cv(E.os.freeMemoryBytes)} free / ${Cv(E.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)] xl:col-span-2",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(n0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),h.jsx(Un,{className:"text-[10px]",children:A?"Live command availability for Codex and Claude Code on this node.":"Most recent agent availability snapshot synced from this node."})]}),h.jsx(Bn,{className:"grid gap-2 px-3 pb-2.5 md:grid-cols-2",children:(E.agents??[]).map(ne=>h.jsx(TR,{agent:ne,nodeName:w.name,activeOperation:m.get(`${w.id}:${ne.id}`),onUpgrade:G},ne.id))})]})]}),h.jsxs(xs,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(Hw,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),h.jsx(Un,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),h.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[h.jsx(Ue,{label:"Transport",value:w.transportType??E.transportType??"direct"}),h.jsx(Ue,{label:"Node URL",value:w.endpoint,mono:!0}),h.jsx(Ue,{label:"Node tunnel",value:w.devtunnelEndpoint??"Disabled",mono:!!w.devtunnelEndpoint}),h.jsx(Ue,{label:"Dashboard URL",value:w.dashboardOrigin??E.localDashboardOrigin??"Unavailable",mono:!!(w.dashboardOrigin||E.localDashboardOrigin)}),h.jsx(Ue,{label:"Local dashboard",value:E.localDashboardOrigin??"Unavailable",mono:!!E.localDashboardOrigin})]})]}),h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(SE,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),h.jsx(Un,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),h.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[h.jsx(Ue,{label:"Enabled",value:(pe=E.auth)!=null&&pe.enabled?"Yes":"No"}),h.jsx(Ue,{label:"Same tenant",value:(ve=E.auth)!=null&&ve.allowSameTenant?"Allowed":"Off"}),h.jsx(Ue,{label:"Allowed users",value:(de=E.auth)!=null&&de.allowedUsers.length?E.auth.allowedUsers.join(", "):"None"})]})]}),h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(lE,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),h.jsx(Un,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),h.jsxs(Bn,{className:"space-y-0 px-3 pb-2.5",children:[h.jsx(Ue,{label:"Work dir",value:((j=E.runtime)==null?void 0:j.workDir)??E.workDir??"Unavailable",mono:!!((($=E.runtime)==null?void 0:$.workDir)??E.workDir)}),h.jsx(Ue,{label:"Storage",value:((J=E.runtime)==null?void 0:J.storagePath)??"Unavailable",mono:!!((oe=E.runtime)!=null&&oe.storagePath)}),h.jsx(Ue,{label:"Process cwd",value:((F=E.runtime)==null?void 0:F.cwd)??"Unavailable",mono:!!((_=E.runtime)!=null&&_.cwd)}),h.jsx(Ue,{label:"Started",value:hn((X=E.runtime)==null?void 0:X.startedAt)}),h.jsx(Ue,{label:"PID",value:E.runtime?String(E.runtime.pid):"Unavailable",mono:!!E.runtime})]})]}),h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(zd,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),h.jsx(Un,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),h.jsxs(Bn,{className:"space-y-3 px-3 pb-2.5",children:[h.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[h.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),h.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:hn((Z=E.startupRequirements)==null?void 0:Z.lastCheckedAt)})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(ms,{formatDateTime:hn,name:"Azure CLI",status:O.az,statusVariant:Oo}),h.jsx(ms,{formatDateTime:hn,name:"DevTunnel",status:O.devtunnel,statusVariant:Oo}),h.jsx(ms,{formatDateTime:hn,name:"Claude Code",status:O.claude,statusVariant:Oo}),h.jsx(ms,{formatDateTime:hn,name:"Codex",status:O.codex,statusVariant:Oo})]})]})]})]}),h.jsxs(xs,{value:"about",className:"mt-0 grid gap-2 xl:grid-cols-[0.92fr_1.08fr]",children:[h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(Lw,{className:"h-3.5 w-3.5 text-primary"}),"Repository"]}),h.jsx(Un,{className:"text-[10px]",children:"Source-of-truth repository metadata for this running node."})]}),h.jsxs(Bn,{className:"space-y-3 px-3 pb-2.5",children:[(I=E.repository)!=null&&I.url?h.jsxs("a",{href:E.repository.url,target:"_blank",rel:"noreferrer",className:"group flex items-center justify-between rounded-lg 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:[h.jsx("span",{className:"font-mono text-[10px]",children:E.repository.url}),h.jsx(nE,{className:"h-3.5 w-3.5 text-muted-foreground transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}):h.jsx("div",{className:"rounded-lg 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."}),h.jsxs("div",{className:"space-y-0",children:[h.jsx(Ue,{label:"Branch",value:((W=E.repository)==null?void 0:W.branch)??"Unavailable",mono:!!((ae=E.repository)!=null&&ae.branch)}),h.jsx(Ue,{label:"Commit",value:((ee=E.repository)==null?void 0:ee.commit)??"Unavailable",mono:!!((re=E.repository)!=null&&re.commit)}),h.jsx(Ue,{label:"Runtime",value:`${E.packageName??"meshy"} ${E.version}`,mono:!0}),h.jsx(Ue,{label:"Node.js",value:((ie=E.runtime)==null?void 0:ie.nodeVersion)??"Unavailable",mono:!!((Te=E.runtime)!=null&&Te.nodeVersion)})]})]})]}),h.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[h.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[h.jsxs(Ln,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(oE,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),h.jsx(Un,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),h.jsxs(Bn,{className:"space-y-1.5 px-3 pb-2.5",children:[C&&h.jsx(yR,{checkedLabel:hn(C.checkedAt),isLiveLocalNode:A,nodeId:w.id,nodeName:w.name,pid:(Se=E.runtime)==null?void 0:Se.pid,update:C}),T.map(ne=>{var _e,Ce;return h.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-[11px] font-medium text-foreground",children:ne.label}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:(_e=ne.value)==null?void 0:_e.name})]}),h.jsx(gt,{variant:"outline",className:"rounded-[11px] border-border/70 bg-background/60 font-mono text-[10px]",children:(Ce=ne.value)==null?void 0:Ce.version})]},ne.key)})]})]})]})]})]})}function DR(){const{cluster:n,systemInfo:r,sseConnected:o,refresh:i}=e0(),[u,d]=b.useState(!1);return h.jsxs(kC,{open:u,onOpenChange:d,children:[h.jsx(LC,{asChild:!0,children:h.jsx($n,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-[16px] border border-border/70 bg-background/70 shadow-sm",children:h.jsx(bE,{className:"h-4 w-4"})})}),h.jsxs(cy,{className:"grid h-[min(82vh,42rem)] max-h-[82vh] max-w-[min(90vw,56rem)] grid-rows-[auto_minmax(0,1fr)] overflow-hidden rounded-[22px] border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[h.jsxs(uy,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[h.jsxs(dy,{className:"flex items-center gap-1.5 text-[12px]",children:[h.jsx(sE,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),h.jsx(fy,{className:"text-[11px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),h.jsx("div",{className:"min-h-0 overflow-y-auto px-3 py-2.5 sm:px-4 sm:py-3",children:h.jsx(MR,{cluster:n,systemInfo:r,sseConnected:o,onRefresh:i})})]})]})}const e_="bypass",zR=[{value:"claudecode",label:"claudecode",supportsFollowUp:!0},{value:"codex",label:"codex",supportsFollowUp:!0},{value:"mars",label:"mars",disabled:!0,description:"coming soon"},{value:"eureka",label:"eureka",disabled:!0,description:"coming soon"}],t_=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],n_=new Set(zR.filter(n=>n.supportsFollowUp).map(n=>n.value)),a_=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],l_=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],kR=new Set(["pending","assigned"]),LR=new Set(["running"]),UR=new Set(["completed","failed","cancelled"]);function r_(n,r){switch(r){case"running":return LR.has(n.status);case"waiting":return kR.has(n.status);case"closed":return UR.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function o_(n,r){if(r==="all")return!0;const o=n.conversationKind==="nativeSession";return r==="native"?o:!o}function i_(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(i=>i.toLowerCase().includes(o)):!0}function BR(n,r,o){if(!n)return"unassigned";const i=r==null?void 0:r.find(u=>u.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function s_(n,r,o){return BR(n,r,o).toLowerCase()}function c_(n,r){return[...n].sort((o,i)=>o.id===r?-1:i.id===r?1:o.name.localeCompare(i.name))}function u_(n){if(!n||typeof n!="object")return null;const r=n,o=r.createMode,i=o==="chat"||o==="native"?o: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:i}}function d_(n){switch(n){case"running":return"bg-amber-500";case"completed":return"bg-emerald-500";case"failed":return"bg-destructive";case"cancelled":case"archived":return"bg-slate-400";case"assigned":return"bg-teal-500";case"pending":default:return"bg-muted-foreground"}}function f_(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function m_(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 h_(n){return new Date(n).toLocaleString()}function p_(n){const r=Math.floor(n/1e3),o=Math.floor(r/3600),i=Math.floor(r%3600/60),u=r%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(u).padStart(2,"0")}`}async function HR(n,r="Copied to clipboard"){var o,i,u;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),Ct.success(r),!0;const d=globalThis.document,f=(u=d==null?void 0:d.execCommand)==null?void 0:u.bind(d);if(!(d!=null&&d.body)||typeof d.createElement!="function"||typeof f!="function")throw new Error("Clipboard access is unavailable");const m=d.createElement("textarea"),y=d.activeElement,p=y&&typeof y.focus=="function"?y:null;m.value=n,m.setAttribute("readonly","true"),m.style.position="fixed",m.style.opacity="0",m.style.pointerEvents="none",d.body.appendChild(m),m.select(),m.setSelectionRange(0,m.value.length);const x=f("copy");if(d.body.removeChild(m),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return Ct.success(r),!0}catch(d){return Ct.error(d instanceof Error?d.message:"Failed to copy"),!1}}function g_(n,r,o){const i=new Map;for(const d of n){const f=d.assignedTo??null,m=f??"__unassigned__",y=f?r.get(f)??d.assignedNodeName??f.slice(0,8):"Unassigned",p=d.effectiveProjectPath??d.project??"default workspace";i.has(m)||i.set(m,{nodeId:f,nodeName:y,dirMap:new Map});const x=i.get(m);x.dirMap.has(p)||x.dirMap.set(p,[]),x.dirMap.get(p).push(d)}const u=Array.from(i.values()).map(({nodeId:d,nodeName:f,dirMap:m})=>{const y=Array.from(m.entries()).map(([p,x])=>({path:p,tasks:x})).sort((p,x)=>x.tasks.length-p.tasks.length||p.path.localeCompare(x.path));return{nodeId:d,nodeName:f,dirs:y}});return u.sort((d,f)=>{if(o){if(d.nodeId===o)return-1;if(f.nodeId===o)return 1}return d.nodeId===null?1:f.nodeId===null?-1:d.nodeName.localeCompare(f.nodeName)}),u}const VR={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"};function YR(n){return n.split(".")[0]??"unknown"}function qR(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function wr(n,r){return(r==null?void 0:r.get(n))??n}function dx(n,r){const o=n.data,i=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${wr(o.nodeId,r)} left (${o.reason})`;case"node.status":return`${wr(o.nodeId,r)} is now ${o.status}`;case"node.operation.created":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${wr(i==null?void 0:i.nodeId,r)}`;case"node.operation.updated":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${wr(i==null?void 0:i.nodeId,r)}`;case"transport.changed":return`${wr(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${wr(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 $R(n){return JSON.stringify(n,null,2)}function GR({events:n,maxHeight:r="400px",nodeNameById:o,onDismiss:i}){return n.length===0?null:h.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:h.jsx("div",{className:"space-y-1.5",children:n.map(u=>{const d=YR(u.type);return h.jsx("div",{className:"rounded-lg px-1.5 py-1 transition-colors hover:bg-muted/30",children:h.jsxs("div",{className:"space-y-1",children:[h.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[h.jsx("div",{className:"font-mono text-[9px] text-muted-foreground",children:qR(u.timestamp)}),h.jsx(gt,{variant:"outline",className:be("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",VR[d]),children:u.type})]}),h.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[h.jsx($n,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-[8px] text-muted-foreground",onClick:()=>void HR($R(u),"Event copied"),"aria-label":`Copy ${u.type} event`,title:"Copy event",children:h.jsx(Iw,{className:"h-3 w-3"})}),i&&h.jsx($n,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-[8px] text-muted-foreground hover:text-foreground",onClick:()=>i(u.id),"aria-label":`Dismiss ${u.type} event`,title:"Dismiss event",children:h.jsx(s0,{className:"h-3 w-3"})})]})]}),h.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:dx(u,o)})]})},u.id)})})})}const XR=["node.","election.","transport."],QR="cluster.state";function ZR(n){return n.type==="node.status"?!1:XR.some(r=>n.type.startsWith(r))}function KR(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function PR(n,r){return n?{time:KR(n.timestamp),text:dx(n,r)}:null}function JR(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function FR(n){if(n.length===0)return"No node tunnel";const r=n.filter(u=>u.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(u=>{var d;return((d=u.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(o>0)return`${o} failed`;const i=n.filter(u=>{var d;return u.status!=="offline"&&((d=u.devtunnelHealth)==null?void 0:d.status)!=="healthy"}).length;return i>0?`${i} checking`:"Healthy"}function IR(n,r){var u;const o=(r==null?void 0:r.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const i=((u=n.devtunnelHealth)==null?void 0:u.status)??"checking";return{label:o,status:i}}function WR(n){if(n.length===0)return"No nodes";const r=n.filter(i=>i.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(i=>i.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function e3(n,r){return{label:(r==null?void 0:r.get(n.id))??n.name??n.id,status:n.status}}function t3({connected:n,events:r,nodes:o=[],nodeNameById:i,defaultOpen:u=!1}){const[d,f]=b.useState(u),[m,y]=b.useState(!0),[p,x]=b.useState(new Set),g=b.useRef(null),w=b.useMemo(()=>r.filter(z=>ZR(z)&&!p.has(z.id)),[r,p]),E=b.useMemo(()=>r.find(z=>z.type===QR)??w[0],[r,w]),A=b.useMemo(()=>PR(E,i),[E,i]),N=b.useMemo(()=>o.filter(JR),[o]),T=N.some(z=>{var q;return z.status==="offline"||((q=z.devtunnelHealth)==null?void 0:q.status)==="failed"}),C=o.some(z=>z.status==="offline"),O=o.some(z=>z.status==="busy"),M=o.length>0;return b.useEffect(()=>{x(z=>{if(z.size===0)return z;const q=new Set(r.map(H=>H.id)),G=new Set(Array.from(z).filter(H=>q.has(H)));return G.size===z.size?z:G})},[r]),b.useEffect(()=>{if(!d)return;const z=G=>{var H;(H=g.current)!=null&&H.contains(G.target)||f(!1)},q=G=>{G.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",z),document.addEventListener("keydown",q),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("keydown",q)}},[d]),h.jsxs("div",{ref:g,className:"relative",children:[h.jsxs("button",{type:"button","aria-expanded":d,"aria-haspopup":"dialog",onClick:()=>f(z=>!z),className:be("flex items-center gap-1.5 rounded-[16px] border px-2 py-1.5 text-[11px] shadow-sm transition-all sm:gap-2 sm:px-3 sm:py-2 sm:text-xs",n?"border-emerald-500/25 bg-emerald-500/8 text-muted-foreground hover:border-emerald-500/40 hover:bg-emerald-500/12":"border-destructive/25 bg-destructive/8 text-muted-foreground hover:border-destructive/40 hover:bg-destructive/12",d&&"shadow-[0_14px_40px_-26px_rgba(16,185,129,0.95)]"),title:n?"Live link connected":"Live link reconnecting",children:[h.jsx(o0,{className:be("h-3.5 w-3.5",n?"text-emerald-500":"text-destructive")}),n?"Live link":"Reconnecting"]}),d&&h.jsxs("div",{role:"dialog","aria-label":"Live link connection events",className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-[18px] 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:[h.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[n?h.jsx(zd,{className:"h-3 w-3 text-emerald-500"}):h.jsx(RE,{className:"h-3 w-3 text-destructive"}),h.jsx("span",{className:"text-[10px] font-semibold text-foreground",children:"Live link"}),h.jsx("span",{className:"text-[9px] text-muted-foreground",children:n?"· SSE connected":"· reconnecting"})]}),h.jsx("div",{className:be("rounded-[9px] 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"})]})}),h.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[h.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[h.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),h.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:w.length})]}),h.jsxs("div",{className:"min-w-0 px-2.5 py-1.5",children:[h.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Latest"}),A?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:A.text}),h.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:A.time})]}):h.jsx("div",{className:"mt-0.5 text-[8px] text-muted-foreground/50",children:"—"})]})]}),h.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[C?h.jsx(as,{className:"h-3 w-3 shrink-0 text-destructive"}):O?h.jsx(zd,{className:"h-3 w-3 shrink-0 text-amber-500"}):h.jsx(_o,{className:be("h-3 w-3 shrink-0",M?"text-emerald-500":"text-muted-foreground")}),h.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Node health"})]}),h.jsx("span",{className:be("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",C?"border-destructive/30 bg-destructive/10 text-destructive":O?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":M?"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:WR(o)})]}),o.length>0&&h.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:o.map(z=>{const{label:q,status:G}=e3(z,i),H=G==="offline",V=G==="busy";return h.jsxs("div",{"aria-label":`${q} ${G}`,className:be("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",H?"bg-destructive/6":V?"bg-amber-500/6":"bg-emerald-500/5"),title:`${q} ${G}`,children:[h.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:q}),H?h.jsx(as,{className:"h-3 w-3 shrink-0 text-destructive"}):V?h.jsx($g,{className:"h-3 w-3 shrink-0 text-amber-500"}):h.jsx(_o,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},z.id)})})]}),N.length>0&&h.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[T?h.jsx(as,{className:"h-3 w-3 shrink-0 text-destructive"}):h.jsx(_o,{className:"h-3 w-3 shrink-0 text-emerald-500"}),h.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"DevTunnel"})]}),h.jsx("span",{className:be("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",T?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:FR(N)})]}),h.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:N.map(z=>{var he;const{label:q,status:G}=IR(z,i),H=G==="failed"||G==="offline",V=G!=="healthy"&&G!=="failed"&&G!=="offline",le=(he=z.devtunnelHealth)!=null&&he.reason?`${q} ${G}: ${z.devtunnelHealth.reason}`:`${q} ${G}`;return h.jsxs("div",{"aria-label":`${q} ${G}`,className:be("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",H?"bg-destructive/6":V?"bg-muted/30":"bg-emerald-500/5"),title:le,children:[h.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:q}),H?h.jsx(as,{className:"h-3 w-3 shrink-0 text-destructive"}):V?h.jsx($g,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):h.jsx(_o,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},z.id)})})]}),h.jsxs("div",{children:[h.jsxs("button",{type:"button",onClick:()=>y(z=>!z),className:"flex w-full items-center justify-between px-2.5 py-1.5 text-left hover:bg-muted/30",children:[h.jsxs("span",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",w.length>0&&`(${w.length})`]}),m?h.jsx(lf,{className:"h-3 w-3 text-muted-foreground"}):h.jsx($w,{className:"h-3 w-3 text-muted-foreground"})]}),m&&h.jsx("div",{className:"px-2 pb-2",children:h.jsx(GR,{events:w,maxHeight:"12rem",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:i,onDismiss:z=>x(q=>new Set(q).add(z))})})]}),h.jsxs("div",{className:"flex items-center justify-end gap-1 border-t border-border/60 px-2.5 py-1",children:[h.jsx($n,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>x(new Set(r.map(z=>z.id))),disabled:w.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),h.jsx($n,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>f(!1),children:"Close"})]})]})]})}const fx=b.createContext(null);function n3({children:n}){const[r,o]=b.useState(()=>typeof window<"u"?localStorage.getItem("meshy-theme")??"system":"system"),[i,u]=b.useState(()=>typeof window<"u"?localStorage.getItem("meshy-palette")??"default":"default");return b.useEffect(()=>{const d=document.documentElement,f=m=>{if(m==="system"){const y=window.matchMedia("(prefers-color-scheme: dark)").matches;d.classList.toggle("dark",y)}else d.classList.toggle("dark",m==="dark")};if(f(r),localStorage.setItem("meshy-theme",r),r==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>f("system");return m.addEventListener("change",y),()=>m.removeEventListener("change",y)}},[r]),b.useEffect(()=>{const d=document.documentElement;i==="default"?d.removeAttribute("data-palette"):d.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),h.jsx(fx.Provider,{value:{theme:r,setTheme:o,palette:i,setPalette:u},children:n})}function a3(){const n=b.useContext(fx);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}const l3=[{value:"light",label:"Light",icon:i0},{value:"dark",label:"Dark",icon:r0},{value:"system",label:"System",icon:l0}],r3=[{value:"default",label:"Default",hint:"Porcelain + blue"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"inshield",label:"inShield",hint:"Pure white + navy"},{value:"edge",label:"Edge",hint:"Rounded violet panels"}];function o3(){const{theme:n,setTheme:r,palette:o,setPalette:i}=a3(),[u,d]=b.useState(!1),f=b.useRef(null),m=b.useRef(null),y=n==="dark"?r0:n==="light"?i0:l0,p=()=>{f.current&&(clearTimeout(f.current),f.current=null)},x=()=>{p(),f.current=setTimeout(()=>d(!1),180)};return b.useEffect(()=>{if(!u)return;const g=w=>{m.current&&!m.current.contains(w.target)&&d(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[u]),b.useEffect(()=>()=>p(),[]),h.jsxs("div",{ref:m,className:"relative",onMouseEnter:()=>{p(),d(!0)},onMouseLeave:x,children:[h.jsx($n,{variant:"ghost",size:"icon",onClick:()=>d(g=>!g),className:be("rounded-[16px] border bg-background/70",o==="default"?"border-border/60":"border-primary/60 text-primary"),title:"Appearance","aria-haspopup":"menu","aria-expanded":u,children:h.jsx(y,{className:"h-4 w-4"})}),u&&h.jsxs("div",{role:"menu",className:"absolute right-0 top-[calc(100%+8px)] z-50 w-64 rounded-[20px] border border-border/70 bg-popover/95 p-3 text-popover-foreground shadow-[0_24px_80px_-32px_rgba(0,0,0,0.35)] backdrop-blur-xl",children:[h.jsx("div",{className:"px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),h.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1",children:l3.map(({value:g,label:w,icon:E})=>{const A=n===g;return h.jsxs("button",{type:"button",onClick:()=>r(g),className:be("flex flex-col items-center gap-1 rounded-[14px] border px-2 py-2 text-[11px] font-medium transition-colors",A?"border-primary/50 bg-primary/10 text-primary":"border-border/60 text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"),children:[h.jsx(E,{className:"h-4 w-4"}),w]},g)})}),h.jsxs("div",{className:"mt-2 flex items-center gap-1.5 px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[h.jsx(EE,{className:"h-3 w-3"}),"Palette"]}),h.jsx("div",{className:"space-y-1",children:r3.map(({value:g,label:w,hint:E})=>{const A=o===g;return h.jsxs("button",{type:"button",onClick:()=>i(g),className:be("flex w-full items-center gap-2 rounded-[14px] border px-2.5 py-1.5 text-left transition-colors",A?"border-primary/50 bg-primary/10":"border-transparent hover:bg-muted/60"),children:[h.jsx(i3,{value:g}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:be("text-[12px] font-medium",A?"text-primary":"text-foreground"),children:w}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:E})]}),A&&h.jsx(a0,{className:"h-3.5 w-3.5 text-primary"})]},g)})})]})]})}function i3({value:n}){const r={default:["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%)"],inshield:["hsl(220 25% 12%)","hsl(0 0% 100%)","hsl(195 80% 55%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"]},[o,i,u]=r[n];return h.jsxs("div",{className:be("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60",n==="edge"?"rounded-[10px]":"rounded-[12px]"),children:[h.jsx("div",{className:"h-full w-1/3",style:{background:o}}),h.jsx("div",{className:"h-full w-1/3",style:{background:i}}),h.jsx("div",{className:"h-full w-1/3",style:{background:u}})]})}function s3(){var y,p;const{cluster:n,events:r,sseConnected:o}=e0(),i=Gn(),[u,d]=b.useState(!1),f=i.pathname==="/"||/^\/tasks\/[^/]+$/.test(i.pathname),m=b.useMemo(()=>{const x=new Map;for(const g of(n==null?void 0:n.nodes)??[])x.set(g.id,g.name);return x},[n==null?void 0:n.nodes]);return h.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[h.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),h.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[h.jsx("header",{className:"relative z-50 shrink-0 px-2 pb-2 pt-3 sm:px-5 sm:pb-3 sm:pt-4 lg:px-6",children:h.jsxs("div",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex max-w-[1760px] flex-wrap items-center justify-between gap-2 rounded-[22px] px-3 py-2 sm:gap-3 sm:rounded-[24px] sm:px-4 sm:py-3",children:[h.jsx("div",{className:"flex min-w-0 items-center gap-4",children:h.jsxs(Jv,{to:"/",className:"flex items-center gap-3",children:[h.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-[15px] border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background shadow-sm sm:h-11 sm:w-11 sm:rounded-[17px] sm:text-sm",children:"M"}),h.jsxs("div",{className:"hidden min-w-0 sm:block",children:[h.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.34em] text-muted-foreground",children:"MESHY"}),h.jsx("div",{className:"truncate text-base font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),h.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[h.jsxs("div",{className:"hidden items-center gap-2 rounded-[16px] border border-border/70 bg-background/70 px-3 py-2 text-xs text-muted-foreground shadow-sm sm:flex",children:[h.jsxs("span",{className:"flex items-center gap-2",children:[(n==null?void 0:n.self)&&h.jsx(C0,{status:n.self.status}),h.jsx("span",{className:"font-medium text-foreground",children:((y=n==null?void 0:n.self)==null?void 0:y.name)??"offline"})]}),h.jsx("span",{className:"text-border",children:"/"}),h.jsx("span",{className:"capitalize",children:((p=n==null?void 0:n.self)==null?void 0:p.role)??"node"})]}),h.jsx(t3,{connected:o,events:r,nodes:(n==null?void 0:n.nodes)??[],nodeNameById:m}),f&&h.jsx($n,{variant:"ghost",size:"icon",onClick:()=>d(x=>!x),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:be("rounded-[16px] border bg-background/70 shadow-sm",u?"border-primary/50 bg-primary/10 text-primary":"border-border/70"),children:h.jsx(CE,{className:"h-4 w-4"})}),h.jsx(DR,{}),h.jsx(o3,{})]})]})}),h.jsx("main",{className:be("min-h-0 flex-1 px-3 pb-3 sm:px-5 lg:px-6",f?"overflow-hidden":"overflow-y-auto"),children:h.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:h.jsx(M2,{context:{terminalOpen:u,setTerminalOpen:d}})})})]})]})}const Av=b.lazy(async()=>({default:(await jv(()=>import("./DashboardPage-ByMFp2Hx.js").then(r=>r.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),c3=b.lazy(async()=>({default:(await jv(()=>import("./SharedConversationPage-hyt9OBkY.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function u3(){return h.jsx(lw,{children:h.jsx(b.Suspense,{fallback:h.jsx(d3,{}),children:h.jsxs(z2,{children:[h.jsx(Tl,{path:"/shared/tasks/:shareId",element:h.jsx(c3,{})}),h.jsxs(Tl,{element:h.jsx(Aw,{children:h.jsx(s3,{})}),children:[h.jsx(Tl,{path:"/",element:h.jsx(Av,{})}),h.jsx(Tl,{path:"/nodes",element:h.jsx(Vg,{to:"/",replace:!0})}),h.jsx(Tl,{path:"/tasks",element:h.jsx(Vg,{to:"/",replace:!0})}),h.jsx(Tl,{path:"/tasks/:id",element:h.jsx(Av,{})})]})]})})})}function d3(){return h.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function f3(n){return h.jsx(JN,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}DS.createRoot(document.getElementById("root")).render(h.jsx(b.StrictMode,{children:h.jsxs(n3,{children:[h.jsx(u3,{}),h.jsx(f3,{})]})}));export{Ls as $,zR as A,gt as B,a0 as C,cy as D,EE as E,lE as F,j3 as G,kC as H,Iw as I,HR as J,BR as K,WA as L,F3 as M,qb as N,bs as O,I3 as P,h_ as Q,xs as R,wb as S,t_ as T,Kd as U,js as V,Os as W,s0 as X,Ds as Y,zs as Z,Ms as _,WN as a,Y3 as a$,ks as a0,jv as a1,C3 as a2,CE as a3,_o as a4,Jw as a5,T3 as a6,A3 as a7,N3 as a8,c_ as a9,L3 as aA,h3 as aB,Gn as aC,Yv as aD,m3 as aE,e0 as aF,u_ as aG,r_ as aH,o_ as aI,s_ as aJ,i_ as aK,_3 as aL,n_ as aM,LR as aN,U3 as aO,z3 as aP,k3 as aQ,D3 as aR,M3 as aS,g3 as aT,y3 as aU,p3 as aV,b3 as aW,G3 as aX,$3 as aY,q3 as aZ,V3 as a_,o0 as aa,GR as ab,C0 as ac,nE as ad,SN as ae,p_ as af,kR as ag,Ho as ah,Ye as ai,Do as aj,tt as ak,Be as al,aA as am,Q5 as an,Ol as ao,g_ as ap,a_ as aq,l_ as ar,f_ as as,d_ as at,m_ as au,Pd as av,B3 as aw,H3 as ax,R3 as ay,Nw as az,be as b,X3 as b0,Xw as b1,Rv as b2,K3 as b3,Z3 as b4,Q3 as b5,pE as b6,P3 as b7,W3 as b8,J3 as b9,$e as c,T0 as d,v3 as e,uy as f,dy as g,BC as h,$n as i,h as j,S3 as k,E3 as l,bw as m,x3 as n,$w as o,e_ as p,w3 as q,b as r,O3 as s,Ct as t,zA as u,yb as v,kA as w,Sb as x,n0 as y,lf as z};
|