meshy-node 0.3.6 → 0.3.8
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-BGDwH7LG.js +119 -0
- package/dashboard/assets/DashboardShared-C3sx-Aj3.js +54 -0
- package/dashboard/assets/{DiffTab-D32e4GZ0.js → DiffTab-DF380dMh.js} +3 -3
- package/dashboard/assets/{FilesTab-JtS0K69s.js → FilesTab-DZ2CIfBe.js} +1 -1
- package/dashboard/assets/{PreviewTab-DjvNLJqk.js → PreviewTab-DGzp5vs_.js} +2 -2
- package/dashboard/assets/SharedConversationPage-6Y6HiGBv.js +7 -0
- package/dashboard/assets/{file-DEAybfOx.js → file-CkjhxpTi.js} +1 -1
- package/dashboard/assets/{folder-BgNe6kvb.js → folder-DcAuKKJN.js} +1 -1
- package/dashboard/assets/index-DfiptIs_.css +1 -0
- package/dashboard/assets/index-U21aiFFx.js +276 -0
- package/dashboard/assets/input-BA2z1FFh.js +1 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +569 -309
- package/package.json +1 -1
- package/runtime-metadata.json +5 -5
- package/dashboard/assets/DashboardPage-CBz6UrRs.js +0 -119
- package/dashboard/assets/DashboardShared-CsdH5gbQ.js +0 -54
- package/dashboard/assets/SharedConversationPage-DkfDIi1Q.js +0 -12
- package/dashboard/assets/index-BZEpNAD0.css +0 -1
- package/dashboard/assets/index-CTmXIGF9.js +0 -271
- package/dashboard/assets/input-zoVCGkkt.js +0 -1
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-CBz6UrRs.js","assets/DashboardShared-CsdH5gbQ.js","assets/input-zoVCGkkt.js","assets/folder-BgNe6kvb.js","assets/SharedConversationPage-DkfDIi1Q.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function pS(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 f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(n,u,f.get?f:{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 f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function o(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(u){if(u.ep)return;u.ep=!0;const f=o(u);fetch(u.href,f)}})();function dv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Iu={exports:{}},No={};/**
|
|
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 ig;function gS(){if(ig)return No;ig=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:i,key:d,ref:u!==void 0?u:null,props:f}}return No.Fragment=r,No.jsx=o,No.jsxs=o,No}var sg;function vS(){return sg||(sg=1,Iu.exports=gS()),Iu.exports}var y=vS(),Wu={exports:{}},we={};/**
|
|
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 cg;function yS(){if(cg)return we;cg=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"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),w=Symbol.iterator;function N(_){return _===null||typeof _!="object"?null:(_=w&&_[w]||_["@@iterator"],typeof _=="function"?_:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function C(_,G,X){this.props=_,this.context=G,this.refs=T,this.updater=X||A}C.prototype.isReactComponent={},C.prototype.setState=function(_,G){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,_,G,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=C.prototype;function D(_,G,X){this.props=_,this.context=G,this.refs=T,this.updater=X||A}var B=D.prototype=new j;B.constructor=D,E(B,C.prototype),B.isPureReactComponent=!0;var Z=Array.isArray;function F(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function le(_,G,X){var W=X.ref;return{$$typeof:n,type:_,key:G,ref:W!==void 0?W:null,props:X}}function he(_,G){return le(_.type,G,_.props)}function pe(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function fe(_){var G={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(X){return G[X]})}var me=/\/+/g;function ge(_,G){return typeof _=="object"&&_!==null&&_.key!=null?fe(""+_.key):G.toString(36)}function ue(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(F,F):(_.status="pending",_.then(function(G){_.status==="pending"&&(_.status="fulfilled",_.value=G)},function(G){_.status==="pending"&&(_.status="rejected",_.reason=G)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function O(_,G,X,W,P){var ne=typeof _;(ne==="undefined"||ne==="boolean")&&(_=null);var ee=!1;if(_===null)ee=!0;else switch(ne){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,O(ee(_._payload),G,X,W,P)}}if(ee)return P=P(_),ee=W===""?"."+ge(_,0):W,Z(P)?(X="",ee!=null&&(X=ee.replace(me,"$&/")+"/"),O(P,G,X,"",function(Ce){return Ce})):P!=null&&(pe(P)&&(P=he(P,X+(P.key==null||_&&_.key===P.key?"":(""+P.key).replace(me,"$&/")+"/")+ee)),G.push(P)),1;ee=0;var ae=W===""?".":W+":";if(Z(_))for(var ie=0;ie<_.length;ie++)W=_[ie],ne=ae+ge(W,ie),ee+=O(W,G,X,ne,P);else if(ie=N(_),typeof ie=="function")for(_=ie.call(_),ie=0;!(W=_.next()).done;)W=W.value,ne=ae+ge(W,ie++),ee+=O(W,G,X,ne,P);else if(ne==="object"){if(typeof _.then=="function")return O(ue(_),G,X,W,P);throw G=String(_),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Y(_,G,X){if(_==null)return _;var W=[],P=0;return O(_,W,"","",function(ne){return G.call(X,ne,P++)}),W}function J(_){if(_._status===-1){var G=_._result;G=G(),G.then(function(X){(_._status===0||_._status===-1)&&(_._status=1,_._result=X)},function(X){(_._status===0||_._status===-1)&&(_._status=2,_._result=X)}),_._status===-1&&(_._status=0,_._result=G)}if(_._status===1)return _._result.default;throw _._result}var re=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},I={map:Y,forEach:function(_,G,X){Y(_,function(){G.apply(this,arguments)},X)},count:function(_){var G=0;return Y(_,function(){G++}),G},toArray:function(_){return Y(_,function(G){return G})||[]},only:function(_){if(!pe(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return we.Activity=m,we.Children=I,we.Component=C,we.Fragment=o,we.Profiler=u,we.PureComponent=D,we.StrictMode=i,we.Suspense=v,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,we.__COMPILER_RUNTIME={__proto__:null,c:function(_){return q.H.useMemoCache(_)}},we.cache=function(_){return function(){return _.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(_,G,X){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var W=E({},_.props),P=_.key;if(G!=null)for(ne in G.key!==void 0&&(P=""+G.key),G)!V.call(G,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&G.ref===void 0||(W[ne]=G[ne]);var ne=arguments.length-2;if(ne===1)W.children=X;else if(1<ne){for(var ee=Array(ne),ae=0;ae<ne;ae++)ee[ae]=arguments[ae+2];W.children=ee}return le(_.type,P,W)},we.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},we.createElement=function(_,G,X){var W,P={},ne=null;if(G!=null)for(W in G.key!==void 0&&(ne=""+G.key),G)V.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(P[W]=G[W]);var ee=arguments.length-2;if(ee===1)P.children=X;else if(1<ee){for(var ae=Array(ee),ie=0;ie<ee;ie++)ae[ie]=arguments[ie+2];P.children=ae}if(_&&_.defaultProps)for(W in ee=_.defaultProps,ee)P[W]===void 0&&(P[W]=ee[W]);return le(_,ne,P)},we.createRef=function(){return{current:null}},we.forwardRef=function(_){return{$$typeof:h,render:_}},we.isValidElement=pe,we.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:J}},we.memo=function(_,G){return{$$typeof:p,type:_,compare:G===void 0?null:G}},we.startTransition=function(_){var G=q.T,X={};q.T=X;try{var W=_(),P=q.S;P!==null&&P(X,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(F,re)}catch(ne){re(ne)}finally{G!==null&&X.types!==null&&(G.types=X.types),q.T=G}},we.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},we.use=function(_){return q.H.use(_)},we.useActionState=function(_,G,X){return q.H.useActionState(_,G,X)},we.useCallback=function(_,G){return q.H.useCallback(_,G)},we.useContext=function(_){return q.H.useContext(_)},we.useDebugValue=function(){},we.useDeferredValue=function(_,G){return q.H.useDeferredValue(_,G)},we.useEffect=function(_,G){return q.H.useEffect(_,G)},we.useEffectEvent=function(_){return q.H.useEffectEvent(_)},we.useId=function(){return q.H.useId()},we.useImperativeHandle=function(_,G,X){return q.H.useImperativeHandle(_,G,X)},we.useInsertionEffect=function(_,G){return q.H.useInsertionEffect(_,G)},we.useLayoutEffect=function(_,G){return q.H.useLayoutEffect(_,G)},we.useMemo=function(_,G){return q.H.useMemo(_,G)},we.useOptimistic=function(_,G){return q.H.useOptimistic(_,G)},we.useReducer=function(_,G,X){return q.H.useReducer(_,G,X)},we.useRef=function(_){return q.H.useRef(_)},we.useState=function(_){return q.H.useState(_)},we.useSyncExternalStore=function(_,G,X){return q.H.useSyncExternalStore(_,G,X)},we.useTransition=function(){return q.H.useTransition()},we.version="19.2.4",we}var ug;function Lf(){return ug||(ug=1,Wu.exports=yS()),Wu.exports}var b=Lf();const te=dv(b),Uf=pS({__proto__:null,default:te},[b]);var ef={exports:{}},To={},tf={exports:{}},nf={};/**
|
|
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 fg;function bS(){return fg||(fg=1,(function(n){function r(O,Y){var J=O.length;O.push(Y);e:for(;0<J;){var re=J-1>>>1,I=O[re];if(0<u(I,Y))O[re]=Y,O[J]=I,J=re;else break e}}function o(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var Y=O[0],J=O.pop();if(J!==Y){O[0]=J;e:for(var re=0,I=O.length,_=I>>>1;re<_;){var G=2*(re+1)-1,X=O[G],W=G+1,P=O[W];if(0>u(X,J))W<I&&0>u(P,X)?(O[re]=P,O[W]=J,re=W):(O[re]=X,O[G]=J,re=G);else if(W<I&&0>u(P,J))O[re]=P,O[W]=J,re=W;else break e}}return Y}function u(O,Y){var J=O.sortIndex-Y.sortIndex;return J!==0?J:O.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var v=[],p=[],x=1,m=null,w=3,N=!1,A=!1,E=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function B(O){for(var Y=o(p);Y!==null;){if(Y.callback===null)i(p);else if(Y.startTime<=O)i(p),Y.sortIndex=Y.expirationTime,r(v,Y);else break;Y=o(p)}}function Z(O){if(E=!1,B(O),!A)if(o(v)!==null)A=!0,F||(F=!0,fe());else{var Y=o(p);Y!==null&&ue(Z,Y.startTime-O)}}var F=!1,q=-1,V=5,le=-1;function he(){return T?!0:!(n.unstable_now()-le<V)}function pe(){if(T=!1,F){var O=n.unstable_now();le=O;var Y=!0;try{e:{A=!1,E&&(E=!1,j(q),q=-1),N=!0;var J=w;try{t:{for(B(O),m=o(v);m!==null&&!(m.expirationTime>O&&he());){var re=m.callback;if(typeof re=="function"){m.callback=null,w=m.priorityLevel;var I=re(m.expirationTime<=O);if(O=n.unstable_now(),typeof I=="function"){m.callback=I,B(O),Y=!0;break t}m===o(v)&&i(v),B(O)}else i(v);m=o(v)}if(m!==null)Y=!0;else{var _=o(p);_!==null&&ue(Z,_.startTime-O),Y=!1}}break e}finally{m=null,w=J,N=!1}Y=void 0}}finally{Y?fe():F=!1}}}var fe;if(typeof D=="function")fe=function(){D(pe)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ge=me.port2;me.port1.onmessage=pe,fe=function(){ge.postMessage(null)}}else fe=function(){C(pe,0)};function ue(O,Y){q=C(function(){O(n.unstable_now())},Y)}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(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(O){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var J=w;w=Y;try{return O()}finally{w=J}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var J=w;w=O;try{return Y()}finally{w=J}},n.unstable_scheduleCallback=function(O,Y,J){var re=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?re+J:re):J=re,O){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=J+I,O={id:x++,callback:Y,priorityLevel:O,startTime:J,expirationTime:I,sortIndex:-1},J>re?(O.sortIndex=J,r(p,O),o(v)===null&&O===o(p)&&(E?(j(q),q=-1):E=!0,ue(Z,J-re))):(O.sortIndex=I,r(v,O),A||N||(A=!0,F||(F=!0,fe()))),O},n.unstable_shouldYield=he,n.unstable_wrapCallback=function(O){var Y=w;return function(){var J=w;w=Y;try{return O.apply(this,arguments)}finally{w=J}}}})(nf)),nf}var dg;function xS(){return dg||(dg=1,tf.exports=bS()),tf.exports}var af={exports:{}},Nt={};/**
|
|
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 mg;function SS(){if(mg)return Nt;mg=1;var n=Lf();function r(v){var p="https://react.dev/errors/"+v;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 #"+v+"; 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 f(v,p,x){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:m==null?null:""+m,children:v,containerInfo:p,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Nt.createPortal=function(v,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 f(v,p,null,x)},Nt.flushSync=function(v){var p=d.T,x=i.p;try{if(d.T=null,i.p=2,v)return v()}finally{d.T=p,i.p=x,i.d.f()}},Nt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(v,p))},Nt.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},Nt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,m=h(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:w,fetchPriority:N}):x==="script"&&i.d.X(v,{crossOrigin:m,integrity:w,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Nt.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);i.d.M(v,{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(v)},Nt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,m=h(x,p.crossOrigin);i.d.L(v,x,{crossOrigin:m,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})}},Nt.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=h(p.as,p.crossOrigin);i.d.m(v,{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(v)},Nt.requestFormReset=function(v){i.d.r(v)},Nt.unstable_batchedUpdates=function(v,p){return v(p)},Nt.useFormState=function(v,p,x){return d.H.useFormState(v,p,x)},Nt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Nt.version="19.2.4",Nt}var hg;function mv(){if(hg)return af.exports;hg=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(),af.exports=SS(),af.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 pg;function wS(){if(pg)return To;pg=1;var n=xS(),r=Lf(),o=mv();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 f(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 d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(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 v(e){if(f(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=f(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 v(s),e;if(c===l)return v(s),t;c=c.sibling}throw Error(i(188))}if(a.return!==l.return)a=s,l=c;else{for(var g=!1,S=s.child;S;){if(S===a){g=!0,a=s,l=c;break}if(S===l){g=!0,l=s,a=c;break}S=S.sibling}if(!g){for(S=c.child;S;){if(S===a){g=!0,a=c,l=s;break}if(S===l){g=!0,l=c,a=s;break}S=S.sibling}if(!g)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 m=Object.assign,w=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),D=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case Z:return"Suspense";case F:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case D:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var ue=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},re=[],I=-1;function _(e){return{current:e}}function G(e){0>I||(e.current=re[I],re[I]=null,I--)}function X(e,t){I++,re[I]=e.current,e.current=t}var W=_(null),P=_(null),ne=_(null),ee=_(null);function ae(e,t){switch(X(ne,t),X(P,e),X(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Op(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Op(t),e=Mp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),X(W,e)}function ie(){G(W),G(P),G(ne)}function Ce(e){e.memoizedState!==null&&X(ee,e);var t=W.current,a=Mp(t,e.type);t!==a&&(X(P,e),X(W,a))}function Ee(e){P.current===e&&(G(W),G(P)),ee.current===e&&(G(ee),xo._currentValue=J)}var Se,tt;function Xe(e){if(Se===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",tt=-1<a.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+Se+e+tt}var fn=!1;function It(e,t){if(!e||fn)return"";fn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(H){var U=H}Reflect.construct(e,[],K)}else{try{K.call()}catch(H){U=H}e.call(K.prototype)}}else{try{throw Error()}catch(H){U=H}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.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(),g=c[0],S=c[1];if(g&&S){var R=g.split(`
|
|
45
|
-
`),L=S.split(`
|
|
46
|
-
`);for(s=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(l===R.length||s===L.length)for(l=R.length-1,s=L.length-1;1<=l&&0<=s&&R[l]!==L[s];)s--;for(;1<=l&&0<=s;l--,s--)if(R[l]!==L[s]){if(l!==1||s!==1)do if(l--,s--,0>s||R[l]!==L[s]){var $=`
|
|
47
|
-
`+R[l].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=l&&0<=s);break}}}finally{fn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Xe(a):""}function Yt(e,t){switch(e.tag){case 26:case 27:case 5:return Xe(e.type);case 16:return Xe("Lazy");case 13:return e.child!==t&&t!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return It(e.type,!1);case 11:return It(e.type.render,!1);case 1:return It(e.type,!0);case 31:return Xe("Activity");default:return""}}function Ja(e){try{var t="",a=null;do t+=Yt(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
48
|
-
Error generating stack: `+l.message+`
|
|
49
|
-
`+l.stack}}var dt=Object.prototype.hasOwnProperty,Or=n.unstable_scheduleCallback,Mr=n.unstable_cancelCallback,Ct=n.unstable_shouldYield,fa=n.unstable_requestPaint,At=n.unstable_now,Vs=n.unstable_getCurrentPriorityLevel,Fa=n.unstable_ImmediatePriority,Ho=n.unstable_UserBlockingPriority,Ia=n.unstable_NormalPriority,Dr=n.unstable_LowPriority,Vn=n.unstable_IdlePriority,Vo=n.log,da=n.unstable_setDisableYieldValue,Wa=null,Rt=null;function dn(e){if(typeof Vo=="function"&&da(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Wa,e)}catch{}}var wt=Math.clz32?Math.clz32:wn,Ys=Math.log,jr=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(Ys(e)/jr|0)|0}var _l=256,Ol=262144,el=4194304;function En(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 be(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~c,l!==0?s=En(l):(g&=S,g!==0?s=En(g):a||(a=S&~e,a!==0&&(s=En(a))))):(S=l&~c,S!==0?s=En(S):g!==0?s=En(g):a||(a=l&~e,a!==0&&(s=En(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 Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mt(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 Et(){var e=el;return el<<=1,(el&62914560)===0&&(el=4194304),e}function ma(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ot(e,t,a,l,s,c){var g=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,L=e.hiddenUpdates;for(a=g&~a;0<a;){var $=31-wt(a),K=1<<$;S[$]=0,R[$]=-1;var U=L[$];if(U!==null)for(L[$]=null,$=0;$<U.length;$++){var H=U[$];H!==null&&(H.lane&=-536870913)}a&=~K}l!==0&&tl(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function tl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-wt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Mt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-wt(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function Dt(e,t){var a=t&-t;return a=(a&42)!==0?1:Ml(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ml(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 mn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qs(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:eg(e.type))}function gd(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var ha=Math.random().toString(36).slice(2),gt="__reactFiber$"+ha,jt="__reactProps$"+ha,Dl="__reactContainer$"+ha,Gs="__reactEvents$"+ha,lx="__reactListeners$"+ha,rx="__reactHandles$"+ha,vd="__reactResources$"+ha,zr="__reactMarker$"+ha;function $s(e){delete e[gt],delete e[jt],delete e[Gs],delete e[lx],delete e[rx]}function jl(e){var t=e[gt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Dl]||a[gt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Bp(e);e!==null;){if(a=e[gt])return a;e=Bp(e)}return t}e=a,a=e.parentNode}return null}function zl(e){if(e=e[gt]||e[Dl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function kl(e){var t=e[vd];return t||(t=e[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[zr]=!0}var yd=new Set,bd={};function nl(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(bd[e]=t,e=0;e<t.length;e++)yd.add(t[e])}var ox=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]*$"),xd={},Sd={};function ix(e){return dt.call(Sd,e)?!0:dt.call(xd,e)?!1:ox.test(e)?Sd[e]=!0:(xd[e]=!0,!1)}function Yo(e,t,a){if(ix(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 qo(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 Yn(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 Wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sx(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(g){a=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){if(!e._valueTracker){var t=wd(e)?"checked":"value";e._valueTracker=sx(e,t,""+e[t])}}function Ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=wd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Go(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 cx=/[\n"\\]/g;function en(e){return e.replace(cx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Qs(e,t,a,l,s,c,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Wt(t)):e.value!==""+Wt(t)&&(e.value=""+Wt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Zs(e,g,Wt(t)):a!=null?Zs(e,g,Wt(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=""+Wt(S):e.removeAttribute("name")}function Nd(e,t,a,l,s,c,g,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)){Xs(e);return}a=a!=null?""+Wt(a):"",t=t!=null?""+Wt(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,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Xs(e)}function Zs(e,t,a){t==="number"&&Go(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ul(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=""+Wt(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 Td(e,t,a){if(t!=null&&(t=""+Wt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Wt(a):""}function Cd(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(i(92));if(ue(l)){if(1<l.length)throw Error(i(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Wt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Xs(e)}function Bl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ux=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 Ad(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||ux.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Rd(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&&Ad(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&Ad(e,c,t[c])}function Ks(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 fx=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"]]),dx=/^[\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 $o(e){return dx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qn(){}var Ps=null;function Js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,Vl=null;function _d(e){var t=zl(e);if(t&&(e=t.stateNode)){var a=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qs(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="'+en(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[jt]||null;if(!s)throw Error(i(90));Qs(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&&Ed(l)}break e;case"textarea":Td(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ul(e,!!a.multiple,t,!1)}}}var Fs=!1;function Od(e,t,a){if(Fs)return e(t,a);Fs=!0;try{var l=e(t);return l}finally{if(Fs=!1,(Hl!==null||Vl!==null)&&(Mi(),Hl&&(t=Hl,e=Vl,Vl=Hl=null,_d(t),e)))for(t=0;t<e.length;t++)_d(e[t])}}function Lr(e,t){var a=e.stateNode;if(a===null)return null;var l=a[jt]||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 Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Is=!1;if(Gn)try{var Ur={};Object.defineProperty(Ur,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{Is=!1}var pa=null,Ws=null,Xo=null;function Md(){if(Xo)return Xo;var e,t=Ws,a=t.length,l,s="value"in pa?pa.value:pa.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var g=a-e;for(l=1;l<=g&&t[a-l]===s[c-l];l++);return Xo=s.slice(e,1<l?1-l:void 0)}function Qo(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 Zo(){return!0}function Dd(){return!1}function zt(e){function t(a,l,s,c,g){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=g,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)?Zo:Dd,this.isPropagationStopped=Dd,this}return m(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=Zo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Zo)},persist:function(){},isPersistent:Zo}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ko=zt(al),Br=m({},al,{view:0,detail:0}),mx=zt(Br),ec,tc,Hr,Po=m({},Br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ac,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!==Hr&&(Hr&&e.type==="mousemove"?(ec=e.screenX-Hr.screenX,tc=e.screenY-Hr.screenY):tc=ec=0,Hr=e),ec)},movementY:function(e){return"movementY"in e?e.movementY:tc}}),jd=zt(Po),hx=m({},Po,{dataTransfer:0}),px=zt(hx),gx=m({},Br,{relatedTarget:0}),nc=zt(gx),vx=m({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),yx=zt(vx),bx=m({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xx=zt(bx),Sx=m({},al,{data:0}),zd=zt(Sx),wx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ex={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"},Nx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nx[e])?!!t[e]:!1}function ac(){return Tx}var Cx=m({},Br,{key:function(e){if(e.key){var t=wx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ex[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ac,charCode:function(e){return e.type==="keypress"?Qo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ax=zt(Cx),Rx=m({},Po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=zt(Rx),_x=m({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ac}),Ox=zt(_x),Mx=m({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dx=zt(Mx),jx=m({},Po,{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}),zx=zt(jx),kx=m({},al,{newState:0,oldState:0}),Lx=zt(kx),Ux=[9,13,27,32],lc=Gn&&"CompositionEvent"in window,Vr=null;Gn&&"documentMode"in document&&(Vr=document.documentMode);var Bx=Gn&&"TextEvent"in window&&!Vr,Ld=Gn&&(!lc||Vr&&8<Vr&&11>=Vr),Ud=" ",Bd=!1;function Hd(e,t){switch(e){case"keyup":return Ux.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Hx(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(Bd=!0,Ud);case"textInput":return e=t.data,e===Ud&&Bd?null:e;default:return null}}function Vx(e,t){if(Yl)return e==="compositionend"||!lc&&Hd(e,t)?(e=Md(),Xo=Ws=pa=null,Yl=!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 Ld&&t.locale!=="ko"?null:t.data;default:return null}}var Yx={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Yx[e.type]:t==="textarea"}function qd(e,t,a,l){Hl?Vl?Vl.push(l):Vl=[l]:Hl=l,t=Bi(t,"onChange"),0<t.length&&(a=new Ko("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Yr=null,qr=null;function qx(e){Np(e,0)}function Jo(e){var t=kr(e);if(Ed(t))return e}function Gd(e,t){if(e==="change")return t}var $d=!1;if(Gn){var rc;if(Gn){var oc="oninput"in document;if(!oc){var Xd=document.createElement("div");Xd.setAttribute("oninput","return;"),oc=typeof Xd.oninput=="function"}rc=oc}else rc=!1;$d=rc&&(!document.documentMode||9<document.documentMode)}function Qd(){Yr&&(Yr.detachEvent("onpropertychange",Zd),qr=Yr=null)}function Zd(e){if(e.propertyName==="value"&&Jo(qr)){var t=[];qd(t,qr,e,Js(e)),Od(qx,t)}}function Gx(e,t,a){e==="focusin"?(Qd(),Yr=t,qr=a,Yr.attachEvent("onpropertychange",Zd)):e==="focusout"&&Qd()}function $x(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jo(qr)}function Xx(e,t){if(e==="click")return Jo(t)}function Qx(e,t){if(e==="input"||e==="change")return Jo(t)}function Zx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:Zx;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(!dt.call(t,s)||!qt(e[s],t[s]))return!1}return!0}function Kd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pd(e,t){var a=Kd(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=Kd(a)}}function Jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Go(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=Go(e.document)}return t}function ic(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 Kx=Gn&&"documentMode"in document&&11>=document.documentMode,ql=null,sc=null,$r=null,cc=!1;function Id(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cc||ql==null||ql!==Go(l)||(l=ql,"selectionStart"in l&&ic(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}),$r&&Gr($r,l)||($r=l,l=Bi(sc,"onSelect"),0<l.length&&(t=new Ko("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=ql)))}function ll(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Gl={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},uc={},Wd={};Gn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function rl(e){if(uc[e])return uc[e];if(!Gl[e])return e;var t=Gl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Wd)return uc[e]=t[a];return e}var em=rl("animationend"),tm=rl("animationiteration"),nm=rl("animationstart"),Px=rl("transitionrun"),Jx=rl("transitionstart"),Fx=rl("transitioncancel"),am=rl("transitionend"),lm=new Map,fc="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(" ");fc.push("scrollEnd");function hn(e,t){lm.set(e,t),nl(t,[e])}var Fo=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)},tn=[],$l=0,dc=0;function Io(){for(var e=$l,t=dc=$l=0;t<e;){var a=tn[t];tn[t++]=null;var l=tn[t];tn[t++]=null;var s=tn[t];tn[t++]=null;var c=tn[t];if(tn[t++]=null,l!==null&&s!==null){var g=l.pending;g===null?s.next=s:(s.next=g.next,g.next=s),l.pending=s}c!==0&&rm(a,s,c)}}function Wo(e,t,a,l){tn[$l++]=e,tn[$l++]=t,tn[$l++]=a,tn[$l++]=l,dc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function mc(e,t,a,l){return Wo(e,t,a,l),ei(e)}function ol(e,t){return Wo(e,null,null,t),ei(e)}function rm(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-wt(a),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),c):null}function ei(e){if(50<mo)throw mo=0,wu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xl={};function Ix(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 Gt(e,t,a,l){return new Ix(e,t,a,l)}function hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $n(e,t){var a=e.alternate;return a===null?(a=Gt(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 om(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 ti(e,t,a,l,s,c){var g=0;if(l=e,typeof e=="function")hc(e)&&(g=1);else if(typeof e=="string")g=aS(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Gt(31,a,t,s),e.elementType=le,e.lanes=c,e;case E:return il(a.children,s,c,t);case T:g=8,s|=24;break;case C:return e=Gt(12,a,t,s|2),e.elementType=C,e.lanes=c,e;case Z:return e=Gt(13,a,t,s),e.elementType=Z,e.lanes=c,e;case F:return e=Gt(19,a,t,s),e.elementType=F,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:g=10;break e;case j:g=9;break e;case B:g=11;break e;case q:g=14;break e;case V:g=16,l=null;break e}g=29,a=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Gt(g,a,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function il(e,t,a,l){return e=Gt(7,e,l,t),e.lanes=a,e}function pc(e,t,a){return e=Gt(6,e,null,t),e.lanes=a,e}function im(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function gc(e,t,a){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sm=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var a=sm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ja(t)},sm.set(e,t),t)}return{value:e,source:t,stack:Ja(t)}}var Ql=[],Zl=0,ni=null,Xr=0,an=[],ln=0,ga=null,Nn=1,Tn="";function Xn(e,t){Ql[Zl++]=Xr,Ql[Zl++]=ni,ni=e,Xr=t}function cm(e,t,a){an[ln++]=Nn,an[ln++]=Tn,an[ln++]=ga,ga=e;var l=Nn;e=Tn;var s=32-wt(l)-1;l&=~(1<<s),a+=1;var c=32-wt(t)+s;if(30<c){var g=s-s%5;c=(l&(1<<g)-1).toString(32),l>>=g,s-=g,Nn=1<<32-wt(t)+s|a<<s|l,Tn=c+e}else Nn=1<<c|a<<s|l,Tn=e}function vc(e){e.return!==null&&(Xn(e,1),cm(e,1,0))}function yc(e){for(;e===ni;)ni=Ql[--Zl],Ql[Zl]=null,Xr=Ql[--Zl],Ql[Zl]=null;for(;e===ga;)ga=an[--ln],an[ln]=null,Tn=an[--ln],an[ln]=null,Nn=an[--ln],an[ln]=null}function um(e,t){an[ln++]=Nn,an[ln++]=Tn,an[ln++]=ga,Nn=t.id,Tn=t.overflow,ga=e}var vt=null,Ze=null,je=!1,va=null,rn=!1,bc=Error(i(519));function ya(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qr(nn(t,e)),bc}function fm(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[gt]=e,t[jt]=l,a){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(a=0;a<po.length;a++)_e(po[a],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),Nd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),Cd(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||Rp(t.textContent,a)?(l.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),l.onScroll!=null&&_e("scroll",t),l.onScrollEnd!=null&&_e("scrollend",t),l.onClick!=null&&(t.onclick=qn),t=!0):t=!1,t||ya(e,!0)}function dm(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:vt=vt.return}}function Kl(e){if(e!==vt)return!1;if(!je)return dm(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Uu(e.type,e.memoizedProps)),a=!a),a&&Ze&&ya(e),dm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ze=Up(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ze=Up(e)}else t===27?(t=Ze,Da(e.type)?(e=qu,qu=null,Ze=e):Ze=t):Ze=vt?sn(e.stateNode.nextSibling):null;return!0}function sl(){Ze=vt=null,je=!1}function xc(){var e=va;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),va=null),e}function Qr(e){va===null?va=[e]:va.push(e)}var Sc=_(null),cl=null,Qn=null;function ba(e,t,a){X(Sc,t._currentValue),t._currentValue=a}function Zn(e){e._currentValue=Sc.current,G(Sc)}function wc(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 Ec(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var g=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),wc(c.return,a,e),l||(g=null);break e}c=S.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(i(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),wc(g,a,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function Pl(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 g=s.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var S=s.type;qt(s.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(s===ee.current){if(g=s.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(xo):e=[xo])}s=s.return}e!==null&&Ec(t,e,a,l),t.flags|=262144}function ai(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){cl=e,Qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return mm(cl,e)}function li(e,t){return cl===null&&ul(e),mm(e,t)}function mm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Qn===null){if(e===null)throw Error(i(308));Qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qn=Qn.next=t;return a}var Wx=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()})}},e1=n.unstable_scheduleCallback,t1=n.unstable_NormalPriority,ot={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nc(){return{controller:new Wx,data:new Map,refCount:0}}function Zr(e){e.refCount--,e.refCount===0&&e1(t1,function(){e.controller.abort()})}var Kr=null,Tc=0,Jl=0,Fl=null;function n1(e,t){if(Kr===null){var a=Kr=[];Tc=0,Jl=Ru(),Fl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Tc++,t.then(hm,hm),t}function hm(){if(--Tc===0&&Kr!==null){Fl!==null&&(Fl.status="fulfilled");var e=Kr;Kr=null,Jl=0,Fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function a1(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 pm=O.S;O.S=function(e,t){Ih=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&n1(e,t),pm!==null&&pm(e,t)};var fl=_(null);function Cc(){var e=fl.current;return e!==null?e:Qe.pooledCache}function ri(e,t){t===null?X(fl,fl.current):X(fl,t.pool)}function gm(){var e=Cc();return e===null?null:{parent:ot._currentValue,pool:e}}var Il=Error(i(460)),Ac=Error(i(474)),oi=Error(i(542)),ii={then:function(){}};function vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ym(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(qn,qn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e;default:if(typeof t.status=="string")t.then(qn,qn);else{if(e=Qe,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,xm(e),e}throw ml=t,Il}}function dl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ml=a,Il):a}}var ml=null;function bm(){if(ml===null)throw Error(i(459));var e=ml;return ml=null,e}function xm(e){if(e===Il||e===oi)throw Error(i(483))}var Wl=null,Pr=0;function si(e){var t=Pr;return Pr+=1,Wl===null&&(Wl=[]),ym(Wl,e,t)}function Jr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ci(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 Sm(e){function t(z,M){if(e){var k=z.deletions;k===null?(z.deletions=[M],z.flags|=16):k.push(M)}}function a(z,M){if(!e)return null;for(;M!==null;)t(z,M),M=M.sibling;return null}function l(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function s(z,M){return z=$n(z,M),z.index=0,z.sibling=null,z}function c(z,M,k){return z.index=k,e?(k=z.alternate,k!==null?(k=k.index,k<M?(z.flags|=67108866,M):k):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function g(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function S(z,M,k,Q){return M===null||M.tag!==6?(M=pc(k,z.mode,Q),M.return=z,M):(M=s(M,k),M.return=z,M)}function R(z,M,k,Q){var ve=k.type;return ve===E?$(z,M,k.props.children,Q,k.key):M!==null&&(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&dl(ve)===M.type)?(M=s(M,k.props),Jr(M,k),M.return=z,M):(M=ti(k.type,k.key,k.props,null,z.mode,Q),Jr(M,k),M.return=z,M)}function L(z,M,k,Q){return M===null||M.tag!==4||M.stateNode.containerInfo!==k.containerInfo||M.stateNode.implementation!==k.implementation?(M=gc(k,z.mode,Q),M.return=z,M):(M=s(M,k.children||[]),M.return=z,M)}function $(z,M,k,Q,ve){return M===null||M.tag!==7?(M=il(k,z.mode,Q,ve),M.return=z,M):(M=s(M,k),M.return=z,M)}function K(z,M,k){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=pc(""+M,z.mode,k),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return k=ti(M.type,M.key,M.props,null,z.mode,k),Jr(k,M),k.return=z,k;case A:return M=gc(M,z.mode,k),M.return=z,M;case V:return M=dl(M),K(z,M,k)}if(ue(M)||fe(M))return M=il(M,z.mode,k,null),M.return=z,M;if(typeof M.then=="function")return K(z,si(M),k);if(M.$$typeof===D)return K(z,li(z,M),k);ci(z,M)}return null}function U(z,M,k,Q){var ve=M!==null?M.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ve!==null?null:S(z,M,""+k,Q);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case N:return k.key===ve?R(z,M,k,Q):null;case A:return k.key===ve?L(z,M,k,Q):null;case V:return k=dl(k),U(z,M,k,Q)}if(ue(k)||fe(k))return ve!==null?null:$(z,M,k,Q,null);if(typeof k.then=="function")return U(z,M,si(k),Q);if(k.$$typeof===D)return U(z,M,li(z,k),Q);ci(z,k)}return null}function H(z,M,k,Q,ve){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return z=z.get(k)||null,S(M,z,""+Q,ve);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case N:return z=z.get(Q.key===null?k:Q.key)||null,R(M,z,Q,ve);case A:return z=z.get(Q.key===null?k:Q.key)||null,L(M,z,Q,ve);case V:return Q=dl(Q),H(z,M,k,Q,ve)}if(ue(Q)||fe(Q))return z=z.get(k)||null,$(M,z,Q,ve,null);if(typeof Q.then=="function")return H(z,M,k,si(Q),ve);if(Q.$$typeof===D)return H(z,M,k,li(M,Q),ve);ci(M,Q)}return null}function oe(z,M,k,Q){for(var ve=null,Le=null,de=M,Te=M=0,Me=null;de!==null&&Te<k.length;Te++){de.index>Te?(Me=de,de=null):Me=de.sibling;var Ue=U(z,de,k[Te],Q);if(Ue===null){de===null&&(de=Me);break}e&&de&&Ue.alternate===null&&t(z,de),M=c(Ue,M,Te),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue,de=Me}if(Te===k.length)return a(z,de),je&&Xn(z,Te),ve;if(de===null){for(;Te<k.length;Te++)de=K(z,k[Te],Q),de!==null&&(M=c(de,M,Te),Le===null?ve=de:Le.sibling=de,Le=de);return je&&Xn(z,Te),ve}for(de=l(de);Te<k.length;Te++)Me=H(de,z,Te,k[Te],Q),Me!==null&&(e&&Me.alternate!==null&&de.delete(Me.key===null?Te:Me.key),M=c(Me,M,Te),Le===null?ve=Me:Le.sibling=Me,Le=Me);return e&&de.forEach(function(Ua){return t(z,Ua)}),je&&Xn(z,Te),ve}function ye(z,M,k,Q){if(k==null)throw Error(i(151));for(var ve=null,Le=null,de=M,Te=M=0,Me=null,Ue=k.next();de!==null&&!Ue.done;Te++,Ue=k.next()){de.index>Te?(Me=de,de=null):Me=de.sibling;var Ua=U(z,de,Ue.value,Q);if(Ua===null){de===null&&(de=Me);break}e&&de&&Ua.alternate===null&&t(z,de),M=c(Ua,M,Te),Le===null?ve=Ua:Le.sibling=Ua,Le=Ua,de=Me}if(Ue.done)return a(z,de),je&&Xn(z,Te),ve;if(de===null){for(;!Ue.done;Te++,Ue=k.next())Ue=K(z,Ue.value,Q),Ue!==null&&(M=c(Ue,M,Te),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue);return je&&Xn(z,Te),ve}for(de=l(de);!Ue.done;Te++,Ue=k.next())Ue=H(de,z,Te,Ue.value,Q),Ue!==null&&(e&&Ue.alternate!==null&&de.delete(Ue.key===null?Te:Ue.key),M=c(Ue,M,Te),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue);return e&&de.forEach(function(hS){return t(z,hS)}),je&&Xn(z,Te),ve}function $e(z,M,k,Q){if(typeof k=="object"&&k!==null&&k.type===E&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case N:e:{for(var ve=k.key;M!==null;){if(M.key===ve){if(ve=k.type,ve===E){if(M.tag===7){a(z,M.sibling),Q=s(M,k.props.children),Q.return=z,z=Q;break e}}else if(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&dl(ve)===M.type){a(z,M.sibling),Q=s(M,k.props),Jr(Q,k),Q.return=z,z=Q;break e}a(z,M);break}else t(z,M);M=M.sibling}k.type===E?(Q=il(k.props.children,z.mode,Q,k.key),Q.return=z,z=Q):(Q=ti(k.type,k.key,k.props,null,z.mode,Q),Jr(Q,k),Q.return=z,z=Q)}return g(z);case A:e:{for(ve=k.key;M!==null;){if(M.key===ve)if(M.tag===4&&M.stateNode.containerInfo===k.containerInfo&&M.stateNode.implementation===k.implementation){a(z,M.sibling),Q=s(M,k.children||[]),Q.return=z,z=Q;break e}else{a(z,M);break}else t(z,M);M=M.sibling}Q=gc(k,z.mode,Q),Q.return=z,z=Q}return g(z);case V:return k=dl(k),$e(z,M,k,Q)}if(ue(k))return oe(z,M,k,Q);if(fe(k)){if(ve=fe(k),typeof ve!="function")throw Error(i(150));return k=ve.call(k),ye(z,M,k,Q)}if(typeof k.then=="function")return $e(z,M,si(k),Q);if(k.$$typeof===D)return $e(z,M,li(z,k),Q);ci(z,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,M!==null&&M.tag===6?(a(z,M.sibling),Q=s(M,k),Q.return=z,z=Q):(a(z,M),Q=pc(k,z.mode,Q),Q.return=z,z=Q),g(z)):a(z,M)}return function(z,M,k,Q){try{Pr=0;var ve=$e(z,M,k,Q);return Wl=null,ve}catch(de){if(de===Il||de===oi)throw de;var Le=Gt(29,de,null,z.mode);return Le.lanes=Q,Le.return=z,Le}finally{}}}var hl=Sm(!0),wm=Sm(!1),xa=!1;function Rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(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 Sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=ei(e),rm(e,null,a),t}return Wo(e,l,t,a),ei(e)}function Fr(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,Mt(e,a)}}function Oc(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 g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=g:c=c.next=g,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 Mc=!1;function Ir(){if(Mc){var e=Fl;if(e!==null)throw e}}function Wr(e,t,a,l){Mc=!1;var s=e.updateQueue;xa=!1;var c=s.firstBaseUpdate,g=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var R=S,L=R.next;R.next=null,g===null?c=L:g.next=L,g=R;var $=e.alternate;$!==null&&($=$.updateQueue,S=$.lastBaseUpdate,S!==g&&(S===null?$.firstBaseUpdate=L:S.next=L,$.lastBaseUpdate=R))}if(c!==null){var K=s.baseState;g=0,$=L=R=null,S=c;do{var U=S.lane&-536870913,H=U!==S.lane;if(H?(Oe&U)===U:(l&U)===U){U!==0&&U===Jl&&(Mc=!0),$!==null&&($=$.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var oe=e,ye=S;U=t;var $e=a;switch(ye.tag){case 1:if(oe=ye.payload,typeof oe=="function"){K=oe.call($e,K,U);break e}K=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ye.payload,U=typeof oe=="function"?oe.call($e,K,U):oe,U==null)break e;K=m({},K,U);break e;case 2:xa=!0}}U=S.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[U]:H.push(U))}else H={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},$===null?(L=$=H,R=K):$=$.next=H,g|=U;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;H=S,S=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);$===null&&(R=K),s.baseState=R,s.firstBaseUpdate=L,s.lastBaseUpdate=$,c===null&&(s.shared.lanes=0),Aa|=g,e.lanes=g,e.memoizedState=K}}function Em(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Nm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Em(a[e],t)}var er=_(null),ui=_(0);function Tm(e,t){e=na,X(ui,e),X(er,t),na=e|t.baseLanes}function Dc(){X(ui,na),X(er,er.current)}function jc(){na=ui.current,G(er),G(ui)}var $t=_(null),on=null;function Ea(e){var t=e.alternate;X(lt,lt.current&1),X($t,e),on===null&&(t===null||er.current!==null||t.memoizedState!==null)&&(on=e)}function zc(e){X(lt,lt.current),X($t,e),on===null&&(on=e)}function Cm(e){e.tag===22?(X(lt,lt.current),X($t,e),on===null&&(on=e)):Na()}function Na(){X(lt,lt.current),X($t,$t.current)}function Xt(e){G($t),on===e&&(on=null),G(lt)}var lt=_(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Vu(a)||Yu(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 Kn=0,Ne=null,qe=null,it=null,di=!1,tr=!1,pl=!1,mi=0,eo=0,nr=null,l1=0;function nt(){throw Error(i(321))}function kc(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 Lc(e,t,a,l,s,c){return Kn=c,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?ch:Fc,pl=!1,c=a(l,s),pl=!1,tr&&(c=Rm(t,a,l,s)),Am(e),c}function Am(e){O.H=ao;var t=qe!==null&&qe.next!==null;if(Kn=0,it=qe=Ne=null,di=!1,eo=0,nr=null,t)throw Error(i(300));e===null||st||(e=e.dependencies,e!==null&&ai(e)&&(st=!0))}function Rm(e,t,a,l){Ne=e;var s=0;do{if(tr&&(nr=null),eo=0,tr=!1,25<=s)throw Error(i(301));if(s+=1,it=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)}O.H=uh,c=t(a,l)}while(tr);return c}function r1(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?to(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ne.flags|=1024),t}function Uc(){var e=mi!==0;return mi=0,e}function Bc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Hc(e){if(di){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}di=!1}Kn=0,it=qe=Ne=null,tr=!1,eo=mi=0,nr=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Ne.memoizedState=it=e:it=it.next=e,it}function rt(){if(qe===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=it===null?Ne.memoizedState:it.next;if(t!==null)it=t,qe=e;else{if(e===null)throw Ne.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},it===null?Ne.memoizedState=it=e:it=it.next=e}return it}function hi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(e){var t=eo;return eo+=1,nr===null&&(nr=[]),e=ym(nr,e,t),t=Ne,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?ch:Fc),e}function pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return to(e);if(e.$$typeof===D)return yt(e)}throw Error(i(438,String(e)))}function Vc(e){var t=null,a=Ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=Ne.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=hi(),Ne.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 Pn(e,t){return typeof t=="function"?t(e):t}function gi(e){var t=rt();return Yc(t,qe,e)}function Yc(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 g=s.next;s.next=c.next,c.next=g}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var S=g=null,R=null,L=t,$=!1;do{var K=L.lane&-536870913;if(K!==L.lane?(Oe&K)===K:(Kn&K)===K){var U=L.revertLane;if(U===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),K===Jl&&($=!0);else if((Kn&U)===U){L=L.next,U===Jl&&($=!0);continue}else K={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},R===null?(S=R=K,g=c):R=R.next=K,Ne.lanes|=U,Aa|=U;K=L.action,pl&&a(c,K),c=L.hasEagerState?L.eagerState:a(c,K)}else U={lane:K,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},R===null?(S=R=U,g=c):R=R.next=U,Ne.lanes|=K,Aa|=K;L=L.next}while(L!==null&&L!==t);if(R===null?g=c:R.next=S,!qt(c,e.memoizedState)&&(st=!0,$&&(a=Fl,a!==null)))throw a;e.memoizedState=c,e.baseState=g,e.baseQueue=R,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function qc(e){var t=rt(),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 g=s=s.next;do c=e(c,g.action),g=g.next;while(g!==s);qt(c,t.memoizedState)||(st=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function _m(e,t,a){var l=Ne,s=rt(),c=je;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var g=!qt((qe||s).memoizedState,a);if(g&&(s.memoizedState=a,st=!0),s=s.queue,Xc(Dm.bind(null,l,s,e),[e]),s.getSnapshot!==t||g||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,ar(9,{destroy:void 0},Mm.bind(null,l,s,a,t),null),Qe===null)throw Error(i(349));c||(Kn&127)!==0||Om(l,t,a)}return a}function Om(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ne.updateQueue,t===null?(t=hi(),Ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Mm(e,t,a,l){t.value=a,t.getSnapshot=l,jm(t)&&zm(e)}function Dm(e,t,a){return a(function(){jm(t)&&zm(e)})}function jm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!qt(e,a)}catch{return!0}}function zm(e){var t=ol(e,2);t!==null&&Ht(t,e,2)}function Gc(e){var t=_t();if(typeof e=="function"){var a=e;if(e=a(),pl){dn(!0);try{a()}finally{dn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:e},t}function km(e,t,a,l){return e.baseState=a,Yc(e,qe,typeof l=="function"?l:Pn)}function o1(e,t,a,l,s){if(bi(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(g){c.listeners.push(g)}};O.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Lm(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Lm(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=O.T,g={};O.T=g;try{var S=a(s,l),R=O.S;R!==null&&R(g,S),Um(e,t,S)}catch(L){$c(e,t,L)}finally{c!==null&&g.types!==null&&(c.types=g.types),O.T=c}}else try{c=a(s,l),Um(e,t,c)}catch(L){$c(e,t,L)}}function Um(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Bm(e,t,l)},function(l){return $c(e,t,l)}):Bm(e,t,a)}function Bm(e,t,a){t.status="fulfilled",t.value=a,Hm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Lm(e,a)))}function $c(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Hm(t),t=t.next;while(t!==l)}e.action=null}function Hm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vm(e,t){return t}function Ym(e,t){if(je){var a=Qe.formState;if(a!==null){e:{var l=Ne;if(je){if(Ze){t:{for(var s=Ze,c=rn;s.nodeType!==8;){if(!c){s=null;break t}if(s=sn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Ze=sn(s.nextSibling),l=s.data==="F!";break e}}ya(l)}l=!1}l&&(t=a[0])}}return a=_t(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:t},a.queue=l,a=oh.bind(null,Ne,l),l.dispatch=a,l=Gc(!1),c=Jc.bind(null,Ne,!1,l.queue),l=_t(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=o1.bind(null,Ne,s,c,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function qm(e){var t=rt();return Gm(t,qe,e)}function Gm(e,t,a){if(t=Yc(e,t,Vm)[0],e=gi(Pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=to(t)}catch(g){throw g===Il?oi:g}else l=t;t=rt();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(Ne.flags|=2048,ar(9,{destroy:void 0},i1.bind(null,s,a),null)),[l,c,e]}function i1(e,t){e.action=t}function $m(e){var t=rt(),a=qe;if(a!==null)return Gm(t,a,e);rt(),t=t.memoizedState,a=rt();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ar(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Ne.updateQueue,t===null&&(t=hi(),Ne.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 Xm(){return rt().memoizedState}function vi(e,t,a,l){var s=_t();Ne.flags|=e,s.memoizedState=ar(1|t,{destroy:void 0},a,l===void 0?null:l)}function yi(e,t,a,l){var s=rt();l=l===void 0?null:l;var c=s.memoizedState.inst;qe!==null&&l!==null&&kc(l,qe.memoizedState.deps)?s.memoizedState=ar(t,c,a,l):(Ne.flags|=e,s.memoizedState=ar(1|t,c,a,l))}function Qm(e,t){vi(8390656,8,e,t)}function Xc(e,t){yi(2048,8,e,t)}function s1(e){Ne.flags|=4;var t=Ne.updateQueue;if(t===null)t=hi(),Ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Zm(e){var t=rt().memoizedState;return s1({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Km(e,t){return yi(4,2,e,t)}function Pm(e,t){return yi(4,4,e,t)}function Jm(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 Fm(e,t,a){a=a!=null?a.concat([e]):null,yi(4,4,Jm.bind(null,t,e),a)}function Qc(){}function Im(e,t){var a=rt();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&kc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Wm(e,t){var a=rt();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&kc(t,l[1]))return l[0];if(l=e(),pl){dn(!0);try{e()}finally{dn(!1)}}return a.memoizedState=[l,t],l}function Zc(e,t,a){return a===void 0||(Kn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=ep(),Ne.lanes|=e,Aa|=e,a)}function eh(e,t,a,l){return qt(a,t)?a:er.current!==null?(e=Zc(e,a,l),qt(e,t)||(st=!0),e):(Kn&42)===0||(Kn&1073741824)!==0&&(Oe&261930)===0?(st=!0,e.memoizedState=a):(e=ep(),Ne.lanes|=e,Aa|=e,t)}function th(e,t,a,l,s){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=O.T,S={};O.T=S,Jc(e,!1,t,a);try{var R=s(),L=O.S;if(L!==null&&L(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=a1(R,l);no(e,t,$,Kt(e))}else no(e,t,l,Kt(e))}catch(K){no(e,t,{then:function(){},status:"rejected",reason:K},Kt())}finally{Y.p=c,g!==null&&S.types!==null&&(g.types=S.types),O.T=g}}function c1(){}function Kc(e,t,a,l){if(e.tag!==5)throw Error(i(476));var s=nh(e).queue;th(e,s,t,J,a===null?c1:function(){return ah(e),a(l)})}function nh(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:Pn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ah(e){var t=nh(e);t.next===null&&(t=e.alternate.memoizedState),no(e,t.next.queue,{},Kt())}function Pc(){return yt(xo)}function lh(){return rt().memoizedState}function rh(){return rt().memoizedState}function u1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Kt();e=Sa(a);var l=wa(t,e,a);l!==null&&(Ht(l,t,a),Fr(l,t,a)),t={cache:Nc()},e.payload=t;return}t=t.return}}function f1(e,t,a){var l=Kt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bi(e)?ih(t,a):(a=mc(e,t,a,l),a!==null&&(Ht(a,e,l),sh(a,t,l)))}function oh(e,t,a){var l=Kt();no(e,t,a,l)}function no(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bi(e))ih(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,S=c(g,a);if(s.hasEagerState=!0,s.eagerState=S,qt(S,g))return Wo(e,t,s,0),Qe===null&&Io(),!1}catch{}finally{}if(a=mc(e,t,s,l),a!==null)return Ht(a,e,l),sh(a,t,l),!0}return!1}function Jc(e,t,a,l){if(l={lane:2,revertLane:Ru(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bi(e)){if(t)throw Error(i(479))}else t=mc(e,a,l,2),t!==null&&Ht(t,e,2)}function bi(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function ih(e,t){tr=di=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function sh(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Mt(e,a)}}var ao={readContext:yt,use:pi,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};ao.useEffectEvent=nt;var ch={readContext:yt,use:pi,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Qm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,vi(4194308,4,Jm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){vi(4,2,e,t)},useMemo:function(e,t){var a=_t();t=t===void 0?null:t;var l=e();if(pl){dn(!0);try{e()}finally{dn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=_t();if(a!==void 0){var s=a(t);if(pl){dn(!0);try{a(t)}finally{dn(!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=f1.bind(null,Ne,e),[l.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=Gc(e);var t=e.queue,a=oh.bind(null,Ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Qc,useDeferredValue:function(e,t){var a=_t();return Zc(a,e,t)},useTransition:function(){var e=Gc(!1);return e=th.bind(null,Ne,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Ne,s=_t();if(je){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Qe===null)throw Error(i(349));(Oe&127)!==0||Om(l,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,Qm(Dm.bind(null,l,c,e),[e]),l.flags|=2048,ar(9,{destroy:void 0},Mm.bind(null,l,c,a,t),null),a},useId:function(){var e=_t(),t=Qe.identifierPrefix;if(je){var a=Tn,l=Nn;a=(l&~(1<<32-wt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=mi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=l1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Pc,useFormState:Ym,useActionState:Ym,useOptimistic:function(e){var t=_t();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Jc.bind(null,Ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:Vc,useCacheRefresh:function(){return _t().memoizedState=u1.bind(null,Ne)},useEffectEvent:function(e){var t=_t(),a={impl:e};return t.memoizedState=a,function(){if((He&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Fc={readContext:yt,use:pi,useCallback:Im,useContext:yt,useEffect:Xc,useImperativeHandle:Fm,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:gi,useRef:Xm,useState:function(){return gi(Pn)},useDebugValue:Qc,useDeferredValue:function(e,t){var a=rt();return eh(a,qe.memoizedState,e,t)},useTransition:function(){var e=gi(Pn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:_m,useId:lh,useHostTransitionStatus:Pc,useFormState:qm,useActionState:qm,useOptimistic:function(e,t){var a=rt();return km(a,qe,e,t)},useMemoCache:Vc,useCacheRefresh:rh};Fc.useEffectEvent=Zm;var uh={readContext:yt,use:pi,useCallback:Im,useContext:yt,useEffect:Xc,useImperativeHandle:Fm,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:qc,useRef:Xm,useState:function(){return qc(Pn)},useDebugValue:Qc,useDeferredValue:function(e,t){var a=rt();return qe===null?Zc(a,e,t):eh(a,qe.memoizedState,e,t)},useTransition:function(){var e=qc(Pn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:_m,useId:lh,useHostTransitionStatus:Pc,useFormState:$m,useActionState:$m,useOptimistic:function(e,t){var a=rt();return qe!==null?km(a,qe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Vc,useCacheRefresh:rh};uh.useEffectEvent=Zm;function Ic(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:m({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Wc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Kt(),s=Sa(l);s.payload=t,a!=null&&(s.callback=a),t=wa(e,s,l),t!==null&&(Ht(t,e,l),Fr(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Kt(),s=Sa(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=wa(e,s,l),t!==null&&(Ht(t,e,l),Fr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Kt(),l=Sa(a);l.tag=2,t!=null&&(l.callback=t),t=wa(e,l,a),t!==null&&(Ht(t,e,a),Fr(t,e,a))}};function fh(e,t,a,l,s,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!Gr(a,l)||!Gr(s,c):!0}function dh(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&&Wc.enqueueReplaceState(t,t.state,null)}function gl(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=m({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function mh(e){Fo(e)}function hh(e){console.error(e)}function ph(e){Fo(e)}function xi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function gh(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 eu(e,t,a){return a=Sa(a),a.tag=3,a.payload={element:null},a.callback=function(){xi(e,t)},a}function vh(e){return e=Sa(e),e.tag=3,e}function yh(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(){gh(t,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gh(t,a,l),typeof s!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function d1(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Pl(t,a,s,!0),a=$t.current,a!==null){switch(a.tag){case 31:case 13:return on===null?Di():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===ii?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Tu(e,l,s)),!1;case 22:return a.flags|=65536,l===ii?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)),Tu(e,l,s)),!1}throw Error(i(435,a.tag))}return Tu(e,l,s),Di(),!1}if(je)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==bc&&(e=Error(i(422),{cause:l}),Qr(nn(e,a)))):(l!==bc&&(t=Error(i(423),{cause:l}),Qr(nn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=nn(l,a),s=eu(e.stateNode,l,s),Oc(e,s),at!==4&&(at=2)),!1;var c=Error(i(520),{cause:l});if(c=nn(c,a),fo===null?fo=[c]:fo.push(c),at!==4&&(at=2),t===null)return!0;l=nn(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=eu(a.stateNode,l,e),Oc(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"&&(Ra===null||!Ra.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=vh(s),yh(s,e,a,l),Oc(a,s),!1}a=a.return}while(a!==null);return!1}var tu=Error(i(461)),st=!1;function bt(e,t,a,l){t.child=e===null?wm(t,null,a,l):hl(t,e.child,a,l)}function bh(e,t,a,l,s){a=a.render;var c=t.ref;if("ref"in l){var g={};for(var S in l)S!=="ref"&&(g[S]=l[S])}else g=l;return ul(t),l=Lc(e,t,a,g,c,s),S=Uc(),e!==null&&!st?(Bc(e,t,s),Jn(e,t,s)):(je&&S&&vc(t),t.flags|=1,bt(e,t,l,s),t.child)}function xh(e,t,a,l,s){if(e===null){var c=a.type;return typeof c=="function"&&!hc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Sh(e,t,c,l,s)):(e=ti(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!cu(e,s)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:Gr,a(g,l)&&e.ref===t.ref)return Jn(e,t,s)}return t.flags|=1,e=$n(c,l),e.ref=t.ref,e.return=t,t.child=e}function Sh(e,t,a,l,s){if(e!==null){var c=e.memoizedProps;if(Gr(c,l)&&e.ref===t.ref)if(st=!1,t.pendingProps=l=c,cu(e,s))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Jn(e,t,s)}return nu(e,t,a,l,s)}function wh(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 Eh(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ri(t,c!==null?c.cachePool:null),c!==null?Tm(t,c):Dc(),Cm(t);else return l=t.lanes=536870912,Eh(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(ri(t,c.cachePool),Tm(t,c),Na(),t.memoizedState=null):(e!==null&&ri(t,null),Dc(),Na());return bt(e,t,s,a),t.child}function lo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Eh(e,t,a,l,s){var c=Cc();return c=c===null?null:{parent:ot._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&ri(t,null),Dc(),Cm(t),e!==null&&Pl(e,t,l,!0),t.childLanes=s,null}function Si(e,t){return t=Ei({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Nh(e,t,a){return hl(t,e.child,null,a),e=Si(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function m1(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=Si(t,l),t.lanes=536870912,lo(null,e);if(zc(t),(e=Ze)?(e=Lp(e,rn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Nn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},a=im(e),a.return=t,t.child=a,vt=t,Ze=null)):e=null,e===null)throw ya(t);return t.lanes=536870912,null}return Si(t,l)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(zc(t),s)if(t.flags&256)t.flags&=-257,t=Nh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(st||Pl(e,t,a,!1),s=(a&e.childLanes)!==0,st||s){if(l=Qe,l!==null&&(g=Dt(l,a),g!==0&&g!==c.retryLane))throw c.retryLane=g,ol(e,g),Ht(l,e,g),tu;Di(),t=Nh(e,t,a)}else e=c.treeContext,Ze=sn(g.nextSibling),vt=t,je=!0,va=null,rn=!1,e!==null&&um(t,e),t=Si(t,l),t.flags|=4096;return t}return e=$n(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wi(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 nu(e,t,a,l,s){return ul(t),a=Lc(e,t,a,l,void 0,s),l=Uc(),e!==null&&!st?(Bc(e,t,s),Jn(e,t,s)):(je&&l&&vc(t),t.flags|=1,bt(e,t,a,s),t.child)}function Th(e,t,a,l,s,c){return ul(t),t.updateQueue=null,a=Rm(t,l,a,s),Am(e),l=Uc(),e!==null&&!st?(Bc(e,t,c),Jn(e,t,c)):(je&&l&&vc(t),t.flags|=1,bt(e,t,a,c),t.child)}function Ch(e,t,a,l,s){if(ul(t),t.stateNode===null){var c=Xl,g=a.contextType;typeof g=="object"&&g!==null&&(c=yt(g)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Wc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Rc(t),g=a.contextType,c.context=typeof g=="object"&&g!==null?yt(g):Xl,c.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Ic(t,a,g,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Wc.enqueueReplaceState(c,c.state,null),Wr(t,l,c,s),Ir(),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=gl(a,S);c.props=R;var L=c.context,$=a.contextType;g=Xl,typeof $=="object"&&$!==null&&(g=yt($));var K=a.getDerivedStateFromProps;$=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||L!==g)&&dh(t,c,l,g),xa=!1;var U=t.memoizedState;c.state=U,Wr(t,l,c,s),Ir(),L=t.memoizedState,S||U!==L||xa?(typeof K=="function"&&(Ic(t,a,K,l),L=t.memoizedState),(R=xa||fh(t,a,R,l,U,L,g))?($||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=L),c.props=l,c.state=L,c.context=g,l=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,_c(e,t),g=t.memoizedProps,$=gl(a,g),c.props=$,K=t.pendingProps,U=c.context,L=a.contextType,R=Xl,typeof L=="object"&&L!==null&&(R=yt(L)),S=a.getDerivedStateFromProps,(L=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==K||U!==R)&&dh(t,c,l,R),xa=!1,U=t.memoizedState,c.state=U,Wr(t,l,c,s),Ir();var H=t.memoizedState;g!==K||U!==H||xa||e!==null&&e.dependencies!==null&&ai(e.dependencies)?(typeof S=="function"&&(Ic(t,a,S,l),H=t.memoizedState),($=xa||fh(t,a,$,l,U,H,R)||e!==null&&e.dependencies!==null&&ai(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,H,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,H,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),c.props=l,c.state=H,c.context=R,l=$):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,wi(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=hl(t,e.child,null,s),t.child=hl(t,null,a,s)):bt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=Jn(e,t,s),e}function Ah(e,t,a,l){return sl(),t.flags|=256,bt(e,t,a,l),t.child}var au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lu(e){return{baseLanes:e,cachePool:gm()}}function ru(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Zt),e}function Rh(e,t,a){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(s?Ea(t):Na(),(e=Ze)?(e=Lp(e,rn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Nn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},a=im(e),a.return=t,t.child=a,vt=t,Ze=null)):e=null,e===null)throw ya(t);return Yu(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,s?(Na(),s=t.mode,S=Ei({mode:"hidden",children:S},s),l=il(l,s,a,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=lu(a),l.childLanes=ru(e,g,a),t.memoizedState=au,lo(null,l)):(Ea(t),ou(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(c)t.flags&256?(Ea(t),t.flags&=-257,t=iu(e,t,a)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),S=l.fallback,s=t.mode,l=Ei({mode:"visible",children:l.children},s),S=il(S,s,a,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,hl(t,e.child,null,a),l=t.child,l.memoizedState=lu(a),l.childLanes=ru(e,g,a),t.memoizedState=au,t=lo(null,l));else if(Ea(t),Yu(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var L=g.dgst;g=L,l=Error(i(419)),l.stack="",l.digest=g,Qr({value:l,source:null,stack:null}),t=iu(e,t,a)}else if(st||Pl(e,t,a,!1),g=(a&e.childLanes)!==0,st||g){if(g=Qe,g!==null&&(l=Dt(g,a),l!==0&&l!==R.retryLane))throw R.retryLane=l,ol(e,l),Ht(g,e,l),tu;Vu(S)||Di(),t=iu(e,t,a)}else Vu(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Ze=sn(S.nextSibling),vt=t,je=!0,va=null,rn=!1,e!==null&&um(t,e),t=ou(t,l.children),t.flags|=4096);return t}return s?(Na(),S=l.fallback,s=t.mode,R=e.child,L=R.sibling,l=$n(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,L!==null?S=$n(L,S):(S=il(S,s,a,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,lo(null,l),l=t.child,S=e.child.memoizedState,S===null?S=lu(a):(s=S.cachePool,s!==null?(R=ot._currentValue,s=s.parent!==R?{parent:R,pool:R}:s):s=gm(),S={baseLanes:S.baseLanes|a,cachePool:s}),l.memoizedState=S,l.childLanes=ru(e,g,a),t.memoizedState=au,lo(e.child,l)):(Ea(t),a=e.child,e=a.sibling,a=$n(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function ou(e,t){return t=Ei({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ei(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function iu(e,t,a){return hl(t,e.child,null,a),e=ou(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _h(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),wc(e.return,t,a)}function su(e,t,a,l,s,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=a,g.tailMode=s,g.treeForkCount=c)}function Oh(e,t,a){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var g=lt.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,X(lt,g),bt(e,t,l,a),l=je?Xr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_h(e,a,t);else if(e.tag===19)_h(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&&fi(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),su(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&&fi(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}su(t,!0,a,null,c,l);break;case"together":su(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Jn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Pl(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=$n(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=$n(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ai(e)))}function h1(e,t,a){switch(t.tag){case 3:ae(t,t.stateNode.containerInfo),ba(t,ot,e.memoizedState.cache),sl();break;case 27:case 5:Ce(t);break;case 4:ae(t,t.stateNode.containerInfo);break;case 10:ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ea(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Rh(e,t,a):(Ea(t),e=Jn(e,t,a),e!==null?e.sibling:null);Ea(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Pl(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return Oh(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(lt,lt.current),l)break;return null;case 22:return t.lanes=0,wh(e,t,a,t.pendingProps);case 24:ba(t,ot,e.memoizedState.cache)}return Jn(e,t,a)}function Mh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!cu(e,a)&&(t.flags&128)===0)return st=!1,h1(e,t,a);st=(e.flags&131072)!==0}else st=!1,je&&(t.flags&1048576)!==0&&cm(t,Xr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=dl(t.elementType),t.type=e,typeof e=="function")hc(e)?(l=gl(e,l),t.tag=1,t=Ch(null,t,e,l,a)):(t.tag=0,t=nu(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===B){t.tag=11,t=bh(null,t,e,l,a);break e}else if(s===q){t.tag=14,t=xh(null,t,e,l,a);break e}}throw t=ge(e)||e,Error(i(306,t,""))}}return t;case 0:return nu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=gl(l,t.pendingProps),Ch(e,t,l,s,a);case 3:e:{if(ae(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,_c(e,t),Wr(t,l,null,a);var g=t.memoizedState;if(l=g.cache,ba(t,ot,l),l!==c.cache&&Ec(t,[ot],a,!0),Ir(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ah(e,t,l,a);break e}else if(l!==s){s=nn(Error(i(424)),t),Qr(s),t=Ah(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(Ze=sn(e.firstChild),vt=t,je=!0,va=null,rn=!0,a=wm(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(sl(),l===s){t=Jn(e,t,a);break e}bt(e,t,l,a)}t=t.child}return t;case 26:return wi(e,t),e===null?(a=qp(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,l=Hi(ne.current).createElement(a),l[gt]=t,l[jt]=e,xt(l,a,e),ht(l),t.stateNode=l):t.memoizedState=qp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&je&&(l=t.stateNode=Hp(t.type,t.pendingProps,ne.current),vt=t,rn=!0,s=Ze,Da(t.type)?(qu=s,Ze=sn(l.firstChild)):Ze=s),bt(e,t,t.pendingProps.children,a),wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((s=l=Ze)&&(l=$1(l,t.type,t.pendingProps,rn),l!==null?(t.stateNode=l,vt=t,Ze=sn(l.firstChild),rn=!1,s=!0):s=!1),s||ya(t)),Ce(t),s=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,Uu(s,c)?l=null:g!==null&&Uu(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=Lc(e,t,r1,null,null,a),xo._currentValue=s),wi(e,t),bt(e,t,l,a),t.child;case 6:return e===null&&je&&((e=a=Ze)&&(a=X1(a,t.pendingProps,rn),a!==null?(t.stateNode=a,vt=t,Ze=null,e=!0):e=!1),e||ya(t)),null;case 13:return Rh(e,t,a);case 4:return ae(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=hl(t,null,l,a):bt(e,t,l,a),t.child;case 11:return bh(e,t,t.type,t.pendingProps,a);case 7:return bt(e,t,t.pendingProps,a),t.child;case 8:return bt(e,t,t.pendingProps.children,a),t.child;case 12:return bt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,ba(t,t.type,l.value),bt(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,ul(t),s=yt(s),l=l(s),t.flags|=1,bt(e,t,l,a),t.child;case 14:return xh(e,t,t.type,t.pendingProps,a);case 15:return Sh(e,t,t.type,t.pendingProps,a);case 19:return Oh(e,t,a);case 31:return m1(e,t,a);case 22:return wh(e,t,a,t.pendingProps);case 24:return ul(t),l=yt(ot),e===null?(s=Cc(),s===null&&(s=Qe,c=Nc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:l,cache:s},Rc(t),ba(t,ot,s)):((e.lanes&a)!==0&&(_c(e,t),Wr(t,null,null,a),Ir()),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),ba(t,ot,l)):(l=c.cache,ba(t,ot,l),l!==s.cache&&Ec(t,[ot],a,!0))),bt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Fn(e){e.flags|=4}function uu(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(lp())e.flags|=8192;else throw ml=ii,Ac}else e.flags&=-16777217}function Dh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zp(t))if(lp())e.flags|=8192;else throw ml=ii,Ac}function Ni(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Et():536870912,e.lanes|=t,ir|=t)}function ro(e,t){if(!je)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 Ke(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 p1(e,t,a){var l=t.pendingProps;switch(yc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Zn(ot),ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xc())),Ke(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Fn(t),c!==null?(Ke(t),Dh(t,c)):(Ke(t),uu(t,s,null,l,a))):c?c!==e.memoizedState?(Fn(t),Ke(t),Dh(t,c)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Fn(t),Ke(t),uu(t,s,e,l,a)),null;case 27:if(Ee(t),a=ne.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ke(t),null}e=W.current,Kl(t)?fm(t):(e=Hp(s,l,a),t.stateNode=e,Fn(t))}return Ke(t),null;case 5:if(Ee(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ke(t),null}if(c=W.current,Kl(t))fm(t);else{var g=Hi(ne.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(s,{is:l.is}):g.createElement(s)}}c[gt]=t,c[jt]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(xt(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&&Fn(t)}}return Ke(t),uu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Fn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=ne.current,Kl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=vt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[gt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Rp(e.nodeValue,a)),e||ya(t,!0)}else e=Hi(e).createTextNode(l),e[gt]=t,t.stateNode=e}return Ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Kl(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[gt]=t}else sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else a=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Kl(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[gt]=t}else sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),s=!1}else s=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(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),Ni(t,t.updateQueue),Ke(t),null);case 4:return ie(),e===null&&Du(t.stateNode.containerInfo),Ke(t),null;case 10:return Zn(t.type),Ke(t),null;case 19:if(G(lt),l=t.memoizedState,l===null)return Ke(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)ro(l,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fi(e),c!==null){for(t.flags|=128,ro(l,!1),e=c.updateQueue,t.updateQueue=e,Ni(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)om(a,e),a=a.sibling;return X(lt,lt.current&1|2),je&&Xn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&At()>_i&&(t.flags|=128,s=!0,ro(l,!1),t.lanes=4194304)}else{if(!s)if(e=fi(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ni(t,e),ro(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!je)return Ke(t),null}else 2*At()-l.renderingStartTime>_i&&a!==536870912&&(t.flags|=128,s=!0,ro(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=At(),e.sibling=null,a=lt.current,X(lt,s?a&1|2:a&1),je&&Xn(t,l.treeForkCount),e):(Ke(t),null);case 22:case 23:return Xt(t),jc(),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&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),a=t.updateQueue,a!==null&&Ni(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&&G(fl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zn(ot),Ke(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function g1(e,t){switch(yc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(ot),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(i(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(lt),null;case 4:return ie(),null;case 10:return Zn(t.type),null;case 22:case 23:return Xt(t),jc(),e!==null&&G(fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zn(ot),null;case 25:return null;default:return null}}function jh(e,t){switch(yc(t),t.tag){case 3:Zn(ot),ie();break;case 26:case 27:case 5:Ee(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(lt);break;case 10:Zn(t.type);break;case 22:case 23:Xt(t),jc(),e!==null&&G(fl);break;case 24:Zn(ot)}}function oo(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,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==s)}}catch(S){Ye(t,t.return,S)}}function Ta(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 g=l.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,s=t;var R=a,L=S;try{L()}catch($){Ye(s,R,$)}}}l=l.next}while(l!==c)}}catch($){Ye(t,t.return,$)}}function zh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Nm(t,a)}catch(l){Ye(e,e.return,l)}}}function kh(e,t,a){a.props=gl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ye(e,t,l)}}function io(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){Ye(e,t,s)}}function Cn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){Ye(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){Ye(e,t,s)}else a.current=null}function Lh(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){Ye(e,e.return,s)}}function fu(e,t,a){try{var l=e.stateNode;B1(l,e.type,a,t),l[jt]=t}catch(s){Ye(e,e.return,s)}}function Uh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uh(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&&Da(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 mu(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=qn));else if(l!==4&&(l===27&&Da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(mu(e,t,a),e=e.sibling;e!==null;)mu(e,t,a),e=e.sibling}function Ti(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&&Da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ti(e,t,a),e=e.sibling;e!==null;)Ti(e,t,a),e=e.sibling}function Bh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);xt(t,l,a),t[gt]=e,t[jt]=a}catch(c){Ye(e,e.return,c)}}var In=!1,ct=!1,hu=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,pt=null;function v1(e,t){if(e=e.containerInfo,ku=Qi,e=Fd(e),ic(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 g=0,S=-1,R=-1,L=0,$=0,K=e,U=null;t:for(;;){for(var H;K!==a||s!==0&&K.nodeType!==3||(S=g+s),K!==c||l!==0&&K.nodeType!==3||(R=g+l),K.nodeType===3&&(g+=K.nodeValue.length),(H=K.firstChild)!==null;)U=K,K=H;for(;;){if(K===e)break t;if(U===a&&++L===s&&(S=g),U===c&&++$===l&&(R=g),(H=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=H}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Lu={focusedElem:e,selectionRange:a},Qi=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,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 oe=gl(a.type,s);e=l.getSnapshotBeforeUpdate(oe,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Ye(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Hu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hu(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,pt=e;break}pt=t.return}}function Vh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ea(e,a),l&4&&oo(5,a);break;case 1:if(ea(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){Ye(a,a.return,g)}else{var s=gl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ye(a,a.return,g)}}l&64&&zh(a),l&512&&io(a,a.return);break;case 3:if(ea(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{Nm(e,t)}catch(g){Ye(a,a.return,g)}}break;case 27:t===null&&l&4&&Bh(a);case 26:case 5:ea(e,a),t===null&&l&4&&Lh(a),l&512&&io(a,a.return);break;case 12:ea(e,a);break;case 31:ea(e,a),l&4&&Gh(e,a);break;case 13:ea(e,a),l&4&&$h(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=C1.bind(null,a),Q1(e,a))));break;case 22:if(l=a.memoizedState!==null||In,!l){t=t!==null&&t.memoizedState!==null||ct,s=In;var c=ct;In=l,(ct=t)&&!c?ta(e,a,(a.subtreeFlags&8772)!==0):ea(e,a),In=s,ct=c}break;case 30:break;default:ea(e,a)}}function Yh(e){var t=e.alternate;t!==null&&(e.alternate=null,Yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$s(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 Fe=null,kt=!1;function Wn(e,t,a){for(a=a.child;a!==null;)qh(e,t,a),a=a.sibling}function qh(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Wa,a)}catch{}switch(a.tag){case 26:ct||Cn(a,t),Wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||Cn(a,t);var l=Fe,s=kt;Da(a.type)&&(Fe=a.stateNode,kt=!1),Wn(e,t,a),vo(a.stateNode),Fe=l,kt=s;break;case 5:ct||Cn(a,t);case 6:if(l=Fe,s=kt,Fe=null,Wn(e,t,a),Fe=l,kt=s,Fe!==null)if(kt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(a.stateNode)}catch(c){Ye(a,t,c)}else try{Fe.removeChild(a.stateNode)}catch(c){Ye(a,t,c)}break;case 18:Fe!==null&&(kt?(e=Fe,zp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),pr(e)):zp(Fe,a.stateNode));break;case 4:l=Fe,s=kt,Fe=a.stateNode.containerInfo,kt=!0,Wn(e,t,a),Fe=l,kt=s;break;case 0:case 11:case 14:case 15:Ta(2,a,t),ct||Ta(4,a,t),Wn(e,t,a);break;case 1:ct||(Cn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&kh(a,t,l)),Wn(e,t,a);break;case 21:Wn(e,t,a);break;case 22:ct=(l=ct)||a.memoizedState!==null,Wn(e,t,a),ct=l;break;default:Wn(e,t,a)}}function Gh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pr(e)}catch(a){Ye(t,t.return,a)}}}function $h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pr(e)}catch(a){Ye(t,t.return,a)}}function y1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hh),t;default:throw Error(i(435,e.tag))}}function Ci(e,t){var a=y1(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=A1.bind(null,e,l);l.then(s,s)}})}function Lt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],c=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(Da(S.type)){Fe=S.stateNode,kt=!1;break e}break;case 5:Fe=S.stateNode,kt=!1;break e;case 3:case 4:Fe=S.stateNode.containerInfo,kt=!0;break e}S=S.return}if(Fe===null)throw Error(i(160));qh(c,g,s),Fe=null,kt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Xh(t,e),t=t.sibling}var pn=null;function Xh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),Ut(e),l&4&&(Ta(3,e,e.return),oo(3,e),Ta(5,e,e.return));break;case 1:Lt(t,e),Ut(e),l&512&&(ct||a===null||Cn(a,a.return)),l&64&&In&&(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=pn;if(Lt(t,e),Ut(e),l&512&&(ct||a===null||Cn(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[zr]||c[gt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),xt(c,l,a),c[gt]=e,ht(c),l=c;break e;case"link":var g=Xp("link","href",s).get(l+(a.href||""));if(g){for(var S=0;S<g.length;S++)if(c=g[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)){g.splice(S,1);break t}}c=s.createElement(l),xt(c,l,a),s.head.appendChild(c);break;case"meta":if(g=Xp("meta","content",s).get(l+(a.content||""))){for(S=0;S<g.length;S++)if(c=g[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)){g.splice(S,1);break t}}c=s.createElement(l),xt(c,l,a),s.head.appendChild(c);break;default:throw Error(i(468,l))}c[gt]=e,ht(c),l=c}e.stateNode=l}else Qp(s,e.type,e.stateNode);else e.stateNode=$p(s,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?Qp(s,e.type,e.stateNode):$p(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&fu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Lt(t,e),Ut(e),l&512&&(ct||a===null||Cn(a,a.return)),a!==null&&l&4&&fu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Lt(t,e),Ut(e),l&512&&(ct||a===null||Cn(a,a.return)),e.flags&32){s=e.stateNode;try{Bl(s,"")}catch(oe){Ye(e,e.return,oe)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,fu(e,s,a!==null?a.memoizedProps:s)),l&1024&&(hu=!0);break;case 6:if(Lt(t,e),Ut(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(oe){Ye(e,e.return,oe)}}break;case 3:if(qi=null,s=pn,pn=Vi(t.containerInfo),Lt(t,e),pn=s,Ut(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(oe){Ye(e,e.return,oe)}hu&&(hu=!1,Qh(e));break;case 4:l=pn,pn=Vi(e.stateNode.containerInfo),Lt(t,e),Ut(e),pn=l;break;case 12:Lt(t,e),Ut(e);break;case 31:Lt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 13:Lt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ri=At()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 22:s=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,L=In,$=ct;if(In=L||s,ct=$||R,Lt(t,e),ct=$,In=L,Ut(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||R||In||ct||vl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(c=R.stateNode,s)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=R.stateNode;var K=R.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(oe){Ye(R,R.return,oe)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=s?"":R.memoizedProps}catch(oe){Ye(R,R.return,oe)}}}else if(t.tag===18){if(a===null){R=t;try{var H=R.stateNode;s?kp(H,!0):kp(R.stateNode,!1)}catch(oe){Ye(R,R.return,oe)}}}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,Ci(e,a))));break;case 19:Lt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 30:break;case 21:break;default:Lt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Uh(l)){a=l;break}l=l.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,c=du(e);Ti(e,c,s);break;case 5:var g=a.stateNode;a.flags&32&&(Bl(g,""),a.flags&=-33);var S=du(e);Ti(e,S,g);break;case 3:case 4:var R=a.stateNode.containerInfo,L=du(e);mu(e,L,R);break;default:throw Error(i(161))}}catch($){Ye(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vh(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ta(4,t,t.return),vl(t);break;case 1:Cn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&kh(t,t.return,a),vl(t);break;case 27:vo(t.stateNode);case 26:case 5:Cn(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function ta(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:ta(s,c,a),oo(4,c);break;case 1:if(ta(s,c,a),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){Ye(l,l.return,L)}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++)Em(R[s],S)}catch(L){Ye(l,l.return,L)}}a&&g&64&&zh(c),io(c,c.return);break;case 27:Bh(c);case 26:case 5:ta(s,c,a),a&&l===null&&g&4&&Lh(c),io(c,c.return);break;case 12:ta(s,c,a);break;case 31:ta(s,c,a),a&&g&4&&Gh(s,c);break;case 13:ta(s,c,a),a&&g&4&&$h(s,c);break;case 22:c.memoizedState===null&&ta(s,c,a),io(c,c.return);break;case 30:break;default:ta(s,c,a)}t=t.sibling}}function pu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Zr(a))}function gu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zr(e))}function gn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zh(e,t,a,l),t=t.sibling}function Zh(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,a,l),s&2048&&oo(9,t);break;case 1:gn(e,t,a,l);break;case 3:gn(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&&Zr(e)));break;case 12:if(s&2048){gn(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,S=c.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Ye(t,t.return,R)}}else gn(e,t,a,l);break;case 31:gn(e,t,a,l);break;case 13:gn(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?gn(e,t,a,l):so(e,t):c._visibility&2?gn(e,t,a,l):(c._visibility|=2,lr(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&pu(g,t);break;case 24:gn(e,t,a,l),s&2048&&gu(t.alternate,t);break;default:gn(e,t,a,l)}}function lr(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,S=a,R=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:lr(c,g,S,R,s),oo(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?lr(c,g,S,R,s):so(c,g):($._visibility|=2,lr(c,g,S,R,s)),s&&L&2048&&pu(g.alternate,g);break;case 24:lr(c,g,S,R,s),s&&L&2048&&gu(g.alternate,g);break;default:lr(c,g,S,R,s)}t=t.sibling}}function so(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:so(a,l),s&2048&&pu(l.alternate,l);break;case 24:so(a,l),s&2048&&gu(l.alternate,l);break;default:so(a,l)}t=t.sibling}}var co=8192;function rr(e,t,a){if(e.subtreeFlags&co)for(e=e.child;e!==null;)Kh(e,t,a),e=e.sibling}function Kh(e,t,a){switch(e.tag){case 26:rr(e,t,a),e.flags&co&&e.memoizedState!==null&&lS(a,pn,e.memoizedState,e.memoizedProps);break;case 5:rr(e,t,a);break;case 3:case 4:var l=pn;pn=Vi(e.stateNode.containerInfo),rr(e,t,a),pn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=co,co=16777216,rr(e,t,a),co=l):rr(e,t,a));break;default:rr(e,t,a)}}function Ph(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 uo(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];pt=l,Fh(l,e)}Ph(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jh(e),e=e.sibling}function Jh(e){switch(e.tag){case 0:case 11:case 15:uo(e),e.flags&2048&&Ta(9,e,e.return);break;case 3:uo(e);break;case 12:uo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ai(e)):uo(e);break;default:uo(e)}}function Ai(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];pt=l,Fh(l,e)}Ph(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ta(8,t,t.return),Ai(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ai(t));break;default:Ai(t)}e=e.sibling}}function Fh(e,t){for(;pt!==null;){var a=pt;switch(a.tag){case 0:case 11:case 15:Ta(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:Zr(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,pt=l;else e:for(a=e;pt!==null;){l=pt;var s=l.sibling,c=l.return;if(Yh(l),l===a){pt=null;break e}if(s!==null){s.return=c,pt=s;break e}pt=c}}}var b1={getCacheForType:function(e){var t=yt(ot),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return yt(ot).controller.signal}},x1=typeof WeakMap=="function"?WeakMap:Map,He=0,Qe=null,Re=null,Oe=0,Ve=0,Qt=null,Ca=!1,or=!1,vu=!1,na=0,at=0,Aa=0,yl=0,yu=0,Zt=0,ir=0,fo=null,Bt=null,bu=!1,Ri=0,Ih=0,_i=1/0,Oi=null,Ra=null,ut=0,_a=null,sr=null,aa=0,xu=0,Su=null,Wh=null,mo=0,wu=null;function Kt(){return(He&2)!==0&&Oe!==0?Oe&-Oe:O.T!==null?Ru():qs()}function ep(){if(Zt===0)if((Oe&536870912)===0||je){var e=Ol;Ol<<=1,(Ol&3932160)===0&&(Ol=262144),Zt=e}else Zt=536870912;return e=$t.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,a){(e===Qe&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(cr(e,0),Oa(e,Oe,Zt,!1)),et(e,a),((He&2)===0||e!==Qe)&&(e===Qe&&((He&2)===0&&(yl|=a),at===4&&Oa(e,Oe,Zt,!1)),An(e))}function tp(e,t,a){if((He&6)!==0)throw Error(i(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Je(e,t),s=l?E1(e,t):Nu(e,t,!0),c=l;do{if(s===0){or&&!l&&Oa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!S1(a)){s=Nu(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;s=fo;var R=S.current.memoizedState.isDehydrated;if(R&&(cr(S,g).flags|=256),g=Nu(S,g,!1),g!==2){if(vu&&!R){S.errorRecoveryDisabledLanes|=c,yl|=c,s=4;break e}c=Bt,Bt=s,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}s=g}if(c=!1,s!==2)continue}}if(s===1){cr(e,0),Oa(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:Oa(l,t,Zt,!Ca);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Ri+300-At(),10<s)){if(Oa(l,t,Zt,!Ca),be(l,0,!0)!==0)break e;aa=t,l.timeoutHandle=Dp(np.bind(null,l,a,Bt,Oi,bu,t,Zt,yl,ir,Ca,c,"Throttled",-0,0),s);break e}np(l,a,Bt,Oi,bu,t,Zt,yl,ir,Ca,c,null,-0,0)}}break}while(!0);An(e)}function np(e,t,a,l,s,c,g,S,R,L,$,K,U,H){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qn},Kh(t,c,K);var oe=(c&62914560)===c?Ri-At():(c&4194048)===c?Ih-At():0;if(oe=rS(K,oe),oe!==null){aa=c,e.cancelPendingCommit=oe(up.bind(null,e,t,c,a,l,s,g,S,R,$,K,null,U,H)),Oa(e,c,g,!L);return}}up(e,t,c,a,l,s,g,S,R)}function S1(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 Oa(e,t,a,l){t&=~yu,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-wt(s),g=1<<c;l[c]=-1,s&=~g}a!==0&&tl(e,a,t)}function Mi(){return(He&6)===0?(ho(0),!1):!0}function Eu(){if(Re!==null){if(Ve===0)var e=Re.return;else e=Re,Qn=cl=null,Hc(e),Wl=null,Pr=0,e=Re;for(;e!==null;)jh(e.alternate,e),e=e.return;Re=null}}function cr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Y1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),aa=0,Eu(),Qe=e,Re=a=$n(e.current,null),Oe=t,Ve=0,Qt=null,Ca=!1,or=Je(e,t),vu=!1,ir=Zt=yu=yl=Aa=at=0,Bt=fo=null,bu=!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-wt(l),c=1<<s;t|=e[s],l&=~c}return na=t,Io(),a}function ap(e,t){Ne=null,O.H=ao,t===Il||t===oi?(t=bm(),Ve=3):t===Ac?(t=bm(),Ve=4):Ve=t===tu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Re===null&&(at=1,xi(e,nn(t,e.current)))}function lp(){var e=$t.current;return e===null?!0:(Oe&4194048)===Oe?on===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===on:!1}function rp(){var e=O.H;return O.H=ao,e===null?ao:e}function op(){var e=O.A;return O.A=b1,e}function Di(){at=4,Ca||(Oe&4194048)!==Oe&&$t.current!==null||(or=!0),(Aa&134217727)===0&&(yl&134217727)===0||Qe===null||Oa(Qe,Oe,Zt,!1)}function Nu(e,t,a){var l=He;He|=2;var s=rp(),c=op();(Qe!==e||Oe!==t)&&(Oi=null,cr(e,t)),t=!1;var g=at;e:do try{if(Ve!==0&&Re!==null){var S=Re,R=Qt;switch(Ve){case 8:Eu(),g=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var L=Ve;if(Ve=0,Qt=null,ur(e,S,R,L),a&&or){g=0;break e}break;default:L=Ve,Ve=0,Qt=null,ur(e,S,R,L)}}w1(),g=at;break}catch($){ap(e,$)}while(!0);return t&&e.shellSuspendCounter++,Qn=cl=null,He=l,O.H=s,O.A=c,Re===null&&(Qe=null,Oe=0,Io()),g}function w1(){for(;Re!==null;)ip(Re)}function E1(e,t){var a=He;He|=2;var l=rp(),s=op();Qe!==e||Oe!==t?(Oi=null,_i=At()+500,cr(e,t)):or=Je(e,t);e:do try{if(Ve!==0&&Re!==null){t=Re;var c=Qt;t:switch(Ve){case 1:Ve=0,Qt=null,ur(e,t,c,1);break;case 2:case 9:if(vm(c)){Ve=0,Qt=null,sp(t);break}t=function(){Ve!==2&&Ve!==9||Qe!==e||(Ve=7),An(e)},c.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:vm(c)?(Ve=0,Qt=null,sp(t)):(Ve=0,Qt=null,ur(e,t,c,7));break;case 5:var g=null;switch(Re.tag){case 26:g=Re.memoizedState;case 5:case 27:var S=Re;if(g?Zp(g):S.stateNode.complete){Ve=0,Qt=null;var R=S.sibling;if(R!==null)Re=R;else{var L=S.return;L!==null?(Re=L,ji(L)):Re=null}break t}}Ve=0,Qt=null,ur(e,t,c,5);break;case 6:Ve=0,Qt=null,ur(e,t,c,6);break;case 8:Eu(),at=6;break e;default:throw Error(i(462))}}N1();break}catch($){ap(e,$)}while(!0);return Qn=cl=null,O.H=l,O.A=s,He=a,Re!==null?0:(Qe=null,Oe=0,Io(),at)}function N1(){for(;Re!==null&&!Ct();)ip(Re)}function ip(e){var t=Mh(e.alternate,e,na);e.memoizedProps=e.pendingProps,t===null?ji(e):Re=t}function sp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Th(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Th(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Hc(t);default:jh(a,t),t=Re=om(t,na),t=Mh(a,t,na)}e.memoizedProps=e.pendingProps,t===null?ji(e):Re=t}function ur(e,t,a,l){Qn=cl=null,Hc(t),Wl=null,Pr=0;var s=t.return;try{if(d1(e,s,t,a,Oe)){at=1,xi(e,nn(a,e.current)),Re=null;return}}catch(c){if(s!==null)throw Re=s,c;at=1,xi(e,nn(a,e.current)),Re=null;return}t.flags&32768?(je||l===1?e=!0:or||(Oe&536870912)!==0?e=!1:(Ca=e=!0,(l===2||l===9||l===3||l===6)&&(l=$t.current,l!==null&&l.tag===13&&(l.flags|=16384))),cp(t,e)):ji(t)}function ji(e){var t=e;do{if((t.flags&32768)!==0){cp(t,Ca);return}e=t.return;var a=p1(t.alternate,t,na);if(a!==null){Re=a;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);at===0&&(at=5)}function cp(e,t){do{var a=g1(e.alternate,e);if(a!==null){a.flags&=32767,Re=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=a}while(e!==null);at=6,Re=null}function up(e,t,a,l,s,c,g,S,R){e.cancelPendingCommit=null;do zi();while(ut!==0);if((He&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=dc,Ot(e,a,c,g,S,R),e===Qe&&(Re=Qe=null,Oe=0),sr=t,_a=e,aa=a,xu=c,Su=s,Wh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,R1(Ia,function(){return pp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,s=Y.p,Y.p=2,g=He,He|=4;try{v1(e,t,a)}finally{He=g,Y.p=s,O.T=l}}ut=1,fp(),dp(),mp()}}function fp(){if(ut===1){ut=0;var e=_a,t=sr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var l=Y.p;Y.p=2;var s=He;He|=4;try{Xh(t,e);var c=Lu,g=Fd(e.containerInfo),S=c.focusedElem,R=c.selectionRange;if(g!==S&&S&&S.ownerDocument&&Jd(S.ownerDocument.documentElement,S)){if(R!==null&&ic(S)){var L=R.start,$=R.end;if($===void 0&&($=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min($,S.value.length);else{var K=S.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var H=U.getSelection(),oe=S.textContent.length,ye=Math.min(R.start,oe),$e=R.end===void 0?ye:Math.min(R.end,oe);!H.extend&&ye>$e&&(g=$e,$e=ye,ye=g);var z=Pd(S,ye),M=Pd(S,$e);if(z&&M&&(H.rangeCount!==1||H.anchorNode!==z.node||H.anchorOffset!==z.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var k=K.createRange();k.setStart(z.node,z.offset),H.removeAllRanges(),ye>$e?(H.addRange(k),H.extend(M.node,M.offset)):(k.setEnd(M.node,M.offset),H.addRange(k))}}}}for(K=[],H=S;H=H.parentNode;)H.nodeType===1&&K.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var Q=K[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qi=!!ku,Lu=ku=null}finally{He=s,Y.p=l,O.T=a}}e.current=t,ut=2}}function dp(){if(ut===2){ut=0;var e=_a,t=sr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var l=Y.p;Y.p=2;var s=He;He|=4;try{Vh(e,t.alternate,t)}finally{He=s,Y.p=l,O.T=a}}ut=3}}function mp(){if(ut===4||ut===3){ut=0,fa();var e=_a,t=sr,a=aa,l=Wh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,sr=_a=null,hp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ra=null),mn(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Wa,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,s=Y.p,Y.p=2,O.T=null;try{for(var c=e.onRecoverableError,g=0;g<l.length;g++){var S=l[g];c(S.value,{componentStack:S.stack})}}finally{O.T=t,Y.p=s}}(aa&3)!==0&&zi(),An(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===wu?mo++:(mo=0,wu=e):mo=0,ho(0)}}function hp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zr(t)))}function zi(){return fp(),dp(),mp(),pp()}function pp(){if(ut!==5)return!1;var e=_a,t=xu;xu=0;var a=mn(aa),l=O.T,s=Y.p;try{Y.p=32>a?32:a,O.T=null,a=Su,Su=null;var c=_a,g=aa;if(ut=0,sr=_a=null,aa=0,(He&6)!==0)throw Error(i(331));var S=He;if(He|=4,Jh(c.current),Zh(c,c.current,g,a),He=S,ho(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Wa,c)}catch{}return!0}finally{Y.p=s,O.T=l,hp(e,t)}}function gp(e,t,a){t=nn(a,t),t=eu(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(et(e,2),An(e))}function Ye(e,t,a){if(e.tag===3)gp(e,e,a);else for(;t!==null;){if(t.tag===3){gp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ra===null||!Ra.has(l))){e=nn(a,e),a=vh(2),l=wa(t,a,2),l!==null&&(yh(a,l,t,e),et(l,2),An(l));break}}t=t.return}}function Tu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new x1;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)||(vu=!0,s.add(a),e=T1.bind(null,e,t,a),t.then(e,e))}function T1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Qe===e&&(Oe&a)===a&&(at===4||at===3&&(Oe&62914560)===Oe&&300>At()-Ri?(He&2)===0&&cr(e,0):yu|=a,ir===Oe&&(ir=0)),An(e)}function vp(e,t){t===0&&(t=Et()),e=ol(e,t),e!==null&&(et(e,t),An(e))}function C1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),vp(e,a)}function A1(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),vp(e,a)}function R1(e,t){return Or(e,t)}var ki=null,fr=null,Cu=!1,Li=!1,Au=!1,Ma=0;function An(e){e!==fr&&e.next===null&&(fr===null?ki=fr=e:fr=fr.next=e),Li=!0,Cu||(Cu=!0,O1())}function ho(e,t){if(!Au&&Li){Au=!0;do for(var a=!1,l=ki;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var g=l.suspendedLanes,S=l.pingedLanes;c=(1<<31-wt(42|e)+1)-1,c&=s&~(g&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Sp(l,c))}else c=Oe,c=be(l,l===Qe?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Je(l,c)||(a=!0,Sp(l,c));l=l.next}while(a);Au=!1}}function _1(){yp()}function yp(){Li=Cu=!1;var e=0;Ma!==0&&V1()&&(e=Ma);for(var t=At(),a=null,l=ki;l!==null;){var s=l.next,c=bp(l,t);c===0?(l.next=null,a===null?ki=s:a.next=s,s===null&&(fr=a)):(a=l,(e!==0||(c&3)!==0)&&(Li=!0)),l=s}ut!==0&&ut!==5||ho(e),Ma!==0&&(Ma=0)}function bp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-wt(c),S=1<<g,R=s[g];R===-1?((S&a)===0||(S&l)!==0)&&(s[g]=mt(S,t)):R<=t&&(e.expiredLanes|=S),c&=~S}if(t=Qe,a=Oe,a=be(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Mr(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Je(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Mr(l),mn(a)){case 2:case 8:a=Ho;break;case 32:a=Ia;break;case 268435456:a=Vn;break;default:a=Ia}return l=xp.bind(null,e),a=Or(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Mr(l),e.callbackPriority=2,e.callbackNode=null,2}function xp(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(zi()&&e.callbackNode!==a)return null;var l=Oe;return l=be(e,e===Qe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(tp(e,l,t),bp(e,At()),e.callbackNode!=null&&e.callbackNode===a?xp.bind(null,e):null)}function Sp(e,t){if(zi())return null;tp(e,t,!0)}function O1(){q1(function(){(He&6)!==0?Or(Fa,_1):yp()})}function Ru(){if(Ma===0){var e=Jl;e===0&&(e=_l,_l<<=1,(_l&261888)===0&&(_l=256)),Ma=e}return Ma}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$o(""+e)}function Ep(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 M1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var c=wp((s[jt]||null).action),g=l.submitter;g&&(t=(t=g[jt]||null)?wp(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var S=new Ko("action","action",null,l,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ma!==0){var R=g?Ep(s,g):new FormData(s);Kc(a,{pending:!0,data:R,method:s.method,action:c},null,R)}}else typeof c=="function"&&(S.preventDefault(),R=g?Ep(s,g):new FormData(s),Kc(a,{pending:!0,data:R,method:s.method,action:c},c,R))},currentTarget:s}]})}}for(var _u=0;_u<fc.length;_u++){var Ou=fc[_u],D1=Ou.toLowerCase(),j1=Ou[0].toUpperCase()+Ou.slice(1);hn(D1,"on"+j1)}hn(em,"onAnimationEnd"),hn(tm,"onAnimationIteration"),hn(nm,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(Px,"onTransitionRun"),hn(Jx,"onTransitionStart"),hn(Fx,"onTransitionCancel"),hn(am,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var po="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(" "),z1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(po));function Np(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 g=l.length-1;0<=g;g--){var S=l[g],R=S.instance,L=S.currentTarget;if(S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=L;try{c(s)}catch($){Fo($)}s.currentTarget=null,c=R}else for(g=0;g<l.length;g++){if(S=l[g],R=S.instance,L=S.currentTarget,S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=L;try{c(s)}catch($){Fo($)}s.currentTarget=null,c=R}}}}function _e(e,t){var a=t[Gs];a===void 0&&(a=t[Gs]=new Set);var l=e+"__bubble";a.has(l)||(Tp(t,e,2,!1),a.add(l))}function Mu(e,t,a){var l=0;t&&(l|=4),Tp(a,e,l,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function Du(e){if(!e[Ui]){e[Ui]=!0,yd.forEach(function(a){a!=="selectionchange"&&(z1.has(a)||Mu(a,!1,e),Mu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,Mu("selectionchange",!1,t))}}function Tp(e,t,a,l){switch(eg(t)){case 2:var s=sS;break;case 8:s=cS;break;default:s=Zu}a=s.bind(null,t,a,e),s=void 0,!Is||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 ju(e,t,a,l,s){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var S=l.stateNode.containerInfo;if(S===s)break;if(g===4)for(g=l.return;g!==null;){var R=g.tag;if((R===3||R===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;S!==null;){if(g=jl(S),g===null)return;if(R=g.tag,R===5||R===6||R===26||R===27){l=c=g;continue e}S=S.parentNode}}l=l.return}Od(function(){var L=c,$=Js(a),K=[];e:{var U=lm.get(e);if(U!==void 0){var H=Ko,oe=e;switch(e){case"keypress":if(Qo(a)===0)break e;case"keydown":case"keyup":H=Ax;break;case"focusin":oe="focus",H=nc;break;case"focusout":oe="blur",H=nc;break;case"beforeblur":case"afterblur":H=nc;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":H=jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=px;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Ox;break;case em:case tm:case nm:H=yx;break;case am:H=Dx;break;case"scroll":case"scrollend":H=mx;break;case"wheel":H=zx;break;case"copy":case"cut":case"paste":H=xx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=kd;break;case"toggle":case"beforetoggle":H=Lx}var ye=(t&4)!==0,$e=!ye&&(e==="scroll"||e==="scrollend"),z=ye?U!==null?U+"Capture":null:U;ye=[];for(var M=L,k;M!==null;){var Q=M;if(k=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||k===null||z===null||(Q=Lr(M,z),Q!=null&&ye.push(go(M,Q,k))),$e)break;M=M.return}0<ye.length&&(U=new H(U,oe,null,a,$),K.push({event:U,listeners:ye}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&a!==Ps&&(oe=a.relatedTarget||a.fromElement)&&(jl(oe)||oe[Dl]))break e;if((H||U)&&(U=$.window===$?$:(U=$.ownerDocument)?U.defaultView||U.parentWindow:window,H?(oe=a.relatedTarget||a.toElement,H=L,oe=oe?jl(oe):null,oe!==null&&($e=f(oe),ye=oe.tag,oe!==$e||ye!==5&&ye!==27&&ye!==6)&&(oe=null)):(H=null,oe=L),H!==oe)){if(ye=jd,Q="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ye=kd,Q="onPointerLeave",z="onPointerEnter",M="pointer"),$e=H==null?U:kr(H),k=oe==null?U:kr(oe),U=new ye(Q,M+"leave",H,a,$),U.target=$e,U.relatedTarget=k,Q=null,jl($)===L&&(ye=new ye(z,M+"enter",oe,a,$),ye.target=k,ye.relatedTarget=$e,Q=ye),$e=Q,H&&oe)t:{for(ye=k1,z=H,M=oe,k=0,Q=z;Q;Q=ye(Q))k++;Q=0;for(var ve=M;ve;ve=ye(ve))Q++;for(;0<k-Q;)z=ye(z),k--;for(;0<Q-k;)M=ye(M),Q--;for(;k--;){if(z===M||M!==null&&z===M.alternate){ye=z;break t}z=ye(z),M=ye(M)}ye=null}else ye=null;H!==null&&Cp(K,U,H,ye,!1),oe!==null&&$e!==null&&Cp(K,$e,oe,ye,!0)}}e:{if(U=L?kr(L):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var Le=Gd;else if(Yd(U))if($d)Le=Qx;else{Le=$x;var de=Gx}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&Ks(L.elementType)&&(Le=Gd):Le=Xx;if(Le&&(Le=Le(e,L))){qd(K,Le,a,$);break e}de&&de(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&Zs(U,"number",U.value)}switch(de=L?kr(L):window,e){case"focusin":(Yd(de)||de.contentEditable==="true")&&(ql=de,sc=L,$r=null);break;case"focusout":$r=sc=ql=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Id(K,a,$);break;case"selectionchange":if(Kx)break;case"keydown":case"keyup":Id(K,a,$)}var Te;if(lc)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Yl?Hd(e,a)&&(Me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Me="onCompositionStart");Me&&(Ld&&a.locale!=="ko"&&(Yl||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Yl&&(Te=Md()):(pa=$,Ws="value"in pa?pa.value:pa.textContent,Yl=!0)),de=Bi(L,Me),0<de.length&&(Me=new zd(Me,e,null,a,$),K.push({event:Me,listeners:de}),Te?Me.data=Te:(Te=Vd(a),Te!==null&&(Me.data=Te)))),(Te=Bx?Hx(e,a):Vx(e,a))&&(Me=Bi(L,"onBeforeInput"),0<Me.length&&(de=new zd("onBeforeInput","beforeinput",null,a,$),K.push({event:de,listeners:Me}),de.data=Te)),M1(K,e,L,a,$)}Np(K,t)})}function go(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Bi(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=Lr(e,a),s!=null&&l.unshift(go(e,s,c)),s=Lr(e,t),s!=null&&l.push(go(e,s,c))),e.tag===3)return l;e=e.return}return[]}function k1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cp(e,t,a,l,s){for(var c=t._reactName,g=[];a!==null&&a!==l;){var S=a,R=S.alternate,L=S.stateNode;if(S=S.tag,R!==null&&R===l)break;S!==5&&S!==26&&S!==27||L===null||(R=L,s?(L=Lr(a,c),L!=null&&g.unshift(go(a,L,R))):s||(L=Lr(a,c),L!=null&&g.push(go(a,L,R)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var L1=/\r\n?/g,U1=/\u0000|\uFFFD/g;function Ap(e){return(typeof e=="string"?e:""+e).replace(L1,`
|
|
50
|
-
`).replace(U1,"")}function Rp(e,t){return t=Ap(t),Ap(e)===t}function Ge(e,t,a,l,s,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Bl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Bl(e,""+l);break;case"className":qo(e,"class",l);break;case"tabIndex":qo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qo(e,a,l);break;case"style":Rd(e,l,c);break;case"data":if(t!=="object"){qo(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=$o(""+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"&&Ge(e,t,"name",s.name,s,null),Ge(e,t,"formEncType",s.formEncType,s,null),Ge(e,t,"formMethod",s.formMethod,s,null),Ge(e,t,"formTarget",s.formTarget,s,null)):(Ge(e,t,"encType",s.encType,s,null),Ge(e,t,"method",s.method,s,null),Ge(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=$o(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=qn);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("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=$o(""+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":_e("beforetoggle",e),_e("toggle",e),Yo(e,"popover",l);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Yo(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=fx.get(a)||a,Yo(e,a,l))}}function zu(e,t,a,l,s,c){switch(a){case"style":Rd(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"?Bl(e,l):(typeof l=="number"||typeof l=="bigint")&&Bl(e,""+l);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("scrollend",e);break;case"onClick":l!=null&&(e.onclick=qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bd.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[jt]||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,""):Yo(e,a,l)}}}function xt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var l=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ge(e,t,c,g,a,null)}}s&&Ge(e,t,"srcSet",a.srcSet,a,null),l&&Ge(e,t,"src",a.src,a,null);return;case"input":_e("invalid",e);var S=c=g=s=null,R=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var $=a[l];if($!=null)switch(l){case"name":s=$;break;case"type":g=$;break;case"checked":R=$;break;case"defaultChecked":L=$;break;case"value":c=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,t));break;default:Ge(e,t,l,$,a,null)}}Nd(e,c,S,R,L,g,s,!1);return;case"select":_e("invalid",e),l=g=c=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":c=S;break;case"defaultValue":g=S;break;case"multiple":l=S;default:Ge(e,t,s,S,a,null)}t=c,a=g,e.multiple=!!l,t!=null?Ul(e,!!l,t,!1):a!=null&&Ul(e,!!l,a,!0);return;case"textarea":_e("invalid",e),c=s=l=null;for(g in a)if(a.hasOwnProperty(g)&&(S=a[g],S!=null))switch(g){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:Ge(e,t,g,S,a,null)}Cd(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:Ge(e,t,R,l,a,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(l=0;l<po.length;l++)_e(po[l],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ge(e,t,L,l,a,null)}return;default:if(Ks(t)){for($ in a)a.hasOwnProperty($)&&(l=a[$],l!==void 0&&zu(e,t,$,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&Ge(e,t,S,l,a,null))}function B1(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,g=null,S=null,R=null,L=null,$=null;for(H in a){var K=a[H];if(a.hasOwnProperty(H)&&K!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":R=K;default:l.hasOwnProperty(H)||Ge(e,t,H,null,l,K)}}for(var U in l){var H=l[U];if(K=a[U],l.hasOwnProperty(U)&&(H!=null||K!=null))switch(U){case"type":c=H;break;case"name":s=H;break;case"checked":L=H;break;case"defaultChecked":$=H;break;case"value":g=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:H!==K&&Ge(e,t,U,H,l,K)}}Qs(e,g,S,R,L,$,c,s);return;case"select":H=g=S=U=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":H=R;default:l.hasOwnProperty(c)||Ge(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":U=c;break;case"defaultValue":S=c;break;case"multiple":g=c;default:c!==R&&Ge(e,t,s,c,l,R)}t=S,a=g,l=H,U!=null?Ul(e,!!a,U,!1):!!l!=!!a&&(t!=null?Ul(e,!!a,t,!0):Ul(e,!!a,a?[]:"",!1));return;case"textarea":H=U=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:Ge(e,t,S,null,l,s)}for(g in l)if(s=l[g],c=a[g],l.hasOwnProperty(g)&&(s!=null||c!=null))switch(g){case"value":U=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Ge(e,t,g,s,l,c)}Td(e,U,H);return;case"option":for(var oe in a)if(U=a[oe],a.hasOwnProperty(oe)&&U!=null&&!l.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Ge(e,t,oe,null,l,U)}for(R in l)if(U=l[R],H=a[R],l.hasOwnProperty(R)&&U!==H&&(U!=null||H!=null))switch(R){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ge(e,t,R,U,l,H)}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 ye in a)U=a[ye],a.hasOwnProperty(ye)&&U!=null&&!l.hasOwnProperty(ye)&&Ge(e,t,ye,null,l,U);for(L in l)if(U=l[L],H=a[L],l.hasOwnProperty(L)&&U!==H&&(U!=null||H!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(i(137,t));break;default:Ge(e,t,L,U,l,H)}return;default:if(Ks(t)){for(var $e in a)U=a[$e],a.hasOwnProperty($e)&&U!==void 0&&!l.hasOwnProperty($e)&&zu(e,t,$e,void 0,l,U);for($ in l)U=l[$],H=a[$],!l.hasOwnProperty($)||U===H||U===void 0&&H===void 0||zu(e,t,$,U,l,H);return}}for(var z in a)U=a[z],a.hasOwnProperty(z)&&U!=null&&!l.hasOwnProperty(z)&&Ge(e,t,z,null,l,U);for(K in l)U=l[K],H=a[K],!l.hasOwnProperty(K)||U===H||U==null&&H==null||Ge(e,t,K,U,l,H)}function _p(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function H1(){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,g=s.initiatorType,S=s.duration;if(c&&S&&_p(g)){for(g=0,S=s.responseEnd,l+=1;l<a.length;l++){var R=a[l],L=R.startTime;if(L>S)break;var $=R.transferSize,K=R.initiatorType;$&&_p(K)&&(R=R.responseEnd,g+=$*(R<S?1:(S-L)/(R-L)))}if(--l,t+=8*(c+g)/(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 ku=null,Lu=null;function Hi(e){return e.nodeType===9?e:e.ownerDocument}function Op(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 Mp(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 Uu(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 Bu=null;function V1(){var e=window.event;return e&&e.type==="popstate"?e===Bu?!1:(Bu=e,!0):(Bu=null,!1)}var Dp=typeof setTimeout=="function"?setTimeout:void 0,Y1=typeof clearTimeout=="function"?clearTimeout:void 0,jp=typeof Promise=="function"?Promise:void 0,q1=typeof queueMicrotask=="function"?queueMicrotask:typeof jp<"u"?function(e){return jp.resolve(null).then(e).catch(G1)}:Dp;function G1(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function zp(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),pr(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")vo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,vo(a);for(var c=a.firstChild;c;){var g=c.nextSibling,S=c.nodeName;c[zr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=g}}else a==="body"&&vo(e.ownerDocument.body);a=s}while(a);pr(t)}function kp(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 Hu(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":Hu(a),$s(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function $1(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[zr])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=sn(e.nextSibling),e===null)break}return null}function X1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=sn(e.nextSibling),e===null))return null;return e}function Lp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=sn(e.nextSibling),e===null))return null;return e}function Vu(e){return e.data==="$?"||e.data==="$~"}function Yu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Q1(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 sn(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 qu=null;function Up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return sn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Bp(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 Hp(e,t,a){switch(t=Hi(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 vo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$s(e)}var cn=new Map,Vp=new Set;function Vi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var la=Y.d;Y.d={f:Z1,r:K1,D:P1,C:J1,L:F1,m:I1,X:eS,S:W1,M:tS};function Z1(){var e=la.f(),t=Mi();return e||t}function K1(e){var t=zl(e);t!==null&&t.tag===5&&t.type==="form"?ah(t):la.r(e)}var dr=typeof document>"u"?null:document;function Yp(e,t,a){var l=dr;if(l&&typeof t=="string"&&t){var s=en(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Vp.has(s)||(Vp.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),xt(t,"link",e),ht(t),l.head.appendChild(t)))}}function P1(e){la.D(e),Yp("dns-prefetch",e,null)}function J1(e,t){la.C(e,t),Yp("preconnect",e,t)}function F1(e,t,a){la.L(e,t,a);var l=dr;if(l&&e&&t){var s='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+en(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+en(a.imageSizes)+'"]')):s+='[href="'+en(e)+'"]';var c=s;switch(t){case"style":c=mr(e);break;case"script":c=hr(e)}cn.has(c)||(e=m({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),cn.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(yo(c))||t==="script"&&l.querySelector(bo(c))||(t=l.createElement("link"),xt(t,"link",e),ht(t),l.head.appendChild(t)))}}function I1(e,t){la.m(e,t);var a=dr;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+en(l)+'"][href="'+en(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hr(e)}if(!cn.has(c)&&(e=m({rel:"modulepreload",href:e},t),cn.set(c,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bo(c)))return}l=a.createElement("link"),xt(l,"link",e),ht(l),a.head.appendChild(l)}}}function W1(e,t,a){la.S(e,t,a);var l=dr;if(l&&e){var s=kl(l).hoistableStyles,c=mr(e);t=t||"default";var g=s.get(c);if(!g){var S={loading:0,preload:null};if(g=l.querySelector(yo(c)))S.loading=5;else{e=m({rel:"stylesheet",href:e,"data-precedence":t},a),(a=cn.get(c))&&Gu(e,a);var R=g=l.createElement("link");ht(R),xt(R,"link",e),R._p=new Promise(function(L,$){R.onload=L,R.onerror=$}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Yi(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:S},s.set(c,g)}}}function eS(e,t){la.X(e,t);var a=dr;if(a&&e){var l=kl(a).hoistableScripts,s=hr(e),c=l.get(s);c||(c=a.querySelector(bo(s)),c||(e=m({src:e,async:!0},t),(t=cn.get(s))&&$u(e,t),c=a.createElement("script"),ht(c),xt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function tS(e,t){la.M(e,t);var a=dr;if(a&&e){var l=kl(a).hoistableScripts,s=hr(e),c=l.get(s);c||(c=a.querySelector(bo(s)),c||(e=m({src:e,async:!0,type:"module"},t),(t=cn.get(s))&&$u(e,t),c=a.createElement("script"),ht(c),xt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function qp(e,t,a,l){var s=(s=ne.current)?Vi(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=mr(a.href),a=kl(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=mr(a.href);var c=kl(s).hoistableStyles,g=c.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=s.querySelector(yo(e)))&&!c._p&&(g.instance=c,g.state.loading=5),cn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},cn.set(e,a),c||nS(s,e,a,g.state))),t&&l===null)throw Error(i(528,""));return g}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=hr(a),a=kl(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 mr(e){return'href="'+en(e)+'"'}function yo(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function nS(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}),xt(t,"link",a),ht(t),e.head.appendChild(t))}function hr(e){return'[src="'+en(e)+'"]'}function bo(e){return"script[async]"+e}function $p(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+en(a.href)+'"]');if(l)return t.instance=l,ht(l),l;var s=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ht(l),xt(l,"style",s),Yi(l,a.precedence,e),t.instance=l;case"stylesheet":s=mr(a.href);var c=e.querySelector(yo(s));if(c)return t.state.loading|=4,t.instance=c,ht(c),c;l=Gp(a),(s=cn.get(s))&&Gu(l,s),c=(e.ownerDocument||e).createElement("link"),ht(c);var g=c;return g._p=new Promise(function(S,R){g.onload=S,g.onerror=R}),xt(c,"link",l),t.state.loading|=4,Yi(c,a.precedence,e),t.instance=c;case"script":return c=hr(a.src),(s=e.querySelector(bo(c)))?(t.instance=s,ht(s),s):(l=a,(s=cn.get(c))&&(l=m({},a),$u(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),ht(s),xt(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,Yi(l,a.precedence,e));return t.instance}function Yi(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,g=0;g<l.length;g++){var S=l[g];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 Gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $u(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qi=null;function Xp(e,t,a){if(qi===null){var l=new Map,s=qi=new Map;s.set(a,l)}else s=qi,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[zr]||c[gt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var S=l.get(g);S?S.push(c):l.set(g,[c])}}return l}function Qp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function aS(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 Zp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lS(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=mr(l.href),c=t.querySelector(yo(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ht(c);return}c=t.ownerDocument||t,l=Gp(l),(s=cn.get(s))&&Gu(l,s),c=c.createElement("link"),ht(c);var g=c;g._p=new Promise(function(S,R){g.onload=S,g.onerror=R}),xt(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=Gi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Xu=0;function rS(e,t){return e.stylesheets&&e.count===0&&Xi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Xu===0&&(Xu=62500*H1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Xu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Gi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $i=null;function Xi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$i=new Map,t.forEach(oS,e),$i=null,Gi.call(e))}function oS(e,t){if(!(t.state.loading&4)){var a=$i.get(e);if(a)var l=a.get(null);else{a=new Map,$i.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var g=s[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}s=t.instance,g=s.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,s),a.set(g,s),this.count++,l=Gi.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 xo={$$typeof:D,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function iS(e,t,a,l,s,c,g,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=ma(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ma(0),this.hiddenUpdates=ma(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Kp(e,t,a,l,s,c,g,S,R,L,$,K){return e=new iS(e,t,a,g,R,L,$,K,S),t=1,c===!0&&(t|=24),c=Gt(3,null,null,t),e.current=c,c.stateNode=e,t=Nc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},Rc(c),e}function Pp(e){return e?(e=Xl,e):Xl}function Jp(e,t,a,l,s,c){s=Pp(s),l.context===null?l.context=s:l.pendingContext=s,l=Sa(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=wa(e,l,t),a!==null&&(Ht(a,e,t),Fr(a,e,t))}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Qu(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function Ip(e){if(e.tag===13||e.tag===31){var t=ol(e,67108864);t!==null&&Ht(t,e,67108864),Qu(e,67108864)}}function Wp(e){if(e.tag===13||e.tag===31){var t=Kt();t=Ml(t);var a=ol(e,t);a!==null&&Ht(a,e,t),Qu(e,t)}}var Qi=!0;function sS(e,t,a,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=2,Zu(e,t,a,l)}finally{Y.p=c,O.T=s}}function cS(e,t,a,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=8,Zu(e,t,a,l)}finally{Y.p=c,O.T=s}}function Zu(e,t,a,l){if(Qi){var s=Ku(l);if(s===null)ju(e,t,l,Zi,a),tg(e,l);else if(fS(s,e,t,a,l))l.stopPropagation();else if(tg(e,l),t&4&&-1<uS.indexOf(e)){for(;s!==null;){var c=zl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=En(c.pendingLanes);if(g!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var R=1<<31-wt(g);S.entanglements[1]|=R,g&=~R}An(c),(He&6)===0&&(_i=At()+500,ho(0))}}break;case 31:case 13:S=ol(c,2),S!==null&&Ht(S,c,2),Mi(),Qu(c,2)}if(c=Ku(l),c===null&&ju(e,t,l,Zi,a),c===s)break;s=c}s!==null&&l.stopPropagation()}else ju(e,t,l,null,a)}}function Ku(e){return e=Js(e),Pu(e)}var Zi=null;function Pu(e){if(Zi=null,e=jl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=h(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 Zi=e,null}function eg(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(Vs()){case Fa:return 2;case Ho:return 8;case Ia:case Dr:return 32;case Vn:return 268435456;default:return 32}default:return 32}}var Ju=!1,ja=null,za=null,ka=null,So=new Map,wo=new Map,La=[],uS="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 tg(e,t){switch(e){case"focusin":case"focusout":ja=null;break;case"dragenter":case"dragleave":za=null;break;case"mouseover":case"mouseout":ka=null;break;case"pointerover":case"pointerout":So.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wo.delete(t.pointerId)}}function Eo(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=zl(t),t!==null&&Ip(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function fS(e,t,a,l,s){switch(t){case"focusin":return ja=Eo(ja,e,t,a,l,s),!0;case"dragenter":return za=Eo(za,e,t,a,l,s),!0;case"mouseover":return ka=Eo(ka,e,t,a,l,s),!0;case"pointerover":var c=s.pointerId;return So.set(c,Eo(So.get(c)||null,e,t,a,l,s)),!0;case"gotpointercapture":return c=s.pointerId,wo.set(c,Eo(wo.get(c)||null,e,t,a,l,s)),!0}return!1}function ng(e){var t=jl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(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 Ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ku(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ps=l,a.target.dispatchEvent(l),Ps=null}else return t=zl(a),t!==null&&Ip(t),e.blockedOn=a,!1;t.shift()}return!0}function ag(e,t,a){Ki(e)&&a.delete(t)}function dS(){Ju=!1,ja!==null&&Ki(ja)&&(ja=null),za!==null&&Ki(za)&&(za=null),ka!==null&&Ki(ka)&&(ka=null),So.forEach(ag),wo.forEach(ag)}function Pi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ju||(Ju=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,dS)))}var Ji=null;function lg(e){Ji!==e&&(Ji=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ji===e&&(Ji=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(Pu(l||a)===null)continue;break}var c=zl(a);c!==null&&(e.splice(t,3),t-=3,Kc(c,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function pr(e){function t(R){return Pi(R,e)}ja!==null&&Pi(ja,e),za!==null&&Pi(za,e),ka!==null&&Pi(ka,e),So.forEach(t),wo.forEach(t);for(var a=0;a<La.length;a++){var l=La[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<La.length&&(a=La[0],a.blockedOn===null);)ng(a),a.blockedOn===null&&La.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],g=s[jt]||null;if(typeof c=="function")g||lg(a);else if(g){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,g=c[jt]||null)S=g.formAction;else if(Pu(s)!==null)continue}else S=g.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),lg(a)}}}function rg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return s=g})},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 Fu(e){this._internalRoot=e}Fi.prototype.render=Fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,l=Kt();Jp(a,l,e,t,null,null)},Fi.prototype.unmount=Fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jp(e.current,2,null,e,null,null),Mi(),t[Dl]=null}};function Fi(e){this._internalRoot=e}Fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=qs();e={blockedOn:null,target:e,priority:t};for(var a=0;a<La.length&&t!==0&&t<La[a].priority;a++);La.splice(a,0,e),a===0&&ng(e)}};var og=r.version;if(og!=="19.2.4")throw Error(i(527,og,"19.2.4"));Y.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 mS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{Wa=Ii.inject(mS),Rt=Ii}catch{}}return To.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,l="",s=mh,c=hh,g=ph;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&&(g=t.onRecoverableError)),t=Kp(e,1,!1,null,null,a,l,null,s,c,g,rg),e[Dl]=t.current,Du(e),new Fu(t)},To.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var l=!1,s="",c=mh,g=hh,S=ph,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&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=Kp(e,1,!0,t,a??null,l,s,R,c,g,S,rg),t.context=Pp(null),a=t.current,l=Kt(),l=Ml(l),s=Sa(l),s.callback=null,wa(a,s,l),a=l,t.current.lanes=a,et(t,a),An(t),e[Dl]=t.current,Du(e),new Fi(t)},To.version="19.2.4",To}var gg;function ES(){if(gg)return ef.exports;gg=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(),ef.exports=wS(),ef.exports}var NS=ES();const TS="modulepreload",CS=function(n){return"/"+n},vg={},hv=function(r,o,i){let u=Promise.resolve();if(o&&o.length>0){let d=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=d(o.map(p=>{if(p=CS(p),p in vg)return;vg[p]=!0;const x=p.endsWith(".css"),m=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":TS,x||(w.as="script"),w.crossOrigin="",w.href=p,v&&w.setAttribute("nonce",v),document.head.appendChild(w),x)return new Promise((N,A)=>{w.addEventListener("load",N),w.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return u.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return r().catch(f)})};/**
|
|
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 yg="popstate";function bg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function AS(n={}){function r(i,u){var p;let f=(p=u.state)==null?void 0:p.masked,{pathname:d,search:h,hash:v}=f||i.location;return Sf("",{pathname:d,search:h,hash:v},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,u){return typeof u=="string"?u:_o(u)}return _S(r,o,null,n)}function Ie(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function yn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function RS(){return Math.random().toString(36).substring(2,10)}function xg(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 Sf(n,r,o=null,i,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Nr(r):r,state:o,key:r&&r.key||i||RS(),unstable_mask:u}}function _o({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 Nr(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 _S(n,r,o,i={}){let{window:u=document.defaultView,v5Compat:f=!1}=i,d=u.history,h="POP",v=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function m(){h="POP";let T=x(),C=T==null?null:T-p;p=T,v&&v({action:h,location:E.location,delta:C})}function w(T,C){h="PUSH";let j=bg(T)?T:Sf(E.location,T,C);p=x()+1;let D=xg(j,p),B=E.createHref(j.unstable_mask||j);try{d.pushState(D,"",B)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;u.location.assign(B)}f&&v&&v({action:h,location:E.location,delta:1})}function N(T,C){h="REPLACE";let j=bg(T)?T:Sf(E.location,T,C);p=x();let D=xg(j,p),B=E.createHref(j.unstable_mask||j);d.replaceState(D,"",B),f&&v&&v({action:h,location:E.location,delta:0})}function A(T){return OS(T)}let E={get action(){return h},get location(){return n(u,d)},listen(T){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(yg,m),v=T,()=>{u.removeEventListener(yg,m),v=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:N,go(T){return d.go(T)}};return E}function OS(n,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ie(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:_o(n);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function pv(n,r,o="/"){return MS(n,r,o,!1)}function MS(n,r,o,i){let u=typeof r=="string"?Nr(r):r,f=oa(u.pathname||"/",o);if(f==null)return null;let d=gv(n);DS(d);let h=null;for(let v=0;h==null&&v<d.length;++v){let p=GS(f);h=YS(d[v],p,i)}return h}function gv(n,r=[],o=[],i="",u=!1){let f=(d,h,v=u,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&v)return;Ie(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 m=Ln([i,x.relativePath]),w=o.concat(x);d.children&&d.children.length>0&&(Ie(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),gv(d.children,r,w,m,v)),!(d.path==null&&!d.index)&&r.push({path:m,score:HS(m,d.index),routesMeta:w})};return n.forEach((d,h)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,h);else for(let p of vv(d.path))f(d,h,!0,p)}),r}function vv(n){let r=n.split("/");if(r.length===0)return[];let[o,...i]=r,u=o.endsWith("?"),f=o.replace(/\?$/,"");if(i.length===0)return u?[f,""]:[f];let d=vv(i.join("/")),h=[];return h.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&h.push(...d),h.map(v=>n.startsWith("/")&&v===""?"/":v)}function DS(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:VS(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var jS=/^:[\w-]+$/,zS=3,kS=2,LS=1,US=10,BS=-2,Sg=n=>n==="*";function HS(n,r){let o=n.split("/"),i=o.length;return o.some(Sg)&&(i+=BS),r&&(i+=kS),o.filter(u=>!Sg(u)).reduce((u,f)=>u+(jS.test(f)?zS:f===""?LS:US),i)}function VS(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 YS(n,r,o=!1){let{routesMeta:i}=n,u={},f="/",d=[];for(let h=0;h<i.length;++h){let v=i[h],p=h===i.length-1,x=f==="/"?r:r.slice(f.length)||"/",m=vs({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},x),w=v.route;if(!m&&p&&o&&!i[i.length-1].route.index&&(m=vs({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!m)return null;Object.assign(u,m.params),d.push({params:u,pathname:Ln([f,m.pathname]),pathnameBase:ZS(Ln([f,m.pathnameBase])),route:w}),m.pathnameBase!=="/"&&(f=Ln([f,m.pathnameBase]))}return d}function vs(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=qS(n.path,n.caseSensitive,n.end),u=r.match(o);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:m},w)=>{if(x==="*"){let A=h[w]||"";d=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const N=h[w];return m&&!N?p[x]=void 0:p[x]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:n}}function qS(n,r=!1,o=!0){yn(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,(d,h,v,p,x)=>{if(i.push({paramName:h,isOptional:v!=null}),v){let m=x.charAt(p+d.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 GS(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return yn(!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 oa(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 $S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function XS(n,r="/"){let{pathname:o,search:i="",hash:u=""}=typeof n=="string"?Nr(n):n,f;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?f=wg(o.substring(1),"/"):f=wg(o,r)):f=r,{pathname:f,search:KS(i),hash:PS(u)}}function wg(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 lf(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 QS(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Bf(n){let r=QS(n);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}function Cs(n,r,o,i=!1){let u;typeof n=="string"?u=Nr(n):(u={...n},Ie(!u.pathname||!u.pathname.includes("?"),lf("?","pathname","search",u)),Ie(!u.pathname||!u.pathname.includes("#"),lf("#","pathname","hash",u)),Ie(!u.search||!u.search.includes("#"),lf("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,h;if(d==null)h=o;else{let m=r.length-1;if(!i&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),m-=1;u.pathname=w.join("/")}h=m>=0?r[m]:"/"}let v=XS(u,h),p=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(p||x)&&(v.pathname+="/"),v}var Ln=n=>n.join("/").replace(/\/\/+/g,"/"),ZS=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),KS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,PS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,JS=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 FS(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function IS(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var yv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function bv(n,r){let o=n;if(typeof o!="string"||!$S.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(yv)try{let f=new URL(window.location.href),d=o.startsWith("//")?new URL(f.protocol+o):new URL(o),h=oa(d.pathname,r);d.origin===f.origin&&h!=null?o=h+d.search+d.hash:u=!0}catch{yn(!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 xv=["POST","PUT","PATCH","DELETE"];new Set(xv);var WS=["GET",...xv];new Set(WS);var Tr=b.createContext(null);Tr.displayName="DataRouter";var As=b.createContext(null);As.displayName="DataRouterState";var e2=b.createContext(!1),Sv=b.createContext({isTransitioning:!1});Sv.displayName="ViewTransition";var t2=b.createContext(new Map);t2.displayName="Fetchers";var n2=b.createContext(null);n2.displayName="Await";var Ft=b.createContext(null);Ft.displayName="Navigation";var jo=b.createContext(null);jo.displayName="Location";var un=b.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var Hf=b.createContext(null);Hf.displayName="RouteError";var wv="REACT_ROUTER_ERROR",a2="REDIRECT",l2="ROUTE_ERROR_RESPONSE";function r2(n){if(n.startsWith(`${wv}:${a2}:{`))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 o2(n){if(n.startsWith(`${wv}:${l2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new JS(r.status,r.statusText,r.data)}catch{}}function i2(n,{relative:r}={}){Ie(Cr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=b.useContext(Ft),{hash:u,pathname:f,search:d}=zo(n,{relative:r}),h=f;return o!=="/"&&(h=f==="/"?o:Ln([o,f])),i.createHref({pathname:h,search:d,hash:u})}function Cr(){return b.useContext(jo)!=null}function Bn(){return Ie(Cr(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(jo).location}var Ev="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nv(n){b.useContext(Ft).static||b.useLayoutEffect(n)}function Tv(){let{isDataRoute:n}=b.useContext(un);return n?w2():s2()}function s2(){Ie(Cr(),"useNavigate() may be used only in the context of a <Router> component.");let n=b.useContext(Tr),{basename:r,navigator:o}=b.useContext(Ft),{matches:i}=b.useContext(un),{pathname:u}=Bn(),f=JSON.stringify(Bf(i)),d=b.useRef(!1);return Nv(()=>{d.current=!0}),b.useCallback((v,p={})=>{if(yn(d.current,Ev),!d.current)return;if(typeof v=="number"){o.go(v);return}let x=Cs(v,JSON.parse(f),u,p.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Ln([r,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[r,o,f,u,n])}var c2=b.createContext(null);function u2(n){let r=b.useContext(un).outlet;return b.useMemo(()=>r&&b.createElement(c2.Provider,{value:n},r),[r,n])}function H5(){let{matches:n}=b.useContext(un),r=n[n.length-1];return r?r.params:{}}function zo(n,{relative:r}={}){let{matches:o}=b.useContext(un),{pathname:i}=Bn(),u=JSON.stringify(Bf(o));return b.useMemo(()=>Cs(n,JSON.parse(u),i,r==="path"),[n,u,i,r])}function f2(n,r){return Cv(n,r)}function Cv(n,r,o){var T;Ie(Cr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=b.useContext(Ft),{matches:u}=b.useContext(un),f=u[u.length-1],d=f?f.params:{},h=f?f.pathname:"/",v=f?f.pathnameBase:"/",p=f&&f.route;{let C=p&&p.path||"";Rv(h,!p||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (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=Bn(),m;if(r){let C=typeof r=="string"?Nr(r):r;Ie(v==="/"||((T=C.pathname)==null?void 0:T.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${C.pathname}" was given in the \`location\` prop.`),m=C}else m=x;let w=m.pathname||"/",N=w;if(v!=="/"){let C=v.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let A=pv(n,{pathname:N});yn(p||A!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),yn(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 "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=g2(A&&A.map(C=>Object.assign({},C,{params:Object.assign({},d,C.params),pathname:Ln([v,i.encodeLocation?i.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?v:Ln([v,i.encodeLocation?i.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),u,o);return r&&E?b.createElement(jo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},E):E}function d2(){let n=S2(),r=FS(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},f={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=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:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"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,d)}var m2=b.createElement(d2,null),Av=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=o2(n.digest);o&&(n=o)}let r=n!==void 0?b.createElement(un.Provider,{value:this.props.routeContext},b.createElement(Hf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?b.createElement(h2,{error:n},r):r}};Av.contextType=e2;var rf=new WeakMap;function h2({children:n,error:r}){let{basename:o}=b.useContext(Ft);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=r2(r.digest);if(i){let u=rf.get(r);if(u)throw u;let f=bv(i.location,o);if(yv&&!rf.get(r))if(f.isExternal||i.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:i.replace}));throw rf.set(r,d),d}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function p2({routeContext:n,match:r,children:o}){let i=b.useContext(Tr);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(un.Provider,{value:n},o)}function g2(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,f=i==null?void 0:i.errors;if(f!=null){let x=u.findIndex(m=>m.route.id&&(f==null?void 0:f[m.route.id])!==void 0);Ie(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let d=!1,h=-1;if(o&&i){d=i.renderFallback;for(let x=0;x<u.length;x++){let m=u[x];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=x),m.route.id){let{loaderData:w,errors:N}=i,A=m.route.loader&&!w.hasOwnProperty(m.route.id)&&(!N||N[m.route.id]===void 0);if(m.route.lazy||A){o.isStatic&&(d=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let v=o==null?void 0:o.onError,p=i&&v?(x,m)=>{var w,N;v(x,{location:i.location,params:((N=(w=i.matches)==null?void 0:w[0])==null?void 0:N.params)??{},unstable_pattern:IS(i.matches),errorInfo:m})}:void 0;return u.reduceRight((x,m,w)=>{let N,A=!1,E=null,T=null;i&&(N=f&&m.route.id?f[m.route.id]:void 0,E=m.route.errorElement||m2,d&&(h<0&&w===0?(Rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,T=null):h===w&&(A=!0,T=m.route.hydrateFallbackElement||null)));let C=r.concat(u.slice(0,w+1)),j=()=>{let D;return N?D=E:A?D=T:m.route.Component?D=b.createElement(m.route.Component,null):m.route.element?D=m.route.element:D=x,b.createElement(p2,{match:m,routeContext:{outlet:x,matches:C,isDataRoute:i!=null},children:D})};return i&&(m.route.ErrorBoundary||m.route.errorElement||w===0)?b.createElement(Av,{location:i.location,revalidation:i.revalidation,component:E,error:N,children:j(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:p}):j()},null)}function Vf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v2(n){let r=b.useContext(Tr);return Ie(r,Vf(n)),r}function y2(n){let r=b.useContext(As);return Ie(r,Vf(n)),r}function b2(n){let r=b.useContext(un);return Ie(r,Vf(n)),r}function Yf(n){let r=b2(n),o=r.matches[r.matches.length-1];return Ie(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function x2(){return Yf("useRouteId")}function S2(){var i;let n=b.useContext(Hf),r=y2("useRouteError"),o=Yf("useRouteError");return n!==void 0?n:(i=r.errors)==null?void 0:i[o]}function w2(){let{router:n}=v2("useNavigate"),r=Yf("useNavigate"),o=b.useRef(!1);return Nv(()=>{o.current=!0}),b.useCallback(async(u,f={})=>{yn(o.current,Ev),o.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:r,...f}))},[n,r])}var Eg={};function Rv(n,r,o){!r&&!Eg[n]&&(Eg[n]=!0,yn(!1,o))}b.memo(E2);function E2({routes:n,future:r,state:o,isStatic:i,onError:u}){return Cv(n,void 0,{state:o,isStatic:i,onError:u})}function Ng({to:n,replace:r,state:o,relative:i}){Ie(Cr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=b.useContext(Ft);yn(!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:f}=b.useContext(un),{pathname:d}=Bn(),h=Tv(),v=Cs(n,Bf(f),d,i==="path"),p=JSON.stringify(v);return b.useEffect(()=>{h(JSON.parse(p),{replace:r,state:o,relative:i})},[h,p,i,r,o]),null}function N2(n){return u2(n.context)}function Sl(n){Ie(!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 T2({basename:n="/",children:r=null,location:o,navigationType:i="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){Ie(!Cr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),v=b.useMemo(()=>({basename:h,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[h,u,f,d]);typeof o=="string"&&(o=Nr(o));let{pathname:p="/",search:x="",hash:m="",state:w=null,key:N="default",unstable_mask:A}=o,E=b.useMemo(()=>{let T=oa(p,h);return T==null?null:{location:{pathname:T,search:x,hash:m,state:w,key:N,unstable_mask:A},navigationType:i}},[h,p,x,m,w,N,i,A]);return yn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${m}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:b.createElement(Ft.Provider,{value:v},b.createElement(jo.Provider,{children:r,value:E}))}function C2({children:n,location:r}){return f2(wf(n),r)}function wf(n,r=[]){let o=[];return b.Children.forEach(n,(i,u)=>{if(!b.isValidElement(i))return;let f=[...r,u];if(i.type===b.Fragment){o.push.apply(o,wf(i.props.children,f));return}Ie(i.type===Sl,`[${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>`),Ie(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||f.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&&(d.children=wf(i.props.children,f)),o.push(d)}),o}var us="get",fs="application/x-www-form-urlencoded";function Rs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function A2(n){return Rs(n)&&n.tagName.toLowerCase()==="button"}function R2(n){return Rs(n)&&n.tagName.toLowerCase()==="form"}function _2(n){return Rs(n)&&n.tagName.toLowerCase()==="input"}function O2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function M2(n,r){return n.button===0&&(!r||r==="_self")&&!O2(n)}var Wi=null;function D2(){if(Wi===null)try{new FormData(document.createElement("form"),0),Wi=!1}catch{Wi=!0}return Wi}var j2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function of(n){return n!=null&&!j2.has(n)?(yn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fs}"`),null):n}function z2(n,r){let o,i,u,f,d;if(R2(n)){let h=n.getAttribute("action");i=h?oa(h,r):null,o=n.getAttribute("method")||us,u=of(n.getAttribute("enctype"))||fs,f=new FormData(n)}else if(A2(n)||_2(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||h.getAttribute("action");if(i=v?oa(v,r):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||us,u=of(n.getAttribute("formenctype"))||of(h.getAttribute("enctype"))||fs,f=new FormData(h,n),!D2()){let{name:p,type:x,value:m}=n;if(x==="image"){let w=p?`${p}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else p&&f.append(p,m)}}else{if(Rs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=us,i=null,u=fs,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:i,method:o.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function k2(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&&oa(u.pathname,r)==="/"?u.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function L2(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 U2(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 B2(n,r,o){let i=await Promise.all(n.map(async u=>{let f=r.routes[u.route.id];if(f){let d=await L2(f,o);return d.links?d.links():[]}return[]}));return q2(i.flat(1).filter(U2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Tg(n,r,o,i,u,f){let d=(v,p)=>o[p]?v.route.id!==o[p].route.id:!0,h=(v,p)=>{var x;return o[p].pathname!==v.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==v.params["*"]};return f==="assets"?r.filter((v,p)=>d(v,p)||h(v,p)):f==="data"?r.filter((v,p)=>{var m;let x=i.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(d(v,p)||h(v,p))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((m=o[0])==null?void 0:m.params)||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function H2(n,r,{includeHydrateFallback:o}={}){return V2(n.map(i=>{let u=r.routes[i.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function V2(n){return[...new Set(n)]}function Y2(n){let r={},o=Object.keys(n).sort();for(let i of o)r[i]=n[i];return r}function q2(n,r){let o=new Set;return new Set(r),n.reduce((i,u)=>{let f=JSON.stringify(Y2(u));return o.has(f)||(o.add(f),i.push({key:f,link:u})),i},[])}function _v(){let n=b.useContext(Tr);return qf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function G2(){let n=b.useContext(As);return qf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Gf=b.createContext(void 0);Gf.displayName="FrameworkContext";function Ov(){let n=b.useContext(Gf);return qf(n,"You must render this element inside a <HydratedRouter> element"),n}function $2(n,r){let o=b.useContext(Gf),[i,u]=b.useState(!1),[f,d]=b.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:p,onMouseLeave:x,onTouchStart:m}=r,w=b.useRef(null);b.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let E=C=>{C.forEach(j=>{d(j.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return w.current&&T.observe(w.current),()=>{T.disconnect()}}},[n]),b.useEffect(()=>{if(i){let E=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(E)}}},[i]);let N=()=>{u(!0)},A=()=>{u(!1),d(!1)};return o?n!=="intent"?[f,w,{}]:[f,w,{onFocus:Co(h,N),onBlur:Co(v,A),onMouseEnter:Co(p,N),onMouseLeave:Co(x,A),onTouchStart:Co(m,N)}]:[!1,w,{}]}function Co(n,r){return o=>{n&&n(o),o.defaultPrevented||r(o)}}function X2({page:n,...r}){let{router:o}=_v(),i=b.useMemo(()=>pv(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?b.createElement(Z2,{page:n,matches:i,...r}):null}function Q2(n){let{manifest:r,routeModules:o}=Ov(),[i,u]=b.useState([]);return b.useEffect(()=>{let f=!1;return B2(n,r,o).then(d=>{f||u(d)}),()=>{f=!0}},[n,r,o]),i}function Z2({page:n,matches:r,...o}){let i=Bn(),{future:u,manifest:f,routeModules:d}=Ov(),{basename:h}=_v(),{loaderData:v,matches:p}=G2(),x=b.useMemo(()=>Tg(n,r,p,f,i,"data"),[n,r,p,f,i]),m=b.useMemo(()=>Tg(n,r,p,f,i,"assets"),[n,r,p,f,i]),w=b.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,T=!1;if(r.forEach(j=>{var B;let D=f.routes[j.route.id];!D||!D.hasLoader||(!x.some(Z=>Z.route.id===j.route.id)&&j.route.id in v&&((B=d[j.route.id])!=null&&B.shouldRevalidate)||D.hasClientLoader?T=!0:E.add(j.route.id))}),E.size===0)return[];let C=k2(n,h,u.unstable_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&C.searchParams.set("_routes",r.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[C.pathname+C.search]},[h,u.unstable_trailingSlashAwareDataRequests,v,i,f,x,r,n,d]),N=b.useMemo(()=>H2(m,f),[m,f]),A=Q2(m);return b.createElement(b.Fragment,null,w.map(E=>b.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),N.map(E=>b.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),A.map(({key:E,link:T})=>b.createElement("link",{key:E,nonce:o.nonce,...T,crossOrigin:T.crossOrigin??o.crossOrigin})))}function K2(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var P2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{P2&&(window.__reactRouterVersion="7.13.2")}catch{}function J2({basename:n,children:r,unstable_useTransitions:o,window:i}){let u=b.useRef();u.current==null&&(u.current=AS({window:i,v5Compat:!0}));let f=u.current,[d,h]=b.useState({action:f.action,location:f.location}),v=b.useCallback(p=>{o===!1?h(p):b.startTransition(()=>h(p))},[o]);return b.useLayoutEffect(()=>f.listen(v),[f,v]),b.createElement(T2,{basename:n,children:r,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:o})}var Mv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dv=b.forwardRef(function({onClick:r,discover:o="render",prefetch:i="none",relative:u,reloadDocument:f,replace:d,unstable_mask:h,state:v,target:p,to:x,preventScrollReset:m,viewTransition:w,unstable_defaultShouldRevalidate:N,...A},E){let{basename:T,navigator:C,unstable_useTransitions:j}=b.useContext(Ft),D=typeof x=="string"&&Mv.test(x),B=bv(x,T);x=B.to;let Z=i2(x,{relative:u}),F=Bn(),q=null;if(h){let ue=Cs(h,[],F.unstable_mask?F.unstable_mask.pathname:"/",!0);T!=="/"&&(ue.pathname=ue.pathname==="/"?T:Ln([T,ue.pathname])),q=C.createHref(ue)}let[V,le,he]=$2(i,A),pe=W2(x,{replace:d,unstable_mask:h,state:v,target:p,preventScrollReset:m,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:N,unstable_useTransitions:j});function fe(ue){r&&r(ue),ue.defaultPrevented||pe(ue)}let me=!(B.isExternal||f),ge=b.createElement("a",{...A,...he,href:(me?q:void 0)||B.absoluteURL||Z,onClick:me?fe:r,ref:K2(E,le),target:p,"data-discover":!D&&o==="render"?"true":void 0});return V&&!D?b.createElement(b.Fragment,null,ge,b.createElement(X2,{page:Z})):ge});Dv.displayName="Link";var jv=b.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:i="",end:u=!1,style:f,to:d,viewTransition:h,children:v,...p},x){let m=zo(d,{relative:p.relative}),w=Bn(),N=b.useContext(As),{navigator:A,basename:E}=b.useContext(Ft),T=N!=null&&lw(m)&&h===!0,C=A.encodeLocation?A.encodeLocation(m).pathname:m.pathname,j=w.pathname,D=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(j=j.toLowerCase(),D=D?D.toLowerCase():null,C=C.toLowerCase()),D&&E&&(D=oa(D,E)||D);const B=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let Z=j===C||!u&&j.startsWith(C)&&j.charAt(B)==="/",F=D!=null&&(D===C||!u&&D.startsWith(C)&&D.charAt(C.length)==="/"),q={isActive:Z,isPending:F,isTransitioning:T},V=Z?r:void 0,le;typeof i=="function"?le=i(q):le=[i,Z?"active":null,F?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let he=typeof f=="function"?f(q):f;return b.createElement(Dv,{...p,"aria-current":V,className:le,ref:x,style:he,to:d,viewTransition:h},typeof v=="function"?v(q):v)});jv.displayName="NavLink";var F2=b.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,reloadDocument:i,replace:u,state:f,method:d=us,action:h,onSubmit:v,relative:p,preventScrollReset:x,viewTransition:m,unstable_defaultShouldRevalidate:w,...N},A)=>{let{unstable_useTransitions:E}=b.useContext(Ft),T=nw(),C=aw(h,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",D=typeof h=="string"&&Mv.test(h),B=Z=>{if(v&&v(Z),Z.defaultPrevented)return;Z.preventDefault();let F=Z.nativeEvent.submitter,q=(F==null?void 0:F.getAttribute("formmethod"))||d,V=()=>T(F||Z.currentTarget,{fetcherKey:r,method:q,navigate:o,replace:u,state:f,relative:p,preventScrollReset:x,viewTransition:m,unstable_defaultShouldRevalidate:w});E&&o!==!1?b.startTransition(()=>V()):V()};return b.createElement("form",{ref:A,method:j,action:C,onSubmit:i?v:B,...N,"data-discover":!D&&n==="render"?"true":void 0})});F2.displayName="Form";function I2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zv(n){let r=b.useContext(Tr);return Ie(r,I2(n)),r}function W2(n,{target:r,replace:o,unstable_mask:i,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let x=Tv(),m=Bn(),w=zo(n,{relative:d});return b.useCallback(N=>{if(M2(N,r)){N.preventDefault();let A=o!==void 0?o:_o(m)===_o(w),E=()=>x(n,{replace:A,unstable_mask:i,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:v});p?b.startTransition(()=>E()):E()}},[m,x,w,o,i,u,r,n,f,d,h,v,p])}var ew=0,tw=()=>`__${String(++ew)}__`;function nw(){let{router:n}=zv("useSubmit"),{basename:r}=b.useContext(Ft),o=x2(),i=n.fetch,u=n.navigate;return b.useCallback(async(f,d={})=>{let{action:h,method:v,encType:p,formData:x,body:m}=z2(f,r);if(d.navigate===!1){let w=d.fetcherKey||tw();await i(w,o,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:m,formMethod:d.method||v,formEncType:d.encType||p,flushSync:d.flushSync})}else await u(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:m,formMethod:d.method||v,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:o,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,u,r,o])}function aw(n,{relative:r}={}){let{basename:o}=b.useContext(Ft),i=b.useContext(un);Ie(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),f={...zo(n||".",{relative:r})},d=Bn();if(n==null){f.search=d.search;let h=new URLSearchParams(f.search),v=h.getAll("index");if(v.some(x=>x==="")){h.delete("index"),v.filter(m=>m).forEach(m=>h.append("index",m));let x=h.toString();f.search=x?`?${x}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:Ln([o,f.pathname])),_o(f)}function lw(n,{relative:r}={}){let o=b.useContext(Sv);Ie(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=zv("useViewTransitionState"),u=zo(n,{relative:r});if(!o.isTransitioning)return!1;let f=oa(o.currentLocation.pathname,i)||o.currentLocation.pathname,d=oa(o.nextLocation.pathname,i)||o.nextLocation.pathname;return vs(u.pathname,d)!=null||vs(u.pathname,f)!=null}var ko=mv();const kv=dv(ko),rw="/api";function ow(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 De(n,r){const o=await fetch(`${rw}${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(ow(i,`HTTP ${o.status}`))}return o.json()}function iw(){return De("/system/info")}function V5(n){return De("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function sw(){return De("/cluster/state")}function Y5(){return De("/cluster/promote",{method:"POST"})}function q5(n){return De("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function G5(){return De("/cluster/disconnect",{method:"POST"})}function cw(n){return De(`/node-operations/${n}`)}function uw(n,r){return De(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function $5(n,r){return De(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function X5(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 De(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function Q5(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 De(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function Z5(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),De(`/nodes/${n}/native-sessions?${o.toString()}`)}function K5(n,r){return De(`/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})})}async function P5(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 De(`/tasks${o?`?${o}`:""}`)).tasks}function J5(n){return De(`/tasks/${n}`)}function F5(n){return De("/tasks",{method:"POST",body:JSON.stringify(n)})}function I5(n){return De("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function W5(n){return De("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function e_(n){return De("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function t_(n){return De(`/tasks/${n}/cancel`,{method:"POST"})}function n_(n){return De(`/tasks/${n}/retry`,{method:"POST"})}function a_(n,r){return De(`/tasks/${n}/logs`)}function l_(n,r){return De(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function r_(n,r){return De(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function o_(n){return De(`/tasks/${n}/share`,{method:"DELETE"})}function i_(n){return De(`/shared/conversations/${encodeURIComponent(n)}`)}function s_(n,r){return De(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function c_(n){return De(`/shared/conversations/${encodeURIComponent(n)}/output`)}function u_(n,r="."){return De(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function f_(n,r){return De(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function d_(n,r){return De(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function fw(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function m_(n){return De(`/tasks/${n}/output`)}function h_(n,r="."){return De(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function p_(n,r){return De(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function g_(n,r){return De(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(fw(r))})}function v_(n){return De(`/tasks/${n}/output/diff`)}function dw(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 f=setInterval(u,r);return()=>clearInterval(f)},[r,o])}let mw=0;function hw(n=50){const[r,o]=b.useState([]),[i,u]=b.useState(!1),f=b.useRef(null),d=b.useRef(0),h=b.useRef(new Map);b.useEffect(()=>{const x=new EventSource("/api/events");f.current=x,x.onopen=()=>u(!0),x.onerror=()=>u(!1);const m=["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 m)x.addEventListener(w,N=>{const A={id:String(++mw),type:w,data:JSON.parse(N.data),timestamp:Date.now()};o(E=>[A,...E].slice(0,n));for(const[,{pattern:E,callback:T}]of h.current)w.startsWith(E)&&T(A)});return()=>{x.close(),f.current=null,u(!1)}},[n]);const v=b.useCallback((x,m)=>{const w=++d.current;return h.current.set(w,{pattern:x,callback:m}),()=>{h.current.delete(w)}},[]),p=b.useCallback(()=>o([]),[]);return{events:r,connected:i,subscribe:v,clearEvents:p}}const Lv=b.createContext(null);function pw({children:n}){const[r,o]=b.useState(null),[i,u]=b.useState(null),[f,d]=b.useState(!0),[h,v]=b.useState(null),{events:p,connected:x,subscribe:m}=hw(),w=b.useCallback(async()=>{try{const[N,A]=await Promise.all([sw(),iw()]),E=N,T=A.nodeId??A.id,C=E.nodes??[],j=C.find(B=>B.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},D=E.leaderId?C.find(B=>B.id===E.leaderId)??null:null;o({leader:D?{id:D.id,name:D.name,endpoint:D.endpoint,...D.dashboardOrigin?{dashboardOrigin:D.dashboardOrigin}:{}}:null,term:E.term??0,nodes:C,self:j,taskSummary:E.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}}),u(A),v(null)}catch(N){v(N instanceof Error?N.message:"Failed to fetch cluster state")}finally{d(!1)}},[]);return dw(w,1e4),b.useEffect(()=>{const N=[m("cluster",w),m("election",w),m("node",w),m("transport",w),m("task",w)];return()=>N.forEach(A=>A())},[m,w]),y.jsx(Lv.Provider,{value:{cluster:r,systemInfo:i,events:p,sseConnected:x,subscribe:m,refresh:w,loading:f,error:h},children:n})}function Uv(){const n=b.useContext(Lv);if(!n)throw new Error("useCluster must be used within ClusterProvider");return n}function Bv(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=Bv(n[r]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function Hv(){for(var n,r,o=0,i="",u=arguments.length;o<u;o++)(n=arguments[o])&&(r=Bv(n))&&(i&&(i+=" "),i+=r);return i}const gw=(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},vw=(n,r)=>({classGroupId:n,validator:r}),Vv=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),ys="-",Cg=[],yw="arbitrary..",bw=n=>{const r=Sw(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return xw(d);const h=d.split(ys),v=h[0]===""&&h.length>1?1:0;return Yv(h,v,r)},getConflictingClassGroupIds:(d,h)=>{if(h){const v=i[d],p=o[d];return v?p?gw(p,v):v:p||Cg}return o[d]||Cg}}},Yv=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const u=n[r],f=o.nextPart.get(u);if(f){const p=Yv(n,r+1,f);if(p)return p}const d=o.validators;if(d===null)return;const h=r===0?n.join(ys):n.slice(r).join(ys),v=d.length;for(let p=0;p<v;p++){const x=d[p];if(x.validator(h))return x.classGroupId}},xw=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?yw+i:void 0})(),Sw=n=>{const{theme:r,classGroups:o}=n;return ww(o,r)},ww=(n,r)=>{const o=Vv();for(const i in n){const u=n[i];$f(u,o,i,r)}return o},$f=(n,r,o,i)=>{const u=n.length;for(let f=0;f<u;f++){const d=n[f];Ew(d,r,o,i)}},Ew=(n,r,o,i)=>{if(typeof n=="string"){Nw(n,r,o);return}if(typeof n=="function"){Tw(n,r,o,i);return}Cw(n,r,o,i)},Nw=(n,r,o)=>{const i=n===""?r:qv(r,n);i.classGroupId=o},Tw=(n,r,o,i)=>{if(Aw(n)){$f(n(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(vw(o,n))},Cw=(n,r,o,i)=>{const u=Object.entries(n),f=u.length;for(let d=0;d<f;d++){const[h,v]=u[d];$f(v,qv(r,h),o,i)}},qv=(n,r)=>{let o=n;const i=r.split(ys),u=i.length;for(let f=0;f<u;f++){const d=i[f];let h=o.nextPart.get(d);h||(h=Vv(),o.nextPart.set(d,h)),o=h}return o},Aw=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,Rw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const u=(f,d)=>{o[f]=d,r++,r>n&&(r=0,i=o,o=Object.create(null))};return{get(f){let d=o[f];if(d!==void 0)return d;if((d=i[f])!==void 0)return u(f,d),d},set(f,d){f in o?o[f]=d:u(f,d)}}},Ef="!",Ag=":",_w=[],Rg=(n,r,o,i,u)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),Ow=n=>{const{prefix:r,experimentalParseClassName:o}=n;let i=u=>{const f=[];let d=0,h=0,v=0,p;const x=u.length;for(let E=0;E<x;E++){const T=u[E];if(d===0&&h===0){if(T===Ag){f.push(u.slice(v,E)),v=E+1;continue}if(T==="/"){p=E;continue}}T==="["?d++:T==="]"?d--:T==="("?h++:T===")"&&h--}const m=f.length===0?u:u.slice(v);let w=m,N=!1;m.endsWith(Ef)?(w=m.slice(0,-1),N=!0):m.startsWith(Ef)&&(w=m.slice(1),N=!0);const A=p&&p>v?p-v:void 0;return Rg(f,N,w,A)};if(r){const u=r+Ag,f=i;i=d=>d.startsWith(u)?f(d.slice(u.length)):Rg(_w,!1,d,void 0,!0)}if(o){const u=i;i=f=>o({className:f,parseClassName:u})}return i},Mw=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{r.set(o,1e6+i)}),o=>{const i=[];let u=[];for(let f=0;f<o.length;f++){const d=o[f],h=d[0]==="[",v=r.has(d);h||v?(u.length>0&&(u.sort(),i.push(...u),u=[]),i.push(d)):u.push(d)}return u.length>0&&(u.sort(),i.push(...u)),i}},Dw=n=>({cache:Rw(n.cacheSize),parseClassName:Ow(n),sortModifiers:Mw(n),...bw(n)}),jw=/\s+/,zw=(n,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:f}=r,d=[],h=n.trim().split(jw);let v="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:m,modifiers:w,hasImportantModifier:N,baseClassName:A,maybePostfixModifierPosition:E}=o(x);if(m){v=x+(v.length>0?" "+v:v);continue}let T=!!E,C=i(T?A.substring(0,E):A);if(!C){if(!T){v=x+(v.length>0?" "+v:v);continue}if(C=i(A),!C){v=x+(v.length>0?" "+v:v);continue}T=!1}const j=w.length===0?"":w.length===1?w[0]:f(w).join(":"),D=N?j+Ef:j,B=D+C;if(d.indexOf(B)>-1)continue;d.push(B);const Z=u(C,T);for(let F=0;F<Z.length;++F){const q=Z[F];d.push(D+q)}v=x+(v.length>0?" "+v:v)}return v},kw=(...n)=>{let r=0,o,i,u="";for(;r<n.length;)(o=n[r++])&&(i=Gv(o))&&(u&&(u+=" "),u+=i);return u},Gv=n=>{if(typeof n=="string")return n;let r,o="";for(let i=0;i<n.length;i++)n[i]&&(r=Gv(n[i]))&&(o&&(o+=" "),o+=r);return o},Lw=(n,...r)=>{let o,i,u,f;const d=v=>{const p=r.reduce((x,m)=>m(x),n());return o=Dw(p),i=o.cache.get,u=o.cache.set,f=h,h(v)},h=v=>{const p=i(v);if(p)return p;const x=zw(v,o);return u(v,x),x};return f=d,(...v)=>f(kw(...v))},Uw=[],ft=n=>{const r=o=>o[n]||Uw;return r.isThemeGetter=!0,r},$v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Hw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vw=/\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$/,Yw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ba=n=>Bw.test(n),Ae=n=>!!n&&!Number.isNaN(Number(n)),Ha=n=>!!n&&Number.isInteger(Number(n)),sf=n=>n.endsWith("%")&&Ae(n.slice(0,-1)),ra=n=>Hw.test(n),Qv=()=>!0,$w=n=>Vw.test(n)&&!Yw.test(n),Xf=()=>!1,Xw=n=>qw.test(n),Qw=n=>Gw.test(n),Zw=n=>!se(n)&&!ce(n),Kw=n=>Za(n,Pv,Xf),se=n=>$v.test(n),bl=n=>Za(n,Jv,$w),_g=n=>Za(n,nE,Ae),Pw=n=>Za(n,Iv,Qv),Jw=n=>Za(n,Fv,Xf),Og=n=>Za(n,Zv,Xf),Fw=n=>Za(n,Kv,Qw),es=n=>Za(n,Wv,Xw),ce=n=>Xv.test(n),Ao=n=>Al(n,Jv),Iw=n=>Al(n,Fv),Mg=n=>Al(n,Zv),Ww=n=>Al(n,Pv),eE=n=>Al(n,Kv),ts=n=>Al(n,Wv,!0),tE=n=>Al(n,Iv,!0),Za=(n,r,o)=>{const i=$v.exec(n);return i?i[1]?r(i[1]):o(i[2]):!1},Al=(n,r,o=!1)=>{const i=Xv.exec(n);return i?i[1]?r(i[1]):o:!1},Zv=n=>n==="position"||n==="percentage",Kv=n=>n==="image"||n==="url",Pv=n=>n==="length"||n==="size"||n==="bg-size",Jv=n=>n==="length",nE=n=>n==="number",Fv=n=>n==="family-name",Iv=n=>n==="number"||n==="weight",Wv=n=>n==="shadow",aE=()=>{const n=ft("color"),r=ft("font"),o=ft("text"),i=ft("font-weight"),u=ft("tracking"),f=ft("leading"),d=ft("breakpoint"),h=ft("container"),v=ft("spacing"),p=ft("radius"),x=ft("shadow"),m=ft("inset-shadow"),w=ft("text-shadow"),N=ft("drop-shadow"),A=ft("blur"),E=ft("perspective"),T=ft("aspect"),C=ft("ease"),j=ft("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...B(),ce,se],F=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],V=()=>[ce,se,v],le=()=>[Ba,"full","auto",...V()],he=()=>[Ha,"none","subgrid",ce,se],pe=()=>["auto",{span:["full",Ha,ce,se]},Ha,ce,se],fe=()=>[Ha,"auto",ce,se],me=()=>["auto","min","max","fr",ce,se],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...V()],Y=()=>[Ba,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],J=()=>[Ba,"screen","full","dvw","lvw","svw","min","max","fit",...V()],re=()=>[Ba,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],I=()=>[n,ce,se],_=()=>[...B(),Mg,Og,{position:[ce,se]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",Ww,Kw,{size:[ce,se]}],W=()=>[sf,Ao,bl],P=()=>["","none","full",p,ce,se],ne=()=>["",Ae,Ao,bl],ee=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Ae,sf,Mg,Og],Ce=()=>["","none",A,ce,se],Ee=()=>["none",Ae,ce,se],Se=()=>["none",Ae,ce,se],tt=()=>[Ae,ce,se],Xe=()=>[Ba,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ra],breakpoint:[ra],color:[Qv],container:[ra],"drop-shadow":[ra],ease:["in","out","in-out"],font:[Zw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ra],shadow:[ra],spacing:["px",Ae],text:[ra],"text-shadow":[ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ba,se,ce,T]}],container:["container"],columns:[{columns:[Ae,se,ce,h]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],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:[Ha,"auto",ce,se]}],basis:[{basis:[Ba,"full","auto",h,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,Ba,"auto","initial","none",se]}],grow:[{grow:["",Ae,ce,se]}],shrink:[{shrink:["",Ae,ce,se]}],order:[{order:[Ha,"first","last","none",ce,se]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:pe()}],"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":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],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:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[h,"screen",...Y()]}],"min-w":[{"min-w":[h,"screen","none",...Y()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",o,Ao,bl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,tE,Pw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sf,se]}],"font-family":[{font:[Iw,Jw,r]}],"font-features":[{"font-features":[se]}],"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,ce,se]}],"line-clamp":[{"line-clamp":[Ae,"none",ce,_g]}],leading:[{leading:[f,...V()]}],"list-image":[{"list-image":["none",ce,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",ce,bl]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Ae,"auto",ce,se]}],"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",ce,se]}],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",ce,se]}],"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:G()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ha,ce,se],radial:["",ce,se],conic:[Ha,ce,se]},eE,Fw]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,ce,se]}],"outline-w":[{outline:["",Ae,Ao,bl]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",x,ts,es]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,ts,es]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Ae,bl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,ts,es]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Ae,ce,se]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"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":[Ae]}],"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":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"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":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"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":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"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":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"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":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"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":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"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":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ce,se]}],"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":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":B()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"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":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,se]}],filter:[{filter:["","none",ce,se]}],blur:[{blur:Ce()}],brightness:[{brightness:[Ae,ce,se]}],contrast:[{contrast:[Ae,ce,se]}],"drop-shadow":[{"drop-shadow":["","none",N,ts,es]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Ae,ce,se]}],"hue-rotate":[{"hue-rotate":[Ae,ce,se]}],invert:[{invert:["",Ae,ce,se]}],saturate:[{saturate:[Ae,ce,se]}],sepia:[{sepia:["",Ae,ce,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,se]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,ce,se]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,ce,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,ce,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,ce,se]}],"backdrop-invert":[{"backdrop-invert":["",Ae,ce,se]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,ce,se]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,ce,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,ce,se]}],"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",ce,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",ce,se]}],ease:[{ease:["linear","initial",C,ce,se]}],delay:[{delay:[Ae,ce,se]}],animate:[{animate:["none",j,ce,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ce,se]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:tt()}],"skew-x":[{"skew-x":tt()}],"skew-y":[{"skew-y":tt()}],transform:[{transform:[ce,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",ce,se]}],"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",ce,se]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Ae,Ao,bl,_g]}],stroke:[{stroke:["none",...I()]}],"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"]}},lE=Lw(aE);function xe(...n){return lE(Hv(n))}const Dg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,jg=Hv,ey=(n,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return jg(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:u,defaultVariants:f}=r,d=Object.keys(u).map(p=>{const x=o==null?void 0:o[p],m=f==null?void 0:f[p];if(x===null)return null;const w=Dg(x)||Dg(m);return u[p][w]}),h=o&&Object.entries(o).reduce((p,x)=>{let[m,w]=x;return w===void 0||(p[m]=w),p},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:m,className:w,...N}=x;return Object.entries(N).every(A=>{let[E,T]=A;return Array.isArray(T)?T.includes({...f,...h}[E]):{...f,...h}[E]===T})?[...p,m,w]:p},[]);return jg(n,d,v,o==null?void 0:o.class,o==null?void 0:o.className)},rE=ey("inline-flex items-center rounded-full 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 St({className:n,variant:r,...o}){return y.jsx("div",{className:xe(rE({variant:r}),n),...o})}const oE={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function ty({status:n}){return y.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&y.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),y.jsx("span",{className:xe("relative inline-flex h-2.5 w-2.5 rounded-full",oE[n])})]})}function iE({role:n}){return y.jsx(St,{variant:n==="leader"?"default":"secondary",className:"text-[11px]",children:n})}const sE={pending:{variant:"secondary",dotClass:"bg-muted-foreground"},assigned:{variant:"outline",dotClass:"bg-teal-500"},running:{variant:"outline",dotClass:"bg-amber-500"},completed:{variant:"outline",dotClass:"bg-green-500"},failed:{variant:"destructive",dotClass:"bg-red-300"},cancelled:{variant:"secondary",dotClass:"bg-muted-foreground"},archived:{variant:"secondary",dotClass:"bg-slate-400"}};function y_({status:n}){const r=sE[n];return y.jsxs(St,{variant:r.variant,className:"gap-1.5 text-[11px] font-medium",children:[y.jsx("span",{className:xe("h-1.5 w-1.5 rounded-full",r.dotClass)}),n]})}const cE={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function b_({priority:n}){const r=cE[n];return y.jsx(St,{variant:r.variant,className:"text-[11px]",children:r.label})}function uE(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 fE=n=>{switch(n){case"success":return hE;case"info":return gE;case"warning":return pE;case"error":return vE;default:return null}},dE=Array(12).fill(0),mE=({visible:n,className:r})=>te.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},te.createElement("div",{className:"sonner-spinner"},dE.map((o,i)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),hE=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"})),pE=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"})),gE=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"})),vE=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"})),yE=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"})),bE=()=>{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 Nf=1;class xE{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,f=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Nf++,d=this.toasts.find(v=>v.id===f),h=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(v=>v.id===f?(this.publish({...v,...r,id:f,title:i}),{...v,...r,id:f,dismissible:h,title:i}):v):this.addToast({title:i,...u,dismissible:h,id:f}),f},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 f=i!==void 0,d;const h=u.then(async p=>{if(d=["resolve",p],te.isValidElement(p))f=!1,this.create({id:i,type:"default",message:p});else if(wE(p)&&!p.ok){f=!1;const m=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 m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:w,...A})}else if(p instanceof Error){f=!1;const m=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,A=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:w,...A})}else if(o.success!==void 0){f=!1;const m=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,A=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"success",description:w,...A})}}).catch(async p=>{if(d=["reject",p],o.error!==void 0){f=!1;const x=typeof o.error=="function"?await o.error(p):o.error,m=typeof o.description=="function"?await o.description(p):o.description,N=typeof x=="object"&&!te.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:m,...N})}}).finally(()=>{f&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),v=()=>new Promise((p,x)=>h.then(()=>d[0]==="reject"?x(d[1]):p(d[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:v}:Object.assign(i,{unwrap:v})},this.custom=(r,o)=>{const i=(o==null?void 0:o.id)||Nf++;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 Vt=new xE,SE=(n,r)=>{const o=(r==null?void 0:r.id)||Nf++;return Vt.addToast({title:n,...r,id:o}),o},wE=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",EE=SE,NE=()=>Vt.toasts,TE=()=>Vt.getActiveToasts(),Ya=Object.assign(EE,{success:Vt.success,info:Vt.info,warning:Vt.warning,error:Vt.error,custom:Vt.custom,message:Vt.message,promise:Vt.promise,dismiss:Vt.dismiss,loading:Vt.loading},{getHistory:NE,getToasts:TE});uE("[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 ns(n){return n.label!==void 0}const CE=3,AE="24px",RE="16px",zg=4e3,_E=356,OE=14,ME=45,DE=200;function Rn(...n){return n.filter(Boolean).join(" ")}function jE(n){const[r,o]=n.split("-"),i=[];return r&&i.push(r),o&&i.push(o),i}const zE=n=>{var r,o,i,u,f,d,h,v,p;const{invert:x,toast:m,unstyled:w,interacting:N,setHeights:A,visibleToasts:E,heights:T,index:C,toasts:j,expanded:D,removeToast:B,defaultRichColors:Z,closeButton:F,style:q,cancelButtonStyle:V,actionButtonStyle:le,className:he="",descriptionClassName:pe="",duration:fe,position:me,gap:ge,expandByDefault:ue,classNames:O,icons:Y,closeButtonAriaLabel:J="Close toast"}=n,[re,I]=te.useState(null),[_,G]=te.useState(null),[X,W]=te.useState(!1),[P,ne]=te.useState(!1),[ee,ae]=te.useState(!1),[ie,Ce]=te.useState(!1),[Ee,Se]=te.useState(!1),[tt,Xe]=te.useState(0),[fn,It]=te.useState(0),Yt=te.useRef(m.duration||fe||zg),Ja=te.useRef(null),dt=te.useRef(null),Or=C===0,Mr=C+1<=E,Ct=m.type,fa=m.dismissible!==!1,At=m.className||"",Vs=m.descriptionClassName||"",Fa=te.useMemo(()=>T.findIndex(be=>be.toastId===m.id)||0,[T,m.id]),Ho=te.useMemo(()=>{var be;return(be=m.closeButton)!=null?be:F},[m.closeButton,F]),Ia=te.useMemo(()=>m.duration||fe||zg,[m.duration,fe]),Dr=te.useRef(0),Vn=te.useRef(0),Vo=te.useRef(0),da=te.useRef(null),[Wa,Rt]=me.split("-"),dn=te.useMemo(()=>T.reduce((be,Je,mt)=>mt>=Fa?be:be+Je.height,0),[T,Fa]),wt=bE(),Ys=m.invert||x,jr=Ct==="loading";Vn.current=te.useMemo(()=>Fa*ge+dn,[Fa,dn]),te.useEffect(()=>{Yt.current=Ia},[Ia]),te.useEffect(()=>{W(!0)},[]),te.useEffect(()=>{const be=dt.current;if(be){const Je=be.getBoundingClientRect().height;return It(Je),A(mt=>[{toastId:m.id,height:Je,position:m.position},...mt]),()=>A(mt=>mt.filter(Et=>Et.toastId!==m.id))}},[A,m.id]),te.useLayoutEffect(()=>{if(!X)return;const be=dt.current,Je=be.style.height;be.style.height="auto";const mt=be.getBoundingClientRect().height;be.style.height=Je,It(mt),A(Et=>Et.find(et=>et.toastId===m.id)?Et.map(et=>et.toastId===m.id?{...et,height:mt}:et):[{toastId:m.id,height:mt,position:m.position},...Et])},[X,m.title,m.description,A,m.id,m.jsx,m.action,m.cancel]);const wn=te.useCallback(()=>{ne(!0),Xe(Vn.current),A(be=>be.filter(Je=>Je.toastId!==m.id)),setTimeout(()=>{B(m)},DE)},[m,B,A,Vn]);te.useEffect(()=>{if(m.promise&&Ct==="loading"||m.duration===1/0||m.type==="loading")return;let be;return D||N||wt?(()=>{if(Vo.current<Dr.current){const Et=new Date().getTime()-Dr.current;Yt.current=Yt.current-Et}Vo.current=new Date().getTime()})():(()=>{Yt.current!==1/0&&(Dr.current=new Date().getTime(),be=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),wn()},Yt.current))})(),()=>clearTimeout(be)},[D,N,m,Ct,wt,wn]),te.useEffect(()=>{m.delete&&(wn(),m.onDismiss==null||m.onDismiss.call(m,m))},[wn,m.delete]);function _l(){var be;if(Y!=null&&Y.loading){var Je;return te.createElement("div",{className:Rn(O==null?void 0:O.loader,m==null||(Je=m.classNames)==null?void 0:Je.loader,"sonner-loader"),"data-visible":Ct==="loading"},Y.loading)}return te.createElement(mE,{className:Rn(O==null?void 0:O.loader,m==null||(be=m.classNames)==null?void 0:be.loader),visible:Ct==="loading"})}const Ol=m.icon||(Y==null?void 0:Y[Ct])||fE(Ct);var el,En;return te.createElement("li",{tabIndex:0,ref:dt,className:Rn(he,At,O==null?void 0:O.toast,m==null||(r=m.classNames)==null?void 0:r.toast,O==null?void 0:O.default,O==null?void 0:O[Ct],m==null||(o=m.classNames)==null?void 0:o[Ct]),"data-sonner-toast":"","data-rich-colors":(el=m.richColors)!=null?el:Z,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":X,"data-promise":!!m.promise,"data-swiped":Ee,"data-removed":P,"data-visible":Mr,"data-y-position":Wa,"data-x-position":Rt,"data-index":C,"data-front":Or,"data-swiping":ee,"data-dismissible":fa,"data-type":Ct,"data-invert":Ys,"data-swipe-out":ie,"data-swipe-direction":_,"data-expanded":!!(D||ue&&X),"data-testid":m.testId,style:{"--index":C,"--toasts-before":C,"--z-index":j.length-C,"--offset":`${P?tt:Vn.current}px`,"--initial-height":ue?"auto":`${fn}px`,...q,...m.style},onDragEnd:()=>{ae(!1),I(null),da.current=null},onPointerDown:be=>{be.button!==2&&(jr||!fa||(Ja.current=new Date,Xe(Vn.current),be.target.setPointerCapture(be.pointerId),be.target.tagName!=="BUTTON"&&(ae(!0),da.current={x:be.clientX,y:be.clientY})))},onPointerUp:()=>{var be,Je,mt;if(ie||!fa)return;da.current=null;const Et=Number(((be=dt.current)==null?void 0:be.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ma=Number(((Je=dt.current)==null?void 0:Je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((mt=Ja.current)==null?void 0:mt.getTime()),Ot=re==="x"?Et:ma,tl=Math.abs(Ot)/et;if(Math.abs(Ot)>=ME||tl>.11){Xe(Vn.current),m.onDismiss==null||m.onDismiss.call(m,m),G(re==="x"?Et>0?"right":"left":ma>0?"down":"up"),wn(),Ce(!0);return}else{var Mt,Dt;(Mt=dt.current)==null||Mt.style.setProperty("--swipe-amount-x","0px"),(Dt=dt.current)==null||Dt.style.setProperty("--swipe-amount-y","0px")}Se(!1),ae(!1),I(null)},onPointerMove:be=>{var Je,mt,Et;if(!da.current||!fa||((Je=window.getSelection())==null?void 0:Je.toString().length)>0)return;const et=be.clientY-da.current.y,Ot=be.clientX-da.current.x;var tl;const Mt=(tl=n.swipeDirections)!=null?tl:jE(me);!re&&(Math.abs(Ot)>1||Math.abs(et)>1)&&I(Math.abs(Ot)>Math.abs(et)?"x":"y");let Dt={x:0,y:0};const Ml=mn=>1/(1.5+Math.abs(mn)/20);if(re==="y"){if(Mt.includes("top")||Mt.includes("bottom"))if(Mt.includes("top")&&et<0||Mt.includes("bottom")&&et>0)Dt.y=et;else{const mn=et*Ml(et);Dt.y=Math.abs(mn)<Math.abs(et)?mn:et}}else if(re==="x"&&(Mt.includes("left")||Mt.includes("right")))if(Mt.includes("left")&&Ot<0||Mt.includes("right")&&Ot>0)Dt.x=Ot;else{const mn=Ot*Ml(Ot);Dt.x=Math.abs(mn)<Math.abs(Ot)?mn:Ot}(Math.abs(Dt.x)>0||Math.abs(Dt.y)>0)&&Se(!0),(mt=dt.current)==null||mt.style.setProperty("--swipe-amount-x",`${Dt.x}px`),(Et=dt.current)==null||Et.style.setProperty("--swipe-amount-y",`${Dt.y}px`)}},Ho&&!m.jsx&&Ct!=="loading"?te.createElement("button",{"aria-label":J,"data-disabled":jr,"data-close-button":!0,onClick:jr||!fa?()=>{}:()=>{wn(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Rn(O==null?void 0:O.closeButton,m==null||(i=m.classNames)==null?void 0:i.closeButton)},(En=Y==null?void 0:Y.close)!=null?En:yE):null,(Ct||m.icon||m.promise)&&m.icon!==null&&((Y==null?void 0:Y[Ct])!==null||m.icon)?te.createElement("div",{"data-icon":"",className:Rn(O==null?void 0:O.icon,m==null||(u=m.classNames)==null?void 0:u.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||_l():null,m.type!=="loading"?Ol:null):null,te.createElement("div",{"data-content":"",className:Rn(O==null?void 0:O.content,m==null||(f=m.classNames)==null?void 0:f.content)},te.createElement("div",{"data-title":"",className:Rn(O==null?void 0:O.title,m==null||(d=m.classNames)==null?void 0:d.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?te.createElement("div",{"data-description":"",className:Rn(pe,Vs,O==null?void 0:O.description,m==null||(h=m.classNames)==null?void 0:h.description)},typeof m.description=="function"?m.description():m.description):null),te.isValidElement(m.cancel)?m.cancel:m.cancel&&ns(m.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||V,onClick:be=>{ns(m.cancel)&&fa&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,be),wn())},className:Rn(O==null?void 0:O.cancelButton,m==null||(v=m.classNames)==null?void 0:v.cancelButton)},m.cancel.label):null,te.isValidElement(m.action)?m.action:m.action&&ns(m.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||le,onClick:be=>{ns(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,be),!be.defaultPrevented&&wn())},className:Rn(O==null?void 0:O.actionButton,m==null||(p=m.classNames)==null?void 0:p.actionButton)},m.action.label):null)};function kg(){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 kE(n,r){const o={};return[n,r].forEach((i,u)=>{const f=u===1,d=f?"--mobile-offset":"--offset",h=f?RE:AE;function v(p){["top","right","bottom","left"].forEach(x=>{o[`${d}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?v(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?o[`${d}-${p}`]=h:o[`${d}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):v(h)}),o}const LE=te.forwardRef(function(r,o){const{id:i,invert:u,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:h,closeButton:v,className:p,offset:x,mobileOffset:m,theme:w="light",richColors:N,duration:A,style:E,visibleToasts:T=CE,toastOptions:C,dir:j=kg(),gap:D=OE,icons:B,containerAriaLabel:Z="Notifications"}=r,[F,q]=te.useState([]),V=te.useMemo(()=>i?F.filter(X=>X.toasterId===i):F.filter(X=>!X.toasterId),[F,i]),le=te.useMemo(()=>Array.from(new Set([f].concat(V.filter(X=>X.position).map(X=>X.position)))),[V,f]),[he,pe]=te.useState([]),[fe,me]=te.useState(!1),[ge,ue]=te.useState(!1),[O,Y]=te.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),J=te.useRef(null),re=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=te.useRef(null),_=te.useRef(!1),G=te.useCallback(X=>{q(W=>{var P;return(P=W.find(ne=>ne.id===X.id))!=null&&P.delete||Vt.dismiss(X.id),W.filter(({id:ne})=>ne!==X.id)})},[]);return te.useEffect(()=>Vt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{q(W=>W.map(P=>P.id===X.id?{...P,delete:!0}:P))});return}setTimeout(()=>{kv.flushSync(()=>{q(W=>{const P=W.findIndex(ne=>ne.id===X.id);return P!==-1?[...W.slice(0,P),{...W[P],...X},...W.slice(P+1)]:[X,...W]})})})}),[F]),te.useEffect(()=>{if(w!=="system"){Y(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:W})=>{Y(W?"dark":"light")})}catch{X.addListener(({matches:P})=>{try{Y(P?"dark":"light")}catch(ne){console.error(ne)}})}},[w]),te.useEffect(()=>{F.length<=1&&me(!1)},[F]),te.useEffect(()=>{const X=W=>{var P;if(d.every(ae=>W[ae]||W.code===ae)){var ee;me(!0),(ee=J.current)==null||ee.focus()}W.code==="Escape"&&(document.activeElement===J.current||(P=J.current)!=null&&P.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[d]),te.useEffect(()=>{if(J.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,_.current=!1)}},[J.current]),te.createElement("section",{ref:o,"aria-label":`${Z} ${re}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},le.map((X,W)=>{var P;const[ne,ee]=X.split("-");return V.length?te.createElement("ol",{key:X,dir:j==="auto"?kg():j,tabIndex:-1,ref:J,className:p,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ne,"data-x-position":ee,style:{"--front-toast-height":`${((P=he[0])==null?void 0:P.height)||0}px`,"--width":`${_E}px`,"--gap":`${D}px`,...E,...kE(x,m)},onBlur:ae=>{_.current&&!ae.currentTarget.contains(ae.relatedTarget)&&(_.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||_.current||(_.current=!0,I.current=ae.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{ge||me(!1)},onDragEnd:()=>me(!1),onPointerDown:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},V.filter(ae=>!ae.position&&W===0||ae.position===X).map((ae,ie)=>{var Ce,Ee;return te.createElement(zE,{key:ae.id,icons:B,index:ie,toast:ae,defaultRichColors:N,duration:(Ce=C==null?void 0:C.duration)!=null?Ce:A,className:C==null?void 0:C.className,descriptionClassName:C==null?void 0:C.descriptionClassName,invert:u,visibleToasts:T,closeButton:(Ee=C==null?void 0:C.closeButton)!=null?Ee:v,interacting:ge,position:X,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:G,toasts:V.filter(Se=>Se.position==ae.position),heights:he.filter(Se=>Se.position==ae.position),setHeights:pe,expandByDefault:h,gap:D,expanded:fe,swipeDirections:r.swipeDirections})})):null}))});/**
|
|
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 ny=(...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 UE=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 BE=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 Lg=n=>{const r=BE(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 cf={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 HE=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},VE=b.createContext({}),YE=()=>b.useContext(VE),qE=b.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:i,className:u="",children:f,iconNode:d,...h},v)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:m=!1,color:w="currentColor",className:N=""}=YE()??{},A=i??m?Number(o??x)*24/Number(r??p):o??x;return b.createElement("svg",{ref:v,...cf,width:r??p??cf.width,height:r??p??cf.height,stroke:n??w,strokeWidth:A,className:ny("lucide",N,u),...!f&&!HE(h)&&{"aria-hidden":"true"},...h},[...d.map(([E,T])=>b.createElement(E,T)),...Array.isArray(f)?f:[f]])});/**
|
|
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 Pe=(n,r)=>{const o=b.forwardRef(({className:i,...u},f)=>b.createElement(qE,{ref:f,iconNode:r,className:ny(`lucide-${UE(Lg(n))}`,`lucide-${n}`,i),...u}));return o.displayName=Lg(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 GE=[["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"}]],ay=Pe("activity",GE);/**
|
|
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 $E=[["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"}]],XE=Pe("book-open",$E);/**
|
|
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 QE=[["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"}]],ly=Pe("bot",QE);/**
|
|
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 ZE=[["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"}]],KE=Pe("cable",ZE);/**
|
|
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 PE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ry=Pe("check",PE);/**
|
|
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 JE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oy=Pe("chevron-down",JE);/**
|
|
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 FE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],IE=Pe("chevron-up",FE);/**
|
|
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 WE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],eN=Pe("circle-check",WE);/**
|
|
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 tN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],nN=Pe("circle-x",tN);/**
|
|
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 aN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lN=Pe("copy",aN);/**
|
|
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 rN=[["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"}]],oN=Pe("cpu",rN);/**
|
|
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 iN=[["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"}]],sN=Pe("external-link",iN);/**
|
|
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 cN=[["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"}]],uN=Pe("folder-tree",cN);/**
|
|
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 fN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],dN=Pe("info",fN);/**
|
|
167
|
-
* @license lucide-react v1.7.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const mN=[["path",{d:"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"}]],hN=Pe("monitor-cog",mN);/**
|
|
172
|
-
* @license lucide-react v1.7.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const pN=[["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"}]],iy=Pe("monitor",pN);/**
|
|
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 gN=[["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"}]],sy=Pe("moon",gN);/**
|
|
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 vN=[["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"}]],cy=Pe("radio",vN);/**
|
|
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 yN=[["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"}]],bN=Pe("server",yN);/**
|
|
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 xN=[["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"}]],SN=Pe("settings",xN);/**
|
|
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 wN=[["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"}]],EN=Pe("shield",wN);/**
|
|
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 NN=[["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"}]],TN=Pe("sparkles",NN);/**
|
|
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 CN=[["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"}]],uy=Pe("sun",CN);/**
|
|
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 AN=[["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"}]],RN=Pe("wifi-off",AN);/**
|
|
217
|
-
* @license lucide-react v1.7.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const _N=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fy=Pe("x",_N);function Ug(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Qf(...n){return r=>{let o=!1;const i=n.map(u=>{const f=Ug(u,r);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let u=0;u<i.length;u++){const f=i[u];typeof f=="function"?f():Ug(n[u],null)}}}}function We(...n){return b.useCallback(Qf(...n),n)}var ON=Symbol.for("react.lazy"),bs=Uf[" use ".trim().toString()];function MN(n){return typeof n=="object"&&n!==null&&"then"in n}function dy(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===ON&&"_payload"in n&&MN(n._payload)}function DN(n){const r=zN(n),o=b.forwardRef((i,u)=>{let{children:f,...d}=i;dy(f)&&typeof bs=="function"&&(f=bs(f._payload));const h=b.Children.toArray(f),v=h.find(LN);if(v){const p=v.props.children,x=h.map(m=>m===v?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);return y.jsx(r,{...d,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return y.jsx(r,{...d,ref:u,children:f})});return o.displayName=`${n}.Slot`,o}var jN=DN("Slot");function zN(n){const r=b.forwardRef((o,i)=>{let{children:u,...f}=o;if(dy(u)&&typeof bs=="function"&&(u=bs(u._payload)),b.isValidElement(u)){const d=BN(u),h=UN(f,u.props);return u.type!==b.Fragment&&(h.ref=i?Qf(i,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var kN=Symbol("radix.slottable");function LN(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===kN}function UN(n,r){const o={...r};for(const i in r){const u=n[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...h)=>{const v=f(...h);return u(...h),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...n,...o}}function BN(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 Zf=ey("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),wl=b.forwardRef(({className:n,variant:r,size:o,asChild:i=!1,...u},f)=>{const d=i?jN:"button";return y.jsx(d,{className:xe(Zf({variant:r,size:o,className:n})),ref:f,...u})});wl.displayName="Button";const _n=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:xe("rounded-lg border bg-card text-card-foreground shadow-sm",n),...r}));_n.displayName="Card";const On=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:xe("flex flex-col space-y-1.5 p-6",n),...r}));On.displayName="CardHeader";const Mn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:xe("text-2xl font-semibold leading-none tracking-tight",n),...r}));Mn.displayName="CardTitle";const Dn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:xe("text-sm text-muted-foreground",n),...r}));Dn.displayName="CardDescription";const jn=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:xe("p-6 pt-0",n),...r}));jn.displayName="CardContent";const HN=b.forwardRef(({className:n,...r},o)=>y.jsx("div",{ref:o,className:xe("flex items-center p-6 pt-0",n),...r}));HN.displayName="CardFooter";function ke(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 VN(n,r){const o=b.createContext(r),i=f=>{const{children:d,...h}=f,v=b.useMemo(()=>h,Object.values(h));return y.jsx(o.Provider,{value:v,children:d})};i.displayName=n+"Provider";function u(f){const d=b.useContext(o);if(d)return d;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[i,u]}function Rl(n,r=[]){let o=[];function i(f,d){const h=b.createContext(d),v=o.length;o=[...o,d];const p=m=>{var C;const{scope:w,children:N,...A}=m,E=((C=w==null?void 0:w[n])==null?void 0:C[v])||h,T=b.useMemo(()=>A,Object.values(A));return y.jsx(E.Provider,{value:T,children:N})};p.displayName=f+"Provider";function x(m,w){var E;const N=((E=w==null?void 0:w[n])==null?void 0:E[v])||h,A=b.useContext(N);if(A)return A;if(d!==void 0)return d;throw new Error(`\`${m}\` must be used within \`${f}\``)}return[p,x]}const u=()=>{const f=o.map(d=>b.createContext(d));return function(h){const v=(h==null?void 0:h[n])||f;return b.useMemo(()=>({[`__scope${n}`]:{...h,[n]:v}}),[h,v])}};return u.scopeName=n,[i,YN(u,...r)]}function YN(...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(f){const d=i.reduce((h,{useScope:v,scopeName:p})=>{const m=v(f)[`__scope${p}`];return{...h,...m}},{});return b.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return o.scopeName=r.scopeName,o}var Tt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},qN=Uf[" useId ".trim().toString()]||(()=>{}),GN=0;function Ga(n){const[r,o]=b.useState(qN());return Tt(()=>{o(i=>i??String(GN++))},[n]),r?`radix-${r}`:""}var $N=Uf[" useInsertionEffect ".trim().toString()]||Tt;function Oo({prop:n,defaultProp:r,onChange:o=()=>{},caller:i}){const[u,f,d]=XN({defaultProp:r,onChange:o}),h=n!==void 0,v=h?n:u;{const x=b.useRef(n!==void 0);b.useEffect(()=>{const m=x.current;m!==h&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=h},[h,i])}const p=b.useCallback(x=>{var m;if(h){const w=QN(x)?x(n):x;w!==n&&((m=d.current)==null||m.call(d,w))}else f(x)},[h,n,f,d]);return[v,p]}function XN({defaultProp:n,onChange:r}){const[o,i]=b.useState(n),u=b.useRef(o),f=b.useRef(r);return $N(()=>{f.current=r},[r]),b.useEffect(()=>{var d;u.current!==o&&((d=f.current)==null||d.call(f,o),u.current=o)},[o,u]),[o,i,f]}function QN(n){return typeof n=="function"}function Mo(n){const r=ZN(n),o=b.forwardRef((i,u)=>{const{children:f,...d}=i,h=b.Children.toArray(f),v=h.find(PN);if(v){const p=v.props.children,x=h.map(m=>m===v?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:m);return y.jsx(r,{...d,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return y.jsx(r,{...d,ref:u,children:f})});return o.displayName=`${n}.Slot`,o}function ZN(n){const r=b.forwardRef((o,i)=>{const{children:u,...f}=o;if(b.isValidElement(u)){const d=FN(u),h=JN(f,u.props);return u.type!==b.Fragment&&(h.ref=i?Qf(i,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var my=Symbol("radix.slottable");function KN(n){const r=({children:o})=>y.jsx(y.Fragment,{children:o});return r.displayName=`${n}.Slottable`,r.__radixId=my,r}function PN(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===my}function JN(n,r){const o={...r};for(const i in r){const u=n[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...h)=>{const v=f(...h);return u(...h),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...n,...o}}function FN(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 IN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=IN.reduce((n,r)=>{const o=Mo(`Primitive.${r}`),i=b.forwardRef((u,f)=>{const{asChild:d,...h}=u,v=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(v,{...h,ref:f})});return i.displayName=`Primitive.${r}`,{...n,[r]:i}},{});function WN(n,r){n&&ko.flushSync(()=>n.dispatchEvent(r))}function $a(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 eT(n,r=globalThis==null?void 0:globalThis.document){const o=$a(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 tT="DismissableLayer",Tf="dismissableLayer.update",nT="dismissableLayer.pointerDownOutside",aT="dismissableLayer.focusOutside",Bg,hy=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kf=b.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...v}=n,p=b.useContext(hy),[x,m]=b.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=b.useState({}),A=We(r,q=>m(q)),E=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(T),j=x?E.indexOf(x):-1,D=p.layersWithOutsidePointerEventsDisabled.size>0,B=j>=C,Z=oT(q=>{const V=q.target,le=[...p.branches].some(he=>he.contains(V));!B||le||(u==null||u(q),d==null||d(q),q.defaultPrevented||h==null||h())},w),F=iT(q=>{const V=q.target;[...p.branches].some(he=>he.contains(V))||(f==null||f(q),d==null||d(q),q.defaultPrevented||h==null||h())},w);return eT(q=>{j===p.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&h&&(q.preventDefault(),h()))},w),b.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Bg=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Hg(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Bg)}},[x,w,o,p]),b.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Hg())},[x,p]),b.useEffect(()=>{const q=()=>N({});return document.addEventListener(Tf,q),()=>document.removeEventListener(Tf,q)},[]),y.jsx(Be.div,{...v,ref:A,style:{pointerEvents:D?B?"auto":"none":void 0,...n.style},onFocusCapture:ke(n.onFocusCapture,F.onFocusCapture),onBlurCapture:ke(n.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ke(n.onPointerDownCapture,Z.onPointerDownCapture)})});Kf.displayName=tT;var lT="DismissableLayerBranch",rT=b.forwardRef((n,r)=>{const o=b.useContext(hy),i=b.useRef(null),u=We(r,i);return b.useEffect(()=>{const f=i.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),y.jsx(Be.div,{...n,ref:u})});rT.displayName=lT;function oT(n,r=globalThis==null?void 0:globalThis.document){const o=$a(n),i=b.useRef(!1),u=b.useRef(()=>{});return b.useEffect(()=>{const f=h=>{if(h.target&&!i.current){let v=function(){py(nT,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",u.current),u.current=v,r.addEventListener("click",u.current,{once:!0})):v()}else r.removeEventListener("click",u.current);i.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",f),r.removeEventListener("click",u.current)}},[r,o]),{onPointerDownCapture:()=>i.current=!0}}function iT(n,r=globalThis==null?void 0:globalThis.document){const o=$a(n),i=b.useRef(!1);return b.useEffect(()=>{const u=f=>{f.target&&!i.current&&py(aT,o,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",u),()=>r.removeEventListener("focusin",u)},[r,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Hg(){const n=new CustomEvent(Tf);document.dispatchEvent(n)}function py(n,r,o,{discrete:i}){const u=o.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&u.addEventListener(n,r,{once:!0}),i?WN(u,f):u.dispatchEvent(f)}var uf="focusScope.autoFocusOnMount",ff="focusScope.autoFocusOnUnmount",Vg={bubbles:!1,cancelable:!0},sT="FocusScope",Pf=b.forwardRef((n,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=n,[h,v]=b.useState(null),p=$a(u),x=$a(f),m=b.useRef(null),w=We(r,E=>v(E)),N=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let E=function(D){if(N.paused||!h)return;const B=D.target;h.contains(B)?m.current=B:Va(m.current,{select:!0})},T=function(D){if(N.paused||!h)return;const B=D.relatedTarget;B!==null&&(h.contains(B)||Va(m.current,{select:!0}))},C=function(D){if(document.activeElement===document.body)for(const Z of D)Z.removedNodes.length>0&&Va(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",T);const j=new MutationObserver(C);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),j.disconnect()}}},[i,h,N.paused]),b.useEffect(()=>{if(h){qg.add(N);const E=document.activeElement;if(!h.contains(E)){const C=new CustomEvent(uf,Vg);h.addEventListener(uf,p),h.dispatchEvent(C),C.defaultPrevented||(cT(hT(gy(h)),{select:!0}),document.activeElement===E&&Va(h))}return()=>{h.removeEventListener(uf,p),setTimeout(()=>{const C=new CustomEvent(ff,Vg);h.addEventListener(ff,x),h.dispatchEvent(C),C.defaultPrevented||Va(E??document.body,{select:!0}),h.removeEventListener(ff,x),qg.remove(N)},0)}}},[h,p,x,N]);const A=b.useCallback(E=>{if(!o&&!i||N.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,C=document.activeElement;if(T&&C){const j=E.currentTarget,[D,B]=uT(j);D&&B?!E.shiftKey&&C===B?(E.preventDefault(),o&&Va(D,{select:!0})):E.shiftKey&&C===D&&(E.preventDefault(),o&&Va(B,{select:!0})):C===j&&E.preventDefault()}},[o,i,N.paused]);return y.jsx(Be.div,{tabIndex:-1,...d,ref:w,onKeyDown:A})});Pf.displayName=sT;function cT(n,{select:r=!1}={}){const o=document.activeElement;for(const i of n)if(Va(i,{select:r}),document.activeElement!==o)return}function uT(n){const r=gy(n),o=Yg(r,n),i=Yg(r.reverse(),n);return[o,i]}function gy(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 Yg(n,r){for(const o of n)if(!fT(o,{upTo:r}))return o}function fT(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 Va(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&dT(n)&&r&&n.select()}}var qg=mT();function mT(){let n=[];return{add(r){const o=n[0];r!==o&&(o==null||o.pause()),n=Gg(n,r),n.unshift(r)},remove(r){var o;n=Gg(n,r),(o=n[0])==null||o.resume()}}}function Gg(n,r){const o=[...n],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function hT(n){return n.filter(r=>r.tagName!=="A")}var pT="Portal",Jf=b.forwardRef((n,r)=>{var h;const{container:o,...i}=n,[u,f]=b.useState(!1);Tt(()=>f(!0),[]);const d=o||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?kv.createPortal(y.jsx(Be.div,{...i,ref:r}),d):null});Jf.displayName=pT;function gT(n,r){return b.useReducer((o,i)=>r[o][i]??o,n)}var Lo=n=>{const{present:r,children:o}=n,i=vT(r),u=typeof o=="function"?o({present:i.isPresent}):b.Children.only(o),f=We(i.ref,yT(u));return typeof o=="function"||i.isPresent?b.cloneElement(u,{ref:f}):null};Lo.displayName="Presence";function vT(n){const[r,o]=b.useState(),i=b.useRef(null),u=b.useRef(n),f=b.useRef("none"),d=n?"mounted":"unmounted",[h,v]=gT(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=as(i.current);f.current=h==="mounted"?p:"none"},[h]),Tt(()=>{const p=i.current,x=u.current;if(x!==n){const w=f.current,N=as(p);n?v("MOUNT"):N==="none"||(p==null?void 0:p.display)==="none"?v("UNMOUNT"):v(x&&w!==N?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,v]),Tt(()=>{if(r){let p;const x=r.ownerDocument.defaultView??window,m=N=>{const E=as(i.current).includes(CSS.escape(N.animationName));if(N.target===r&&E&&(v("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=N=>{N.target===r&&(f.current=as(i.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",m),r.addEventListener("animationend",m),()=>{x.clearTimeout(p),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",m),r.removeEventListener("animationend",m)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:b.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function as(n){return(n==null?void 0:n.animationName)||"none"}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 df=0;function vy(){b.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??$g()),document.body.insertAdjacentElement("beforeend",n[1]??$g()),df++,()=>{df===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),df--}},[])}function $g(){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 zn=function(){return zn=Object.assign||function(r){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(r[f]=o[f])}return r},zn.apply(this,arguments)};function yy(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 bT(n,r,o){if(o||arguments.length===2)for(var i=0,u=r.length,f;i<u;i++)(f||!(i in r))&&(f||(f=Array.prototype.slice.call(r,0,i)),f[i]=r[i]);return n.concat(f||Array.prototype.slice.call(r))}var ds="right-scroll-bar-position",ms="width-before-scroll-bar",xT="with-scroll-bars-hidden",ST="--removed-body-scroll-bar-size";function mf(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function wT(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 ET=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xg=new WeakMap;function NT(n,r){var o=wT(null,function(i){return n.forEach(function(u){return mf(u,i)})});return ET(function(){var i=Xg.get(o);if(i){var u=new Set(i),f=new Set(n),d=o.current;u.forEach(function(h){f.has(h)||mf(h,null)}),f.forEach(function(h){u.has(h)||mf(h,d)})}Xg.set(o,n)},[n]),o}function TT(n){return n}function CT(n,r){r===void 0&&(r=TT);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(f){var d=r(f,i);return o.push(d),function(){o=o.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(i=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(h){return f(h)},filter:function(){return o}}},assignMedium:function(f){i=!0;var d=[];if(o.length){var h=o;o=[],h.forEach(f),d=o}var v=function(){var x=d;d=[],x.forEach(f)},p=function(){return Promise.resolve().then(v)};p(),o={push:function(x){d.push(x),p()},filter:function(x){return d=d.filter(x),o}}}};return u}function AT(n){n===void 0&&(n={});var r=CT(null);return r.options=zn({async:!0,ssr:!1},n),r}var by=function(n){var r=n.sideCar,o=yy(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,zn({},o))};by.isSideCarExport=!0;function RT(n,r){return n.useMedium(r),by}var xy=AT(),hf=function(){},_s=b.forwardRef(function(n,r){var o=b.useRef(null),i=b.useState({onScrollCapture:hf,onWheelCapture:hf,onTouchMoveCapture:hf}),u=i[0],f=i[1],d=n.forwardProps,h=n.children,v=n.className,p=n.removeScrollBar,x=n.enabled,m=n.shards,w=n.sideCar,N=n.noRelative,A=n.noIsolation,E=n.inert,T=n.allowPinchZoom,C=n.as,j=C===void 0?"div":C,D=n.gapMode,B=yy(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=w,F=NT([o,r]),q=zn(zn({},B),u);return b.createElement(b.Fragment,null,x&&b.createElement(Z,{sideCar:xy,removeScrollBar:p,shards:m,noRelative:N,noIsolation:A,inert:E,setCallbacks:f,allowPinchZoom:!!T,lockRef:o,gapMode:D}),d?b.cloneElement(b.Children.only(h),zn(zn({},q),{ref:F})):b.createElement(j,zn({},q,{className:v,ref:F}),h))});_s.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_s.classNames={fullWidth:ms,zeroRight:ds};var _T=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function OT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=_T();return r&&n.setAttribute("nonce",r),n}function MT(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function DT(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var jT=function(){var n=0,r=null;return{add:function(o){n==0&&(r=OT())&&(MT(r,o),DT(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},zT=function(){var n=jT();return function(r,o){b.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},Sy=function(){var n=zT(),r=function(o){var i=o.styles,u=o.dynamic;return n(i,u),null};return r},kT={left:0,top:0,right:0,gap:0},pf=function(n){return parseInt(n||"",10)||0},LT=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[pf(o),pf(i),pf(u)]},UT=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return kT;var r=LT(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])}},BT=Sy(),xr="data-scroll-locked",HT=function(n,r,o,i){var u=n.left,f=n.top,d=n.right,h=n.gap;return o===void 0&&(o="margin"),`
|
|
222
|
-
.`.concat(xT,` {
|
|
223
|
-
overflow: hidden `).concat(i,`;
|
|
224
|
-
padding-right: `).concat(h,"px ").concat(i,`;
|
|
225
|
-
}
|
|
226
|
-
body[`).concat(xr,`] {
|
|
227
|
-
overflow: hidden `).concat(i,`;
|
|
228
|
-
overscroll-behavior: contain;
|
|
229
|
-
`).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
|
|
230
|
-
padding-left: `.concat(u,`px;
|
|
231
|
-
padding-top: `).concat(f,`px;
|
|
232
|
-
padding-right: `).concat(d,`px;
|
|
233
|
-
margin-left:0;
|
|
234
|
-
margin-top:0;
|
|
235
|
-
margin-right: `).concat(h,"px ").concat(i,`;
|
|
236
|
-
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.`).concat(ds,` {
|
|
240
|
-
right: `).concat(h,"px ").concat(i,`;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.`).concat(ms,` {
|
|
244
|
-
margin-right: `).concat(h,"px ").concat(i,`;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.`).concat(ds," .").concat(ds,` {
|
|
248
|
-
right: 0 `).concat(i,`;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.`).concat(ms," .").concat(ms,` {
|
|
252
|
-
margin-right: 0 `).concat(i,`;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
body[`).concat(xr,`] {
|
|
256
|
-
`).concat(ST,": ").concat(h,`px;
|
|
257
|
-
}
|
|
258
|
-
`)},Qg=function(){var n=parseInt(document.body.getAttribute(xr)||"0",10);return isFinite(n)?n:0},VT=function(){b.useEffect(function(){return document.body.setAttribute(xr,(Qg()+1).toString()),function(){var n=Qg()-1;n<=0?document.body.removeAttribute(xr):document.body.setAttribute(xr,n.toString())}},[])},YT=function(n){var r=n.noRelative,o=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;VT();var f=b.useMemo(function(){return UT(u)},[u]);return b.createElement(BT,{styles:HT(f,!r,u,o?"":"!important")})},Cf=!1;if(typeof window<"u")try{var ls=Object.defineProperty({},"passive",{get:function(){return Cf=!0,!0}});window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{Cf=!1}var gr=Cf?{passive:!1}:!1,qT=function(n){return n.tagName==="TEXTAREA"},wy=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!qT(n)&&o[r]==="visible")},GT=function(n){return wy(n,"overflowY")},$T=function(n){return wy(n,"overflowX")},Zg=function(n,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=Ey(n,i);if(u){var f=Ny(n,i),d=f[1],h=f[2];if(d>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},XT=function(n){var r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[r,o,i]},QT=function(n){var r=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[r,o,i]},Ey=function(n,r){return n==="v"?GT(r):$T(r)},Ny=function(n,r){return n==="v"?XT(r):QT(r)},ZT=function(n,r){return n==="h"&&r==="rtl"?-1:1},KT=function(n,r,o,i,u){var f=ZT(n,window.getComputedStyle(r).direction),d=f*i,h=o.target,v=r.contains(h),p=!1,x=d>0,m=0,w=0;do{if(!h)break;var N=Ny(n,h),A=N[0],E=N[1],T=N[2],C=E-T-f*A;(A||C)&&Ey(n,h)&&(m+=C,w+=A);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!v&&h!==document.body||v&&(r.contains(h)||r===h));return(x&&Math.abs(m)<1||!x&&Math.abs(w)<1)&&(p=!0),p},rs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Kg=function(n){return[n.deltaX,n.deltaY]},Pg=function(n){return n&&"current"in n?n.current:n},PT=function(n,r){return n[0]===r[0]&&n[1]===r[1]},JT=function(n){return`
|
|
259
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
260
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
261
|
-
`)},FT=0,vr=[];function IT(n){var r=b.useRef([]),o=b.useRef([0,0]),i=b.useRef(),u=b.useState(FT++)[0],f=b.useState(Sy)[0],d=b.useRef(n);b.useEffect(function(){d.current=n},[n]),b.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var E=bT([n.lockRef.current],(n.shards||[]).map(Pg),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var h=b.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var C=rs(E),j=o.current,D="deltaX"in E?E.deltaX:j[0]-C[0],B="deltaY"in E?E.deltaY:j[1]-C[1],Z,F=E.target,q=Math.abs(D)>Math.abs(B)?"h":"v";if("touches"in E&&q==="h"&&F.type==="range")return!1;var V=window.getSelection(),le=V&&V.anchorNode,he=le?le===F||le.contains(F):!1;if(he)return!1;var pe=Zg(q,F);if(!pe)return!0;if(pe?Z=q:(Z=q==="v"?"h":"v",pe=Zg(q,F)),!pe)return!1;if(!i.current&&"changedTouches"in E&&(D||B)&&(i.current=Z),!Z)return!0;var fe=i.current||Z;return KT(fe,T,E,fe==="h"?D:B)},[]),v=b.useCallback(function(E){var T=E;if(!(!vr.length||vr[vr.length-1]!==f)){var C="deltaY"in T?Kg(T):rs(T),j=r.current.filter(function(Z){return Z.name===T.type&&(Z.target===T.target||T.target===Z.shadowParent)&&PT(Z.delta,C)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var D=(d.current.shards||[]).map(Pg).filter(Boolean).filter(function(Z){return Z.contains(T.target)}),B=D.length>0?h(T,D[0]):!d.current.noIsolation;B&&T.cancelable&&T.preventDefault()}}},[]),p=b.useCallback(function(E,T,C,j){var D={name:E,delta:T,target:C,should:j,shadowParent:WT(C)};r.current.push(D),setTimeout(function(){r.current=r.current.filter(function(B){return B!==D})},1)},[]),x=b.useCallback(function(E){o.current=rs(E),i.current=void 0},[]),m=b.useCallback(function(E){p(E.type,Kg(E),E.target,h(E,n.lockRef.current))},[]),w=b.useCallback(function(E){p(E.type,rs(E),E.target,h(E,n.lockRef.current))},[]);b.useEffect(function(){return vr.push(f),n.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:w}),document.addEventListener("wheel",v,gr),document.addEventListener("touchmove",v,gr),document.addEventListener("touchstart",x,gr),function(){vr=vr.filter(function(E){return E!==f}),document.removeEventListener("wheel",v,gr),document.removeEventListener("touchmove",v,gr),document.removeEventListener("touchstart",x,gr)}},[]);var N=n.removeScrollBar,A=n.inert;return b.createElement(b.Fragment,null,A?b.createElement(f,{styles:JT(u)}):null,N?b.createElement(YT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function WT(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const eC=RT(xy,IT);var Ff=b.forwardRef(function(n,r){return b.createElement(_s,zn({},n,{ref:r,sideCar:eC}))});Ff.classNames=_s.classNames;var tC=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},yr=new WeakMap,os=new WeakMap,is={},gf=0,Ty=function(n){return n&&(n.host||Ty(n.parentNode))},nC=function(n,r){return r.map(function(o){if(n.contains(o))return o;var i=Ty(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})},aC=function(n,r,o,i){var u=nC(r,Array.isArray(n)?n:[n]);is[o]||(is[o]=new WeakMap);var f=is[o],d=[],h=new Set,v=new Set(u),p=function(m){!m||h.has(m)||(h.add(m),p(m.parentNode))};u.forEach(p);var x=function(m){!m||v.has(m)||Array.prototype.forEach.call(m.children,function(w){if(h.has(w))x(w);else try{var N=w.getAttribute(i),A=N!==null&&N!=="false",E=(yr.get(w)||0)+1,T=(f.get(w)||0)+1;yr.set(w,E),f.set(w,T),d.push(w),E===1&&A&&os.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),h.clear(),gf++,function(){d.forEach(function(m){var w=yr.get(m)-1,N=f.get(m)-1;yr.set(m,w),f.set(m,N),w||(os.has(m)||m.removeAttribute(i),os.delete(m)),N||m.removeAttribute(o)}),gf--,gf||(yr=new WeakMap,yr=new WeakMap,os=new WeakMap,is={})}},Cy=function(n,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=tC(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),aC(i,u,o,"aria-hidden")):function(){return null}},Os="Dialog",[Ay,Ry]=Rl(Os),[lC,Sn]=Ay(Os),_y=n=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:f,modal:d=!0}=n,h=b.useRef(null),v=b.useRef(null),[p,x]=Oo({prop:i,defaultProp:u??!1,onChange:f,caller:Os});return y.jsx(lC,{scope:r,triggerRef:h,contentRef:v,contentId:Ga(),titleId:Ga(),descriptionId:Ga(),open:p,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(m=>!m),[x]),modal:d,children:o})};_y.displayName=Os;var Oy="DialogTrigger",My=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Sn(Oy,o),f=We(r,u.triggerRef);return y.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":ed(u.open),...i,ref:f,onClick:ke(n.onClick,u.onOpenToggle)})});My.displayName=Oy;var If="DialogPortal",[rC,Dy]=Ay(If,{forceMount:void 0}),jy=n=>{const{__scopeDialog:r,forceMount:o,children:i,container:u}=n,f=Sn(If,r);return y.jsx(rC,{scope:r,forceMount:o,children:b.Children.map(i,d=>y.jsx(Lo,{present:o||f.open,children:y.jsx(Jf,{asChild:!0,container:u,children:d})}))})};jy.displayName=If;var xs="DialogOverlay",zy=b.forwardRef((n,r)=>{const o=Dy(xs,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,f=Sn(xs,n.__scopeDialog);return f.modal?y.jsx(Lo,{present:i||f.open,children:y.jsx(iC,{...u,ref:r})}):null});zy.displayName=xs;var oC=Mo("DialogOverlay.RemoveScroll"),iC=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Sn(xs,o);return y.jsx(Ff,{as:oC,allowPinchZoom:!0,shards:[u.contentRef],children:y.jsx(Be.div,{"data-state":ed(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),El="DialogContent",ky=b.forwardRef((n,r)=>{const o=Dy(El,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,f=Sn(El,n.__scopeDialog);return y.jsx(Lo,{present:i||f.open,children:f.modal?y.jsx(sC,{...u,ref:r}):y.jsx(cC,{...u,ref:r})})});ky.displayName=El;var sC=b.forwardRef((n,r)=>{const o=Sn(El,n.__scopeDialog),i=b.useRef(null),u=We(r,o.contentRef,i);return b.useEffect(()=>{const f=i.current;if(f)return Cy(f)},[]),y.jsx(Ly,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(n.onCloseAutoFocus,f=>{var d;f.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ke(n.onPointerDownOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&f.preventDefault()}),onFocusOutside:ke(n.onFocusOutside,f=>f.preventDefault())})}),cC=b.forwardRef((n,r)=>{const o=Sn(El,n.__scopeDialog),i=b.useRef(!1),u=b.useRef(!1);return y.jsx(Ly,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,h;(d=n.onCloseAutoFocus)==null||d.call(n,f),f.defaultPrevented||(i.current||(h=o.triggerRef.current)==null||h.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{var v,p;(v=n.onInteractOutside)==null||v.call(n,f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const d=f.target;((p=o.triggerRef.current)==null?void 0:p.contains(d))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),Ly=b.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...d}=n,h=Sn(El,o),v=b.useRef(null),p=We(r,v);return vy(),y.jsxs(y.Fragment,{children:[y.jsx(Pf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:f,children:y.jsx(Kf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":ed(h.open),...d,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(fC,{titleId:h.titleId}),y.jsx(mC,{contentRef:v,descriptionId:h.descriptionId})]})]})}),Wf="DialogTitle",Uy=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Sn(Wf,o);return y.jsx(Be.h2,{id:u.titleId,...i,ref:r})});Uy.displayName=Wf;var By="DialogDescription",Hy=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Sn(By,o);return y.jsx(Be.p,{id:u.descriptionId,...i,ref:r})});Hy.displayName=By;var Vy="DialogClose",Yy=b.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,u=Sn(Vy,o);return y.jsx(Be.button,{type:"button",...i,ref:r,onClick:ke(n.onClick,()=>u.onOpenChange(!1))})});Yy.displayName=Vy;function ed(n){return n?"open":"closed"}var qy="DialogTitleWarning",[uC,Gy]=VN(qy,{contentName:El,titleName:Wf,docsSlug:"dialog"}),fC=({titleId:n})=>{const r=Gy(qy),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
262
|
-
|
|
263
|
-
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
264
|
-
|
|
265
|
-
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",mC=({contentRef:n,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gy(dC).contentName}}.`;return b.useEffect(()=>{var f;const u=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,n,r]),null},$y=_y,Xy=My,Qy=jy,td=zy,nd=ky,ad=Uy,ld=Hy,Ms=Yy;const hC=$y,pC=Xy,gC=Qy,x_=Ms,Zy=b.forwardRef(({className:n,...r},o)=>y.jsx(td,{ref:o,className:xe("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}));Zy.displayName=td.displayName;const Ky=b.forwardRef(({className:n,children:r,...o},i)=>y.jsxs(gC,{children:[y.jsx(Zy,{}),y.jsxs(nd,{ref:i,className:xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg 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%] sm:rounded-lg",n),...o,children:[r,y.jsxs(Ms,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(fy,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ky.displayName=nd.displayName;const Py=({className:n,...r})=>y.jsx("div",{className:xe("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Py.displayName="DialogHeader";const vC=({className:n,...r})=>y.jsx("div",{className:xe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});vC.displayName="DialogFooter";const Jy=b.forwardRef(({className:n,...r},o)=>y.jsx(ad,{ref:o,className:xe("text-lg font-semibold leading-none tracking-tight",n),...r}));Jy.displayName=ad.displayName;const Fy=b.forwardRef(({className:n,...r},o)=>y.jsx(ld,{ref:o,className:xe("text-sm text-muted-foreground",n),...r}));Fy.displayName=ld.displayName;function Jg(n,[r,o]){return Math.min(o,Math.max(r,n))}function Iy(n){const r=n+"CollectionProvider",[o,i]=Rl(r),[u,f]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=E=>{const{scope:T,children:C}=E,j=te.useRef(null),D=te.useRef(new Map).current;return y.jsx(u,{scope:T,itemMap:D,collectionRef:j,children:C})};d.displayName=r;const h=n+"CollectionSlot",v=Mo(h),p=te.forwardRef((E,T)=>{const{scope:C,children:j}=E,D=f(h,C),B=We(T,D.collectionRef);return y.jsx(v,{ref:B,children:j})});p.displayName=h;const x=n+"CollectionItemSlot",m="data-radix-collection-item",w=Mo(x),N=te.forwardRef((E,T)=>{const{scope:C,children:j,...D}=E,B=te.useRef(null),Z=We(T,B),F=f(x,C);return te.useEffect(()=>(F.itemMap.set(B,{ref:B,...D}),()=>void F.itemMap.delete(B))),y.jsx(w,{[m]:"",ref:Z,children:j})});N.displayName=x;function A(E){const T=f(n+"CollectionConsumer",E);return te.useCallback(()=>{const j=T.collectionRef.current;if(!j)return[];const D=Array.from(j.querySelectorAll(`[${m}]`));return Array.from(T.itemMap.values()).sort((F,q)=>D.indexOf(F.ref.current)-D.indexOf(q.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:N},A,i]}var yC=b.createContext(void 0);function rd(n){const r=b.useContext(yC);return n||r||"ltr"}const bC=["top","right","bottom","left"],Xa=Math.min,Pt=Math.max,Ss=Math.round,ss=Math.floor,Un=n=>({x:n,y:n}),xC={left:"right",right:"left",bottom:"top",top:"bottom"};function Af(n,r,o){return Pt(n,Xa(r,o))}function ia(n,r){return typeof n=="function"?n(r):n}function sa(n){return n.split("-")[0]}function Ar(n){return n.split("-")[1]}function od(n){return n==="x"?"y":"x"}function id(n){return n==="y"?"height":"width"}function kn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function sd(n){return od(kn(n))}function SC(n,r,o){o===void 0&&(o=!1);const i=Ar(n),u=sd(n),f=id(u);let d=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(d=ws(d)),[d,ws(d)]}function wC(n){const r=ws(n);return[Rf(n),r,Rf(r)]}function Rf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Fg=["left","right"],Ig=["right","left"],EC=["top","bottom"],NC=["bottom","top"];function TC(n,r,o){switch(n){case"top":case"bottom":return o?r?Ig:Fg:r?Fg:Ig;case"left":case"right":return r?EC:NC;default:return[]}}function CC(n,r,o,i){const u=Ar(n);let f=TC(sa(n),o==="start",i);return u&&(f=f.map(d=>d+"-"+u),r&&(f=f.concat(f.map(Rf)))),f}function ws(n){const r=sa(n);return xC[r]+n.slice(r.length)}function AC(n){return{top:0,right:0,bottom:0,left:0,...n}}function Wy(n){return typeof n!="number"?AC(n):{top:n,right:n,bottom:n,left:n}}function Es(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 Wg(n,r,o){let{reference:i,floating:u}=n;const f=kn(r),d=sd(r),h=id(d),v=sa(r),p=f==="y",x=i.x+i.width/2-u.width/2,m=i.y+i.height/2-u.height/2,w=i[h]/2-u[h]/2;let N;switch(v){case"top":N={x,y:i.y-u.height};break;case"bottom":N={x,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:m};break;case"left":N={x:i.x-u.width,y:m};break;default:N={x:i.x,y:i.y}}switch(Ar(r)){case"start":N[d]-=w*(o&&p?-1:1);break;case"end":N[d]+=w*(o&&p?-1:1);break}return N}async function RC(n,r){var o;r===void 0&&(r={});const{x:i,y:u,platform:f,rects:d,elements:h,strategy:v}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:m="floating",altBoundary:w=!1,padding:N=0}=ia(r,n),A=Wy(N),T=h[w?m==="floating"?"reference":"floating":m],C=Es(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(T)))==null||o?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:v})),j=m==="floating"?{x:i,y:u,width:d.floating.width,height:d.floating.height}:d.reference,D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),B=await(f.isElement==null?void 0:f.isElement(D))?await(f.getScale==null?void 0:f.getScale(D))||{x:1,y:1}:{x:1,y:1},Z=Es(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:D,strategy:v}):j);return{top:(C.top-Z.top+A.top)/B.y,bottom:(Z.bottom-C.bottom+A.bottom)/B.y,left:(C.left-Z.left+A.left)/B.x,right:(Z.right-C.right+A.right)/B.x}}const _C=50,OC=async(n,r,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:f=[],platform:d}=o,h=d.detectOverflow?d:{...d,detectOverflow:RC},v=await(d.isRTL==null?void 0:d.isRTL(r));let p=await d.getElementRects({reference:n,floating:r,strategy:u}),{x,y:m}=Wg(p,i,v),w=i,N=0;const A={};for(let E=0;E<f.length;E++){const T=f[E];if(!T)continue;const{name:C,fn:j}=T,{x:D,y:B,data:Z,reset:F}=await j({x,y:m,initialPlacement:i,placement:w,strategy:u,middlewareData:A,rects:p,platform:h,elements:{reference:n,floating:r}});x=D??x,m=B??m,A[C]={...A[C],...Z},F&&N<_C&&(N++,typeof F=="object"&&(F.placement&&(w=F.placement),F.rects&&(p=F.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:u}):F.rects),{x,y:m}=Wg(p,w,v)),E=-1)}return{x,y:m,placement:w,strategy:u,middlewareData:A}},MC=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:i,placement:u,rects:f,platform:d,elements:h,middlewareData:v}=r,{element:p,padding:x=0}=ia(n,r)||{};if(p==null)return{};const m=Wy(x),w={x:o,y:i},N=sd(u),A=id(N),E=await d.getDimensions(p),T=N==="y",C=T?"top":"left",j=T?"bottom":"right",D=T?"clientHeight":"clientWidth",B=f.reference[A]+f.reference[N]-w[N]-f.floating[A],Z=w[N]-f.reference[N],F=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let q=F?F[D]:0;(!q||!await(d.isElement==null?void 0:d.isElement(F)))&&(q=h.floating[D]||f.floating[A]);const V=B/2-Z/2,le=q/2-E[A]/2-1,he=Xa(m[C],le),pe=Xa(m[j],le),fe=he,me=q-E[A]-pe,ge=q/2-E[A]/2+V,ue=Af(fe,ge,me),O=!v.arrow&&Ar(u)!=null&&ge!==ue&&f.reference[A]/2-(ge<fe?he:pe)-E[A]/2<0,Y=O?ge<fe?ge-fe:ge-me:0;return{[N]:w[N]+Y,data:{[N]:ue,centerOffset:ge-ue-Y,...O&&{alignmentOffset:Y}},reset:O}}}),DC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,i;const{placement:u,middlewareData:f,rects:d,initialPlacement:h,platform:v,elements:p}=r,{mainAxis:x=!0,crossAxis:m=!0,fallbackPlacements:w,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...T}=ia(n,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const C=sa(u),j=kn(h),D=sa(h)===h,B=await(v.isRTL==null?void 0:v.isRTL(p.floating)),Z=w||(D||!E?[ws(h)]:wC(h)),F=A!=="none";!w&&F&&Z.push(...CC(h,E,A,B));const q=[h,...Z],V=await v.detectOverflow(r,T),le=[];let he=((i=f.flip)==null?void 0:i.overflows)||[];if(x&&le.push(V[C]),m){const ge=SC(u,d,B);le.push(V[ge[0]],V[ge[1]])}if(he=[...he,{placement:u,overflows:le}],!le.every(ge=>ge<=0)){var pe,fe;const ge=(((pe=f.flip)==null?void 0:pe.index)||0)+1,ue=q[ge];if(ue&&(!(m==="alignment"?j!==kn(ue):!1)||he.every(J=>kn(J.placement)===j?J.overflows[0]>0:!0)))return{data:{index:ge,overflows:he},reset:{placement:ue}};let O=(fe=he.filter(Y=>Y.overflows[0]<=0).sort((Y,J)=>Y.overflows[1]-J.overflows[1])[0])==null?void 0:fe.placement;if(!O)switch(N){case"bestFit":{var me;const Y=(me=he.filter(J=>{if(F){const re=kn(J.placement);return re===j||re==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(re=>re>0).reduce((re,I)=>re+I,0)]).sort((J,re)=>J[1]-re[1])[0])==null?void 0:me[0];Y&&(O=Y);break}case"initialPlacement":O=h;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function ev(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function tv(n){return bC.some(r=>n[r]>=0)}const jC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:i}=r,{strategy:u="referenceHidden",...f}=ia(n,r);switch(u){case"referenceHidden":{const d=await i.detectOverflow(r,{...f,elementContext:"reference"}),h=ev(d,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:tv(h)}}}case"escaped":{const d=await i.detectOverflow(r,{...f,altBoundary:!0}),h=ev(d,o.floating);return{data:{escapedOffsets:h,escaped:tv(h)}}}default:return{}}}}},e0=new Set(["left","top"]);async function zC(n,r){const{placement:o,platform:i,elements:u}=n,f=await(i.isRTL==null?void 0:i.isRTL(u.floating)),d=sa(o),h=Ar(o),v=kn(o)==="y",p=e0.has(d)?-1:1,x=f&&v?-1:1,m=ia(r,n);let{mainAxis:w,crossAxis:N,alignmentAxis:A}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return h&&typeof A=="number"&&(N=h==="end"?A*-1:A),v?{x:N*x,y:w*p}:{x:w*p,y:N*x}}const kC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,i;const{x:u,y:f,placement:d,middlewareData:h}=r,v=await zC(r,n);return d===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:d}}}}},LC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:i,placement:u,platform:f}=r,{mainAxis:d=!0,crossAxis:h=!1,limiter:v={fn:C=>{let{x:j,y:D}=C;return{x:j,y:D}}},...p}=ia(n,r),x={x:o,y:i},m=await f.detectOverflow(r,p),w=kn(sa(u)),N=od(w);let A=x[N],E=x[w];if(d){const C=N==="y"?"top":"left",j=N==="y"?"bottom":"right",D=A+m[C],B=A-m[j];A=Af(D,A,B)}if(h){const C=w==="y"?"top":"left",j=w==="y"?"bottom":"right",D=E+m[C],B=E-m[j];E=Af(D,E,B)}const T=v.fn({...r,[N]:A,[w]:E});return{...T,data:{x:T.x-o,y:T.y-i,enabled:{[N]:d,[w]:h}}}}}},UC=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:o,y:i,placement:u,rects:f,middlewareData:d}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=ia(n,r),x={x:o,y:i},m=kn(u),w=od(m);let N=x[w],A=x[m];const E=ia(h,r),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(v){const D=w==="y"?"height":"width",B=f.reference[w]-f.floating[D]+T.mainAxis,Z=f.reference[w]+f.reference[D]-T.mainAxis;N<B?N=B:N>Z&&(N=Z)}if(p){var C,j;const D=w==="y"?"width":"height",B=e0.has(sa(u)),Z=f.reference[m]-f.floating[D]+(B&&((C=d.offset)==null?void 0:C[m])||0)+(B?0:T.crossAxis),F=f.reference[m]+f.reference[D]+(B?0:((j=d.offset)==null?void 0:j[m])||0)-(B?T.crossAxis:0);A<Z?A=Z:A>F&&(A=F)}return{[w]:N,[m]:A}}}},BC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var o,i;const{placement:u,rects:f,platform:d,elements:h}=r,{apply:v=()=>{},...p}=ia(n,r),x=await d.detectOverflow(r,p),m=sa(u),w=Ar(u),N=kn(u)==="y",{width:A,height:E}=f.floating;let T,C;m==="top"||m==="bottom"?(T=m,C=w===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(C=m,T=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,D=A-x.left-x.right,B=Xa(E-x[T],j),Z=Xa(A-x[C],D),F=!r.middlewareData.shift;let q=B,V=Z;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(V=D),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(q=j),F&&!w){const he=Pt(x.left,0),pe=Pt(x.right,0),fe=Pt(x.top,0),me=Pt(x.bottom,0);N?V=A-2*(he!==0||pe!==0?he+pe:Pt(x.left,x.right)):q=E-2*(fe!==0||me!==0?fe+me:Pt(x.top,x.bottom))}await v({...r,availableWidth:V,availableHeight:q});const le=await d.getDimensions(h.floating);return A!==le.width||E!==le.height?{reset:{rects:!0}}:{}}}};function Ds(){return typeof window<"u"}function Rr(n){return t0(n)?(n.nodeName||"").toLowerCase():"#document"}function Jt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Hn(n){var r;return(r=(t0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function t0(n){return Ds()?n instanceof Node||n instanceof Jt(n).Node:!1}function bn(n){return Ds()?n instanceof Element||n instanceof Jt(n).Element:!1}function ca(n){return Ds()?n instanceof HTMLElement||n instanceof Jt(n).HTMLElement:!1}function nv(n){return!Ds()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Jt(n).ShadowRoot}function Uo(n){const{overflow:r,overflowX:o,overflowY:i,display:u}=xn(n);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&u!=="inline"&&u!=="contents"}function HC(n){return/^(table|td|th)$/.test(Rr(n))}function js(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const VC=/transform|translate|scale|rotate|perspective|filter/,YC=/paint|layout|strict|content/,xl=n=>!!n&&n!=="none";let vf;function cd(n){const r=bn(n)?xn(n):n;return xl(r.transform)||xl(r.translate)||xl(r.scale)||xl(r.rotate)||xl(r.perspective)||!ud()&&(xl(r.backdropFilter)||xl(r.filter))||VC.test(r.willChange||"")||YC.test(r.contain||"")}function qC(n){let r=Qa(n);for(;ca(r)&&!Er(r);){if(cd(r))return r;if(js(r))return null;r=Qa(r)}return null}function ud(){return vf==null&&(vf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vf}function Er(n){return/^(html|body|#document)$/.test(Rr(n))}function xn(n){return Jt(n).getComputedStyle(n)}function zs(n){return bn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Qa(n){if(Rr(n)==="html")return n;const r=n.assignedSlot||n.parentNode||nv(n)&&n.host||Hn(n);return nv(r)?r.host:r}function n0(n){const r=Qa(n);return Er(r)?n.ownerDocument?n.ownerDocument.body:n.body:ca(r)&&Uo(r)?r:n0(r)}function Do(n,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const u=n0(n),f=u===((i=n.ownerDocument)==null?void 0:i.body),d=Jt(u);if(f){const h=_f(d);return r.concat(d,d.visualViewport||[],Uo(u)?u:[],h&&o?Do(h):[])}else return r.concat(u,Do(u,[],o))}function _f(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function a0(n){const r=xn(n);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const u=ca(n),f=u?n.offsetWidth:o,d=u?n.offsetHeight:i,h=Ss(o)!==f||Ss(i)!==d;return h&&(o=f,i=d),{width:o,height:i,$:h}}function fd(n){return bn(n)?n:n.contextElement}function Sr(n){const r=fd(n);if(!ca(r))return Un(1);const o=r.getBoundingClientRect(),{width:i,height:u,$:f}=a0(r);let d=(f?Ss(o.width):o.width)/i,h=(f?Ss(o.height):o.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const GC=Un(0);function l0(n){const r=Jt(n);return!ud()||!r.visualViewport?GC:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function $C(n,r,o){return r===void 0&&(r=!1),!o||r&&o!==Jt(n)?!1:r}function Nl(n,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const u=n.getBoundingClientRect(),f=fd(n);let d=Un(1);r&&(i?bn(i)&&(d=Sr(i)):d=Sr(n));const h=$C(f,o,i)?l0(f):Un(0);let v=(u.left+h.x)/d.x,p=(u.top+h.y)/d.y,x=u.width/d.x,m=u.height/d.y;if(f){const w=Jt(f),N=i&&bn(i)?Jt(i):i;let A=w,E=_f(A);for(;E&&i&&N!==A;){const T=Sr(E),C=E.getBoundingClientRect(),j=xn(E),D=C.left+(E.clientLeft+parseFloat(j.paddingLeft))*T.x,B=C.top+(E.clientTop+parseFloat(j.paddingTop))*T.y;v*=T.x,p*=T.y,x*=T.x,m*=T.y,v+=D,p+=B,A=Jt(E),E=_f(A)}}return Es({width:x,height:m,x:v,y:p})}function ks(n,r){const o=zs(n).scrollLeft;return r?r.left+o:Nl(Hn(n)).left+o}function r0(n,r){const o=n.getBoundingClientRect(),i=o.left+r.scrollLeft-ks(n,o),u=o.top+r.scrollTop;return{x:i,y:u}}function XC(n){let{elements:r,rect:o,offsetParent:i,strategy:u}=n;const f=u==="fixed",d=Hn(i),h=r?js(r.floating):!1;if(i===d||h&&f)return o;let v={scrollLeft:0,scrollTop:0},p=Un(1);const x=Un(0),m=ca(i);if((m||!m&&!f)&&((Rr(i)!=="body"||Uo(d))&&(v=zs(i)),m)){const N=Nl(i);p=Sr(i),x.x=N.x+i.clientLeft,x.y=N.y+i.clientTop}const w=d&&!m&&!f?r0(d,v):Un(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-v.scrollLeft*p.x+x.x+w.x,y:o.y*p.y-v.scrollTop*p.y+x.y+w.y}}function QC(n){return Array.from(n.getClientRects())}function ZC(n){const r=Hn(n),o=zs(n),i=n.ownerDocument.body,u=Pt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),f=Pt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let d=-o.scrollLeft+ks(n);const h=-o.scrollTop;return xn(i).direction==="rtl"&&(d+=Pt(r.clientWidth,i.clientWidth)-u),{width:u,height:f,x:d,y:h}}const av=25;function KC(n,r){const o=Jt(n),i=Hn(n),u=o.visualViewport;let f=i.clientWidth,d=i.clientHeight,h=0,v=0;if(u){f=u.width,d=u.height;const x=ud();(!x||x&&r==="fixed")&&(h=u.offsetLeft,v=u.offsetTop)}const p=ks(i);if(p<=0){const x=i.ownerDocument,m=x.body,w=getComputedStyle(m),N=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(i.clientWidth-m.clientWidth-N);A<=av&&(f-=A)}else p<=av&&(f+=p);return{width:f,height:d,x:h,y:v}}function PC(n,r){const o=Nl(n,!0,r==="fixed"),i=o.top+n.clientTop,u=o.left+n.clientLeft,f=ca(n)?Sr(n):Un(1),d=n.clientWidth*f.x,h=n.clientHeight*f.y,v=u*f.x,p=i*f.y;return{width:d,height:h,x:v,y:p}}function lv(n,r,o){let i;if(r==="viewport")i=KC(n,o);else if(r==="document")i=ZC(Hn(n));else if(bn(r))i=PC(r,o);else{const u=l0(n);i={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return Es(i)}function o0(n,r){const o=Qa(n);return o===r||!bn(o)||Er(o)?!1:xn(o).position==="fixed"||o0(o,r)}function JC(n,r){const o=r.get(n);if(o)return o;let i=Do(n,[],!1).filter(h=>bn(h)&&Rr(h)!=="body"),u=null;const f=xn(n).position==="fixed";let d=f?Qa(n):n;for(;bn(d)&&!Er(d);){const h=xn(d),v=cd(d);!v&&h.position==="fixed"&&(u=null),(f?!v&&!u:!v&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Uo(d)&&!v&&o0(n,d))?i=i.filter(x=>x!==d):u=h,d=Qa(d)}return r.set(n,i),i}function FC(n){let{element:r,boundary:o,rootBoundary:i,strategy:u}=n;const d=[...o==="clippingAncestors"?js(r)?[]:JC(r,this._c):[].concat(o),i],h=lv(r,d[0],u);let v=h.top,p=h.right,x=h.bottom,m=h.left;for(let w=1;w<d.length;w++){const N=lv(r,d[w],u);v=Pt(N.top,v),p=Xa(N.right,p),x=Xa(N.bottom,x),m=Pt(N.left,m)}return{width:p-m,height:x-v,x:m,y:v}}function IC(n){const{width:r,height:o}=a0(n);return{width:r,height:o}}function WC(n,r,o){const i=ca(r),u=Hn(r),f=o==="fixed",d=Nl(n,!0,f,r);let h={scrollLeft:0,scrollTop:0};const v=Un(0);function p(){v.x=ks(u)}if(i||!i&&!f)if((Rr(r)!=="body"||Uo(u))&&(h=zs(r)),i){const N=Nl(r,!0,f,r);v.x=N.x+r.clientLeft,v.y=N.y+r.clientTop}else u&&p();f&&!i&&u&&p();const x=u&&!i&&!f?r0(u,h):Un(0),m=d.left+h.scrollLeft-v.x-x.x,w=d.top+h.scrollTop-v.y-x.y;return{x:m,y:w,width:d.width,height:d.height}}function yf(n){return xn(n).position==="static"}function rv(n,r){if(!ca(n)||xn(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Hn(n)===o&&(o=o.ownerDocument.body),o}function i0(n,r){const o=Jt(n);if(js(n))return o;if(!ca(n)){let u=Qa(n);for(;u&&!Er(u);){if(bn(u)&&!yf(u))return u;u=Qa(u)}return o}let i=rv(n,r);for(;i&&HC(i)&&yf(i);)i=rv(i,r);return i&&Er(i)&&yf(i)&&!cd(i)?o:i||qC(n)||o}const eA=async function(n){const r=this.getOffsetParent||i0,o=this.getDimensions,i=await o(n.floating);return{reference:WC(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function tA(n){return xn(n).direction==="rtl"}const nA={convertOffsetParentRelativeRectToViewportRelativeRect:XC,getDocumentElement:Hn,getClippingRect:FC,getOffsetParent:i0,getElementRects:eA,getClientRects:QC,getDimensions:IC,getScale:Sr,isElement:bn,isRTL:tA};function s0(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function aA(n,r){let o=null,i;const u=Hn(n);function f(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function d(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),f();const p=n.getBoundingClientRect(),{left:x,top:m,width:w,height:N}=p;if(h||r(),!w||!N)return;const A=ss(m),E=ss(u.clientWidth-(x+w)),T=ss(u.clientHeight-(m+N)),C=ss(x),D={rootMargin:-A+"px "+-E+"px "+-T+"px "+-C+"px",threshold:Pt(0,Xa(1,v))||1};let B=!0;function Z(F){const q=F[0].intersectionRatio;if(q!==v){if(!B)return d();q?d(!1,q):i=setTimeout(()=>{d(!1,1e-7)},1e3)}q===1&&!s0(p,n.getBoundingClientRect())&&d(),B=!1}try{o=new IntersectionObserver(Z,{...D,root:u.ownerDocument})}catch{o=new IntersectionObserver(Z,D)}o.observe(n)}return d(!0),f}function lA(n,r,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=i,p=fd(n),x=u||f?[...p?Do(p):[],...r?Do(r):[]]:[];x.forEach(C=>{u&&C.addEventListener("scroll",o,{passive:!0}),f&&C.addEventListener("resize",o)});const m=p&&h?aA(p,o):null;let w=-1,N=null;d&&(N=new ResizeObserver(C=>{let[j]=C;j&&j.target===p&&N&&r&&(N.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var D;(D=N)==null||D.observe(r)})),o()}),p&&!v&&N.observe(p),r&&N.observe(r));let A,E=v?Nl(n):null;v&&T();function T(){const C=Nl(n);E&&!s0(E,C)&&o(),E=C,A=requestAnimationFrame(T)}return o(),()=>{var C;x.forEach(j=>{u&&j.removeEventListener("scroll",o),f&&j.removeEventListener("resize",o)}),m==null||m(),(C=N)==null||C.disconnect(),N=null,v&&cancelAnimationFrame(A)}}const rA=kC,oA=LC,iA=DC,sA=BC,cA=jC,ov=MC,uA=UC,fA=(n,r,o)=>{const i=new Map,u={platform:nA,...o},f={...u.platform,_c:i};return OC(n,r,{...u,platform:f})};var dA=typeof document<"u",mA=function(){},hs=dA?b.useLayoutEffect:mA;function Ns(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(!Ns(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 f=u[i];if(!(f==="_owner"&&n.$$typeof)&&!Ns(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}function c0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(n,r){const o=c0(n);return Math.round(r*o)/o}function bf(n){const r=b.useRef(n);return hs(()=>{r.current=n}),r}function hA(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:f,floating:d}={},transform:h=!0,whileElementsMounted:v,open:p}=n,[x,m]=b.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,N]=b.useState(i);Ns(w,i)||N(i);const[A,E]=b.useState(null),[T,C]=b.useState(null),j=b.useCallback(J=>{J!==F.current&&(F.current=J,E(J))},[]),D=b.useCallback(J=>{J!==q.current&&(q.current=J,C(J))},[]),B=f||A,Z=d||T,F=b.useRef(null),q=b.useRef(null),V=b.useRef(x),le=v!=null,he=bf(v),pe=bf(u),fe=bf(p),me=b.useCallback(()=>{if(!F.current||!q.current)return;const J={placement:r,strategy:o,middleware:w};pe.current&&(J.platform=pe.current),fA(F.current,q.current,J).then(re=>{const I={...re,isPositioned:fe.current!==!1};ge.current&&!Ns(V.current,I)&&(V.current=I,ko.flushSync(()=>{m(I)}))})},[w,r,o,pe,fe]);hs(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,m(J=>({...J,isPositioned:!1})))},[p]);const ge=b.useRef(!1);hs(()=>(ge.current=!0,()=>{ge.current=!1}),[]),hs(()=>{if(B&&(F.current=B),Z&&(q.current=Z),B&&Z){if(he.current)return he.current(B,Z,me);me()}},[B,Z,me,he,le]);const ue=b.useMemo(()=>({reference:F,floating:q,setReference:j,setFloating:D}),[j,D]),O=b.useMemo(()=>({reference:B,floating:Z}),[B,Z]),Y=b.useMemo(()=>{const J={position:o,left:0,top:0};if(!O.floating)return J;const re=iv(O.floating,x.x),I=iv(O.floating,x.y);return h?{...J,transform:"translate("+re+"px, "+I+"px)",...c0(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:re,top:I}},[o,h,O.floating,x.x,x.y]);return b.useMemo(()=>({...x,update:me,refs:ue,elements:O,floatingStyles:Y}),[x,me,ue,O,Y])}const pA=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?ov({element:i.current,padding:u}).fn(o):{}:i?ov({element:i,padding:u}).fn(o):{}}}},gA=(n,r)=>{const o=rA(n);return{name:o.name,fn:o.fn,options:[n,r]}},vA=(n,r)=>{const o=oA(n);return{name:o.name,fn:o.fn,options:[n,r]}},yA=(n,r)=>({fn:uA(n).fn,options:[n,r]}),bA=(n,r)=>{const o=iA(n);return{name:o.name,fn:o.fn,options:[n,r]}},xA=(n,r)=>{const o=sA(n);return{name:o.name,fn:o.fn,options:[n,r]}},SA=(n,r)=>{const o=cA(n);return{name:o.name,fn:o.fn,options:[n,r]}},wA=(n,r)=>{const o=pA(n);return{name:o.name,fn:o.fn,options:[n,r]}};var EA="Arrow",u0=b.forwardRef((n,r)=>{const{children:o,width:i=10,height:u=5,...f}=n;return y.jsx(Be.svg,{...f,ref:r,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});u0.displayName=EA;var NA=u0;function TA(n){const[r,o]=b.useState(void 0);return Tt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,h;if("borderBoxSize"in f){const v=f.borderBoxSize,p=Array.isArray(v)?v[0]:v;d=p.inlineSize,h=p.blockSize}else d=n.offsetWidth,h=n.offsetHeight;o({width:d,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),r}var dd="Popper",[f0,d0]=Rl(dd),[CA,m0]=f0(dd),h0=n=>{const{__scopePopper:r,children:o}=n,[i,u]=b.useState(null);return y.jsx(CA,{scope:r,anchor:i,onAnchorChange:u,children:o})};h0.displayName=dd;var p0="PopperAnchor",g0=b.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:i,...u}=n,f=m0(p0,o),d=b.useRef(null),h=We(r,d),v=b.useRef(null);return b.useEffect(()=>{const p=v.current;v.current=(i==null?void 0:i.current)||d.current,p!==v.current&&f.onAnchorChange(v.current)}),i?null:y.jsx(Be.div,{...u,ref:h})});g0.displayName=p0;var md="PopperContent",[AA,RA]=f0(md),v0=b.forwardRef((n,r)=>{var ee,ae,ie,Ce,Ee,Se;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:m="partial",hideWhenDetached:w=!1,updatePositionStrategy:N="optimized",onPlaced:A,...E}=n,T=m0(md,o),[C,j]=b.useState(null),D=We(r,tt=>j(tt)),[B,Z]=b.useState(null),F=TA(B),q=(F==null?void 0:F.width)??0,V=(F==null?void 0:F.height)??0,le=i+(f!=="center"?"-"+f:""),he=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},pe=Array.isArray(p)?p:[p],fe=pe.length>0,me={padding:he,boundary:pe.filter(OA),altBoundary:fe},{refs:ge,floatingStyles:ue,placement:O,isPositioned:Y,middlewareData:J}=hA({strategy:"fixed",placement:le,whileElementsMounted:(...tt)=>lA(...tt,{animationFrame:N==="always"}),elements:{reference:T.anchor},middleware:[gA({mainAxis:u+V,alignmentAxis:d}),v&&vA({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?yA():void 0,...me}),v&&bA({...me}),xA({...me,apply:({elements:tt,rects:Xe,availableWidth:fn,availableHeight:It})=>{const{width:Yt,height:Ja}=Xe.reference,dt=tt.floating.style;dt.setProperty("--radix-popper-available-width",`${fn}px`),dt.setProperty("--radix-popper-available-height",`${It}px`),dt.setProperty("--radix-popper-anchor-width",`${Yt}px`),dt.setProperty("--radix-popper-anchor-height",`${Ja}px`)}}),B&&wA({element:B,padding:h}),MA({arrowWidth:q,arrowHeight:V}),w&&SA({strategy:"referenceHidden",...me})]}),[re,I]=x0(O),_=$a(A);Tt(()=>{Y&&(_==null||_())},[Y,_]);const G=(ee=J.arrow)==null?void 0:ee.x,X=(ae=J.arrow)==null?void 0:ae.y,W=((ie=J.arrow)==null?void 0:ie.centerOffset)!==0,[P,ne]=b.useState();return Tt(()=>{C&&ne(window.getComputedStyle(C).zIndex)},[C]),y.jsx("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:Y?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:P,"--radix-popper-transform-origin":[(Ce=J.transformOrigin)==null?void 0:Ce.x,(Ee=J.transformOrigin)==null?void 0:Ee.y].join(" "),...((Se=J.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(AA,{scope:o,placedSide:re,onArrowChange:Z,arrowX:G,arrowY:X,shouldHideArrow:W,children:y.jsx(Be.div,{"data-side":re,"data-align":I,...E,ref:D,style:{...E.style,animation:Y?void 0:"none"}})})})});v0.displayName=md;var y0="PopperArrow",_A={top:"bottom",right:"left",bottom:"top",left:"right"},b0=b.forwardRef(function(r,o){const{__scopePopper:i,...u}=r,f=RA(y0,i),d=_A[f.placedSide];return y.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:y.jsx(NA,{...u,ref:o,style:{...u.style,display:"block"}})})});b0.displayName=y0;function OA(n){return n!==null}var MA=n=>({name:"transformOrigin",options:n,fn(r){var T,C,j;const{placement:o,rects:i,middlewareData:u}=r,d=((T=u.arrow)==null?void 0:T.centerOffset)!==0,h=d?0:n.arrowWidth,v=d?0:n.arrowHeight,[p,x]=x0(o),m={start:"0%",center:"50%",end:"100%"}[x],w=(((C=u.arrow)==null?void 0:C.x)??0)+h/2,N=(((j=u.arrow)==null?void 0:j.y)??0)+v/2;let A="",E="";return p==="bottom"?(A=d?m:`${w}px`,E=`${-v}px`):p==="top"?(A=d?m:`${w}px`,E=`${i.floating.height+v}px`):p==="right"?(A=`${-v}px`,E=d?m:`${N}px`):p==="left"&&(A=`${i.floating.width+v}px`,E=d?m:`${N}px`),{data:{x:A,y:E}}}});function x0(n){const[r,o="center"]=n.split("-");return[r,o]}var DA=h0,jA=g0,zA=v0,kA=b0;function LA(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 S0=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"}),UA="VisuallyHidden",BA=b.forwardRef((n,r)=>y.jsx(Be.span,{...n,ref:r,style:{...S0,...n.style}}));BA.displayName=UA;var HA=[" ","Enter","ArrowUp","ArrowDown"],VA=[" ","Enter"],Tl="Select",[Ls,Us,YA]=Iy(Tl),[_r]=Rl(Tl,[YA,d0]),Bs=d0(),[qA,Ka]=_r(Tl),[GA,$A]=_r(Tl),w0=n=>{const{__scopeSelect:r,children:o,open:i,defaultOpen:u,onOpenChange:f,value:d,defaultValue:h,onValueChange:v,dir:p,name:x,autoComplete:m,disabled:w,required:N,form:A}=n,E=Bs(r),[T,C]=b.useState(null),[j,D]=b.useState(null),[B,Z]=b.useState(!1),F=rd(p),[q,V]=Oo({prop:i,defaultProp:u??!1,onChange:f,caller:Tl}),[le,he]=Oo({prop:d,defaultProp:h,onChange:v,caller:Tl}),pe=b.useRef(null),fe=T?A||!!T.closest("form"):!0,[me,ge]=b.useState(new Set),ue=Array.from(me).map(O=>O.props.value).join(";");return y.jsx(DA,{...E,children:y.jsxs(qA,{required:N,scope:r,trigger:T,onTriggerChange:C,valueNode:j,onValueNodeChange:D,valueNodeHasChildren:B,onValueNodeHasChildrenChange:Z,contentId:Ga(),value:le,onValueChange:he,open:q,onOpenChange:V,dir:F,triggerPointerDownPosRef:pe,disabled:w,children:[y.jsx(Ls.Provider,{scope:r,children:y.jsx(GA,{scope:n.__scopeSelect,onNativeOptionAdd:b.useCallback(O=>{ge(Y=>new Set(Y).add(O))},[]),onNativeOptionRemove:b.useCallback(O=>{ge(Y=>{const J=new Set(Y);return J.delete(O),J})},[]),children:o})}),fe?y.jsxs(Q0,{"aria-hidden":!0,required:N,tabIndex:-1,name:x,autoComplete:m,value:le,onChange:O=>he(O.target.value),disabled:w,form:A,children:[le===void 0?y.jsx("option",{value:""}):null,Array.from(me)]},ue):null]})})};w0.displayName=Tl;var E0="SelectTrigger",N0=b.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:i=!1,...u}=n,f=Bs(o),d=Ka(E0,o),h=d.disabled||i,v=We(r,d.onTriggerChange),p=Us(o),x=b.useRef("touch"),[m,w,N]=K0(E=>{const T=p().filter(D=>!D.disabled),C=T.find(D=>D.value===d.value),j=P0(T,E,C);j!==void 0&&d.onValueChange(j.value)}),A=E=>{h||(d.onOpenChange(!0),N()),E&&(d.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return y.jsx(jA,{asChild:!0,...f,children:y.jsx(Be.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Z0(d.value)?"":void 0,...u,ref:v,onClick:ke(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&A(E)}),onPointerDown:ke(u.onPointerDown,E=>{x.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(A(E),E.preventDefault())}),onKeyDown:ke(u.onKeyDown,E=>{const T=m.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(T&&E.key===" ")&&HA.includes(E.key)&&(A(),E.preventDefault())})})})});N0.displayName=E0;var T0="SelectValue",C0=b.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:u,children:f,placeholder:d="",...h}=n,v=Ka(T0,o),{onValueNodeHasChildrenChange:p}=v,x=f!==void 0,m=We(r,v.onValueNodeChange);return Tt(()=>{p(x)},[p,x]),y.jsx(Be.span,{...h,ref:m,style:{pointerEvents:"none"},children:Z0(v.value)?y.jsx(y.Fragment,{children:d}):f})});C0.displayName=T0;var XA="SelectIcon",A0=b.forwardRef((n,r)=>{const{__scopeSelect:o,children:i,...u}=n;return y.jsx(Be.span,{"aria-hidden":!0,...u,ref:r,children:i||"▼"})});A0.displayName=XA;var QA="SelectPortal",R0=n=>y.jsx(Jf,{asChild:!0,...n});R0.displayName=QA;var Cl="SelectContent",_0=b.forwardRef((n,r)=>{const o=Ka(Cl,n.__scopeSelect),[i,u]=b.useState();if(Tt(()=>{u(new DocumentFragment)},[]),!o.open){const f=i;return f?ko.createPortal(y.jsx(O0,{scope:n.__scopeSelect,children:y.jsx(Ls.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),f):null}return y.jsx(M0,{...n,ref:r})});_0.displayName=Cl;var vn=10,[O0,Pa]=_r(Cl),ZA="SelectContentImpl",KA=Mo("SelectContent.RemoveScroll"),M0=b.forwardRef((n,r)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,side:h,sideOffset:v,align:p,alignOffset:x,arrowPadding:m,collisionBoundary:w,collisionPadding:N,sticky:A,hideWhenDetached:E,avoidCollisions:T,...C}=n,j=Ka(Cl,o),[D,B]=b.useState(null),[Z,F]=b.useState(null),q=We(r,ee=>B(ee)),[V,le]=b.useState(null),[he,pe]=b.useState(null),fe=Us(o),[me,ge]=b.useState(!1),ue=b.useRef(!1);b.useEffect(()=>{if(D)return Cy(D)},[D]),vy();const O=b.useCallback(ee=>{const[ae,...ie]=fe().map(Se=>Se.ref.current),[Ce]=ie.slice(-1),Ee=document.activeElement;for(const Se of ee)if(Se===Ee||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===ae&&Z&&(Z.scrollTop=0),Se===Ce&&Z&&(Z.scrollTop=Z.scrollHeight),Se==null||Se.focus(),document.activeElement!==Ee))return},[fe,Z]),Y=b.useCallback(()=>O([V,D]),[O,V,D]);b.useEffect(()=>{me&&Y()},[me,Y]);const{onOpenChange:J,triggerPointerDownPosRef:re}=j;b.useEffect(()=>{if(D){let ee={x:0,y:0};const ae=Ce=>{var Ee,Se;ee={x:Math.abs(Math.round(Ce.pageX)-(((Ee=re.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((Se=re.current)==null?void 0:Se.y)??0))}},ie=Ce=>{ee.x<=10&&ee.y<=10?Ce.preventDefault():D.contains(Ce.target)||J(!1),document.removeEventListener("pointermove",ae),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",ie,{capture:!0})}}},[D,J,re]),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[I,_]=K0(ee=>{const ae=fe().filter(Ee=>!Ee.disabled),ie=ae.find(Ee=>Ee.ref.current===document.activeElement),Ce=P0(ae,ee,ie);Ce&&setTimeout(()=>Ce.ref.current.focus())}),G=b.useCallback((ee,ae,ie)=>{const Ce=!ue.current&&!ie;(j.value!==void 0&&j.value===ae||Ce)&&(le(ee),Ce&&(ue.current=!0))},[j.value]),X=b.useCallback(()=>D==null?void 0:D.focus(),[D]),W=b.useCallback((ee,ae,ie)=>{const Ce=!ue.current&&!ie;(j.value!==void 0&&j.value===ae||Ce)&&pe(ee)},[j.value]),P=i==="popper"?Of:D0,ne=P===Of?{side:h,sideOffset:v,align:p,alignOffset:x,arrowPadding:m,collisionBoundary:w,collisionPadding:N,sticky:A,hideWhenDetached:E,avoidCollisions:T}:{};return y.jsx(O0,{scope:o,content:D,viewport:Z,onViewportChange:F,itemRefCallback:G,selectedItem:V,onItemLeave:X,itemTextRefCallback:W,focusSelectedItem:Y,selectedItemText:he,position:i,isPositioned:me,searchRef:I,children:y.jsx(Ff,{as:KA,allowPinchZoom:!0,children:y.jsx(Pf,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:ke(u,ee=>{var ae;(ae=j.trigger)==null||ae.focus({preventScroll:!0}),ee.preventDefault()}),children:y.jsx(Kf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:y.jsx(P,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ee=>ee.preventDefault(),...C,...ne,onPlaced:()=>ge(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:ke(C.onKeyDown,ee=>{const ae=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ae&&ee.key.length===1&&_(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Ce=fe().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Ee=ee.target,Se=Ce.indexOf(Ee);Ce=Ce.slice(Se+1)}setTimeout(()=>O(Ce)),ee.preventDefault()}})})})})})})});M0.displayName=ZA;var PA="SelectItemAlignedPosition",D0=b.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:i,...u}=n,f=Ka(Cl,o),d=Pa(Cl,o),[h,v]=b.useState(null),[p,x]=b.useState(null),m=We(r,q=>x(q)),w=Us(o),N=b.useRef(!1),A=b.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:C,focusSelectedItem:j}=d,D=b.useCallback(()=>{if(f.trigger&&f.valueNode&&h&&p&&E&&T&&C){const q=f.trigger.getBoundingClientRect(),V=p.getBoundingClientRect(),le=f.valueNode.getBoundingClientRect(),he=C.getBoundingClientRect();if(f.dir!=="rtl"){const Ee=he.left-V.left,Se=le.left-Ee,tt=q.left-Se,Xe=q.width+tt,fn=Math.max(Xe,V.width),It=window.innerWidth-vn,Yt=Jg(Se,[vn,Math.max(vn,It-fn)]);h.style.minWidth=Xe+"px",h.style.left=Yt+"px"}else{const Ee=V.right-he.right,Se=window.innerWidth-le.right-Ee,tt=window.innerWidth-q.right-Se,Xe=q.width+tt,fn=Math.max(Xe,V.width),It=window.innerWidth-vn,Yt=Jg(Se,[vn,Math.max(vn,It-fn)]);h.style.minWidth=Xe+"px",h.style.right=Yt+"px"}const pe=w(),fe=window.innerHeight-vn*2,me=E.scrollHeight,ge=window.getComputedStyle(p),ue=parseInt(ge.borderTopWidth,10),O=parseInt(ge.paddingTop,10),Y=parseInt(ge.borderBottomWidth,10),J=parseInt(ge.paddingBottom,10),re=ue+O+me+J+Y,I=Math.min(T.offsetHeight*5,re),_=window.getComputedStyle(E),G=parseInt(_.paddingTop,10),X=parseInt(_.paddingBottom,10),W=q.top+q.height/2-vn,P=fe-W,ne=T.offsetHeight/2,ee=T.offsetTop+ne,ae=ue+O+ee,ie=re-ae;if(ae<=W){const Ee=pe.length>0&&T===pe[pe.length-1].ref.current;h.style.bottom="0px";const Se=p.clientHeight-E.offsetTop-E.offsetHeight,tt=Math.max(P,ne+(Ee?X:0)+Se+Y),Xe=ae+tt;h.style.height=Xe+"px"}else{const Ee=pe.length>0&&T===pe[0].ref.current;h.style.top="0px";const tt=Math.max(W,ue+E.offsetTop+(Ee?G:0)+ne)+ie;h.style.height=tt+"px",E.scrollTop=ae-W+E.offsetTop}h.style.margin=`${vn}px 0`,h.style.minHeight=I+"px",h.style.maxHeight=fe+"px",i==null||i(),requestAnimationFrame(()=>N.current=!0)}},[w,f.trigger,f.valueNode,h,p,E,T,C,f.dir,i]);Tt(()=>D(),[D]);const[B,Z]=b.useState();Tt(()=>{p&&Z(window.getComputedStyle(p).zIndex)},[p]);const F=b.useCallback(q=>{q&&A.current===!0&&(D(),j==null||j(),A.current=!1)},[D,j]);return y.jsx(FA,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:N,onScrollButtonChange:F,children:y.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:y.jsx(Be.div,{...u,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});D0.displayName=PA;var JA="SelectPopperPosition",Of=b.forwardRef((n,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=vn,...f}=n,d=Bs(o);return y.jsx(zA,{...d,...f,ref:r,align:i,collisionPadding:u,style:{boxSizing:"border-box",...f.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)"}})});Of.displayName=JA;var[FA,hd]=_r(Cl,{}),Mf="SelectViewport",j0=b.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:i,...u}=n,f=Pa(Mf,o),d=hd(Mf,o),h=We(r,f.onViewportChange),v=b.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(Ls.Slot,{scope:o,children:y.jsx(Be.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:ke(u.onScroll,p=>{const x=p.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:w}=d;if(w!=null&&w.current&&m){const N=Math.abs(v.current-x.scrollTop);if(N>0){const A=window.innerHeight-vn*2,E=parseFloat(m.style.minHeight),T=parseFloat(m.style.height),C=Math.max(E,T);if(C<A){const j=C+N,D=Math.min(A,j),B=j-D;m.style.height=D+"px",m.style.bottom==="0px"&&(x.scrollTop=B>0?B:0,m.style.justifyContent="flex-end")}}}v.current=x.scrollTop})})})]})});j0.displayName=Mf;var z0="SelectGroup",[IA,WA]=_r(z0),eR=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=Ga();return y.jsx(IA,{scope:o,id:u,children:y.jsx(Be.div,{role:"group","aria-labelledby":u,...i,ref:r})})});eR.displayName=z0;var k0="SelectLabel",L0=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=WA(k0,o);return y.jsx(Be.div,{id:u.id,...i,ref:r})});L0.displayName=k0;var Ts="SelectItem",[tR,U0]=_r(Ts),B0=b.forwardRef((n,r)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:f,...d}=n,h=Ka(Ts,o),v=Pa(Ts,o),p=h.value===i,[x,m]=b.useState(f??""),[w,N]=b.useState(!1),A=We(r,j=>{var D;return(D=v.itemRefCallback)==null?void 0:D.call(v,j,i,u)}),E=Ga(),T=b.useRef("touch"),C=()=>{u||(h.onValueChange(i),h.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 y.jsx(tR,{scope:o,value:i,disabled:u,textId:E,isSelected:p,onItemTextChange:b.useCallback(j=>{m(D=>D||((j==null?void 0:j.textContent)??"").trim())},[]),children:y.jsx(Ls.ItemSlot,{scope:o,value:i,disabled:u,textValue:x,children:y.jsx(Be.div,{role:"option","aria-labelledby":E,"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,...d,ref:A,onFocus:ke(d.onFocus,()=>N(!0)),onBlur:ke(d.onBlur,()=>N(!1)),onClick:ke(d.onClick,()=>{T.current!=="mouse"&&C()}),onPointerUp:ke(d.onPointerUp,()=>{T.current==="mouse"&&C()}),onPointerDown:ke(d.onPointerDown,j=>{T.current=j.pointerType}),onPointerMove:ke(d.onPointerMove,j=>{var D;T.current=j.pointerType,u?(D=v.onItemLeave)==null||D.call(v):T.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(d.onPointerLeave,j=>{var D;j.currentTarget===document.activeElement&&((D=v.onItemLeave)==null||D.call(v))}),onKeyDown:ke(d.onKeyDown,j=>{var B;((B=v.searchRef)==null?void 0:B.current)!==""&&j.key===" "||(VA.includes(j.key)&&C(),j.key===" "&&j.preventDefault())})})})})});B0.displayName=Ts;var Ro="SelectItemText",H0=b.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:u,...f}=n,d=Ka(Ro,o),h=Pa(Ro,o),v=U0(Ro,o),p=$A(Ro,o),[x,m]=b.useState(null),w=We(r,C=>m(C),v.onItemTextChange,C=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,C,v.value,v.disabled)}),N=x==null?void 0:x.textContent,A=b.useMemo(()=>y.jsx("option",{value:v.value,disabled:v.disabled,children:N},v.value),[v.disabled,v.value,N]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=p;return Tt(()=>(E(A),()=>T(A)),[E,T,A]),y.jsxs(y.Fragment,{children:[y.jsx(Be.span,{id:v.textId,...f,ref:w}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?ko.createPortal(f.children,d.valueNode):null]})});H0.displayName=Ro;var V0="SelectItemIndicator",Y0=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return U0(V0,o).isSelected?y.jsx(Be.span,{"aria-hidden":!0,...i,ref:r}):null});Y0.displayName=V0;var Df="SelectScrollUpButton",q0=b.forwardRef((n,r)=>{const o=Pa(Df,n.__scopeSelect),i=hd(Df,n.__scopeSelect),[u,f]=b.useState(!1),d=We(r,i.onScrollButtonChange);return Tt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollTop>0;f(p)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?y.jsx($0,{...n,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});q0.displayName=Df;var jf="SelectScrollDownButton",G0=b.forwardRef((n,r)=>{const o=Pa(jf,n.__scopeSelect),i=hd(jf,n.__scopeSelect),[u,f]=b.useState(!1),d=We(r,i.onScrollButtonChange);return Tt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollHeight-v.clientHeight,x=Math.ceil(v.scrollTop)<p;f(x)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?y.jsx($0,{...n,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});G0.displayName=jf;var $0=b.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=n,f=Pa("SelectScrollButton",o),d=b.useRef(null),h=Us(o),v=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>v(),[v]),Tt(()=>{var x;const p=h().find(m=>m.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[h]),y.jsx(Be.div,{"aria-hidden":!0,...u,ref:r,style:{flexShrink:0,...u.style},onPointerDown:ke(u.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:ke(u.onPointerMove,()=>{var p;(p=f.onItemLeave)==null||p.call(f),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:ke(u.onPointerLeave,()=>{v()})})}),nR="SelectSeparator",X0=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return y.jsx(Be.div,{"aria-hidden":!0,...i,ref:r})});X0.displayName=nR;var zf="SelectArrow",aR=b.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,u=Bs(o),f=Ka(zf,o),d=Pa(zf,o);return f.open&&d.position==="popper"?y.jsx(kA,{...u,...i,ref:r}):null});aR.displayName=zf;var lR="SelectBubbleInput",Q0=b.forwardRef(({__scopeSelect:n,value:r,...o},i)=>{const u=b.useRef(null),f=We(i,u),d=LA(r);return b.useEffect(()=>{const h=u.current;if(!h)return;const v=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(v,"value").set;if(d!==r&&x){const m=new Event("change",{bubbles:!0});x.call(h,r),h.dispatchEvent(m)}},[d,r]),y.jsx(Be.select,{...o,style:{...S0,...o.style},ref:f,defaultValue:r})});Q0.displayName=lR;function Z0(n){return n===""||n===void 0}function K0(n){const r=$a(n),o=b.useRef(""),i=b.useRef(0),u=b.useCallback(d=>{const h=o.current+d;r(h),(function v(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>v(""),1e3))})(h)},[r]),f=b.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,f]}function P0(n,r,o){const u=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,f=o?n.indexOf(o):-1;let d=rR(n,Math.max(f,0));u.length===1&&(d=d.filter(p=>p!==o));const v=d.find(p=>p.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==o?v:void 0}function rR(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var oR=w0,J0=N0,iR=C0,sR=A0,cR=R0,F0=_0,uR=j0,I0=L0,W0=B0,fR=H0,dR=Y0,eb=q0,tb=G0,nb=X0;const mR=oR,hR=iR,ab=b.forwardRef(({className:n,children:r,...o},i)=>y.jsxs(J0,{ref:i,className:xe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[r,y.jsx(sR,{asChild:!0,children:y.jsx(oy,{className:"h-4 w-4 opacity-50"})})]}));ab.displayName=J0.displayName;const lb=b.forwardRef(({className:n,...r},o)=>y.jsx(eb,{ref:o,className:xe("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(IE,{className:"h-4 w-4"})}));lb.displayName=eb.displayName;const rb=b.forwardRef(({className:n,...r},o)=>y.jsx(tb,{ref:o,className:xe("flex cursor-default items-center justify-center py-1",n),...r,children:y.jsx(oy,{className:"h-4 w-4"})}));rb.displayName=tb.displayName;const ob=b.forwardRef(({className:n,children:r,position:o="popper",...i},u)=>y.jsx(cR,{children:y.jsxs(F0,{ref:u,className:xe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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:[y.jsx(lb,{}),y.jsx(uR,{className:xe("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),y.jsx(rb,{})]})}));ob.displayName=F0.displayName;const pR=b.forwardRef(({className:n,...r},o)=>y.jsx(I0,{ref:o,className:xe("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...r}));pR.displayName=I0.displayName;const ib=b.forwardRef(({className:n,children:r,...o},i)=>y.jsxs(W0,{ref:i,className:xe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(dR,{children:y.jsx(ry,{className:"h-4 w-4"})})}),y.jsx(fR,{children:r})]}));ib.displayName=W0.displayName;const gR=b.forwardRef(({className:n,...r},o)=>y.jsx(nb,{ref:o,className:xe("-mx-1 my-1 h-px bg-muted",n),...r}));gR.displayName=nb.displayName;var xf="rovingFocusGroup.onEntryFocus",vR={bubbles:!1,cancelable:!0},Bo="RovingFocusGroup",[kf,sb,yR]=Iy(Bo),[bR,cb]=Rl(Bo,[yR]),[xR,SR]=bR(Bo),ub=b.forwardRef((n,r)=>y.jsx(kf.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(kf.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(wR,{...n,ref:r})})}));ub.displayName=Bo;var wR=b.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...m}=n,w=b.useRef(null),N=We(r,w),A=rd(f),[E,T]=Oo({prop:d,defaultProp:h??null,onChange:v,caller:Bo}),[C,j]=b.useState(!1),D=$a(p),B=sb(o),Z=b.useRef(!1),[F,q]=b.useState(0);return b.useEffect(()=>{const V=w.current;if(V)return V.addEventListener(xf,D),()=>V.removeEventListener(xf,D)},[D]),y.jsx(xR,{scope:o,orientation:i,dir:A,loop:u,currentTabStopId:E,onItemFocus:b.useCallback(V=>T(V),[T]),onItemShiftTab:b.useCallback(()=>j(!0),[]),onFocusableItemAdd:b.useCallback(()=>q(V=>V+1),[]),onFocusableItemRemove:b.useCallback(()=>q(V=>V-1),[]),children:y.jsx(Be.div,{tabIndex:C||F===0?-1:0,"data-orientation":i,...m,ref:N,style:{outline:"none",...n.style},onMouseDown:ke(n.onMouseDown,()=>{Z.current=!0}),onFocus:ke(n.onFocus,V=>{const le=!Z.current;if(V.target===V.currentTarget&&le&&!C){const he=new CustomEvent(xf,vR);if(V.currentTarget.dispatchEvent(he),!he.defaultPrevented){const pe=B().filter(O=>O.focusable),fe=pe.find(O=>O.active),me=pe.find(O=>O.id===E),ue=[fe,me,...pe].filter(Boolean).map(O=>O.ref.current);mb(ue,x)}}Z.current=!1}),onBlur:ke(n.onBlur,()=>j(!1))})})}),fb="RovingFocusGroupItem",db=b.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:f,children:d,...h}=n,v=Ga(),p=f||v,x=SR(fb,o),m=x.currentTabStopId===p,w=sb(o),{onFocusableItemAdd:N,onFocusableItemRemove:A,currentTabStopId:E}=x;return b.useEffect(()=>{if(i)return N(),()=>A()},[i,N,A]),y.jsx(kf.ItemSlot,{scope:o,id:p,focusable:i,active:u,children:y.jsx(Be.span,{tabIndex:m?0:-1,"data-orientation":x.orientation,...h,ref:r,onMouseDown:ke(n.onMouseDown,T=>{i?x.onItemFocus(p):T.preventDefault()}),onFocus:ke(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:ke(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const C=TR(T,x.orientation,x.dir);if(C!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let D=w().filter(B=>B.focusable).map(B=>B.ref.current);if(C==="last")D.reverse();else if(C==="prev"||C==="next"){C==="prev"&&D.reverse();const B=D.indexOf(T.currentTarget);D=x.loop?CR(D,B+1):D.slice(B+1)}setTimeout(()=>mb(D))}}),children:typeof d=="function"?d({isCurrentTabStop:m,hasTabStop:E!=null}):d})})});db.displayName=fb;var ER={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function NR(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function TR(n,r,o){const i=NR(n.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return ER[i]}function mb(n,r=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:r}),document.activeElement!==o))return}function CR(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var AR=ub,RR=db,Hs="Tabs",[_R]=Rl(Hs,[cb]),hb=cb(),[OR,pd]=_R(Hs),pb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:v="automatic",...p}=n,x=rd(h),[m,w]=Oo({prop:i,onChange:u,defaultProp:f??"",caller:Hs});return y.jsx(OR,{scope:o,baseId:Ga(),value:m,onValueChange:w,orientation:d,dir:x,activationMode:v,children:y.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:r})})});pb.displayName=Hs;var gb="TabsList",vb=b.forwardRef((n,r)=>{const{__scopeTabs:o,loop:i=!0,...u}=n,f=pd(gb,o),d=hb(o);return y.jsx(AR,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:i,children:y.jsx(Be.div,{role:"tablist","aria-orientation":f.orientation,...u,ref:r})})});vb.displayName=gb;var yb="TabsTrigger",bb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...f}=n,d=pd(yb,o),h=hb(o),v=wb(d.baseId,i),p=Eb(d.baseId,i),x=i===d.value;return y.jsx(RR,{asChild:!0,...h,focusable:!u,active:x,children:y.jsx(Be.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:v,...f,ref:r,onMouseDown:ke(n.onMouseDown,m=>{!u&&m.button===0&&m.ctrlKey===!1?d.onValueChange(i):m.preventDefault()}),onKeyDown:ke(n.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&d.onValueChange(i)}),onFocus:ke(n.onFocus,()=>{const m=d.activationMode!=="manual";!x&&!u&&m&&d.onValueChange(i)})})})});bb.displayName=yb;var xb="TabsContent",Sb=b.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,forceMount:u,children:f,...d}=n,h=pd(xb,o),v=wb(h.baseId,i),p=Eb(h.baseId,i),x=i===h.value,m=b.useRef(x);return b.useEffect(()=>{const w=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(w)},[]),y.jsx(Lo,{present:u||x,children:({present:w})=>y.jsx(Be.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":v,hidden:!w,id:p,tabIndex:0,...d,ref:r,style:{...n.style,animationDuration:m.current?"0s":void 0},children:w&&f})})});Sb.displayName=xb;function wb(n,r){return`${n}-trigger-${r}`}function Eb(n,r){return`${n}-content-${r}`}var MR=pb,Nb=vb,Tb=bb,Cb=Sb;const DR=MR,Ab=b.forwardRef(({className:n,...r},o)=>y.jsx(Nb,{ref:o,className:xe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",n),...r}));Ab.displayName=Nb.displayName;const ps=b.forwardRef(({className:n,...r},o)=>y.jsx(Tb,{ref:o,className:xe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",n),...r}));ps.displayName=Tb.displayName;const gs=b.forwardRef(({className:n,...r},o)=>y.jsx(Cb,{ref:o,className:xe("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}));gs.displayName=Cb.displayName;var Rb="AlertDialog",[jR]=Rl(Rb,[Ry]),ua=Ry(),_b=n=>{const{__scopeAlertDialog:r,...o}=n,i=ua(r);return y.jsx($y,{...i,...o,modal:!0})};_b.displayName=Rb;var zR="AlertDialogTrigger",Ob=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ua(o);return y.jsx(Xy,{...u,...i,ref:r})});Ob.displayName=zR;var kR="AlertDialogPortal",Mb=n=>{const{__scopeAlertDialog:r,...o}=n,i=ua(r);return y.jsx(Qy,{...i,...o})};Mb.displayName=kR;var LR="AlertDialogOverlay",Db=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ua(o);return y.jsx(td,{...u,...i,ref:r})});Db.displayName=LR;var wr="AlertDialogContent",[UR,BR]=jR(wr),HR=KN("AlertDialogContent"),jb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:i,...u}=n,f=ua(o),d=b.useRef(null),h=We(r,d),v=b.useRef(null);return y.jsx(uC,{contentName:wr,titleName:zb,docsSlug:"alert-dialog",children:y.jsx(UR,{scope:o,cancelRef:v,children:y.jsxs(nd,{role:"alertdialog",...f,...u,ref:h,onOpenAutoFocus:ke(u.onOpenAutoFocus,p=>{var x;p.preventDefault(),(x=v.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[y.jsx(HR,{children:i}),y.jsx(YR,{contentRef:d})]})})})});jb.displayName=wr;var zb="AlertDialogTitle",kb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ua(o);return y.jsx(ad,{...u,...i,ref:r})});kb.displayName=zb;var Lb="AlertDialogDescription",Ub=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ua(o);return y.jsx(ld,{...u,...i,ref:r})});Ub.displayName=Lb;var VR="AlertDialogAction",Bb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,u=ua(o);return y.jsx(Ms,{...u,...i,ref:r})});Bb.displayName=VR;var Hb="AlertDialogCancel",Vb=b.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:u}=BR(Hb,o),f=ua(o),d=We(r,u);return y.jsx(Ms,{...f,...i,ref:d})});Vb.displayName=Hb;var YR=({contentRef:n})=>{const r=`\`${wr}\` requires a description for the component to be accessible for screen reader users.
|
|
266
|
-
|
|
267
|
-
You can add a description to the \`${wr}\` by passing a \`${Lb}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
268
|
-
|
|
269
|
-
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 \`${wr}\`. 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.
|
|
270
|
-
|
|
271
|
-
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},qR=_b,GR=Ob,$R=Mb,Yb=Db,qb=jb,Gb=Bb,$b=Vb,Xb=kb,Qb=Ub;const XR=qR,QR=GR,ZR=$R,Zb=b.forwardRef(({className:n,...r},o)=>y.jsx(Yb,{className:xe("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}));Zb.displayName=Yb.displayName;const Kb=b.forwardRef(({className:n,...r},o)=>y.jsxs(ZR,{children:[y.jsx(Zb,{}),y.jsx(qb,{ref:o,className:xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg 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%] sm:rounded-lg",n),...r})]}));Kb.displayName=qb.displayName;const Pb=({className:n,...r})=>y.jsx("div",{className:xe("flex flex-col space-y-2 text-center sm:text-left",n),...r});Pb.displayName="AlertDialogHeader";const Jb=({className:n,...r})=>y.jsx("div",{className:xe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Jb.displayName="AlertDialogFooter";const Fb=b.forwardRef(({className:n,...r},o)=>y.jsx(Xb,{ref:o,className:xe("text-lg font-semibold",n),...r}));Fb.displayName=Xb.displayName;const Ib=b.forwardRef(({className:n,...r},o)=>y.jsx(Qb,{ref:o,className:xe("text-sm text-muted-foreground",n),...r}));Ib.displayName=Qb.displayName;const Wb=b.forwardRef(({className:n,...r},o)=>y.jsx(Gb,{ref:o,className:xe(Zf(),n),...r}));Wb.displayName=Gb.displayName;const ex=b.forwardRef(({className:n,...r},o)=>y.jsx($b,{ref:o,className:xe(Zf({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));ex.displayName=$b.displayName;const KR=2e3,PR=24e4;function qa(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 JR(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 sv(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 tx(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function FR(n){return n.available?y.jsxs(St,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[y.jsx(eN,{className:"h-3 w-3"}),"Available"]}):y.jsxs(St,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[y.jsx(nN,{className:"h-3 w-3"}),"Unavailable"]})}function IR(n){return n.update?n.update.updateAvailable?y.jsxs(St,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):y.jsx(St,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function WR(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 e5(n){return new Promise(r=>setTimeout(r,n))}function cv(n){return n.status==="succeeded"||n.status==="failed"}async function t5(n){if(cv(n))return n;const r=Date.now()+PR;let o=n;for(;!cv(o)&&Date.now()<r;)await e5(KR),o=await cw(n.id);return o}function n5(n){if(n.error)return n.error;const r=n.result;return(r==null?void 0:r.detail)??null}function ze({label:n,value:r,mono:o=!1}){return y.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:[y.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),y.jsx("span",{className:xe("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function a5({agent:n,nodeName:r,upgrading:o,onUpgrade:i}){var d,h;const u=((d=n.update)==null?void 0:d.updateAvailable)===!0,f=IR(n);return y.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 p-2.5 shadow-sm",children:[y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[y.jsx(ly,{className:"h-3.5 w-3.5 text-primary"}),n.label]}),y.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:["Command: ",y.jsx("span",{className:"font-mono text-[10px]",children:n.command})]})]}),y.jsxs("div",{className:"flex flex-col items-end gap-1",children:[FR(n),u?y.jsxs(XR,{children:[y.jsx(QR,{asChild:!0,children:y.jsx("button",{type:"button",disabled:o,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:f})}),y.jsxs(Kb,{children:[y.jsxs(Pb,{children:[y.jsxs(Fb,{children:["Upgrade ",n.label,"?"]}),y.jsxs(Ib,{children:["This runs ",WR(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),y.jsxs(Jb,{children:[y.jsx(ex,{children:"Cancel"}),y.jsx(Wb,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):f]})]}),y.jsxs("div",{className:"mt-2 space-y-1 text-[11px]",children:[y.jsx(ze,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&y.jsx(ze,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),y.jsx(ze,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path}),y.jsx(ze,{label:"Checked",value:qa(n.checkedAt)}),n.update&&y.jsx(ze,{label:"Update check",value:qa(n.update.checkedAt)})]}),((h=n.update)==null?void 0:h.detail)&&y.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&&y.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[y.jsx(St,{variant:tx(n.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:n.metadataStatus}),y.jsx("span",{children:"Startup preflight"})]}),n.detail&&y.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 cs({name:n,status:r}){return y.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:[y.jsxs("div",{children:[y.jsx("div",{className:"text-[11px] font-medium text-foreground",children:n}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:qa(r==null?void 0:r.checkedAt)})]}),y.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(r==null?void 0:r.authenticated)=="boolean"&&y.jsx(St,{variant:r.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:r.authenticated?"auth ok":"auth required"}),y.jsx(St,{variant:tx(r==null?void 0:r.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(r==null?void 0:r.status)??"unknown"})]})]})}function l5(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 r5(n,r){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:r?[r]:[]}function o5(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,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 i5(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function s5({cluster:n,systemInfo:r,sseConnected:o,onRefresh:i}){var C,j,D,B,Z,F,q,V,le,he,pe,fe,me,ge,ue,O,Y,J,re,I,_,G,X,W;const u=b.useMemo(()=>r5(n,r),[n,r]),[f,d]=b.useState(()=>{var P;return(r==null?void 0:r.nodeId)??((P=n==null?void 0:n.self)==null?void 0:P.id)??""}),[h,v]=b.useState(null),p=(n==null?void 0:n.self)??r??u[0]??null,x=u.find(P=>P.id===f)??p,m=x?o5(x,r):null,w=!!(r&&x&&x.id===r.nodeId),N=w||!!(x!=null&&x.settingsSnapshot),A=b.useMemo(()=>l5(m==null?void 0:m.packages),[m==null?void 0:m.packages]),E=((C=m==null?void 0:m.startupRequirements)==null?void 0:C.components)??(m==null?void 0:m.components)??{};async function T(P){if(!x)return;const ne=`${x.id}:${P.id}`;v(ne);try{const ee=await uw(x.id,P.id);Ya.info(`${P.label} upgrade started on ${x.name}`);const ae=await t5(ee);ae.status==="succeeded"?(Ya.success(`${P.label} upgrade finished on ${x.name}`),i==null||i()):ae.status==="failed"?Ya.error(n5(ae)??`${P.label} upgrade failed`):Ya.info(`${P.label} upgrade is still running on ${x.name}`)}catch(ee){Ya.error(ee instanceof Error?ee.message:`${P.label} upgrade failed`)}finally{v(null)}}return!x||!m?y.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..."}):y.jsxs("div",{className:"space-y-4",children:[y.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:y.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.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:[y.jsx(ty,{status:x.status}),y.jsx("span",{className:"font-medium text-foreground",children:x.name})]}),y.jsx(iE,{role:x.role}),y.jsx(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:x.transportType??m.transportType??"direct"}),y.jsx(St,{variant:w?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:w?"Live local session":"Leader-synced snapshot"})]}),y.jsxs("div",{children:[y.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),y.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),y.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&&y.jsxs("div",{className:"max-w-md space-y-1.5",children:[y.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),y.jsxs(mR,{value:x.id,onValueChange:d,children:[y.jsx(ab,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:y.jsx(hR,{placeholder:"Choose a node"})}),y.jsx(ob,{children:u.map(P=>y.jsx(ib,{value:P.id,children:i5(P,r==null?void 0:r.nodeId)},P.id))})]})]})]}),y.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[y.jsxs(St,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[y.jsx(cy,{className:"h-3 w-3"}),o?"Live link connected":"Live link reconnecting"]}),y.jsxs(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",JR(m.uptime)]}),!w&&y.jsxs(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Updated ",qa((j=x.settingsSnapshot)==null?void 0:j.collectedAt)]})]})]})}),!N&&y.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."}),y.jsxs(DR,{defaultValue:"session",className:"space-y-2",children:[y.jsxs(Ab,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[y.jsx(ps,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),y.jsx(ps,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),y.jsx(ps,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),y.jsxs(gs,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(bN,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),y.jsx(Dn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Node ID",value:m.nodeId,mono:!0}),y.jsx(ze,{label:"Status",value:x.status}),y.jsx(ze,{label:"Role",value:x.role}),y.jsx(ze,{label:"Endpoint",value:x.endpoint,mono:!0}),y.jsx(ze,{label:"Joined",value:qa(x.joinedAt)}),y.jsx(ze,{label:"Heartbeat",value:qa(x.lastHeartbeat)}),y.jsx(ze,{label:"Capabilities",value:x.capabilities.length>0?x.capabilities.join(", "):"None"})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(oN,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),y.jsx(Dn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Host",value:((D=m.os)==null?void 0:D.hostname)??"Unavailable"}),y.jsx(ze,{label:"Platform",value:m.os?`${m.os.platform} ${m.os.release}`:"Unavailable"}),y.jsx(ze,{label:"Arch",value:((B=m.os)==null?void 0:B.arch)??"Unavailable"}),y.jsx(ze,{label:"CPU",value:((Z=m.os)==null?void 0:Z.cpuModel)??"Unavailable"}),y.jsx(ze,{label:"Cores",value:String(((F=m.os)==null?void 0:F.cpuCount)??"Unavailable")}),y.jsx(ze,{label:"Memory",value:m.os?`${sv(m.os.freeMemoryBytes)} free / ${sv(m.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),y.jsxs(_n,{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:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(ly,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),y.jsx(Dn,{className:"text-[10px]",children:w?"Live command availability for Codex and Claude Code on this node.":"Most recent agent availability snapshot synced from this node."})]}),y.jsx(jn,{className:"grid gap-2 px-3 pb-2.5 md:grid-cols-2",children:(m.agents??[]).map(P=>y.jsx(a5,{agent:P,nodeName:x.name,upgrading:h===`${x.id}:${P.id}`,onUpgrade:T},P.id))})]})]}),y.jsxs(gs,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(KE,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),y.jsx(Dn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Transport",value:x.transportType??m.transportType??"direct"}),y.jsx(ze,{label:"Node URL",value:x.endpoint,mono:!0}),y.jsx(ze,{label:"Node tunnel",value:x.devtunnelEndpoint??"Disabled",mono:!!x.devtunnelEndpoint}),y.jsx(ze,{label:"Dashboard URL",value:x.dashboardOrigin??m.localDashboardOrigin??"Unavailable",mono:!!(x.dashboardOrigin||m.localDashboardOrigin)}),y.jsx(ze,{label:"Local dashboard",value:m.localDashboardOrigin??"Unavailable",mono:!!m.localDashboardOrigin})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(EN,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),y.jsx(Dn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Enabled",value:(q=m.auth)!=null&&q.enabled?"Yes":"No"}),y.jsx(ze,{label:"Same tenant",value:(V=m.auth)!=null&&V.allowSameTenant?"Allowed":"Off"}),y.jsx(ze,{label:"Allowed users",value:(le=m.auth)!=null&&le.allowedUsers.length?m.auth.allowedUsers.join(", "):"None"})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(uN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),y.jsx(Dn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),y.jsxs(jn,{className:"space-y-0 px-3 pb-2.5",children:[y.jsx(ze,{label:"Work dir",value:((he=m.runtime)==null?void 0:he.workDir)??m.workDir??"Unavailable",mono:!!(((pe=m.runtime)==null?void 0:pe.workDir)??m.workDir)}),y.jsx(ze,{label:"Storage",value:((fe=m.runtime)==null?void 0:fe.storagePath)??"Unavailable",mono:!!((me=m.runtime)!=null&&me.storagePath)}),y.jsx(ze,{label:"Process cwd",value:((ge=m.runtime)==null?void 0:ge.cwd)??"Unavailable",mono:!!((ue=m.runtime)!=null&&ue.cwd)}),y.jsx(ze,{label:"Started",value:qa((O=m.runtime)==null?void 0:O.startedAt)}),y.jsx(ze,{label:"PID",value:m.runtime?String(m.runtime.pid):"Unavailable",mono:!!m.runtime})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(ay,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),y.jsx(Dn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),y.jsxs(jn,{className:"space-y-3 px-3 pb-2.5",children:[y.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[y.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),y.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:qa((Y=m.startupRequirements)==null?void 0:Y.lastCheckedAt)})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(cs,{name:"Azure CLI",status:E.az}),y.jsx(cs,{name:"DevTunnel",status:E.devtunnel}),y.jsx(cs,{name:"Claude Code",status:E.claude}),y.jsx(cs,{name:"Codex",status:E.codex})]})]})]})]}),y.jsxs(gs,{value:"about",className:"mt-0 grid gap-2 xl:grid-cols-[0.92fr_1.08fr]",children:[y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(XE,{className:"h-3.5 w-3.5 text-primary"}),"Repository"]}),y.jsx(Dn,{className:"text-[10px]",children:"Source-of-truth repository metadata for this running node."})]}),y.jsxs(jn,{className:"space-y-3 px-3 pb-2.5",children:[(J=m.repository)!=null&&J.url?y.jsxs("a",{href:m.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:[y.jsx("span",{className:"font-mono text-[10px]",children:m.repository.url}),y.jsx(sN,{className:"h-3.5 w-3.5 text-muted-foreground transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}):y.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."}),y.jsxs("div",{className:"space-y-0",children:[y.jsx(ze,{label:"Branch",value:((re=m.repository)==null?void 0:re.branch)??"Unavailable",mono:!!((I=m.repository)!=null&&I.branch)}),y.jsx(ze,{label:"Commit",value:((_=m.repository)==null?void 0:_.commit)??"Unavailable",mono:!!((G=m.repository)!=null&&G.commit)}),y.jsx(ze,{label:"Runtime",value:`${m.packageName??"meshy"} ${m.version}`,mono:!0}),y.jsx(ze,{label:"Node.js",value:((X=m.runtime)==null?void 0:X.nodeVersion)??"Unavailable",mono:!!((W=m.runtime)!=null&&W.nodeVersion)})]})]})]}),y.jsxs(_n,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[y.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[y.jsxs(Mn,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(dN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),y.jsx(Dn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),y.jsx(jn,{className:"space-y-1.5 px-3 pb-2.5",children:A.map(P=>{var ne,ee;return y.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:[y.jsxs("div",{children:[y.jsx("div",{className:"text-[11px] font-medium text-foreground",children:P.label}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:(ne=P.value)==null?void 0:ne.name})]}),y.jsx(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px]",children:(ee=P.value)==null?void 0:ee.version})]},P.key)})})]})]})]})]})}function c5(){const{cluster:n,systemInfo:r,sseConnected:o,refresh:i}=Uv(),[u,f]=b.useState(!1);return y.jsxs(hC,{open:u,onOpenChange:f,children:[y.jsx(pC,{asChild:!0,children:y.jsx(wl,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-full border border-border/70 bg-background/70 shadow-sm",children:y.jsx(SN,{className:"h-4 w-4"})})}),y.jsxs(Ky,{className:"grid h-[min(82vh,42rem)] max-h-[82vh] max-w-[min(90vw,56rem)] grid-rows-[auto_minmax(0,1fr)] overflow-hidden rounded-2xl border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[y.jsxs(Py,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[y.jsxs(Jy,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(hN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),y.jsx(Fy,{className:"text-[11px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),y.jsx("div",{className:"min-h-0 overflow-y-auto px-3 py-2.5 sm:px-4 sm:py-3",children:y.jsx(s5,{cluster:n,systemInfo:r,sseConnected:o,onRefresh:i})})]})]})}const S_="bypass",u5=[{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"}],w_=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],E_=new Set(u5.filter(n=>n.supportsFollowUp).map(n=>n.value)),N_=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],T_=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],f5=new Set(["pending","assigned"]),d5=new Set(["running"]),m5=new Set(["completed","failed","cancelled"]);function C_(n,r){switch(r){case"running":return d5.has(n.status);case"waiting":return f5.has(n.status);case"closed":return m5.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function A_(n,r){if(r==="all")return!0;const o=n.conversationKind==="nativeSession";return r==="native"?o:!o}function R_(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 h5(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 __(n,r,o){return h5(n,r,o).toLowerCase()}function O_(n,r){return[...n].sort((o,i)=>o.id===r?-1:i.id===r?1:o.name.localeCompare(i.name))}function M_(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 j_(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function z_(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 k_(n){return new Date(n).toLocaleString()}function L_(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 p5(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),Ya.success(r),!0;const f=globalThis.document,d=(u=f==null?void 0:f.execCommand)==null?void 0:u.bind(f);if(!(f!=null&&f.body)||typeof f.createElement!="function"||typeof d!="function")throw new Error("Clipboard access is unavailable");const h=f.createElement("textarea"),v=f.activeElement,p=v&&typeof v.focus=="function"?v:null;h.value=n,h.setAttribute("readonly","true"),h.style.position="fixed",h.style.opacity="0",h.style.pointerEvents="none",f.body.appendChild(h),h.select(),h.setSelectionRange(0,h.value.length);const x=d("copy");if(f.body.removeChild(h),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return Ya.success(r),!0}catch(f){return Ya.error(f instanceof Error?f.message:"Failed to copy"),!1}}function U_(n,r){const o=new Map;for(const u of n){const f=u.assignedTo??null,d=f??"__unassigned__",h=f?r.get(f)??u.assignedNodeName??f.slice(0,8):"Unassigned",v=u.effectiveProjectPath??u.project??"default workspace";o.has(d)||o.set(d,{nodeId:f,nodeName:h,dirMap:new Map});const p=o.get(d);p.dirMap.has(v)||p.dirMap.set(v,[]),p.dirMap.get(v).push(u)}const i=Array.from(o.values()).map(({nodeId:u,nodeName:f,dirMap:d})=>{const h=Array.from(d.entries()).map(([v,p])=>({path:v,tasks:p})).sort((v,p)=>p.tasks.length-v.tasks.length||v.path.localeCompare(p.path));return{nodeId:u,nodeName:f,dirs:h}});return i.sort((u,f)=>u.nodeId===null?1:f.nodeId===null?-1:u.nodeName.localeCompare(f.nodeName)),i}const g5={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 v5(n){return n.split(".")[0]??"unknown"}function y5(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function br(n,r){return(r==null?void 0:r.get(n))??n}function b5(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`${br(o.nodeId,r)} left (${o.reason})`;case"node.status":return`${br(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 ${br(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 ${br(i==null?void 0:i.nodeId,r)}`;case"transport.changed":return`${br(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${br(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 x5(n){return JSON.stringify(n,null,2)}function S5({events:n,maxHeight:r="400px",emptyTitle:o="No live events yet",emptyDescription:i="Cluster activity appears here as it happens.",nodeNameById:u,onDismiss:f}){return n.length===0?y.jsx("div",{className:"flex h-28 items-center justify-center rounded-[20px] border border-dashed border-border/70 bg-background/40 text-center",children:y.jsxs("div",{children:[y.jsx("div",{className:"text-[11px] text-muted-foreground",children:o}),y.jsx("div",{className:"mt-1 text-[11px] text-muted-foreground/70",children:i})]})}):y.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:y.jsx("div",{className:"space-y-1.5",children:n.map(d=>{const h=v5(d.type);return y.jsx("div",{className:"rounded-xl border border-border/60 bg-background/45 px-2 py-1.5 transition-colors hover:border-border hover:bg-background/65",children:y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx("div",{className:"font-mono text-[10px] text-muted-foreground",children:y5(d.timestamp)}),y.jsx(St,{variant:"outline",className:xe("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",g5[h]),children:d.type})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[y.jsx(wl,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-full text-muted-foreground",onClick:()=>void p5(x5(d),"Event copied"),"aria-label":`Copy ${d.type} event`,title:"Copy event",children:y.jsx(lN,{className:"h-3 w-3"})}),f&&y.jsx(wl,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-full text-muted-foreground hover:text-foreground",onClick:()=>f(d.id),"aria-label":`Dismiss ${d.type} event`,title:"Dismiss event",children:y.jsx(fy,{className:"h-3 w-3"})})]})]}),y.jsx("div",{className:"text-[11px] leading-snug text-foreground/85",children:b5(d,u)})]})},d.id)})})})}const w5=["node.","election.","transport."],nx="cluster.state";function E5(n){return w5.some(r=>n.type.startsWith(r))}function N5(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function uv(n,r){return typeof n=="string"?(r==null?void 0:r.get(n))??n:null}function T5(n,r){if(n.type===nx)return uv(n.data.leaderId,r);const o=n.data.operation;return uv(n.data.nodeId??(o==null?void 0:o.nodeId)??n.data.leaderId??n.data.candidateId,r)}function C5(n,r){return n?`${T5(n,r)??n.type}: ${N5(n.timestamp)}`:"Waiting for cluster activity"}function A5({connected:n,events:r,nodeNameById:o,defaultOpen:i=!1}){const[u,f]=b.useState(i),[d,h]=b.useState(new Set),v=b.useRef(null),p=b.useMemo(()=>{const m=r.filter(N=>E5(N)&&!d.has(N.id)),w=new Set;return m.filter(N=>{if(N.type!=="node.status")return!0;const A=typeof N.data.nodeId=="string"?N.data.nodeId:N.type;return w.has(A)?!1:(w.add(A),!0)})},[r,d]),x=b.useMemo(()=>r.find(m=>m.type===nx)??p[0],[r,p]);return b.useEffect(()=>{h(m=>{if(m.size===0)return m;const w=new Set(r.map(A=>A.id)),N=new Set(Array.from(m).filter(A=>w.has(A)));return N.size===m.size?m:N})},[r]),b.useEffect(()=>{if(!u)return;const m=N=>{var A;(A=v.current)!=null&&A.contains(N.target)||f(!1)},w=N=>{N.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",m),document.addEventListener("keydown",w),()=>{document.removeEventListener("pointerdown",m),document.removeEventListener("keydown",w)}},[u]),y.jsxs("div",{ref:v,className:"relative",children:[y.jsxs("button",{type:"button","aria-expanded":u,"aria-haspopup":"dialog",onClick:()=>f(m=>!m),className:xe("flex items-center gap-1.5 rounded-full border px-2 py-1.5 text-[11px] 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",u&&"shadow-[0_14px_40px_-26px_rgba(16,185,129,0.95)]"),title:n?"Live link connected":"Live link reconnecting",children:[y.jsx(cy,{className:xe("h-3.5 w-3.5",n?"text-emerald-500":"text-destructive")}),n?"Live link":"Reconnecting"]}),u&&y.jsxs("div",{role:"dialog","aria-label":"Live link connection events",className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[20rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-2xl border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl",children:[y.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-3 py-2",children:y.jsxs("div",{className:"flex items-start justify-between gap-3",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-foreground",children:[n?y.jsx(ay,{className:"h-3.5 w-3.5 text-emerald-500"}):y.jsx(RN,{className:"h-3.5 w-3.5 text-destructive"}),"Live link"]}),y.jsx("div",{className:"mt-0.5 truncate text-[10px] text-muted-foreground",children:n?"SSE stream is connected":"SSE stream is reconnecting"})]}),y.jsx("div",{className:xe("rounded-full border px-2 py-0.5 text-[9px] font-medium uppercase tracking-[0.14em]",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"})]})}),y.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[y.jsxs("div",{className:"border-r border-border/60 px-3 py-2",children:[y.jsx("div",{className:"text-[9px] font-medium uppercase tracking-[0.16em] text-muted-foreground",children:"Connection events"}),y.jsx("div",{className:"mt-0.5 text-lg font-semibold tracking-tight text-foreground",children:p.length})]}),y.jsxs("div",{className:"min-w-0 px-3 py-2",children:[y.jsx("div",{className:"text-[9px] font-medium uppercase tracking-[0.16em] text-muted-foreground",children:"Latest"}),y.jsx("div",{className:"mt-1 truncate font-mono text-[9px] text-foreground/80",children:C5(x,o)})]})]}),y.jsx("div",{className:"px-2 py-2",children:y.jsx(S5,{events:p,maxHeight:"16rem",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:o,onDismiss:m=>h(w=>new Set(w).add(m))})}),y.jsxs("div",{className:"flex items-center justify-between gap-2 border-t border-border/60 px-3 py-2 text-[10px] text-muted-foreground",children:[y.jsx("span",{className:"truncate",children:"Node, election, and system activity."}),y.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[y.jsx(wl,{type:"button",variant:"ghost",size:"sm",className:"h-6 rounded-full px-2 text-[10px]",onClick:()=>h(new Set(r.map(m=>m.id))),disabled:p.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),y.jsx(wl,{type:"button",variant:"ghost",size:"sm",className:"h-6 rounded-full px-2 text-[10px]",onClick:()=>f(!1),children:"Close"})]})]})]})]})}const ax=b.createContext(null);function R5({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 f=document.documentElement,d=h=>{if(h==="system"){const v=window.matchMedia("(prefers-color-scheme: dark)").matches;f.classList.toggle("dark",v)}else f.classList.toggle("dark",h==="dark")};if(d(r),localStorage.setItem("meshy-theme",r),r==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),v=()=>d("system");return h.addEventListener("change",v),()=>h.removeEventListener("change",v)}},[r]),b.useEffect(()=>{const f=document.documentElement;i==="default"?f.removeAttribute("data-palette"):f.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),y.jsx(ax.Provider,{value:{theme:r,setTheme:o,palette:i,setPalette:u},children:n})}function _5(){const n=b.useContext(ax);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}const O5=[{value:"light",label:"Light",icon:uy},{value:"dark",label:"Dark",icon:sy},{value:"system",label:"System",icon:iy}],M5=[{value:"default",label:"Default",hint:"Warm 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 D5(){const{theme:n,setTheme:r,palette:o,setPalette:i}=_5(),[u,f]=b.useState(!1),d=b.useRef(null),h=b.useRef(null),v=n==="dark"?sy:n==="light"?uy:iy,p=()=>{d.current&&(clearTimeout(d.current),d.current=null)},x=()=>{p(),d.current=setTimeout(()=>f(!1),180)};return b.useEffect(()=>{if(!u)return;const m=w=>{h.current&&!h.current.contains(w.target)&&f(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[u]),b.useEffect(()=>()=>p(),[]),y.jsxs("div",{ref:h,className:"relative",onMouseEnter:()=>{p(),f(!0)},onMouseLeave:x,children:[y.jsx(wl,{variant:"ghost",size:"icon",onClick:()=>f(m=>!m),className:xe("rounded-full border bg-background/70",o==="default"?"border-border/60":"border-primary/60 text-primary"),title:"Appearance","aria-haspopup":"menu","aria-expanded":u,children:y.jsx(v,{className:"h-4 w-4"})}),u&&y.jsxs("div",{role:"menu",className:"absolute right-0 top-[calc(100%+8px)] z-50 w-64 rounded-2xl 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:[y.jsx("div",{className:"px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),y.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1",children:O5.map(({value:m,label:w,icon:N})=>{const A=n===m;return y.jsxs("button",{type:"button",onClick:()=>r(m),className:xe("flex flex-col items-center gap-1 rounded-lg 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:[y.jsx(N,{className:"h-4 w-4"}),w]},m)})}),y.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:[y.jsx(TN,{className:"h-3 w-3"}),"Palette"]}),y.jsx("div",{className:"space-y-1",children:M5.map(({value:m,label:w,hint:N})=>{const A=o===m;return y.jsxs("button",{type:"button",onClick:()=>i(m),className:xe("flex w-full items-center gap-2 rounded-lg 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:[y.jsx(j5,{value:m}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:xe("text-[12px] font-medium",A?"text-primary":"text-foreground"),children:w}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:N})]}),A&&y.jsx(ry,{className:"h-3.5 w-3.5 text-primary"})]},m)})})]})]})}function j5({value:n}){const r={default:["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 y.jsxs("div",{className:xe("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60",n==="edge"?"rounded-lg":"rounded-full"),children:[y.jsx("div",{className:"h-full w-1/3",style:{background:o}}),y.jsx("div",{className:"h-full w-1/3",style:{background:i}}),y.jsx("div",{className:"h-full w-1/3",style:{background:u}})]})}function z5(){var d,h;const{cluster:n,events:r,sseConnected:o}=Uv(),i=Bn(),u=i.pathname==="/"||/^\/tasks\/[^/]+$/.test(i.pathname),f=b.useMemo(()=>{const v=new Map;for(const p of(n==null?void 0:n.nodes)??[])v.set(p.id,p.name);return v},[n==null?void 0:n.nodes]);return y.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[y.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),y.jsx("div",{className:"pointer-events-none absolute left-[-12rem] top-[-10rem] h-[28rem] w-[28rem] rounded-full bg-primary/14 blur-3xl"}),y.jsx("div",{className:"pointer-events-none absolute right-[-10rem] top-[10%] h-[24rem] w-[24rem] rounded-full bg-emerald-500/10 blur-3xl dark:bg-emerald-300/8"}),y.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[y.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:y.jsxs("div",{className:"mx-auto flex max-w-[1760px] flex-wrap items-center justify-between gap-2 rounded-2xl border border-border/60 bg-background/78 px-3 py-2 shadow-[0_20px_80px_-48px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl sm:gap-3 sm:rounded-[24px] sm:px-4 sm:py-3",children:[y.jsx("div",{className:"flex min-w-0 items-center gap-4",children:y.jsxs(jv,{to:"/",className:"flex items-center gap-3",children:[y.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-xl border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background sm:h-11 sm:w-11 sm:rounded-2xl sm:text-sm",children:"M"}),y.jsxs("div",{className:"hidden min-w-0 sm:block",children:[y.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.34em] text-muted-foreground",children:"MESHY"}),y.jsx("div",{className:"truncate text-base font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),y.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[y.jsxs("div",{className:"hidden items-center gap-2 rounded-full border border-border/70 bg-background/70 px-3 py-2 text-xs text-muted-foreground sm:flex",children:[y.jsxs("span",{className:"flex items-center gap-2",children:[(n==null?void 0:n.self)&&y.jsx(ty,{status:n.self.status}),y.jsx("span",{className:"font-medium text-foreground",children:((d=n==null?void 0:n.self)==null?void 0:d.name)??"offline"})]}),y.jsx("span",{className:"text-border",children:"/"}),y.jsx("span",{className:"capitalize",children:((h=n==null?void 0:n.self)==null?void 0:h.role)??"node"})]}),y.jsx(A5,{connected:o,events:r,nodeNameById:f}),y.jsx(c5,{}),y.jsx(D5,{})]})]})}),y.jsx("main",{className:xe("min-h-0 flex-1 px-3 pb-3 sm:px-5 lg:px-6",u?"overflow-hidden":"overflow-y-auto"),children:y.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:y.jsx(N2,{})})})]})]})}const fv=b.lazy(async()=>({default:(await hv(()=>import("./DashboardPage-CBz6UrRs.js").then(r=>r.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),k5=b.lazy(async()=>({default:(await hv(()=>import("./SharedConversationPage-DkfDIi1Q.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function L5(){return y.jsx(J2,{children:y.jsx(b.Suspense,{fallback:y.jsx(U5,{}),children:y.jsxs(C2,{children:[y.jsx(Sl,{path:"/shared/tasks/:shareId",element:y.jsx(k5,{})}),y.jsxs(Sl,{element:y.jsx(pw,{children:y.jsx(z5,{})}),children:[y.jsx(Sl,{path:"/",element:y.jsx(fv,{})}),y.jsx(Sl,{path:"/nodes",element:y.jsx(Ng,{to:"/",replace:!0})}),y.jsx(Sl,{path:"/tasks",element:y.jsx(Ng,{to:"/",replace:!0})}),y.jsx(Sl,{path:"/tasks/:id",element:y.jsx(fv,{})})]})]})})})}function U5(){return y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function B5(n){return y.jsx(LE,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}NS.createRoot(document.getElementById("root")).render(y.jsx(b.StrictMode,{children:y.jsxs(R5,{children:[y.jsx(L5,{}),y.jsx(B5,{})]})}));export{Wb as $,TN as A,St as B,ry as C,Ky as D,F5 as E,uN as F,hC as G,lN as H,p5 as I,h5 as J,DR as K,y_ as L,Ab as M,ps as N,k_ as O,b_ as P,gs as Q,XR as R,ib as S,w_ as T,Kb as U,Pb as V,Fb as W,fy as X,Ib as Y,Jb as Z,ex as _,DN as a,x_ as a$,hv as a0,O_ as a1,cy as a2,S5 as a3,ty as a4,sN as a5,iE as a6,L_ as a7,f5 as a8,Lo as a9,A_ as aA,__ as aB,R_ as aC,J5 as aD,E_ as aE,d5 as aF,l_ as aG,t_ as aH,n_ as aI,e_ as aJ,W5 as aK,Y5 as aL,G5 as aM,V5 as aN,$5 as aO,f_ as aP,u_ as aQ,c_ as aR,i_ as aS,s_ as aT,d_ as aU,IE as aV,dv as aW,p_ as aX,h_ as aY,m_ as aZ,g_ as a_,Be as aa,Oo as ab,We as ac,ke as ad,LA as ae,TA as af,Rl as ag,U_ as ah,nN as ai,N_ as aj,T_ as ak,j_ as al,D_ as am,z_ as an,QR as ao,r_ as ap,o_ as aq,P5 as ar,dw as as,a_ as at,H5 as au,Bn as av,Tv as aw,Uv as ax,M_ as ay,C_ as az,xe as b,v_ as b0,Pe as c,ey as d,q5 as e,Py as f,Jy as g,vC as h,wl as i,y as j,Q5 as k,K5 as l,cw as m,X5 as n,S_ as o,Z5 as p,I5 as q,b as r,mR as s,Ya as t,ab as u,hR as v,ob as w,ly as x,oy as y,u5 as z};
|