meshy-node 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dashboard/assets/DashboardPage-vg1FNZ-b.js +124 -0
- package/dashboard/assets/DashboardShared-C9XLT05J.js +54 -0
- package/dashboard/assets/DiffTab-BBoqxtBo.js +4 -0
- package/dashboard/assets/{FilesTab-CSpNGxJl.js → FilesTab-8j_HSIrt.js} +14 -13
- package/dashboard/assets/{PreviewTab-CEFgpX6R.js → PreviewTab-CcfSJBUg.js} +4 -4
- package/dashboard/assets/{SharedConversationPage-CgHzpTa0.js → SharedConversationPage-CNmEk_vb.js} +4 -4
- package/dashboard/assets/{file-DCzQQ4U3.js → file-DgdB9H7_.js} +1 -1
- package/dashboard/assets/{folder-D2R8g5cx.js → folder-5L-FBUD2.js} +1 -1
- package/dashboard/assets/index-D2dDklXI.js +266 -0
- package/dashboard/assets/index-XG2bTevi.css +1 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +526 -214
- package/package.json +1 -1
- package/runtime-metadata.json +5 -5
- package/dashboard/assets/DashboardPage-BMIVTxil.js +0 -130
- package/dashboard/assets/DashboardShared-BSmoDCJG.js +0 -59
- package/dashboard/assets/DiffTab-BLGTdyp_.js +0 -4
- package/dashboard/assets/index-CSVyG8lh.js +0 -250
- package/dashboard/assets/index-CnhngBZ-.css +0 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-vg1FNZ-b.js","assets/DashboardShared-C9XLT05J.js","assets/folder-5L-FBUD2.js","assets/SharedConversationPage-CNmEk_vb.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function sS(a,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 a)){const f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(a,u,f.get?f:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(a,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 uv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Fu={exports:{}},Eo={};/**
|
|
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 cS(){if(ig)return Eo;ig=1;var a=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:a,type:i,key:d,ref:u!==void 0?u:null,props:f}}return Eo.Fragment=r,Eo.jsx=o,Eo.jsxs=o,Eo}var sg;function uS(){return sg||(sg=1,Fu.exports=cS()),Fu.exports}var y=uS(),Iu={exports:{}},Se={};/**
|
|
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 fS(){if(cg)return Se;cg=1;var a=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 R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function T(_,G,X){this.props=_,this.context=G,this.refs=C,this.updater=X||R}T.prototype.isReactComponent={},T.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")},T.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=T.prototype;function D(_,G,X){this.props=_,this.context=G,this.refs=C,this.updater=X||R}var B=D.prototype=new j;B.constructor=D,E(B,T.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 ae(_,G,X){var W=X.ref;return{$$typeof:a,type:_,key:G,ref:W!==void 0?W:null,props:X}}function he(_,G){return ae(_.type,G,_.props)}function pe(_){return typeof _=="object"&&_!==null&&_.$$typeof===a}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 a: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(Te){return Te})):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 re=W===""?".":W+":";if(Z(_))for(var ie=0;ie<_.length;ie++)W=_[ie],ne=re+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=re+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 le=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 Se.Activity=m,Se.Children=I,Se.Component=T,Se.Fragment=o,Se.Profiler=u,Se.PureComponent=D,Se.StrictMode=i,Se.Suspense=v,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Se.__COMPILER_RUNTIME={__proto__:null,c:function(_){return q.H.useMemoCache(_)}},Se.cache=function(_){return function(){return _.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.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),re=0;re<ne;re++)ee[re]=arguments[re+2];W.children=ee}return ae(_.type,P,W)},Se.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},Se.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 re=Array(ee),ie=0;ie<ee;ie++)re[ie]=arguments[ie+2];P.children=re}if(_&&_.defaultProps)for(W in ee=_.defaultProps,ee)P[W]===void 0&&(P[W]=ee[W]);return ae(_,ne,P)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(_){return{$$typeof:h,render:_}},Se.isValidElement=pe,Se.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:J}},Se.memo=function(_,G){return{$$typeof:p,type:_,compare:G===void 0?null:G}},Se.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,le)}catch(ne){le(ne)}finally{G!==null&&X.types!==null&&(G.types=X.types),q.T=G}},Se.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Se.use=function(_){return q.H.use(_)},Se.useActionState=function(_,G,X){return q.H.useActionState(_,G,X)},Se.useCallback=function(_,G){return q.H.useCallback(_,G)},Se.useContext=function(_){return q.H.useContext(_)},Se.useDebugValue=function(){},Se.useDeferredValue=function(_,G){return q.H.useDeferredValue(_,G)},Se.useEffect=function(_,G){return q.H.useEffect(_,G)},Se.useEffectEvent=function(_){return q.H.useEffectEvent(_)},Se.useId=function(){return q.H.useId()},Se.useImperativeHandle=function(_,G,X){return q.H.useImperativeHandle(_,G,X)},Se.useInsertionEffect=function(_,G){return q.H.useInsertionEffect(_,G)},Se.useLayoutEffect=function(_,G){return q.H.useLayoutEffect(_,G)},Se.useMemo=function(_,G){return q.H.useMemo(_,G)},Se.useOptimistic=function(_,G){return q.H.useOptimistic(_,G)},Se.useReducer=function(_,G,X){return q.H.useReducer(_,G,X)},Se.useRef=function(_){return q.H.useRef(_)},Se.useState=function(_){return q.H.useState(_)},Se.useSyncExternalStore=function(_,G,X){return q.H.useSyncExternalStore(_,G,X)},Se.useTransition=function(){return q.H.useTransition()},Se.version="19.2.4",Se}var ug;function Lf(){return ug||(ug=1,Iu.exports=fS()),Iu.exports}var b=Lf();const te=uv(b),Uf=sS({__proto__:null,default:te},[b]);var Wu={exports:{}},No={},ef={exports:{}},tf={};/**
|
|
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 dS(){return fg||(fg=1,(function(a){function r(O,Y){var J=O.length;O.push(Y);e:for(;0<J;){var le=J-1>>>1,I=O[le];if(0<u(I,Y))O[le]=Y,O[J]=I,J=le;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 le=0,I=O.length,_=I>>>1;le<_;){var G=2*(le+1)-1,X=O[G],W=G+1,P=O[W];if(0>u(X,J))W<I&&0>u(P,X)?(O[le]=P,O[W]=J,le=W):(O[le]=X,O[G]=J,le=G);else if(W<I&&0>u(P,J))O[le]=P,O[W]=J,le=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(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();a.unstable_now=function(){return d.now()-h}}var v=[],p=[],x=1,m=null,w=3,N=!1,R=!1,E=!1,C=!1,T=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),!R)if(o(v)!==null)R=!0,F||(F=!0,fe());else{var Y=o(p);Y!==null&&ue(Z,Y.startTime-O)}}var F=!1,q=-1,V=5,ae=-1;function he(){return C?!0:!(a.unstable_now()-ae<V)}function pe(){if(C=!1,F){var O=a.unstable_now();ae=O;var Y=!0;try{e:{R=!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 le=m.callback;if(typeof le=="function"){m.callback=null,w=m.priorityLevel;var I=le(m.expirationTime<=O);if(O=a.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(){T(pe,0)};function ue(O,Y){q=T(function(){O(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.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},a.unstable_getCurrentPriorityLevel=function(){return w},a.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}},a.unstable_requestPaint=function(){C=!0},a.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}},a.unstable_scheduleCallback=function(O,Y,J){var le=a.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?le+J:le):J=le,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>le?(O.sortIndex=J,r(p,O),o(v)===null&&O===o(p)&&(E?(j(q),q=-1):E=!0,ue(Z,J-le))):(O.sortIndex=I,r(v,O),R||N||(R=!0,F||(F=!0,fe()))),O},a.unstable_shouldYield=he,a.unstable_wrapCallback=function(O){var Y=w;return function(){var J=w;w=Y;try{return O.apply(this,arguments)}finally{w=J}}}})(tf)),tf}var dg;function mS(){return dg||(dg=1,ef.exports=dS()),ef.exports}var nf={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 hS(){if(mg)return Nt;mg=1;var a=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=a.__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 fv(){if(hg)return nf.exports;hg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),nf.exports=hS(),nf.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 pS(){if(pg)return No;pg=1;var a=mS(),r=Lf(),o=fv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n: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 n=e,l=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return v(s),e;if(c===l)return v(s),t;c=c.sibling}throw Error(i(188))}if(n.return!==l.return)n=s,l=c;else{for(var g=!1,S=s.child;S;){if(S===n){g=!0,n=s,l=c;break}if(S===l){g=!0,l=s,n=c;break}S=S.sibling}if(!g){for(S=c.child;S;){if(S===n){g=!0,n=c,l=s;break}if(S===l){g=!0,l=c,n=s;break}S=S.sibling}if(!g)throw Error(i(189))}}if(n.alternate!==l)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?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"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=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"),ae=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 T:return"Profiler";case C:return"StrictMode";case Z:return"Suspense";case F:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R: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},le=[],I=-1;function _(e){return{current:e}}function G(e){0>I||(e.current=le[I],le[I]=null,I--)}function X(e,t){I++,le[I]=e.current,e.current=t}var W=_(null),P=_(null),ne=_(null),ee=_(null);function re(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 Te(e){e.memoizedState!==null&&X(ee,e);var t=W.current,n=Mp(t,e.type);t!==n&&(X(P,e),X(W,n))}function we(e){P.current===e&&(G(W),G(P)),ee.current===e&&(G(ee),bo._currentValue=J)}var xe,tt;function Xe(e){if(xe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||"",tt=-1<n.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+xe+e+tt}var fn=!1;function It(e,t){if(!e||fn)return"";fn=!0;var n=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 A=g.split(`
|
|
45
|
+
`),L=S.split(`
|
|
46
|
+
`);for(s=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(l===A.length||s===L.length)for(l=A.length-1,s=L.length-1;1<=l&&0<=s&&A[l]!==L[s];)s--;for(;1<=l&&0<=s;l--,s--)if(A[l]!==L[s]){if(l!==1||s!==1)do if(l--,s--,0>s||A[l]!==L[s]){var $=`
|
|
47
|
+
`+A[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=n}return(n=e?e.displayName||e.name:"")?Xe(n):""}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 Pa(e){try{var t="",n=null;do t+=Yt(e,n),n=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,_r=a.unstable_scheduleCallback,Or=a.unstable_cancelCallback,Tt=a.unstable_shouldYield,fa=a.unstable_requestPaint,At=a.unstable_now,Hs=a.unstable_getCurrentPriorityLevel,Ja=a.unstable_ImmediatePriority,Bo=a.unstable_UserBlockingPriority,Fa=a.unstable_NormalPriority,Mr=a.unstable_LowPriority,Vn=a.unstable_IdlePriority,Ho=a.log,da=a.unstable_setDisableYieldValue,Ia=null,Rt=null;function dn(e){if(typeof Ho=="function"&&da(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Ia,e)}catch{}}var wt=Math.clz32?Math.clz32:wn,Vs=Math.log,Dr=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(Vs(e)/Dr|0)|0}var Rl=256,_l=262144,Wa=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,n){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):n||(n=S&~e,n!==0&&(s=En(n))))):(S=l&~c,S!==0?s=En(S):g!==0?s=En(g):n||(n=l&~e,n!==0&&(s=En(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function Pe(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=Wa;return Wa<<=1,(Wa&62914560)===0&&(Wa=4194304),e}function ma(e){for(var t=[],n=0;31>n;n++)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,n,l,s,c){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,L=e.hiddenUpdates;for(n=g&~n;0<n;){var $=31-wt(n),K=1<<$;S[$]=0,A[$]=-1;var U=L[$];if(U!==null)for(L[$]=null,$=0;$<U.length;$++){var H=U[$];H!==null&&(H.lane&=-536870913)}n&=~K}l!==0&&el(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function el(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-wt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-wt(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function Dt(e,t){var n=t&-t;return n=(n&42)!==0?1:Ol(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ol(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 Ys(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:eg(e.type))}function gd(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var ha=Math.random().toString(36).slice(2),gt="__reactFiber$"+ha,jt="__reactProps$"+ha,Ml="__reactContainer$"+ha,qs="__reactEvents$"+ha,Fb="__reactListeners$"+ha,Ib="__reactHandles$"+ha,vd="__reactResources$"+ha,jr="__reactMarker$"+ha;function Gs(e){delete e[gt],delete e[jt],delete e[qs],delete e[Fb],delete e[Ib]}function Dl(e){var t=e[gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ml]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bp(e);e!==null;){if(n=e[gt])return n;e=Bp(e)}return t}e=n,n=e.parentNode}return null}function jl(e){if(e=e[gt]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function zl(e){var t=e[vd];return t||(t=e[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[jr]=!0}var yd=new Set,bd={};function tl(e,t){kl(e,t),kl(e+"Capture",t)}function kl(e,t){for(bd[e]=t,e=0;e<t.length;e++)yd.add(t[e])}var Wb=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 ex(e){return dt.call(Sd,e)?!0:dt.call(xd,e)?!1:Wb.test(e)?Sd[e]=!0:(xd[e]=!0,!1)}function Vo(e,t,n){if(ex(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function Yo(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Yn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+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 tx(e,t,n){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){n=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){if(!e._valueTracker){var t=wd(e)?"checked":"value";e._valueTracker=tx(e,t,""+e[t])}}function Ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=wd(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function qo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var nx=/[\n"\\]/g;function en(e){return e.replace(nx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xs(e,t,n,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?Qs(e,g,Wt(t)):n!=null?Qs(e,g,Wt(n)):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,n,l,s,c,g,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){$s(e);return}n=n!=null?""+Wt(n):"",t=t!=null?""+Wt(t):n,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),$s(e)}function Qs(e,t,n){t==="number"&&qo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ll(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Wt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Cd(e,t,n){if(t!=null&&(t=""+Wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Wt(n):""}function Td(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(i(92));if(ue(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Wt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),$s(e)}function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ax=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,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||ax.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rd(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var l in n)!n.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)&&n[s]!==l&&Ad(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&Ad(e,c,t[c])}function Zs(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 lx=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"]]),rx=/^[\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 Go(e){return rx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qn(){}var Ks=null;function Ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,Hl=null;function _d(e){var t=jl(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[jt]||null;if(!s)throw Error(i(90));Xs(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Ed(l)}break e;case"textarea":Cd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ll(e,!!n.multiple,t,!1)}}}var Js=!1;function Od(e,t,n){if(Js)return e(t,n);Js=!0;try{var l=e(t);return l}finally{if(Js=!1,(Bl!==null||Hl!==null)&&(Oi(),Bl&&(t=Bl,e=Hl,Hl=Bl=null,_d(t),e)))for(t=0;t<e.length;t++)_d(e[t])}}function kr(e,t){var n=e.stateNode;if(n===null)return null;var l=n[jt]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fs=!1;if(Gn)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){Fs=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{Fs=!1}var pa=null,Is=null,$o=null;function Md(){if($o)return $o;var e,t=Is,n=t.length,l,s="value"in pa?pa.value:pa.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var g=n-e;for(l=1;l<=g&&t[n-l]===s[c-l];l++);return $o=s.slice(e,1<l?1-l:void 0)}function Xo(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 Qo(){return!0}function Dd(){return!1}function zt(e){function t(n,l,s,c,g){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Qo:Dd,this.isPropagationStopped=Dd,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qo)},persist:function(){},isPersistent:Qo}),t}var nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zo=zt(nl),Ur=m({},nl,{view:0,detail:0}),ox=zt(Ur),Ws,ec,Br,Ko=m({},Ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nc,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!==Br&&(Br&&e.type==="mousemove"?(Ws=e.screenX-Br.screenX,ec=e.screenY-Br.screenY):ec=Ws=0,Br=e),Ws)},movementY:function(e){return"movementY"in e?e.movementY:ec}}),jd=zt(Ko),ix=m({},Ko,{dataTransfer:0}),sx=zt(ix),cx=m({},Ur,{relatedTarget:0}),tc=zt(cx),ux=m({},nl,{animationName:0,elapsedTime:0,pseudoElement:0}),fx=zt(ux),dx=m({},nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mx=zt(dx),hx=m({},nl,{data:0}),zd=zt(hx),px={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gx={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"},vx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vx[e])?!!t[e]:!1}function nc(){return yx}var bx=m({},Ur,{key:function(e){if(e.key){var t=px[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nc,charCode:function(e){return e.type==="keypress"?Xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xx=zt(bx),Sx=m({},Ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=zt(Sx),wx=m({},Ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nc}),Ex=zt(wx),Nx=m({},nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cx=zt(Nx),Tx=m({},Ko,{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}),Ax=zt(Tx),Rx=m({},nl,{newState:0,oldState:0}),_x=zt(Rx),Ox=[9,13,27,32],ac=Gn&&"CompositionEvent"in window,Hr=null;Gn&&"documentMode"in document&&(Hr=document.documentMode);var Mx=Gn&&"TextEvent"in window&&!Hr,Ld=Gn&&(!ac||Hr&&8<Hr&&11>=Hr),Ud=" ",Bd=!1;function Hd(e,t){switch(e){case"keyup":return Ox.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 Vl=!1;function Dx(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 jx(e,t){if(Vl)return e==="compositionend"||!ac&&Hd(e,t)?(e=Md(),$o=Is=pa=null,Vl=!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 zx={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"?!!zx[e.type]:t==="textarea"}function qd(e,t,n,l){Bl?Hl?Hl.push(l):Hl=[l]:Bl=l,t=Ui(t,"onChange"),0<t.length&&(n=new Zo("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Vr=null,Yr=null;function kx(e){Np(e,0)}function Po(e){var t=zr(e);if(Ed(t))return e}function Gd(e,t){if(e==="change")return t}var $d=!1;if(Gn){var lc;if(Gn){var rc="oninput"in document;if(!rc){var Xd=document.createElement("div");Xd.setAttribute("oninput","return;"),rc=typeof Xd.oninput=="function"}lc=rc}else lc=!1;$d=lc&&(!document.documentMode||9<document.documentMode)}function Qd(){Vr&&(Vr.detachEvent("onpropertychange",Zd),Yr=Vr=null)}function Zd(e){if(e.propertyName==="value"&&Po(Yr)){var t=[];qd(t,Yr,e,Ps(e)),Od(kx,t)}}function Lx(e,t,n){e==="focusin"?(Qd(),Vr=t,Yr=n,Vr.attachEvent("onpropertychange",Zd)):e==="focusout"&&Qd()}function Ux(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Po(Yr)}function Bx(e,t){if(e==="click")return Po(t)}function Hx(e,t){if(e==="input"||e==="change")return Po(t)}function Vx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:Vx;function qr(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[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 n=Kd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Kd(n)}}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=qo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qo(e.document)}return t}function oc(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 Yx=Gn&&"documentMode"in document&&11>=document.documentMode,Yl=null,ic=null,Gr=null,sc=!1;function Id(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sc||Yl==null||Yl!==qo(l)||(l=Yl,"selectionStart"in l&&oc(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}),Gr&&qr(Gr,l)||(Gr=l,l=Ui(ic,"onSelect"),0<l.length&&(t=new Zo("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Yl)))}function al(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ql={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},cc={},Wd={};Gn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete ql.animationend.animation,delete ql.animationiteration.animation,delete ql.animationstart.animation),"TransitionEvent"in window||delete ql.transitionend.transition);function ll(e){if(cc[e])return cc[e];if(!ql[e])return e;var t=ql[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wd)return cc[e]=t[n];return e}var em=ll("animationend"),tm=ll("animationiteration"),nm=ll("animationstart"),qx=ll("transitionrun"),Gx=ll("transitionstart"),$x=ll("transitioncancel"),am=ll("transitionend"),lm=new Map,uc="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(" ");uc.push("scrollEnd");function hn(e,t){lm.set(e,t),tl(t,[e])}var Jo=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=[],Gl=0,fc=0;function Fo(){for(var e=Gl,t=fc=Gl=0;t<e;){var n=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(n,s,c)}}function Io(e,t,n,l){tn[Gl++]=e,tn[Gl++]=t,tn[Gl++]=n,tn[Gl++]=l,fc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function dc(e,t,n,l){return Io(e,t,n,l),Wo(e)}function rl(e,t){return Io(e,null,null,t),Wo(e)}function rm(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),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(n),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),c):null}function Wo(e){if(50<fo)throw fo=0,Su=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $l={};function Xx(e,t,n,l){this.tag=e,this.key=n,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,n,l){return new Xx(e,t,n,l)}function mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $n(e,t){var n=e.alternate;return n===null?(n=Gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function om(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ei(e,t,n,l,s,c){var g=0;if(l=e,typeof e=="function")mc(e)&&(g=1);else if(typeof e=="string")g=J1(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Gt(31,n,t,s),e.elementType=ae,e.lanes=c,e;case E:return ol(n.children,s,c,t);case C:g=8,s|=24;break;case T:return e=Gt(12,n,t,s|2),e.elementType=T,e.lanes=c,e;case Z:return e=Gt(13,n,t,s),e.elementType=Z,e.lanes=c,e;case F:return e=Gt(19,n,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,n=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Gt(g,n,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function ol(e,t,n,l){return e=Gt(7,e,l,t),e.lanes=n,e}function hc(e,t,n){return e=Gt(6,e,null,t),e.lanes=n,e}function im(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function pc(e,t,n){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,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 n=sm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Pa(t)},sm.set(e,t),t)}return{value:e,source:t,stack:Pa(t)}}var Xl=[],Ql=0,ti=null,$r=0,an=[],ln=0,ga=null,Nn=1,Cn="";function Xn(e,t){Xl[Ql++]=$r,Xl[Ql++]=ti,ti=e,$r=t}function cm(e,t,n){an[ln++]=Nn,an[ln++]=Cn,an[ln++]=ga,ga=e;var l=Nn;e=Cn;var s=32-wt(l)-1;l&=~(1<<s),n+=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|n<<s|l,Cn=c+e}else Nn=1<<c|n<<s|l,Cn=e}function gc(e){e.return!==null&&(Xn(e,1),cm(e,1,0))}function vc(e){for(;e===ti;)ti=Xl[--Ql],Xl[Ql]=null,$r=Xl[--Ql],Xl[Ql]=null;for(;e===ga;)ga=an[--ln],an[ln]=null,Cn=an[--ln],an[ln]=null,Nn=an[--ln],an[ln]=null}function um(e,t){an[ln++]=Nn,an[ln++]=Cn,an[ln++]=ga,Nn=t.id,Cn=t.overflow,ga=e}var vt=null,Ze=null,De=!1,va=null,rn=!1,yc=Error(i(519));function ya(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xr(nn(t,e)),yc}function fm(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[gt]=e,t[jt]=l,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<ho.length;n++)_e(ho[n],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),Td(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Rp(t.textContent,n)?(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 Zl(e){if(e!==vt)return!1;if(!De)return dm(e),De=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lu(e.type,e.memoizedProps)),n=!n),n&&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=Yu,Yu=null,Ze=e):Ze=t):Ze=vt?sn(e.stateNode.nextSibling):null;return!0}function il(){Ze=vt=null,De=!1}function bc(){var e=va;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),va=null),e}function Xr(e){va===null?va=[e]:va.push(e)}var xc=_(null),sl=null,Qn=null;function ba(e,t,n){X(xc,t._currentValue),t._currentValue=n}function Zn(e){e._currentValue=xc.current,G(xc)}function Sc(e,t,n){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===n)break;e=e.return}}function wc(e,t,n,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 A=0;A<t.length;A++)if(S.context===t[A]){c.lanes|=n,S=c.alternate,S!==null&&(S.lanes|=n),Sc(c.return,n,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|=n,c=g.alternate,c!==null&&(c.lanes|=n),Sc(g,n,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 Kl(e,t,n,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(bo):e=[bo])}s=s.return}e!==null&&wc(t,e,n,l),t.flags|=262144}function ni(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cl(e){sl=e,Qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return mm(sl,e)}function ai(e,t){return sl===null&&cl(e),mm(e,t)}function mm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,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 n}var Qx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Zx=a.unstable_scheduleCallback,Kx=a.unstable_NormalPriority,ot={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ec(){return{controller:new Qx,data:new Map,refCount:0}}function Qr(e){e.refCount--,e.refCount===0&&Zx(Kx,function(){e.controller.abort()})}var Zr=null,Nc=0,Pl=0,Jl=null;function Px(e,t){if(Zr===null){var n=Zr=[];Nc=0,Pl=Au(),Jl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Nc++,t.then(hm,hm),t}function hm(){if(--Nc===0&&Zr!==null){Jl!==null&&(Jl.status="fulfilled");var e=Zr;Zr=null,Pl=0,Jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jx(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var pm=O.S;O.S=function(e,t){Ih=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Px(e,t),pm!==null&&pm(e,t)};var ul=_(null);function Cc(){var e=ul.current;return e!==null?e:Qe.pooledCache}function li(e,t){t===null?X(ul,ul.current):X(ul,t.pool)}function gm(){var e=Cc();return e===null?null:{parent:ot._currentValue,pool:e}}var Fl=Error(i(460)),Tc=Error(i(474)),ri=Error(i(542)),oi={then:function(){}};function vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ym(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qn,qn),t=n),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 dl=t,Fl}}function fl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(dl=n,Fl):n}}var dl=null;function bm(){if(dl===null)throw Error(i(459));var e=dl;return dl=null,e}function xm(e){if(e===Fl||e===ri)throw Error(i(483))}var Il=null,Kr=0;function ii(e){var t=Kr;return Kr+=1,Il===null&&(Il=[]),ym(Il,e,t)}function Pr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function si(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 n(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=hc(k,z.mode,Q),M.return=z,M):(M=s(M,k),M.return=z,M)}function A(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&&fl(ve)===M.type)?(M=s(M,k.props),Pr(M,k),M.return=z,M):(M=ei(k.type,k.key,k.props,null,z.mode,Q),Pr(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=pc(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=ol(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=hc(""+M,z.mode,k),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return k=ei(M.type,M.key,M.props,null,z.mode,k),Pr(k,M),k.return=z,k;case R:return M=pc(M,z.mode,k),M.return=z,M;case V:return M=fl(M),K(z,M,k)}if(ue(M)||fe(M))return M=ol(M,z.mode,k,null),M.return=z,M;if(typeof M.then=="function")return K(z,ii(M),k);if(M.$$typeof===D)return K(z,ai(z,M),k);si(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?A(z,M,k,Q):null;case R:return k.key===ve?L(z,M,k,Q):null;case V:return k=fl(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,ii(k),Q);if(k.$$typeof===D)return U(z,M,ai(z,k),Q);si(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,A(M,z,Q,ve);case R:return z=z.get(Q.key===null?k:Q.key)||null,L(M,z,Q,ve);case V:return Q=fl(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,ii(Q),ve);if(Q.$$typeof===D)return H(z,M,k,ai(M,Q),ve);si(M,Q)}return null}function oe(z,M,k,Q){for(var ve=null,Le=null,de=M,Ne=M=0,Me=null;de!==null&&Ne<k.length;Ne++){de.index>Ne?(Me=de,de=null):Me=de.sibling;var Ue=U(z,de,k[Ne],Q);if(Ue===null){de===null&&(de=Me);break}e&&de&&Ue.alternate===null&&t(z,de),M=c(Ue,M,Ne),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue,de=Me}if(Ne===k.length)return n(z,de),De&&Xn(z,Ne),ve;if(de===null){for(;Ne<k.length;Ne++)de=K(z,k[Ne],Q),de!==null&&(M=c(de,M,Ne),Le===null?ve=de:Le.sibling=de,Le=de);return De&&Xn(z,Ne),ve}for(de=l(de);Ne<k.length;Ne++)Me=H(de,z,Ne,k[Ne],Q),Me!==null&&(e&&Me.alternate!==null&&de.delete(Me.key===null?Ne:Me.key),M=c(Me,M,Ne),Le===null?ve=Me:Le.sibling=Me,Le=Me);return e&&de.forEach(function(Ua){return t(z,Ua)}),De&&Xn(z,Ne),ve}function ye(z,M,k,Q){if(k==null)throw Error(i(151));for(var ve=null,Le=null,de=M,Ne=M=0,Me=null,Ue=k.next();de!==null&&!Ue.done;Ne++,Ue=k.next()){de.index>Ne?(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,Ne),Le===null?ve=Ua:Le.sibling=Ua,Le=Ua,de=Me}if(Ue.done)return n(z,de),De&&Xn(z,Ne),ve;if(de===null){for(;!Ue.done;Ne++,Ue=k.next())Ue=K(z,Ue.value,Q),Ue!==null&&(M=c(Ue,M,Ne),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue);return De&&Xn(z,Ne),ve}for(de=l(de);!Ue.done;Ne++,Ue=k.next())Ue=H(de,z,Ne,Ue.value,Q),Ue!==null&&(e&&Ue.alternate!==null&&de.delete(Ue.key===null?Ne:Ue.key),M=c(Ue,M,Ne),Le===null?ve=Ue:Le.sibling=Ue,Le=Ue);return e&&de.forEach(function(iS){return t(z,iS)}),De&&Xn(z,Ne),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){n(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&&fl(ve)===M.type){n(z,M.sibling),Q=s(M,k.props),Pr(Q,k),Q.return=z,z=Q;break e}n(z,M);break}else t(z,M);M=M.sibling}k.type===E?(Q=ol(k.props.children,z.mode,Q,k.key),Q.return=z,z=Q):(Q=ei(k.type,k.key,k.props,null,z.mode,Q),Pr(Q,k),Q.return=z,z=Q)}return g(z);case R: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){n(z,M.sibling),Q=s(M,k.children||[]),Q.return=z,z=Q;break e}else{n(z,M);break}else t(z,M);M=M.sibling}Q=pc(k,z.mode,Q),Q.return=z,z=Q}return g(z);case V:return k=fl(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,ii(k),Q);if(k.$$typeof===D)return $e(z,M,ai(z,k),Q);si(z,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,M!==null&&M.tag===6?(n(z,M.sibling),Q=s(M,k),Q.return=z,z=Q):(n(z,M),Q=hc(k,z.mode,Q),Q.return=z,z=Q),g(z)):n(z,M)}return function(z,M,k,Q){try{Kr=0;var ve=$e(z,M,k,Q);return Il=null,ve}catch(de){if(de===Fl||de===ri)throw de;var Le=Gt(29,de,null,z.mode);return Le.lanes=Q,Le.return=z,Le}finally{}}}var ml=Sm(!0),wm=Sm(!1),xa=!1;function Ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rc(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,n){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=Wo(e),rm(e,null,n),t}return Io(e,l,t,n),Wo(e)}function Jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}function _c(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=g:c=c.next=g,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Oc=!1;function Fr(){if(Oc){var e=Jl;if(e!==null)throw e}}function Ir(e,t,n,l){Oc=!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 A=S,L=A.next;A.next=null,g===null?c=L:g.next=L,g=A;var $=e.alternate;$!==null&&($=$.updateQueue,S=$.lastBaseUpdate,S!==g&&(S===null?$.firstBaseUpdate=L:S.next=L,$.lastBaseUpdate=A))}if(c!==null){var K=s.baseState;g=0,$=L=A=null,S=c;do{var U=S.lane&-536870913,H=U!==S.lane;if(H?(Oe&U)===U:(l&U)===U){U!==0&&U===Pl&&(Oc=!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=n;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,A=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&&(A=K),s.baseState=A,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 n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Em(n[e],t)}var Wl=_(null),ci=_(0);function Cm(e,t){e=na,X(ci,e),X(Wl,t),na=e|t.baseLanes}function Mc(){X(ci,na),X(Wl,Wl.current)}function Dc(){na=ci.current,G(Wl),G(ci)}var $t=_(null),on=null;function Ea(e){var t=e.alternate;X(lt,lt.current&1),X($t,e),on===null&&(t===null||Wl.current!==null||t.memoizedState!==null)&&(on=e)}function jc(e){X(lt,lt.current),X($t,e),on===null&&(on=e)}function Tm(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 ui(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Hu(n)||Vu(n)))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,Ee=null,qe=null,it=null,fi=!1,er=!1,hl=!1,di=0,Wr=0,tr=null,Fx=0;function nt(){throw Error(i(321))}function zc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function kc(e,t,n,l,s,c){return Kn=c,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?ch:Jc,hl=!1,c=n(l,s),hl=!1,er&&(c=Rm(t,n,l,s)),Am(e),c}function Am(e){O.H=no;var t=qe!==null&&qe.next!==null;if(Kn=0,it=qe=Ee=null,fi=!1,Wr=0,tr=null,t)throw Error(i(300));e===null||st||(e=e.dependencies,e!==null&&ni(e)&&(st=!0))}function Rm(e,t,n,l){Ee=e;var s=0;do{if(er&&(tr=null),Wr=0,er=!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(n,l)}while(er);return c}function Ix(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?eo(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ee.flags|=1024),t}function Lc(){var e=di!==0;return di=0,e}function Uc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bc(e){if(fi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fi=!1}Kn=0,it=qe=Ee=null,er=!1,Wr=di=0,tr=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Ee.memoizedState=it=e:it=it.next=e,it}function rt(){if(qe===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=it===null?Ee.memoizedState:it.next;if(t!==null)it=t,qe=e;else{if(e===null)throw Ee.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?Ee.memoizedState=it=e:it=it.next=e}return it}function mi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eo(e){var t=Wr;return Wr+=1,tr===null&&(tr=[]),e=ym(tr,e,t),t=Ee,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?ch:Jc),e}function hi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return eo(e);if(e.$$typeof===D)return yt(e)}throw Error(i(438,String(e)))}function Hc(e){var t=null,n=Ee.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ee.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}),n===null&&(n=mi(),Ee.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=he;return t.index++,n}function Pn(e,t){return typeof t=="function"?t(e):t}function pi(e){var t=rt();return Vc(t,qe,e)}function Vc(e,t,n){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;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,A=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)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),K===Pl&&($=!0);else if((Kn&U)===U){L=L.next,U===Pl&&($=!0);continue}else K={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(S=A=K,g=c):A=A.next=K,Ee.lanes|=U,Aa|=U;K=L.action,hl&&n(c,K),c=L.hasEagerState?L.eagerState:n(c,K)}else U={lane:K,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(S=A=U,g=c):A=A.next=U,Ee.lanes|=K,Aa|=K;L=L.next}while(L!==null&&L!==t);if(A===null?g=c:A.next=S,!qt(c,e.memoizedState)&&(st=!0,$&&(n=Jl,n!==null)))throw n;e.memoizedState=c,e.baseState=g,e.baseQueue=A,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Yc(e){var t=rt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.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),n.lastRenderedState=c}return[c,l]}function _m(e,t,n){var l=Ee,s=rt(),c=De;if(c){if(n===void 0)throw Error(i(407));n=n()}else n=t();var g=!qt((qe||s).memoizedState,n);if(g&&(s.memoizedState=n,st=!0),s=s.queue,$c(Dm.bind(null,l,s,e),[e]),s.getSnapshot!==t||g||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,nr(9,{destroy:void 0},Mm.bind(null,l,s,n,t),null),Qe===null)throw Error(i(349));c||(Kn&127)!==0||Om(l,t,n)}return n}function Om(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t=mi(),Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mm(e,t,n,l){t.value=n,t.getSnapshot=l,jm(t)&&zm(e)}function Dm(e,t,n){return n(function(){jm(t)&&zm(e)})}function jm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function zm(e){var t=rl(e,2);t!==null&&Ht(t,e,2)}function qc(e){var t=_t();if(typeof e=="function"){var n=e;if(e=n(),hl){dn(!0);try{n()}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,n,l){return e.baseState=n,Vc(e,qe,typeof l=="function"?l:Pn)}function Wx(e,t,n,l,s){if(yi(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?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,Lm(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Lm(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=O.T,g={};O.T=g;try{var S=n(s,l),A=O.S;A!==null&&A(g,S),Um(e,t,S)}catch(L){Gc(e,t,L)}finally{c!==null&&g.types!==null&&(c.types=g.types),O.T=c}}else try{c=n(s,l),Um(e,t,c)}catch(L){Gc(e,t,L)}}function Um(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Bm(e,t,l)},function(l){return Gc(e,t,l)}):Bm(e,t,n)}function Bm(e,t,n){t.status="fulfilled",t.value=n,Hm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Lm(e,n)))}function Gc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,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(De){var n=Qe.formState;if(n!==null){e:{var l=Ee;if(De){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=n[0])}}return n=_t(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:t},n.queue=l,n=oh.bind(null,Ee,l),l.dispatch=n,l=qc(!1),c=Pc.bind(null,Ee,!1,l.queue),l=_t(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=Wx.bind(null,Ee,s,c,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function qm(e){var t=rt();return Gm(t,qe,e)}function Gm(e,t,n){if(t=Vc(e,t,Vm)[0],e=pi(Pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=eo(t)}catch(g){throw g===Fl?ri:g}else l=t;t=rt();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(Ee.flags|=2048,nr(9,{destroy:void 0},e1.bind(null,s,n),null)),[l,c,e]}function e1(e,t){e.action=t}function $m(e){var t=rt(),n=qe;if(n!==null)return Gm(t,n,e);rt(),t=t.memoizedState,n=rt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function nr(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=mi(),Ee.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Xm(){return rt().memoizedState}function gi(e,t,n,l){var s=_t();Ee.flags|=e,s.memoizedState=nr(1|t,{destroy:void 0},n,l===void 0?null:l)}function vi(e,t,n,l){var s=rt();l=l===void 0?null:l;var c=s.memoizedState.inst;qe!==null&&l!==null&&zc(l,qe.memoizedState.deps)?s.memoizedState=nr(t,c,n,l):(Ee.flags|=e,s.memoizedState=nr(1|t,c,n,l))}function Qm(e,t){gi(8390656,8,e,t)}function $c(e,t){vi(2048,8,e,t)}function t1(e){Ee.flags|=4;var t=Ee.updateQueue;if(t===null)t=mi(),Ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Zm(e){var t=rt().memoizedState;return t1({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 vi(4,2,e,t)}function Pm(e,t){return vi(4,4,e,t)}function Jm(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Fm(e,t,n){n=n!=null?n.concat([e]):null,vi(4,4,Jm.bind(null,t,e),n)}function Xc(){}function Im(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&zc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Wm(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&zc(t,l[1]))return l[0];if(l=e(),hl){dn(!0);try{e()}finally{dn(!1)}}return n.memoizedState=[l,t],l}function Qc(e,t,n){return n===void 0||(Kn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ep(),Ee.lanes|=e,Aa|=e,n)}function eh(e,t,n,l){return qt(n,t)?n:Wl.current!==null?(e=Qc(e,n,l),qt(e,t)||(st=!0),e):(Kn&42)===0||(Kn&1073741824)!==0&&(Oe&261930)===0?(st=!0,e.memoizedState=n):(e=ep(),Ee.lanes|=e,Aa|=e,t)}function th(e,t,n,l,s){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=O.T,S={};O.T=S,Pc(e,!1,t,n);try{var A=s(),L=O.S;if(L!==null&&L(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var $=Jx(A,l);to(e,t,$,Kt(e))}else to(e,t,l,Kt(e))}catch(K){to(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 n1(){}function Zc(e,t,n,l){if(e.tag!==5)throw Error(i(476));var s=nh(e).queue;th(e,s,t,J,n===null?n1:function(){return ah(e),n(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 n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:n},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),to(e,t.next.queue,{},Kt())}function Kc(){return yt(bo)}function lh(){return rt().memoizedState}function rh(){return rt().memoizedState}function a1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=Sa(n);var l=wa(t,e,n);l!==null&&(Ht(l,t,n),Jr(l,t,n)),t={cache:Ec()},e.payload=t;return}t=t.return}}function l1(e,t,n){var l=Kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},yi(e)?ih(t,n):(n=dc(e,t,n,l),n!==null&&(Ht(n,e,l),sh(n,t,l)))}function oh(e,t,n){var l=Kt();to(e,t,n,l)}function to(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(yi(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,n);if(s.hasEagerState=!0,s.eagerState=S,qt(S,g))return Io(e,t,s,0),Qe===null&&Fo(),!1}catch{}finally{}if(n=dc(e,t,s,l),n!==null)return Ht(n,e,l),sh(n,t,l),!0}return!1}function Pc(e,t,n,l){if(l={lane:2,revertLane:Au(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},yi(e)){if(t)throw Error(i(479))}else t=dc(e,n,l,2),t!==null&&Ht(t,e,2)}function yi(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function ih(e,t){er=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}var no={readContext:yt,use:hi,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};no.useEffectEvent=nt;var ch={readContext:yt,use:hi,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Qm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gi(4194308,4,Jm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){gi(4,2,e,t)},useMemo:function(e,t){var n=_t();t=t===void 0?null:t;var l=e();if(hl){dn(!0);try{e()}finally{dn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=_t();if(n!==void 0){var s=n(t);if(hl){dn(!0);try{n(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=l1.bind(null,Ee,e),[l.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=qc(e);var t=e.queue,n=oh.bind(null,Ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xc,useDeferredValue:function(e,t){var n=_t();return Qc(n,e,t)},useTransition:function(){var e=qc(!1);return e=th.bind(null,Ee,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ee,s=_t();if(De){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qe===null)throw Error(i(349));(Oe&127)!==0||Om(l,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Qm(Dm.bind(null,l,c,e),[e]),l.flags|=2048,nr(9,{destroy:void 0},Mm.bind(null,l,c,n,t),null),n},useId:function(){var e=_t(),t=Qe.identifierPrefix;if(De){var n=Cn,l=Nn;n=(l&~(1<<32-wt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=di++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Fx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Kc,useFormState:Ym,useActionState:Ym,useOptimistic:function(e){var t=_t();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Pc.bind(null,Ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:Hc,useCacheRefresh:function(){return _t().memoizedState=a1.bind(null,Ee)},useEffectEvent:function(e){var t=_t(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Jc={readContext:yt,use:hi,useCallback:Im,useContext:yt,useEffect:$c,useImperativeHandle:Fm,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:pi,useRef:Xm,useState:function(){return pi(Pn)},useDebugValue:Xc,useDeferredValue:function(e,t){var n=rt();return eh(n,qe.memoizedState,e,t)},useTransition:function(){var e=pi(Pn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:eo(e),t]},useSyncExternalStore:_m,useId:lh,useHostTransitionStatus:Kc,useFormState:qm,useActionState:qm,useOptimistic:function(e,t){var n=rt();return km(n,qe,e,t)},useMemoCache:Hc,useCacheRefresh:rh};Jc.useEffectEvent=Zm;var uh={readContext:yt,use:hi,useCallback:Im,useContext:yt,useEffect:$c,useImperativeHandle:Fm,useInsertionEffect:Km,useLayoutEffect:Pm,useMemo:Wm,useReducer:Yc,useRef:Xm,useState:function(){return Yc(Pn)},useDebugValue:Xc,useDeferredValue:function(e,t){var n=rt();return qe===null?Qc(n,e,t):eh(n,qe.memoizedState,e,t)},useTransition:function(){var e=Yc(Pn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:eo(e),t]},useSyncExternalStore:_m,useId:lh,useHostTransitionStatus:Kc,useFormState:$m,useActionState:$m,useOptimistic:function(e,t){var n=rt();return qe!==null?km(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Hc,useCacheRefresh:rh};uh.useEffectEvent=Zm;function Fc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ic={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Kt(),s=Sa(l);s.payload=t,n!=null&&(s.callback=n),t=wa(e,s,l),t!==null&&(Ht(t,e,l),Jr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Kt(),s=Sa(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=wa(e,s,l),t!==null&&(Ht(t,e,l),Jr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),l=Sa(n);l.tag=2,t!=null&&(l.callback=t),t=wa(e,l,n),t!==null&&(Ht(t,e,n),Jr(t,e,n))}};function fh(e,t,n,l,s,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!qr(n,l)||!qr(s,c):!0}function dh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Ic.enqueueReplaceState(t,t.state,null)}function pl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=m({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function mh(e){Jo(e)}function hh(e){console.error(e)}function ph(e){Jo(e)}function bi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function gh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Wc(e,t,n){return n=Sa(n),n.tag=3,n.payload={element:null},n.callback=function(){bi(e,t)},n}function vh(e){return e=Sa(e),e.tag=3,e}function yh(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){gh(t,n,l)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gh(t,n,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 r1(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Kl(t,n,s,!0),n=$t.current,n!==null){switch(n.tag){case 31:case 13:return on===null?Mi():n.alternate===null&&at===0&&(at=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===oi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Nu(e,l,s)),!1;case 22:return n.flags|=65536,l===oi?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Nu(e,l,s)),!1}throw Error(i(435,n.tag))}return Nu(e,l,s),Mi(),!1}if(De)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==yc&&(e=Error(i(422),{cause:l}),Xr(nn(e,n)))):(l!==yc&&(t=Error(i(423),{cause:l}),Xr(nn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=nn(l,n),s=Wc(e.stateNode,l,s),_c(e,s),at!==4&&(at=2)),!1;var c=Error(i(520),{cause:l});if(c=nn(c,n),uo===null?uo=[c]:uo.push(c),at!==4&&(at=2),t===null)return!0;l=nn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Wc(n.stateNode,l,e),_c(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ra===null||!Ra.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=vh(s),yh(s,e,n,l),_c(n,s),!1}n=n.return}while(n!==null);return!1}var eu=Error(i(461)),st=!1;function bt(e,t,n,l){t.child=e===null?wm(t,null,n,l):ml(t,e.child,n,l)}function bh(e,t,n,l,s){n=n.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 cl(t),l=kc(e,t,n,g,c,s),S=Lc(),e!==null&&!st?(Uc(e,t,s),Jn(e,t,s)):(De&&S&&gc(t),t.flags|=1,bt(e,t,l,s),t.child)}function xh(e,t,n,l,s){if(e===null){var c=n.type;return typeof c=="function"&&!mc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Sh(e,t,c,l,s)):(e=ei(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!su(e,s)){var g=c.memoizedProps;if(n=n.compare,n=n!==null?n:qr,n(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,n,l,s){if(e!==null){var c=e.memoizedProps;if(qr(c,l)&&e.ref===t.ref)if(st=!1,t.pendingProps=l=c,su(e,s))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Jn(e,t,s)}return tu(e,t,n,l,s)}function wh(e,t,n,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|n:n,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,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&li(t,c!==null?c.cachePool:null),c!==null?Cm(t,c):Mc(),Tm(t);else return l=t.lanes=536870912,Eh(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(li(t,c.cachePool),Cm(t,c),Na(),t.memoizedState=null):(e!==null&&li(t,null),Mc(),Na());return bt(e,t,s,n),t.child}function ao(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,n,l,s){var c=Cc();return c=c===null?null:{parent:ot._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&li(t,null),Mc(),Tm(t),e!==null&&Kl(e,t,l,!0),t.childLanes=s,null}function xi(e,t){return t=wi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Nh(e,t,n){return ml(t,e.child,null,n),e=xi(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function o1(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(l.mode==="hidden")return e=xi(t,l),t.lanes=536870912,ao(null,e);if(jc(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:Cn}:null,retryLane:536870912,hydrationErrors:null},n=im(e),n.return=t,t.child=n,vt=t,Ze=null)):e=null,e===null)throw ya(t);return t.lanes=536870912,null}return xi(t,l)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(jc(t),s)if(t.flags&256)t.flags&=-257,t=Nh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(st||Kl(e,t,n,!1),s=(n&e.childLanes)!==0,st||s){if(l=Qe,l!==null&&(g=Dt(l,n),g!==0&&g!==c.retryLane))throw c.retryLane=g,rl(e,g),Ht(l,e,g),eu;Mi(),t=Nh(e,t,n)}else e=c.treeContext,Ze=sn(g.nextSibling),vt=t,De=!0,va=null,rn=!1,e!==null&&um(t,e),t=xi(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 Si(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function tu(e,t,n,l,s){return cl(t),n=kc(e,t,n,l,void 0,s),l=Lc(),e!==null&&!st?(Uc(e,t,s),Jn(e,t,s)):(De&&l&&gc(t),t.flags|=1,bt(e,t,n,s),t.child)}function Ch(e,t,n,l,s,c){return cl(t),t.updateQueue=null,n=Rm(t,l,n,s),Am(e),l=Lc(),e!==null&&!st?(Uc(e,t,c),Jn(e,t,c)):(De&&l&&gc(t),t.flags|=1,bt(e,t,n,c),t.child)}function Th(e,t,n,l,s){if(cl(t),t.stateNode===null){var c=$l,g=n.contextType;typeof g=="object"&&g!==null&&(c=yt(g)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ic,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Ac(t),g=n.contextType,c.context=typeof g=="object"&&g!==null?yt(g):$l,c.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Fc(t,n,g,l),c.state=t.memoizedState),typeof n.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&&Ic.enqueueReplaceState(c,c.state,null),Ir(t,l,c,s),Fr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,A=pl(n,S);c.props=A;var L=c.context,$=n.contextType;g=$l,typeof $=="object"&&$!==null&&(g=yt($));var K=n.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,Ir(t,l,c,s),Fr(),L=t.memoizedState,S||U!==L||xa?(typeof K=="function"&&(Fc(t,n,K,l),L=t.memoizedState),(A=xa||fh(t,n,A,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=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,Rc(e,t),g=t.memoizedProps,$=pl(n,g),c.props=$,K=t.pendingProps,U=c.context,L=n.contextType,A=$l,typeof L=="object"&&L!==null&&(A=yt(L)),S=n.getDerivedStateFromProps,(L=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==K||U!==A)&&dh(t,c,l,A),xa=!1,U=t.memoizedState,c.state=U,Ir(t,l,c,s),Fr();var H=t.memoizedState;g!==K||U!==H||xa||e!==null&&e.dependencies!==null&&ni(e.dependencies)?(typeof S=="function"&&(Fc(t,n,S,l),H=t.memoizedState),($=xa||fh(t,n,$,l,U,H,A)||e!==null&&e.dependencies!==null&&ni(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,H,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,H,A)),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=A,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,Si(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=ml(t,e.child,null,s),t.child=ml(t,null,n,s)):bt(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Jn(e,t,s),e}function Ah(e,t,n,l){return il(),t.flags|=256,bt(e,t,n,l),t.child}var nu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function au(e){return{baseLanes:e,cachePool:gm()}}function lu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Rh(e,t,n){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(De){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:Cn}:null,retryLane:536870912,hydrationErrors:null},n=im(e),n.return=t,t.child=n,vt=t,Ze=null)):e=null,e===null)throw ya(t);return Vu(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,s?(Na(),s=t.mode,S=wi({mode:"hidden",children:S},s),l=ol(l,s,n,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=au(n),l.childLanes=lu(e,g,n),t.memoizedState=nu,ao(null,l)):(Ea(t),ru(t,S))}var A=e.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(c)t.flags&256?(Ea(t),t.flags&=-257,t=ou(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),S=l.fallback,s=t.mode,l=wi({mode:"visible",children:l.children},s),S=ol(S,s,n,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,ml(t,e.child,null,n),l=t.child,l.memoizedState=au(n),l.childLanes=lu(e,g,n),t.memoizedState=nu,t=ao(null,l));else if(Ea(t),Vu(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var L=g.dgst;g=L,l=Error(i(419)),l.stack="",l.digest=g,Xr({value:l,source:null,stack:null}),t=ou(e,t,n)}else if(st||Kl(e,t,n,!1),g=(n&e.childLanes)!==0,st||g){if(g=Qe,g!==null&&(l=Dt(g,n),l!==0&&l!==A.retryLane))throw A.retryLane=l,rl(e,l),Ht(g,e,l),eu;Hu(S)||Mi(),t=ou(e,t,n)}else Hu(S)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ze=sn(S.nextSibling),vt=t,De=!0,va=null,rn=!1,e!==null&&um(t,e),t=ru(t,l.children),t.flags|=4096);return t}return s?(Na(),S=l.fallback,s=t.mode,A=e.child,L=A.sibling,l=$n(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,L!==null?S=$n(L,S):(S=ol(S,s,n,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,ao(null,l),l=t.child,S=e.child.memoizedState,S===null?S=au(n):(s=S.cachePool,s!==null?(A=ot._currentValue,s=s.parent!==A?{parent:A,pool:A}:s):s=gm(),S={baseLanes:S.baseLanes|n,cachePool:s}),l.memoizedState=S,l.childLanes=lu(e,g,n),t.memoizedState=nu,ao(e.child,l)):(Ea(t),n=e.child,e=n.sibling,n=$n(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function ru(e,t){return t=wi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wi(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function ou(e,t,n){return ml(t,e.child,null,n),e=ru(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _h(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Sc(e.return,t,n)}function iu(e,t,n,l,s,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=n,g.tailMode=s,g.treeForkCount=c)}function Oh(e,t,n){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,n),l=De?$r:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_h(e,n,t);else if(e.tag===19)_h(e,n,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(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&ui(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),iu(t,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&ui(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}iu(t,!0,n,null,c,l);break;case"together":iu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Kl(e,t,n,!1),(n&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,n=$n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function su(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ni(e)))}function i1(e,t,n){switch(t.tag){case 3:re(t,t.stateNode.containerInfo),ba(t,ot,e.memoizedState.cache),il();break;case 27:case 5:Te(t);break;case 4:re(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,jc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ea(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Rh(e,t,n):(Ea(t),e=Jn(e,t,n),e!==null?e.sibling:null);Ea(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Kl(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return Oh(e,t,n);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,n,t.pendingProps);case 24:ba(t,ot,e.memoizedState.cache)}return Jn(e,t,n)}function Mh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!su(e,n)&&(t.flags&128)===0)return st=!1,i1(e,t,n);st=(e.flags&131072)!==0}else st=!1,De&&(t.flags&1048576)!==0&&cm(t,$r,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=fl(t.elementType),t.type=e,typeof e=="function")mc(e)?(l=pl(e,l),t.tag=1,t=Th(null,t,e,l,n)):(t.tag=0,t=tu(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===B){t.tag=11,t=bh(null,t,e,l,n);break e}else if(s===q){t.tag=14,t=xh(null,t,e,l,n);break e}}throw t=ge(e)||e,Error(i(306,t,""))}}return t;case 0:return tu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=pl(l,t.pendingProps),Th(e,t,l,s,n);case 3:e:{if(re(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,Rc(e,t),Ir(t,l,null,n);var g=t.memoizedState;if(l=g.cache,ba(t,ot,l),l!==c.cache&&wc(t,[ot],n,!0),Fr(),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,n);break e}else if(l!==s){s=nn(Error(i(424)),t),Xr(s),t=Ah(e,t,l,n);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,De=!0,va=null,rn=!0,n=wm(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(il(),l===s){t=Jn(e,t,n);break e}bt(e,t,l,n)}t=t.child}return t;case 26:return Si(e,t),e===null?(n=qp(t.type,null,t.pendingProps,null))?t.memoizedState=n:De||(n=t.type,e=t.pendingProps,l=Bi(ne.current).createElement(n),l[gt]=t,l[jt]=e,xt(l,n,e),ht(l),t.stateNode=l):t.memoizedState=qp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&De&&(l=t.stateNode=Hp(t.type,t.pendingProps,ne.current),vt=t,rn=!0,s=Ze,Da(t.type)?(Yu=s,Ze=sn(l.firstChild)):Ze=s),bt(e,t,t.pendingProps.children,n),Si(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((s=l=Ze)&&(l=U1(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)),Te(t),s=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,Lu(s,c)?l=null:g!==null&&Lu(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=kc(e,t,Ix,null,null,n),bo._currentValue=s),Si(e,t),bt(e,t,l,n),t.child;case 6:return e===null&&De&&((e=n=Ze)&&(n=B1(n,t.pendingProps,rn),n!==null?(t.stateNode=n,vt=t,Ze=null,e=!0):e=!1),e||ya(t)),null;case 13:return Rh(e,t,n);case 4:return re(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ml(t,null,l,n):bt(e,t,l,n),t.child;case 11:return bh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,ba(t,t.type,l.value),bt(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,cl(t),s=yt(s),l=l(s),t.flags|=1,bt(e,t,l,n),t.child;case 14:return xh(e,t,t.type,t.pendingProps,n);case 15:return Sh(e,t,t.type,t.pendingProps,n);case 19:return Oh(e,t,n);case 31:return o1(e,t,n);case 22:return wh(e,t,n,t.pendingProps);case 24:return cl(t),l=yt(ot),e===null?(s=Cc(),s===null&&(s=Qe,c=Ec(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:l,cache:s},Ac(t),ba(t,ot,s)):((e.lanes&n)!==0&&(Rc(e,t),Ir(t,null,null,n),Fr()),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&&wc(t,[ot],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Fn(e){e.flags|=4}function cu(e,t,n,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 dl=oi,Tc}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 dl=oi,Tc}function Ei(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Et():536870912,e.lanes|=t,or|=t)}function lo(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.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,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=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;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function s1(e,t,n){var l=t.pendingProps;switch(vc(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 n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Zn(ot),ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Zl(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bc())),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),cu(t,s,null,l,n))):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),cu(t,s,e,l,n)),null;case 27:if(we(t),n=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,Zl(t)?fm(t):(e=Hp(s,l,n),t.stateNode=e,Fn(t))}return Ke(t),null;case 5:if(we(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,Zl(t))fm(t);else{var g=Bi(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),cu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),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,Zl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=vt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Rp(e.nodeValue,n)),e||ya(t,!0)}else e=Bi(e).createTextNode(l),e[gt]=t,t.stateNode=e}return Ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Zl(t),n!==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 il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else n=bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),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=Zl(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 il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),s=!1}else s=bc(),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=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(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)),n!==e&&n&&(t.child.flags|=8192),Ei(t,t.updateQueue),Ke(t),null);case 4:return ie(),e===null&&Mu(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)lo(l,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ui(e),c!==null){for(t.flags|=128,lo(l,!1),e=c.updateQueue,t.updateQueue=e,Ei(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)om(n,e),n=n.sibling;return X(lt,lt.current&1|2),De&&Xn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&At()>Ri&&(t.flags|=128,s=!0,lo(l,!1),t.lanes=4194304)}else{if(!s)if(e=ui(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ei(t,e),lo(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!De)return Ke(t),null}else 2*At()-l.renderingStartTime>Ri&&n!==536870912&&(t.flags|=128,s=!0,lo(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,n=lt.current,X(lt,s?n&1|2:n&1),De&&Xn(t,l.treeForkCount),e):(Ke(t),null);case 22:case 23:return Xt(t),Dc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),n=t.updateQueue,n!==null&&Ei(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(ul),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zn(ot),Ke(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function c1(e,t){switch(vc(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 we(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(i(340));il()}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));il()}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),Dc(),e!==null&&G(ul),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(vc(t),t.tag){case 3:Zn(ot),ie();break;case 26:case 27:case 5:we(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),Dc(),e!==null&&G(ul);break;case 24:Zn(ot)}}function ro(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var c=n.create,g=n.inst;l=c(),g.destroy=l}n=n.next}while(n!==s)}}catch(S){Ye(t,t.return,S)}}function Ca(e,t,n){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 A=n,L=S;try{L()}catch($){Ye(s,A,$)}}}l=l.next}while(l!==c)}}catch($){Ye(t,t.return,$)}}function zh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Nm(t,n)}catch(l){Ye(e,e.return,l)}}}function kh(e,t,n){n.props=pl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ye(e,t,l)}}function oo(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Ye(e,t,s)}}function Tn(e,t){var n=e.ref,l=e.refCleanup;if(n!==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 n=="function")try{n(null)}catch(s){Ye(e,t,s)}else n.current=null}function Lh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Ye(e,e.return,s)}}function uu(e,t,n){try{var l=e.stateNode;M1(l,e.type,n,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 fu(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 du(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qn));else if(l!==4&&(l===27&&Da(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(du(e,t,n),e=e.sibling;e!==null;)du(e,t,n),e=e.sibling}function Ni(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Da(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ni(e,t,n),e=e.sibling;e!==null;)Ni(e,t,n),e=e.sibling}function Bh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);xt(t,l,n),t[gt]=e,t[jt]=n}catch(c){Ye(e,e.return,c)}}var In=!1,ct=!1,mu=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,pt=null;function u1(e,t){if(e=e.containerInfo,zu=Xi,e=Fd(e),oc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var g=0,S=-1,A=-1,L=0,$=0,K=e,U=null;t:for(;;){for(var H;K!==n||s!==0&&K.nodeType!==3||(S=g+s),K!==c||l!==0&&K.nodeType!==3||(A=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===n&&++L===s&&(S=g),U===c&&++$===l&&(A=g),(H=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=H}n=S===-1||A===-1?null:{start:S,end:A}}else n=null}n=n||{start:0,end:0}}else n=null;for(ku={focusedElem:e,selectionRange:n},Xi=!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(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var oe=pl(n.type,s);e=l.getSnapshotBeforeUpdate(oe,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Ye(n,n.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Bu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bu(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,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:ea(e,n),l&4&&ro(5,n);break;case 1:if(ea(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Ye(n,n.return,g)}else{var s=pl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ye(n,n.return,g)}}l&64&&zh(n),l&512&&oo(n,n.return);break;case 3:if(ea(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Nm(e,t)}catch(g){Ye(n,n.return,g)}}break;case 27:t===null&&l&4&&Bh(n);case 26:case 5:ea(e,n),t===null&&l&4&&Lh(n),l&512&&oo(n,n.return);break;case 12:ea(e,n);break;case 31:ea(e,n),l&4&&Gh(e,n);break;case 13:ea(e,n),l&4&&$h(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=b1.bind(null,n),H1(e,n))));break;case 22:if(l=n.memoizedState!==null||In,!l){t=t!==null&&t.memoizedState!==null||ct,s=In;var c=ct;In=l,(ct=t)&&!c?ta(e,n,(n.subtreeFlags&8772)!==0):ea(e,n),In=s,ct=c}break;case 30:break;default:ea(e,n)}}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&&Gs(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 Je=null,kt=!1;function Wn(e,t,n){for(n=n.child;n!==null;)qh(e,t,n),n=n.sibling}function qh(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Ia,n)}catch{}switch(n.tag){case 26:ct||Tn(n,t),Wn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ct||Tn(n,t);var l=Je,s=kt;Da(n.type)&&(Je=n.stateNode,kt=!1),Wn(e,t,n),go(n.stateNode),Je=l,kt=s;break;case 5:ct||Tn(n,t);case 6:if(l=Je,s=kt,Je=null,Wn(e,t,n),Je=l,kt=s,Je!==null)if(kt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(n.stateNode)}catch(c){Ye(n,t,c)}else try{Je.removeChild(n.stateNode)}catch(c){Ye(n,t,c)}break;case 18:Je!==null&&(kt?(e=Je,zp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),hr(e)):zp(Je,n.stateNode));break;case 4:l=Je,s=kt,Je=n.stateNode.containerInfo,kt=!0,Wn(e,t,n),Je=l,kt=s;break;case 0:case 11:case 14:case 15:Ca(2,n,t),ct||Ca(4,n,t),Wn(e,t,n);break;case 1:ct||(Tn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&kh(n,t,l)),Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:ct=(l=ct)||n.memoizedState!==null,Wn(e,t,n),ct=l;break;default:Wn(e,t,n)}}function Gh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hr(e)}catch(n){Ye(t,t.return,n)}}}function $h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hr(e)}catch(n){Ye(t,t.return,n)}}function f1(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 n=f1(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=x1.bind(null,e,l);l.then(s,s)}})}function Lt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(Da(S.type)){Je=S.stateNode,kt=!1;break e}break;case 5:Je=S.stateNode,kt=!1;break e;case 3:case 4:Je=S.stateNode.containerInfo,kt=!0;break e}S=S.return}if(Je===null)throw Error(i(160));qh(c,g,s),Je=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 n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),Ut(e),l&4&&(Ca(3,e,e.return),ro(3,e),Ca(5,e,e.return));break;case 1:Lt(t,e),Ut(e),l&512&&(ct||n===null||Tn(n,n.return)),l&64&&In&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=pn;if(Lt(t,e),Ut(e),l&512&&(ct||n===null||Tn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[jr]||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,n),c[gt]=e,ht(c),l=c;break e;case"link":var g=Xp("link","href",s).get(l+(n.href||""));if(g){for(var S=0;S<g.length;S++)if(c=g[S],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(S,1);break t}}c=s.createElement(l),xt(c,l,n),s.head.appendChild(c);break;case"meta":if(g=Xp("meta","content",s).get(l+(n.content||""))){for(S=0;S<g.length;S++)if(c=g[S],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(S,1);break t}}c=s.createElement(l),xt(c,l,n),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?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Qp(s,e.type,e.stateNode):$p(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&uu(e,e.memoizedProps,n.memoizedProps)}break;case 27:Lt(t,e),Ut(e),l&512&&(ct||n===null||Tn(n,n.return)),n!==null&&l&4&&uu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Lt(t,e),Ut(e),l&512&&(ct||n===null||Tn(n,n.return)),e.flags&32){s=e.stateNode;try{Ul(s,"")}catch(oe){Ye(e,e.return,oe)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,uu(e,s,n!==null?n.memoizedProps:s)),l&1024&&(mu=!0);break;case 6:if(Lt(t,e),Ut(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(oe){Ye(e,e.return,oe)}}break;case 3:if(Yi=null,s=pn,pn=Hi(t.containerInfo),Lt(t,e),pn=s,Ut(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{hr(t.containerInfo)}catch(oe){Ye(e,e.return,oe)}mu&&(mu=!1,Qh(e));break;case 4:l=pn,pn=Hi(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!=(n!==null&&n.memoizedState!==null)&&(Ai=At()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 22:s=e.memoizedState!==null;var A=n!==null&&n.memoizedState!==null,L=In,$=ct;if(In=L||s,ct=$||A,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&&(n===null||A||In||ct||gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){A=n=t;try{if(c=A.stateNode,s)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=A.stateNode;var K=A.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(oe){Ye(A,A.return,oe)}}}else if(t.tag===6){if(n===null){A=t;try{A.stateNode.nodeValue=s?"":A.memoizedProps}catch(oe){Ye(A,A.return,oe)}}}else if(t.tag===18){if(n===null){A=t;try{var H=A.stateNode;s?kp(H,!0):kp(A.stateNode,!1)}catch(oe){Ye(A,A.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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ci(e,n))));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 n,l=e.return;l!==null;){if(Uh(l)){n=l;break}l=l.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var s=n.stateNode,c=fu(e);Ni(e,c,s);break;case 5:var g=n.stateNode;n.flags&32&&(Ul(g,""),n.flags&=-33);var S=fu(e);Ni(e,S,g);break;case 3:case 4:var A=n.stateNode.containerInfo,L=fu(e);du(e,L,A);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 gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ca(4,t,t.return),gl(t);break;case 1:Tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&kh(t,t.return,n),gl(t);break;case 27:go(t.stateNode);case 26:case 5:Tn(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function ta(e,t,n){for(n=n&&(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,n),ro(4,c);break;case 1:if(ta(s,c,n),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 A=s.shared.hiddenCallbacks;if(A!==null)for(s.shared.hiddenCallbacks=null,s=0;s<A.length;s++)Em(A[s],S)}catch(L){Ye(l,l.return,L)}}n&&g&64&&zh(c),oo(c,c.return);break;case 27:Bh(c);case 26:case 5:ta(s,c,n),n&&l===null&&g&4&&Lh(c),oo(c,c.return);break;case 12:ta(s,c,n);break;case 31:ta(s,c,n),n&&g&4&&Gh(s,c);break;case 13:ta(s,c,n),n&&g&4&&$h(s,c);break;case 22:c.memoizedState===null&&ta(s,c,n),oo(c,c.return);break;case 30:break;default:ta(s,c,n)}t=t.sibling}}function hu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Qr(n))}function pu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qr(e))}function gn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zh(e,t,n,l),t=t.sibling}function Zh(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,n,l),s&2048&&ro(9,t);break;case 1:gn(e,t,n,l);break;case 3:gn(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qr(e)));break;case 12:if(s&2048){gn(e,t,n,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(A){Ye(t,t.return,A)}}else gn(e,t,n,l);break;case 31:gn(e,t,n,l);break;case 13:gn(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?gn(e,t,n,l):io(e,t):c._visibility&2?gn(e,t,n,l):(c._visibility|=2,ar(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&hu(g,t);break;case 24:gn(e,t,n,l),s&2048&&pu(t.alternate,t);break;default:gn(e,t,n,l)}}function ar(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,S=n,A=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:ar(c,g,S,A,s),ro(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?ar(c,g,S,A,s):io(c,g):($._visibility|=2,ar(c,g,S,A,s)),s&&L&2048&&hu(g.alternate,g);break;case 24:ar(c,g,S,A,s),s&&L&2048&&pu(g.alternate,g);break;default:ar(c,g,S,A,s)}t=t.sibling}}function io(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:io(n,l),s&2048&&hu(l.alternate,l);break;case 24:io(n,l),s&2048&&pu(l.alternate,l);break;default:io(n,l)}t=t.sibling}}var so=8192;function lr(e,t,n){if(e.subtreeFlags&so)for(e=e.child;e!==null;)Kh(e,t,n),e=e.sibling}function Kh(e,t,n){switch(e.tag){case 26:lr(e,t,n),e.flags&so&&e.memoizedState!==null&&F1(n,pn,e.memoizedState,e.memoizedProps);break;case 5:lr(e,t,n);break;case 3:case 4:var l=pn;pn=Hi(e.stateNode.containerInfo),lr(e,t,n),pn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=so,so=16777216,lr(e,t,n),so=l):lr(e,t,n));break;default:lr(e,t,n)}}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 co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];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:co(e),e.flags&2048&&Ca(9,e,e.return);break;case 3:co(e);break;case 12:co(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ti(e)):co(e);break;default:co(e)}}function Ti(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];pt=l,Fh(l,e)}Ph(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ca(8,t,t.return),Ti(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ti(t));break;default:Ti(t)}e=e.sibling}}function Fh(e,t){for(;pt!==null;){var n=pt;switch(n.tag){case 0:case 11:case 15:Ca(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Qr(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,pt=l;else e:for(n=e;pt!==null;){l=pt;var s=l.sibling,c=l.return;if(Yh(l),l===n){pt=null;break e}if(s!==null){s.return=c,pt=s;break e}pt=c}}}var d1={getCacheForType:function(e){var t=yt(ot),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return yt(ot).controller.signal}},m1=typeof WeakMap=="function"?WeakMap:Map,He=0,Qe=null,Re=null,Oe=0,Ve=0,Qt=null,Ta=!1,rr=!1,gu=!1,na=0,at=0,Aa=0,vl=0,vu=0,Zt=0,or=0,uo=null,Bt=null,yu=!1,Ai=0,Ih=0,Ri=1/0,_i=null,Ra=null,ut=0,_a=null,ir=null,aa=0,bu=0,xu=null,Wh=null,fo=0,Su=null;function Kt(){return(He&2)!==0&&Oe!==0?Oe&-Oe:O.T!==null?Au():Ys()}function ep(){if(Zt===0)if((Oe&536870912)===0||De){var e=_l;_l<<=1,(_l&3932160)===0&&(_l=262144),Zt=e}else Zt=536870912;return e=$t.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,n){(e===Qe&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(sr(e,0),Oa(e,Oe,Zt,!1)),et(e,n),((He&2)===0||e!==Qe)&&(e===Qe&&((He&2)===0&&(vl|=n),at===4&&Oa(e,Oe,Zt,!1)),An(e))}function tp(e,t,n){if((He&6)!==0)throw Error(i(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pe(e,t),s=l?g1(e,t):Eu(e,t,!0),c=l;do{if(s===0){rr&&!l&&Oa(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!h1(n)){s=Eu(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=uo;var A=S.current.memoizedState.isDehydrated;if(A&&(sr(S,g).flags|=256),g=Eu(S,g,!1),g!==2){if(gu&&!A){S.errorRecoveryDisabledLanes|=c,vl|=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){sr(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,!Ta);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Ai+300-At(),10<s)){if(Oa(l,t,Zt,!Ta),be(l,0,!0)!==0)break e;aa=t,l.timeoutHandle=Dp(np.bind(null,l,n,Bt,_i,yu,t,Zt,vl,or,Ta,c,"Throttled",-0,0),s);break e}np(l,n,Bt,_i,yu,t,Zt,vl,or,Ta,c,null,-0,0)}}break}while(!0);An(e)}function np(e,t,n,l,s,c,g,S,A,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?Ai-At():(c&4194048)===c?Ih-At():0;if(oe=I1(K,oe),oe!==null){aa=c,e.cancelPendingCommit=oe(up.bind(null,e,t,c,n,l,s,g,S,A,$,K,null,U,H)),Oa(e,c,g,!L);return}}up(e,t,c,n,l,s,g,S,A)}function h1(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],c=s.getSnapshot;s=s.value;try{if(!qt(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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,n,l){t&=~vu,t&=~vl,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}n!==0&&el(e,n,t)}function Oi(){return(He&6)===0?(mo(0),!1):!0}function wu(){if(Re!==null){if(Ve===0)var e=Re.return;else e=Re,Qn=sl=null,Bc(e),Il=null,Kr=0,e=Re;for(;e!==null;)jh(e.alternate,e),e=e.return;Re=null}}function sr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,z1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),aa=0,wu(),Qe=e,Re=n=$n(e.current,null),Oe=t,Ve=0,Qt=null,Ta=!1,rr=Pe(e,t),gu=!1,or=Zt=vu=vl=Aa=at=0,Bt=uo=null,yu=!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,Fo(),n}function ap(e,t){Ee=null,O.H=no,t===Fl||t===ri?(t=bm(),Ve=3):t===Tc?(t=bm(),Ve=4):Ve=t===eu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Re===null&&(at=1,bi(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=no,e===null?no:e}function op(){var e=O.A;return O.A=d1,e}function Mi(){at=4,Ta||(Oe&4194048)!==Oe&&$t.current!==null||(rr=!0),(Aa&134217727)===0&&(vl&134217727)===0||Qe===null||Oa(Qe,Oe,Zt,!1)}function Eu(e,t,n){var l=He;He|=2;var s=rp(),c=op();(Qe!==e||Oe!==t)&&(_i=null,sr(e,t)),t=!1;var g=at;e:do try{if(Ve!==0&&Re!==null){var S=Re,A=Qt;switch(Ve){case 8:wu(),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,cr(e,S,A,L),n&&rr){g=0;break e}break;default:L=Ve,Ve=0,Qt=null,cr(e,S,A,L)}}p1(),g=at;break}catch($){ap(e,$)}while(!0);return t&&e.shellSuspendCounter++,Qn=sl=null,He=l,O.H=s,O.A=c,Re===null&&(Qe=null,Oe=0,Fo()),g}function p1(){for(;Re!==null;)ip(Re)}function g1(e,t){var n=He;He|=2;var l=rp(),s=op();Qe!==e||Oe!==t?(_i=null,Ri=At()+500,sr(e,t)):rr=Pe(e,t);e:do try{if(Ve!==0&&Re!==null){t=Re;var c=Qt;t:switch(Ve){case 1:Ve=0,Qt=null,cr(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,cr(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 A=S.sibling;if(A!==null)Re=A;else{var L=S.return;L!==null?(Re=L,Di(L)):Re=null}break t}}Ve=0,Qt=null,cr(e,t,c,5);break;case 6:Ve=0,Qt=null,cr(e,t,c,6);break;case 8:wu(),at=6;break e;default:throw Error(i(462))}}v1();break}catch($){ap(e,$)}while(!0);return Qn=sl=null,O.H=l,O.A=s,He=n,Re!==null?0:(Qe=null,Oe=0,Fo(),at)}function v1(){for(;Re!==null&&!Tt();)ip(Re)}function ip(e){var t=Mh(e.alternate,e,na);e.memoizedProps=e.pendingProps,t===null?Di(e):Re=t}function sp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ch(n,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Ch(n,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Bc(t);default:jh(n,t),t=Re=om(t,na),t=Mh(n,t,na)}e.memoizedProps=e.pendingProps,t===null?Di(e):Re=t}function cr(e,t,n,l){Qn=sl=null,Bc(t),Il=null,Kr=0;var s=t.return;try{if(r1(e,s,t,n,Oe)){at=1,bi(e,nn(n,e.current)),Re=null;return}}catch(c){if(s!==null)throw Re=s,c;at=1,bi(e,nn(n,e.current)),Re=null;return}t.flags&32768?(De||l===1?e=!0:rr||(Oe&536870912)!==0?e=!1:(Ta=e=!0,(l===2||l===9||l===3||l===6)&&(l=$t.current,l!==null&&l.tag===13&&(l.flags|=16384))),cp(t,e)):Di(t)}function Di(e){var t=e;do{if((t.flags&32768)!==0){cp(t,Ta);return}e=t.return;var n=s1(t.alternate,t,na);if(n!==null){Re=n;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 n=c1(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);at=6,Re=null}function up(e,t,n,l,s,c,g,S,A){e.cancelPendingCommit=null;do ji();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|=fc,Ot(e,n,c,g,S,A),e===Qe&&(Re=Qe=null,Oe=0),ir=t,_a=e,aa=n,bu=c,xu=s,Wh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,S1(Fa,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{u1(e,t,n)}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=ir,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var l=Y.p;Y.p=2;var s=He;He|=4;try{Xh(t,e);var c=ku,g=Fd(e.containerInfo),S=c.focusedElem,A=c.selectionRange;if(g!==S&&S&&S.ownerDocument&&Jd(S.ownerDocument.documentElement,S)){if(A!==null&&oc(S)){var L=A.start,$=A.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(A.start,oe),$e=A.end===void 0?ye:Math.min(A.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}}Xi=!!zu,ku=zu=null}finally{He=s,Y.p=l,O.T=n}}e.current=t,ut=2}}function dp(){if(ut===2){ut=0;var e=_a,t=ir,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=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=n}}ut=3}}function mp(){if(ut===4||ut===3){ut=0,fa();var e=_a,t=ir,n=aa,l=Wh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,ir=_a=null,hp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ra=null),mn(n),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Ia,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&&ji(),An(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Su?fo++:(fo=0,Su=e):fo=0,mo(0)}}function hp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qr(t)))}function ji(){return fp(),dp(),mp(),pp()}function pp(){if(ut!==5)return!1;var e=_a,t=bu;bu=0;var n=mn(aa),l=O.T,s=Y.p;try{Y.p=32>n?32:n,O.T=null,n=xu,xu=null;var c=_a,g=aa;if(ut=0,ir=_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,n),He=S,mo(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Ia,c)}catch{}return!0}finally{Y.p=s,O.T=l,hp(e,t)}}function gp(e,t,n){t=nn(n,t),t=Wc(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(et(e,2),An(e))}function Ye(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);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(n,e),n=vh(2),l=wa(t,n,2),l!==null&&(yh(n,l,t,e),et(l,2),An(l));break}}t=t.return}}function Nu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new m1;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(n)||(gu=!0,s.add(n),e=y1.bind(null,e,t,n),t.then(e,e))}function y1(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qe===e&&(Oe&n)===n&&(at===4||at===3&&(Oe&62914560)===Oe&&300>At()-Ai?(He&2)===0&&sr(e,0):vu|=n,or===Oe&&(or=0)),An(e)}function vp(e,t){t===0&&(t=Et()),e=rl(e,t),e!==null&&(et(e,t),An(e))}function b1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function x1(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=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,n)}function S1(e,t){return _r(e,t)}var zi=null,ur=null,Cu=!1,ki=!1,Tu=!1,Ma=0;function An(e){e!==ur&&e.next===null&&(ur===null?zi=ur=e:ur=ur.next=e),ki=!0,Cu||(Cu=!0,E1())}function mo(e,t){if(!Tu&&ki){Tu=!0;do for(var n=!1,l=zi;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&&(n=!0,Sp(l,c))}else c=Oe,c=be(l,l===Qe?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Pe(l,c)||(n=!0,Sp(l,c));l=l.next}while(n);Tu=!1}}function w1(){yp()}function yp(){ki=Cu=!1;var e=0;Ma!==0&&j1()&&(e=Ma);for(var t=At(),n=null,l=zi;l!==null;){var s=l.next,c=bp(l,t);c===0?(l.next=null,n===null?zi=s:n.next=s,s===null&&(ur=n)):(n=l,(e!==0||(c&3)!==0)&&(ki=!0)),l=s}ut!==0&&ut!==5||mo(e),Ma!==0&&(Ma=0)}function bp(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-wt(c),S=1<<g,A=s[g];A===-1?((S&n)===0||(S&l)!==0)&&(s[g]=mt(S,t)):A<=t&&(e.expiredLanes|=S),c&=~S}if(t=Qe,n=Oe,n=be(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Or(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Or(l),mn(n)){case 2:case 8:n=Bo;break;case 32:n=Fa;break;case 268435456:n=Vn;break;default:n=Fa}return l=xp.bind(null,e),n=_r(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Or(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 n=e.callbackNode;if(ji()&&e.callbackNode!==n)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===n?xp.bind(null,e):null)}function Sp(e,t){if(ji())return null;tp(e,t,!0)}function E1(){k1(function(){(He&6)!==0?_r(Ja,w1):yp()})}function Au(){if(Ma===0){var e=Pl;e===0&&(e=Rl,Rl<<=1,(Rl&261888)===0&&(Rl=256)),Ma=e}return Ma}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Go(""+e)}function Ep(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function N1(e,t,n,l,s){if(t==="submit"&&n&&n.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 Zo("action","action",null,l,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ma!==0){var A=g?Ep(s,g):new FormData(s);Zc(n,{pending:!0,data:A,method:s.method,action:c},null,A)}}else typeof c=="function"&&(S.preventDefault(),A=g?Ep(s,g):new FormData(s),Zc(n,{pending:!0,data:A,method:s.method,action:c},c,A))},currentTarget:s}]})}}for(var Ru=0;Ru<uc.length;Ru++){var _u=uc[Ru],C1=_u.toLowerCase(),T1=_u[0].toUpperCase()+_u.slice(1);hn(C1,"on"+T1)}hn(em,"onAnimationEnd"),hn(tm,"onAnimationIteration"),hn(nm,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(qx,"onTransitionRun"),hn(Gx,"onTransitionStart"),hn($x,"onTransitionCancel"),hn(am,"onTransitionEnd"),kl("onMouseEnter",["mouseout","mouseover"]),kl("onMouseLeave",["mouseout","mouseover"]),kl("onPointerEnter",["pointerout","pointerover"]),kl("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ho="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(" "),A1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ho));function Np(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],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],A=S.instance,L=S.currentTarget;if(S=S.listener,A!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=L;try{c(s)}catch($){Jo($)}s.currentTarget=null,c=A}else for(g=0;g<l.length;g++){if(S=l[g],A=S.instance,L=S.currentTarget,S=S.listener,A!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=L;try{c(s)}catch($){Jo($)}s.currentTarget=null,c=A}}}}function _e(e,t){var n=t[qs];n===void 0&&(n=t[qs]=new Set);var l=e+"__bubble";n.has(l)||(Cp(t,e,2,!1),n.add(l))}function Ou(e,t,n){var l=0;t&&(l|=4),Cp(n,e,l,t)}var Li="_reactListening"+Math.random().toString(36).slice(2);function Mu(e){if(!e[Li]){e[Li]=!0,yd.forEach(function(n){n!=="selectionchange"&&(A1.has(n)||Ou(n,!1,e),Ou(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Li]||(t[Li]=!0,Ou("selectionchange",!1,t))}}function Cp(e,t,n,l){switch(eg(t)){case 2:var s=tS;break;case 8:s=nS;break;default:s=Qu}n=s.bind(null,t,n,e),s=void 0,!Fs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Du(e,t,n,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 A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;S!==null;){if(g=Dl(S),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){l=c=g;continue e}S=S.parentNode}}l=l.return}Od(function(){var L=c,$=Ps(n),K=[];e:{var U=lm.get(e);if(U!==void 0){var H=Zo,oe=e;switch(e){case"keypress":if(Xo(n)===0)break e;case"keydown":case"keyup":H=xx;break;case"focusin":oe="focus",H=tc;break;case"focusout":oe="blur",H=tc;break;case"beforeblur":case"afterblur":H=tc;break;case"click":if(n.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=sx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Ex;break;case em:case tm:case nm:H=fx;break;case am:H=Cx;break;case"scroll":case"scrollend":H=ox;break;case"wheel":H=Ax;break;case"copy":case"cut":case"paste":H=mx;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=_x}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=kr(M,z),Q!=null&&ye.push(po(M,Q,k))),$e)break;M=M.return}0<ye.length&&(U=new H(U,oe,null,n,$),K.push({event:U,listeners:ye}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&n!==Ks&&(oe=n.relatedTarget||n.fromElement)&&(Dl(oe)||oe[Ml]))break e;if((H||U)&&(U=$.window===$?$:(U=$.ownerDocument)?U.defaultView||U.parentWindow:window,H?(oe=n.relatedTarget||n.toElement,H=L,oe=oe?Dl(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:zr(H),k=oe==null?U:zr(oe),U=new ye(Q,M+"leave",H,n,$),U.target=$e,U.relatedTarget=k,Q=null,Dl($)===L&&(ye=new ye(z,M+"enter",oe,n,$),ye.target=k,ye.relatedTarget=$e,Q=ye),$e=Q,H&&oe)t:{for(ye=R1,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&&Tp(K,U,H,ye,!1),oe!==null&&$e!==null&&Tp(K,$e,oe,ye,!0)}}e:{if(U=L?zr(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=Hx;else{Le=Ux;var de=Lx}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&Zs(L.elementType)&&(Le=Gd):Le=Bx;if(Le&&(Le=Le(e,L))){qd(K,Le,n,$);break e}de&&de(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&Qs(U,"number",U.value)}switch(de=L?zr(L):window,e){case"focusin":(Yd(de)||de.contentEditable==="true")&&(Yl=de,ic=L,Gr=null);break;case"focusout":Gr=ic=Yl=null;break;case"mousedown":sc=!0;break;case"contextmenu":case"mouseup":case"dragend":sc=!1,Id(K,n,$);break;case"selectionchange":if(Yx)break;case"keydown":case"keyup":Id(K,n,$)}var Ne;if(ac)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 Vl?Hd(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Ld&&n.locale!=="ko"&&(Vl||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Vl&&(Ne=Md()):(pa=$,Is="value"in pa?pa.value:pa.textContent,Vl=!0)),de=Ui(L,Me),0<de.length&&(Me=new zd(Me,e,null,n,$),K.push({event:Me,listeners:de}),Ne?Me.data=Ne:(Ne=Vd(n),Ne!==null&&(Me.data=Ne)))),(Ne=Mx?Dx(e,n):jx(e,n))&&(Me=Ui(L,"onBeforeInput"),0<Me.length&&(de=new zd("onBeforeInput","beforeinput",null,n,$),K.push({event:de,listeners:Me}),de.data=Ne)),N1(K,e,L,n,$)}Np(K,t)})}function po(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ui(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=kr(e,n),s!=null&&l.unshift(po(e,s,c)),s=kr(e,t),s!=null&&l.push(po(e,s,c))),e.tag===3)return l;e=e.return}return[]}function R1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tp(e,t,n,l,s){for(var c=t._reactName,g=[];n!==null&&n!==l;){var S=n,A=S.alternate,L=S.stateNode;if(S=S.tag,A!==null&&A===l)break;S!==5&&S!==26&&S!==27||L===null||(A=L,s?(L=kr(n,c),L!=null&&g.unshift(po(n,L,A))):s||(L=kr(n,c),L!=null&&g.push(po(n,L,A)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var _1=/\r\n?/g,O1=/\u0000|\uFFFD/g;function Ap(e){return(typeof e=="string"?e:""+e).replace(_1,`
|
|
50
|
+
`).replace(O1,"")}function Rp(e,t){return t=Ap(t),Ap(e)===t}function Ge(e,t,n,l,s,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ul(e,""+l);break;case"className":Yo(e,"class",l);break;case"tabIndex":Yo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Yo(e,n,l);break;case"style":Rd(e,l,c);break;case"data":if(t!=="object"){Yo(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Go(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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"&&(n==="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(n);break}l=Go(""+l),e.setAttribute(n,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(n=l.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}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}n=Go(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+l):e.removeAttribute(n);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(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Vo(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":Vo(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=lx.get(n)||n,Vo(e,n,l))}}function ju(e,t,n,l,s,c){switch(n){case"style":Rd(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&Ul(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(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[jt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Vo(e,n,l)}}}function xt(e,t,n){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 n)if(n.hasOwnProperty(c)){var g=n[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,n,null)}}s&&Ge(e,t,"srcSet",n.srcSet,n,null),l&&Ge(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var S=c=g=s=null,A=null,L=null;for(l in n)if(n.hasOwnProperty(l)){var $=n[l];if($!=null)switch(l){case"name":s=$;break;case"type":g=$;break;case"checked":A=$;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,$,n,null)}}Nd(e,c,S,A,L,g,s,!1);return;case"select":_e("invalid",e),l=g=c=null;for(s in n)if(n.hasOwnProperty(s)&&(S=n[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,n,null)}t=c,n=g,e.multiple=!!l,t!=null?Ll(e,!!l,t,!1):n!=null&&Ll(e,!!l,n,!0);return;case"textarea":_e("invalid",e),c=s=l=null;for(g in n)if(n.hasOwnProperty(g)&&(S=n[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,n,null)}Td(e,l,s,c);return;case"option":for(A in n)if(n.hasOwnProperty(A)&&(l=n[A],l!=null))switch(A){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,t,A,l,n,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<ho.length;l++)_e(ho[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 n)if(n.hasOwnProperty(L)&&(l=n[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ge(e,t,L,l,n,null)}return;default:if(Zs(t)){for($ in n)n.hasOwnProperty($)&&(l=n[$],l!==void 0&&ju(e,t,$,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&Ge(e,t,S,l,n,null))}function M1(e,t,n,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,A=null,L=null,$=null;for(H in n){var K=n[H];if(n.hasOwnProperty(H)&&K!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":A=K;default:l.hasOwnProperty(H)||Ge(e,t,H,null,l,K)}}for(var U in l){var H=l[U];if(K=n[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)}}Xs(e,g,S,A,L,$,c,s);return;case"select":H=g=S=U=null;for(c in n)if(A=n[c],n.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":H=A;default:l.hasOwnProperty(c)||Ge(e,t,c,null,l,A)}for(s in l)if(c=l[s],A=n[s],l.hasOwnProperty(s)&&(c!=null||A!=null))switch(s){case"value":U=c;break;case"defaultValue":S=c;break;case"multiple":g=c;default:c!==A&&Ge(e,t,s,c,l,A)}t=S,n=g,l=H,U!=null?Ll(e,!!n,U,!1):!!l!=!!n&&(t!=null?Ll(e,!!n,t,!0):Ll(e,!!n,n?[]:"",!1));return;case"textarea":H=U=null;for(S in n)if(s=n[S],n.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=n[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)}Cd(e,U,H);return;case"option":for(var oe in n)if(U=n[oe],n.hasOwnProperty(oe)&&U!=null&&!l.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Ge(e,t,oe,null,l,U)}for(A in l)if(U=l[A],H=n[A],l.hasOwnProperty(A)&&U!==H&&(U!=null||H!=null))switch(A){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ge(e,t,A,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 n)U=n[ye],n.hasOwnProperty(ye)&&U!=null&&!l.hasOwnProperty(ye)&&Ge(e,t,ye,null,l,U);for(L in l)if(U=l[L],H=n[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(Zs(t)){for(var $e in n)U=n[$e],n.hasOwnProperty($e)&&U!==void 0&&!l.hasOwnProperty($e)&&ju(e,t,$e,void 0,l,U);for($ in l)U=l[$],H=n[$],!l.hasOwnProperty($)||U===H||U===void 0&&H===void 0||ju(e,t,$,U,l,H);return}}for(var z in n)U=n[z],n.hasOwnProperty(z)&&U!=null&&!l.hasOwnProperty(z)&&Ge(e,t,z,null,l,U);for(K in l)U=l[K],H=n[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 D1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,g=s.initiatorType,S=s.duration;if(c&&S&&_p(g)){for(g=0,S=s.responseEnd,l+=1;l<n.length;l++){var A=n[l],L=A.startTime;if(L>S)break;var $=A.transferSize,K=A.initiatorType;$&&_p(K)&&(A=A.responseEnd,g+=$*(A<S?1:(S-L)/(A-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 zu=null,ku=null;function Bi(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 Lu(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 Uu=null;function j1(){var e=window.event;return e&&e.type==="popstate"?e===Uu?!1:(Uu=e,!0):(Uu=null,!1)}var Dp=typeof setTimeout=="function"?setTimeout:void 0,z1=typeof clearTimeout=="function"?clearTimeout:void 0,jp=typeof Promise=="function"?Promise:void 0,k1=typeof queueMicrotask=="function"?queueMicrotask:typeof jp<"u"?function(e){return jp.resolve(null).then(e).catch(L1)}:Dp;function L1(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function zp(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),hr(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")go(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,go(n);for(var c=n.firstChild;c;){var g=c.nextSibling,S=c.nodeName;c[jr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=g}}else n==="body"&&go(e.ownerDocument.body);n=s}while(n);hr(t)}function kp(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Bu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Bu(n),Gs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function U1(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[jr])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 B1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(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 Hu(e){return e.data==="$?"||e.data==="$~"}function Vu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function H1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.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 Yu=null;function Up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return sn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Bp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Hp(e,t,n){switch(t=Bi(n),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 go(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gs(e)}var cn=new Map,Vp=new Set;function Hi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var la=Y.d;Y.d={f:V1,r:Y1,D:q1,C:G1,L:$1,m:X1,X:Z1,S:Q1,M:K1};function V1(){var e=la.f(),t=Oi();return e||t}function Y1(e){var t=jl(e);t!==null&&t.tag===5&&t.type==="form"?ah(t):la.r(e)}var fr=typeof document>"u"?null:document;function Yp(e,t,n){var l=fr;if(l&&typeof t=="string"&&t){var s=en(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Vp.has(s)||(Vp.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),xt(t,"link",e),ht(t),l.head.appendChild(t)))}}function q1(e){la.D(e),Yp("dns-prefetch",e,null)}function G1(e,t){la.C(e,t),Yp("preconnect",e,t)}function $1(e,t,n){la.L(e,t,n);var l=fr;if(l&&e&&t){var s='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+en(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+en(n.imageSizes)+'"]')):s+='[href="'+en(e)+'"]';var c=s;switch(t){case"style":c=dr(e);break;case"script":c=mr(e)}cn.has(c)||(e=m({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cn.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(vo(c))||t==="script"&&l.querySelector(yo(c))||(t=l.createElement("link"),xt(t,"link",e),ht(t),l.head.appendChild(t)))}}function X1(e,t){la.m(e,t);var n=fr;if(n&&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=mr(e)}if(!cn.has(c)&&(e=m({rel:"modulepreload",href:e},t),cn.set(c,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yo(c)))return}l=n.createElement("link"),xt(l,"link",e),ht(l),n.head.appendChild(l)}}}function Q1(e,t,n){la.S(e,t,n);var l=fr;if(l&&e){var s=zl(l).hoistableStyles,c=dr(e);t=t||"default";var g=s.get(c);if(!g){var S={loading:0,preload:null};if(g=l.querySelector(vo(c)))S.loading=5;else{e=m({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cn.get(c))&&qu(e,n);var A=g=l.createElement("link");ht(A),xt(A,"link",e),A._p=new Promise(function(L,$){A.onload=L,A.onerror=$}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Vi(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:S},s.set(c,g)}}}function Z1(e,t){la.X(e,t);var n=fr;if(n&&e){var l=zl(n).hoistableScripts,s=mr(e),c=l.get(s);c||(c=n.querySelector(yo(s)),c||(e=m({src:e,async:!0},t),(t=cn.get(s))&&Gu(e,t),c=n.createElement("script"),ht(c),xt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function K1(e,t){la.M(e,t);var n=fr;if(n&&e){var l=zl(n).hoistableScripts,s=mr(e),c=l.get(s);c||(c=n.querySelector(yo(s)),c||(e=m({src:e,async:!0,type:"module"},t),(t=cn.get(s))&&Gu(e,t),c=n.createElement("script"),ht(c),xt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function qp(e,t,n,l){var s=(s=ne.current)?Hi(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=dr(n.href),n=zl(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=dr(n.href);var c=zl(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(vo(e)))&&!c._p&&(g.instance=c,g.state.loading=5),cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cn.set(e,n),c||P1(s,e,n,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=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=mr(n),n=zl(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function dr(e){return'href="'+en(e)+'"'}function vo(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function P1(e,t,n,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",n),ht(t),e.head.appendChild(t))}function mr(e){return'[src="'+en(e)+'"]'}function yo(e){return"script[async]"+e}function $p(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+en(n.href)+'"]');if(l)return t.instance=l,ht(l),l;var s=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ht(l),xt(l,"style",s),Vi(l,n.precedence,e),t.instance=l;case"stylesheet":s=dr(n.href);var c=e.querySelector(vo(s));if(c)return t.state.loading|=4,t.instance=c,ht(c),c;l=Gp(n),(s=cn.get(s))&&qu(l,s),c=(e.ownerDocument||e).createElement("link"),ht(c);var g=c;return g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),xt(c,"link",l),t.state.loading|=4,Vi(c,n.precedence,e),t.instance=c;case"script":return c=mr(n.src),(s=e.querySelector(yo(c)))?(t.instance=s,ht(s),s):(l=n,(s=cn.get(c))&&(l=m({},n),Gu(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,Vi(l,n.precedence,e));return t.instance}function Vi(e,t,n){for(var l=n.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=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yi=null;function Xp(e,t,n){if(Yi===null){var l=new Map,s=Yi=new Map;s.set(n,l)}else s=Yi,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[jr]||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,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function J1(e,t,n){if(n===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 F1(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=dr(l.href),c=t.querySelector(vo(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qi.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ht(c);return}c=t.ownerDocument||t,l=Gp(l),(s=cn.get(s))&&qu(l,s),c=c.createElement("link"),ht(c);var g=c;g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),xt(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=qi.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var $u=0;function I1(e,t){return e.stylesheets&&e.count===0&&$i(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&$i(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&$u===0&&($u=62500*D1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$i(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>$u?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function qi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$i(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gi=null;function $i(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gi=new Map,t.forEach(W1,e),Gi=null,qi.call(e))}function W1(e,t){if(!(t.state.loading&4)){var n=Gi.get(e);if(n)var l=n.get(null);else{n=new Map,Gi.set(e,n);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")&&(n.set(g.dataset.precedence,g),l=g)}l&&n.set(null,l)}s=t.instance,g=s.getAttribute("data-precedence"),c=n.get(g)||l,c===l&&n.set(null,s),n.set(g,s),this.count++,l=qi.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var bo={$$typeof:D,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function eS(e,t,n,l,s,c,g,S,A){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=A,this.incompleteTransitions=new Map}function Kp(e,t,n,l,s,c,g,S,A,L,$,K){return e=new eS(e,t,n,g,A,L,$,K,S),t=1,c===!0&&(t|=24),c=Gt(3,null,null,t),e.current=c,c.stateNode=e,t=Ec(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},Ac(c),e}function Pp(e){return e?(e=$l,e):$l}function Jp(e,t,n,l,s,c){s=Pp(s),l.context===null?l.context=s:l.pendingContext=s,l=Sa(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=wa(e,l,t),n!==null&&(Ht(n,e,t),Jr(n,e,t))}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xu(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function Ip(e){if(e.tag===13||e.tag===31){var t=rl(e,67108864);t!==null&&Ht(t,e,67108864),Xu(e,67108864)}}function Wp(e){if(e.tag===13||e.tag===31){var t=Kt();t=Ol(t);var n=rl(e,t);n!==null&&Ht(n,e,t),Xu(e,t)}}var Xi=!0;function tS(e,t,n,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=2,Qu(e,t,n,l)}finally{Y.p=c,O.T=s}}function nS(e,t,n,l){var s=O.T;O.T=null;var c=Y.p;try{Y.p=8,Qu(e,t,n,l)}finally{Y.p=c,O.T=s}}function Qu(e,t,n,l){if(Xi){var s=Zu(l);if(s===null)Du(e,t,l,Qi,n),tg(e,l);else if(lS(s,e,t,n,l))l.stopPropagation();else if(tg(e,l),t&4&&-1<aS.indexOf(e)){for(;s!==null;){var c=jl(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 A=1<<31-wt(g);S.entanglements[1]|=A,g&=~A}An(c),(He&6)===0&&(Ri=At()+500,mo(0))}}break;case 31:case 13:S=rl(c,2),S!==null&&Ht(S,c,2),Oi(),Xu(c,2)}if(c=Zu(l),c===null&&Du(e,t,l,Qi,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else Du(e,t,l,null,n)}}function Zu(e){return e=Ps(e),Ku(e)}var Qi=null;function Ku(e){if(Qi=null,e=Dl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qi=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(Hs()){case Ja:return 2;case Bo:return 8;case Fa:case Mr:return 32;case Vn:return 268435456;default:return 32}default:return 32}}var Pu=!1,ja=null,za=null,ka=null,xo=new Map,So=new Map,La=[],aS="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":xo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":So.delete(t.pointerId)}}function wo(e,t,n,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=jl(t),t!==null&&Ip(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function lS(e,t,n,l,s){switch(t){case"focusin":return ja=wo(ja,e,t,n,l,s),!0;case"dragenter":return za=wo(za,e,t,n,l,s),!0;case"mouseover":return ka=wo(ka,e,t,n,l,s),!0;case"pointerover":var c=s.pointerId;return xo.set(c,wo(xo.get(c)||null,e,t,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,So.set(c,wo(So.get(c)||null,e,t,n,l,s)),!0}return!1}function ng(e){var t=Dl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ks=l,n.target.dispatchEvent(l),Ks=null}else return t=jl(n),t!==null&&Ip(t),e.blockedOn=n,!1;t.shift()}return!0}function ag(e,t,n){Zi(e)&&n.delete(t)}function rS(){Pu=!1,ja!==null&&Zi(ja)&&(ja=null),za!==null&&Zi(za)&&(za=null),ka!==null&&Zi(ka)&&(ka=null),xo.forEach(ag),So.forEach(ag)}function Ki(e,t){e.blockedOn===t&&(e.blockedOn=null,Pu||(Pu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,rS)))}var Pi=null;function lg(e){Pi!==e&&(Pi=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Pi===e&&(Pi=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Ku(l||n)===null)continue;break}var c=jl(n);c!==null&&(e.splice(t,3),t-=3,Zc(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function hr(e){function t(A){return Ki(A,e)}ja!==null&&Ki(ja,e),za!==null&&Ki(za,e),ka!==null&&Ki(ka,e),xo.forEach(t),So.forEach(t);for(var n=0;n<La.length;n++){var l=La[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<La.length&&(n=La[0],n.blockedOn===null);)ng(n),n.blockedOn===null&&La.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],g=s[jt]||null;if(typeof c=="function")g||lg(n);else if(g){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,g=c[jt]||null)S=g.formAction;else if(Ku(s)!==null)continue}else S=g.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),lg(n)}}}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(n,20)}function n(){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(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Ju(e){this._internalRoot=e}Ji.prototype.render=Ju.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,l=Kt();Jp(n,l,e,t,null,null)},Ji.prototype.unmount=Ju.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),Oi(),t[Ml]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ys();e={blockedOn:null,target:e,priority:t};for(var n=0;n<La.length&&t!==0&&t<La[n].priority;n++);La.splice(n,0,e),n===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 oS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fi.isDisabled&&Fi.supportsFiber)try{Ia=Fi.inject(oS),Rt=Fi}catch{}}return No.createRoot=function(e,t){if(!u(e))throw Error(i(299));var n=!1,l="",s=mh,c=hh,g=ph;return t!=null&&(t.unstable_strictMode===!0&&(n=!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,n,l,null,s,c,g,rg),e[Ml]=t.current,Mu(e),new Ju(t)},No.hydrateRoot=function(e,t,n){if(!u(e))throw Error(i(299));var l=!1,s="",c=mh,g=hh,S=ph,A=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(A=n.formState)),t=Kp(e,1,!0,t,n??null,l,s,A,c,g,S,rg),t.context=Pp(null),n=t.current,l=Kt(),l=Ol(l),s=Sa(l),s.callback=null,wa(n,s,l),n=l,t.current.lanes=n,et(t,n),An(t),e[Ml]=t.current,Mu(e),new Ji(t)},No.version="19.2.4",No}var gg;function gS(){if(gg)return Wu.exports;gg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),Wu.exports=pS(),Wu.exports}var vS=gS();const yS="modulepreload",bS=function(a){return"/"+a},vg={},dv=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=bS(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":yS,x||(w.as="script"),w.crossOrigin="",w.href=p,v&&w.setAttribute("nonce",v),document.head.appendChild(w),x)return new Promise((N,R)=>{w.addEventListener("load",N),w.addEventListener("error",()=>R(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(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function xS(a={}){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:Ro(u)}return wS(r,o,null,a)}function Fe(a,r){if(a===!1||a===null||typeof a>"u")throw new Error(r)}function yn(a,r){if(!a){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function SS(){return Math.random().toString(36).substring(2,10)}function xg(a,r){return{usr:a.state,key:a.key,idx:r,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Sf(a,r,o=null,i,u){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof r=="string"?Er(r):r,state:o,key:r&&r.key||i||SS(),unstable_mask:u}}function Ro({pathname:a="/",search:r="",hash:o=""}){return r&&r!=="?"&&(a+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function Er(a){let r={};if(a){let o=a.indexOf("#");o>=0&&(r.hash=a.substring(o),a=a.substring(0,o));let i=a.indexOf("?");i>=0&&(r.search=a.substring(i),a=a.substring(0,i)),a&&(r.pathname=a)}return r}function wS(a,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 C=x(),T=C==null?null:C-p;p=C,v&&v({action:h,location:E.location,delta:T})}function w(C,T){h="PUSH";let j=bg(C)?C:Sf(E.location,C,T);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(C,T){h="REPLACE";let j=bg(C)?C:Sf(E.location,C,T);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 R(C){return ES(C)}let E={get action(){return h},get location(){return a(u,d)},listen(C){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(yg,m),v=C,()=>{u.removeEventListener(yg,m),v=null}},createHref(C){return r(u,C)},createURL:R,encodeLocation(C){let T=R(C);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:w,replace:N,go(C){return d.go(C)}};return E}function ES(a,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Fe(o,"No window.location.(origin|href) available to create URL");let i=typeof a=="string"?a:Ro(a);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function mv(a,r,o="/"){return NS(a,r,o,!1)}function NS(a,r,o,i){let u=typeof r=="string"?Er(r):r,f=oa(u.pathname||"/",o);if(f==null)return null;let d=hv(a);CS(d);let h=null;for(let v=0;h==null&&v<d.length;++v){let p=LS(f);h=zS(d[v],p,i)}return h}function hv(a,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;Fe(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&&(Fe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),hv(d.children,r,w,m,v)),!(d.path==null&&!d.index)&&r.push({path:m,score:DS(m,d.index),routesMeta:w})};return a.forEach((d,h)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,h);else for(let p of pv(d.path))f(d,h,!0,p)}),r}function pv(a){let r=a.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=pv(i.join("/")),h=[];return h.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&h.push(...d),h.map(v=>a.startsWith("/")&&v===""?"/":v)}function CS(a){a.sort((r,o)=>r.score!==o.score?o.score-r.score:jS(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var TS=/^:[\w-]+$/,AS=3,RS=2,_S=1,OS=10,MS=-2,Sg=a=>a==="*";function DS(a,r){let o=a.split("/"),i=o.length;return o.some(Sg)&&(i+=MS),r&&(i+=RS),o.filter(u=>!Sg(u)).reduce((u,f)=>u+(TS.test(f)?AS:f===""?_S:OS),i)}function jS(a,r){return a.length===r.length&&a.slice(0,-1).every((i,u)=>i===r[u])?a[a.length-1]-r[r.length-1]:0}function zS(a,r,o=!1){let{routesMeta:i}=a,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=gs({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},x),w=v.route;if(!m&&p&&o&&!i[i.length-1].route.index&&(m=gs({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:VS(Ln([f,m.pathnameBase])),route:w}),m.pathnameBase!=="/"&&(f=Ln([f,m.pathnameBase]))}return d}function gs(a,r){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[o,i]=kS(a.path,a.caseSensitive,a.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 R=h[w]||"";d=f.slice(0,f.length-R.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:a}}function kS(a,r=!1,o=!0){yn(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let i=[],u="^"+a.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 a.endsWith("*")?(i.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),i]}function LS(a){try{return a.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return yn(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),a}}function oa(a,r){if(r==="/")return a;if(!a.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,i=a.charAt(o);return i&&i!=="/"?null:a.slice(o)||"/"}var US=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function BS(a,r="/"){let{pathname:o,search:i="",hash:u=""}=typeof a=="string"?Er(a):a,f;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?f=wg(o.substring(1),"/"):f=wg(o,r)):f=r,{pathname:f,search:YS(i),hash:qS(u)}}function wg(a,r){let o=r.replace(/\/+$/,"").split("/");return a.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function af(a,r,o,i){return`Cannot include a '${a}' 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 HS(a){return a.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Bf(a){let r=HS(a);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}function Cs(a,r,o,i=!1){let u;typeof a=="string"?u=Er(a):(u={...a},Fe(!u.pathname||!u.pathname.includes("?"),af("?","pathname","search",u)),Fe(!u.pathname||!u.pathname.includes("#"),af("#","pathname","hash",u)),Fe(!u.search||!u.search.includes("#"),af("#","search","hash",u)));let f=a===""||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=BS(u,h),p=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(p||x)&&(v.pathname+="/"),v}var Ln=a=>a.join("/").replace(/\/\/+/g,"/"),VS=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),YS=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,qS=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,GS=class{constructor(a,r,o,i=!1){this.status=a,this.statusText=r||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function $S(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function XS(a){return a.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vv(a,r){let o=a;if(typeof o!="string"||!US.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(gv)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 yv=["POST","PUT","PATCH","DELETE"];new Set(yv);var QS=["GET",...yv];new Set(QS);var Nr=b.createContext(null);Nr.displayName="DataRouter";var Ts=b.createContext(null);Ts.displayName="DataRouterState";var ZS=b.createContext(!1),bv=b.createContext({isTransitioning:!1});bv.displayName="ViewTransition";var KS=b.createContext(new Map);KS.displayName="Fetchers";var PS=b.createContext(null);PS.displayName="Await";var Ft=b.createContext(null);Ft.displayName="Navigation";var Do=b.createContext(null);Do.displayName="Location";var un=b.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var Hf=b.createContext(null);Hf.displayName="RouteError";var xv="REACT_ROUTER_ERROR",JS="REDIRECT",FS="ROUTE_ERROR_RESPONSE";function IS(a){if(a.startsWith(`${xv}:${JS}:{`))try{let r=JSON.parse(a.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 WS(a){if(a.startsWith(`${xv}:${FS}:{`))try{let r=JSON.parse(a.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new GS(r.status,r.statusText,r.data)}catch{}}function e2(a,{relative:r}={}){Fe(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}=jo(a,{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(Do)!=null}function Bn(){return Fe(Cr(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Do).location}var Sv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wv(a){b.useContext(Ft).static||b.useLayoutEffect(a)}function Ev(){let{isDataRoute:a}=b.useContext(un);return a?p2():t2()}function t2(){Fe(Cr(),"useNavigate() may be used only in the context of a <Router> component.");let a=b.useContext(Nr),{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 wv(()=>{d.current=!0}),b.useCallback((v,p={})=>{if(yn(d.current,Sv),!d.current)return;if(typeof v=="number"){o.go(v);return}let x=Cs(v,JSON.parse(f),u,p.relative==="path");a==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,a])}var n2=b.createContext(null);function a2(a){let r=b.useContext(un).outlet;return b.useMemo(()=>r&&b.createElement(n2.Provider,{value:a},r),[r,a])}function S_(){let{matches:a}=b.useContext(un),r=a[a.length-1];return r?r.params:{}}function jo(a,{relative:r}={}){let{matches:o}=b.useContext(un),{pathname:i}=Bn(),u=JSON.stringify(Bf(o));return b.useMemo(()=>Cs(a,JSON.parse(u),i,r==="path"),[a,u,i,r])}function l2(a,r){return Nv(a,r)}function Nv(a,r,o){var C;Fe(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 T=p&&p.path||"";Tv(h,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=Bn(),m;if(r){let T=typeof r=="string"?Er(r):r;Fe(v==="/"||((C=T.pathname)==null?void 0:C.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${T.pathname}" was given in the \`location\` prop.`),m=T}else m=x;let w=m.pathname||"/",N=w;if(v!=="/"){let T=v.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(T.length).join("/")}let R=mv(a,{pathname:N});yn(p||R!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),yn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${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=c2(R&&R.map(T=>Object.assign({},T,{params:Object.assign({},d,T.params),pathname:Ln([v,i.encodeLocation?i.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?v:Ln([v,i.encodeLocation?i.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),u,o);return r&&E?b.createElement(Do.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},E):E}function r2(){let a=h2(),r=$S(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.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:",a),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 o2=b.createElement(r2,null),Cv=class extends b.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,r){return r.location!==a.location||r.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:r.error,location:r.location,revalidation:a.revalidation||r.revalidation}}componentDidCatch(a,r){this.props.onError?this.props.onError(a,r):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const o=WS(a.digest);o&&(a=o)}let r=a!==void 0?b.createElement(un.Provider,{value:this.props.routeContext},b.createElement(Hf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?b.createElement(i2,{error:a},r):r}};Cv.contextType=ZS;var lf=new WeakMap;function i2({children:a,error:r}){let{basename:o}=b.useContext(Ft);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=IS(r.digest);if(i){let u=lf.get(r);if(u)throw u;let f=vv(i.location,o);if(gv&&!lf.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 lf.set(r,d),d}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function s2({routeContext:a,match:r,children:o}){let i=b.useContext(Nr);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(un.Provider,{value:a},o)}function c2(a,r=[],o){let i=o==null?void 0:o.state;if(a==null){if(!i)return null;if(i.errors)a=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let u=a,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);Fe(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,R=m.route.loader&&!w.hasOwnProperty(m.route.id)&&(!N||N[m.route.id]===void 0);if(m.route.lazy||R){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:XS(i.matches),errorInfo:m})}:void 0;return u.reduceRight((x,m,w)=>{let N,R=!1,E=null,C=null;i&&(N=f&&m.route.id?f[m.route.id]:void 0,E=m.route.errorElement||o2,d&&(h<0&&w===0?(Tv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,C=null):h===w&&(R=!0,C=m.route.hydrateFallbackElement||null)));let T=r.concat(u.slice(0,w+1)),j=()=>{let D;return N?D=E:R?D=C:m.route.Component?D=b.createElement(m.route.Component,null):m.route.element?D=m.route.element:D=x,b.createElement(s2,{match:m,routeContext:{outlet:x,matches:T,isDataRoute:i!=null},children:D})};return i&&(m.route.ErrorBoundary||m.route.errorElement||w===0)?b.createElement(Cv,{location:i.location,revalidation:i.revalidation,component:E,error:N,children:j(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:p}):j()},null)}function Vf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function u2(a){let r=b.useContext(Nr);return Fe(r,Vf(a)),r}function f2(a){let r=b.useContext(Ts);return Fe(r,Vf(a)),r}function d2(a){let r=b.useContext(un);return Fe(r,Vf(a)),r}function Yf(a){let r=d2(a),o=r.matches[r.matches.length-1];return Fe(o.route.id,`${a} can only be used on routes that contain a unique "id"`),o.route.id}function m2(){return Yf("useRouteId")}function h2(){var i;let a=b.useContext(Hf),r=f2("useRouteError"),o=Yf("useRouteError");return a!==void 0?a:(i=r.errors)==null?void 0:i[o]}function p2(){let{router:a}=u2("useNavigate"),r=Yf("useNavigate"),o=b.useRef(!1);return wv(()=>{o.current=!0}),b.useCallback(async(u,f={})=>{yn(o.current,Sv),o.current&&(typeof u=="number"?await a.navigate(u):await a.navigate(u,{fromRouteId:r,...f}))},[a,r])}var Eg={};function Tv(a,r,o){!r&&!Eg[a]&&(Eg[a]=!0,yn(!1,o))}b.memo(g2);function g2({routes:a,future:r,state:o,isStatic:i,onError:u}){return Nv(a,void 0,{state:o,isStatic:i,onError:u})}function Ng({to:a,replace:r,state:o,relative:i}){Fe(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=Ev(),v=Cs(a,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 v2(a){return a2(a.context)}function xl(a){Fe(!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 y2({basename:a="/",children:r=null,location:o,navigationType:i="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){Fe(!Cr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=a.replace(/^\/*/,"/"),v=b.useMemo(()=>({basename:h,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[h,u,f,d]);typeof o=="string"&&(o=Er(o));let{pathname:p="/",search:x="",hash:m="",state:w=null,key:N="default",unstable_mask:R}=o,E=b.useMemo(()=>{let C=oa(p,h);return C==null?null:{location:{pathname:C,search:x,hash:m,state:w,key:N,unstable_mask:R},navigationType:i}},[h,p,x,m,w,N,i,R]);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(Do.Provider,{children:r,value:E}))}function b2({children:a,location:r}){return l2(wf(a),r)}function wf(a,r=[]){let o=[];return b.Children.forEach(a,(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}Fe(i.type===xl,`[${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>`),Fe(!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 cs="get",us="application/x-www-form-urlencoded";function As(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function x2(a){return As(a)&&a.tagName.toLowerCase()==="button"}function S2(a){return As(a)&&a.tagName.toLowerCase()==="form"}function w2(a){return As(a)&&a.tagName.toLowerCase()==="input"}function E2(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function N2(a,r){return a.button===0&&(!r||r==="_self")&&!E2(a)}var Ii=null;function C2(){if(Ii===null)try{new FormData(document.createElement("form"),0),Ii=!1}catch{Ii=!0}return Ii}var T2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rf(a){return a!=null&&!T2.has(a)?(yn(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${us}"`),null):a}function A2(a,r){let o,i,u,f,d;if(S2(a)){let h=a.getAttribute("action");i=h?oa(h,r):null,o=a.getAttribute("method")||cs,u=rf(a.getAttribute("enctype"))||us,f=new FormData(a)}else if(x2(a)||w2(a)&&(a.type==="submit"||a.type==="image")){let h=a.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||h.getAttribute("action");if(i=v?oa(v,r):null,o=a.getAttribute("formmethod")||h.getAttribute("method")||cs,u=rf(a.getAttribute("formenctype"))||rf(h.getAttribute("enctype"))||us,f=new FormData(h,a),!C2()){let{name:p,type:x,value:m}=a;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(As(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=cs,i=null,u=us,d=a}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(a,r){if(a===!1||a===null||typeof a>"u")throw new Error(r)}function R2(a,r,o,i){let u=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;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 _2(a,r){if(a.id in r)return r[a.id];try{let o=await import(a.module);return r[a.id]=o,o}catch(o){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function O2(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function M2(a,r,o){let i=await Promise.all(a.map(async u=>{let f=r.routes[u.route.id];if(f){let d=await _2(f,o);return d.links?d.links():[]}return[]}));return k2(i.flat(1).filter(O2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Cg(a,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(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function D2(a,r,{includeHydrateFallback:o}={}){return j2(a.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 j2(a){return[...new Set(a)]}function z2(a){let r={},o=Object.keys(a).sort();for(let i of o)r[i]=a[i];return r}function k2(a,r){let o=new Set;return new Set(r),a.reduce((i,u)=>{let f=JSON.stringify(z2(u));return o.has(f)||(o.add(f),i.push({key:f,link:u})),i},[])}function Av(){let a=b.useContext(Nr);return qf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function L2(){let a=b.useContext(Ts);return qf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Gf=b.createContext(void 0);Gf.displayName="FrameworkContext";function Rv(){let a=b.useContext(Gf);return qf(a,"You must render this element inside a <HydratedRouter> element"),a}function U2(a,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(a==="render"&&d(!0),a==="viewport"){let E=T=>{T.forEach(j=>{d(j.isIntersecting)})},C=new IntersectionObserver(E,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[a]),b.useEffect(()=>{if(i){let E=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(E)}}},[i]);let N=()=>{u(!0)},R=()=>{u(!1),d(!1)};return o?a!=="intent"?[f,w,{}]:[f,w,{onFocus:Co(h,N),onBlur:Co(v,R),onMouseEnter:Co(p,N),onMouseLeave:Co(x,R),onTouchStart:Co(m,N)}]:[!1,w,{}]}function Co(a,r){return o=>{a&&a(o),o.defaultPrevented||r(o)}}function B2({page:a,...r}){let{router:o}=Av(),i=b.useMemo(()=>mv(o.routes,a,o.basename),[o.routes,a,o.basename]);return i?b.createElement(V2,{page:a,matches:i,...r}):null}function H2(a){let{manifest:r,routeModules:o}=Rv(),[i,u]=b.useState([]);return b.useEffect(()=>{let f=!1;return M2(a,r,o).then(d=>{f||u(d)}),()=>{f=!0}},[a,r,o]),i}function V2({page:a,matches:r,...o}){let i=Bn(),{future:u,manifest:f,routeModules:d}=Rv(),{basename:h}=Av(),{loaderData:v,matches:p}=L2(),x=b.useMemo(()=>Cg(a,r,p,f,i,"data"),[a,r,p,f,i]),m=b.useMemo(()=>Cg(a,r,p,f,i,"assets"),[a,r,p,f,i]),w=b.useMemo(()=>{if(a===i.pathname+i.search+i.hash)return[];let E=new Set,C=!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?C=!0:E.add(j.route.id))}),E.size===0)return[];let T=R2(a,h,u.unstable_trailingSlashAwareDataRequests,"data");return C&&E.size>0&&T.searchParams.set("_routes",r.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[T.pathname+T.search]},[h,u.unstable_trailingSlashAwareDataRequests,v,i,f,x,r,a,d]),N=b.useMemo(()=>D2(m,f),[m,f]),R=H2(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})),R.map(({key:E,link:C})=>b.createElement("link",{key:E,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function Y2(...a){return r=>{a.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var q2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{q2&&(window.__reactRouterVersion="7.13.2")}catch{}function G2({basename:a,children:r,unstable_useTransitions:o,window:i}){let u=b.useRef();u.current==null&&(u.current=xS({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(y2,{basename:a,children:r,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:o})}var _v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ov=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,...R},E){let{basename:C,navigator:T,unstable_useTransitions:j}=b.useContext(Ft),D=typeof x=="string"&&_v.test(x),B=vv(x,C);x=B.to;let Z=e2(x,{relative:u}),F=Bn(),q=null;if(h){let ue=Cs(h,[],F.unstable_mask?F.unstable_mask.pathname:"/",!0);C!=="/"&&(ue.pathname=ue.pathname==="/"?C:Ln([C,ue.pathname])),q=T.createHref(ue)}let[V,ae,he]=U2(i,R),pe=Q2(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",{...R,...he,href:(me?q:void 0)||B.absoluteURL||Z,onClick:me?fe:r,ref:Y2(E,ae),target:p,"data-discover":!D&&o==="render"?"true":void 0});return V&&!D?b.createElement(b.Fragment,null,ge,b.createElement(B2,{page:Z})):ge});Ov.displayName="Link";var Mv=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=jo(d,{relative:p.relative}),w=Bn(),N=b.useContext(Ts),{navigator:R,basename:E}=b.useContext(Ft),C=N!=null&&F2(m)&&h===!0,T=R.encodeLocation?R.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,T=T.toLowerCase()),D&&E&&(D=oa(D,E)||D);const B=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let Z=j===T||!u&&j.startsWith(T)&&j.charAt(B)==="/",F=D!=null&&(D===T||!u&&D.startsWith(T)&&D.charAt(T.length)==="/"),q={isActive:Z,isPending:F,isTransitioning:C},V=Z?r:void 0,ae;typeof i=="function"?ae=i(q):ae=[i,Z?"active":null,F?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let he=typeof f=="function"?f(q):f;return b.createElement(Ov,{...p,"aria-current":V,className:ae,ref:x,style:he,to:d,viewTransition:h},typeof v=="function"?v(q):v)});Mv.displayName="NavLink";var $2=b.forwardRef(({discover:a="render",fetcherKey:r,navigate:o,reloadDocument:i,replace:u,state:f,method:d=cs,action:h,onSubmit:v,relative:p,preventScrollReset:x,viewTransition:m,unstable_defaultShouldRevalidate:w,...N},R)=>{let{unstable_useTransitions:E}=b.useContext(Ft),C=P2(),T=J2(h,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",D=typeof h=="string"&&_v.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=()=>C(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:R,method:j,action:T,onSubmit:i?v:B,...N,"data-discover":!D&&a==="render"?"true":void 0})});$2.displayName="Form";function X2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dv(a){let r=b.useContext(Nr);return Fe(r,X2(a)),r}function Q2(a,{target:r,replace:o,unstable_mask:i,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let x=Ev(),m=Bn(),w=jo(a,{relative:d});return b.useCallback(N=>{if(N2(N,r)){N.preventDefault();let R=o!==void 0?o:Ro(m)===Ro(w),E=()=>x(a,{replace:R,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,a,f,d,h,v,p])}var Z2=0,K2=()=>`__${String(++Z2)}__`;function P2(){let{router:a}=Dv("useSubmit"),{basename:r}=b.useContext(Ft),o=m2(),i=a.fetch,u=a.navigate;return b.useCallback(async(f,d={})=>{let{action:h,method:v,encType:p,formData:x,body:m}=A2(f,r);if(d.navigate===!1){let w=d.fetcherKey||K2();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 J2(a,{relative:r}={}){let{basename:o}=b.useContext(Ft),i=b.useContext(un);Fe(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),f={...jo(a||".",{relative:r})},d=Bn();if(a==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(!a||a===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:Ln([o,f.pathname])),Ro(f)}function F2(a,{relative:r}={}){let o=b.useContext(bv);Fe(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Dv("useViewTransitionState"),u=jo(a,{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 gs(u.pathname,d)!=null||gs(u.pathname,f)!=null}var zo=fv();const jv=uv(zo),I2="/api";function W2(a,r){if(typeof a=="string"&&a)return a;if(a&&typeof a=="object"){const o=a,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 ke(a,r){const o=await fetch(`${I2}${a}`,{...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(W2(i,`HTTP ${o.status}`))}return o.json()}function ew(){return ke("/system/info")}function w_(a){return ke("/system/transport",{method:"POST",body:JSON.stringify({type:a})})}function tw(){return ke("/cluster/state")}function E_(){return ke("/cluster/promote",{method:"POST"})}function N_(a){return ke("/cluster/connect",{method:"POST",body:JSON.stringify(a)})}function C_(){return ke("/cluster/disconnect",{method:"POST"})}function nw(a,r){return ke(`/nodes/${a}/agents/${r}/upgrade`,{method:"POST"})}function T_(a,r){return ke(`/nodes/${a}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function A_(a,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 ke(`/nodes/${a}/workdir/tree${i?`?${i}`:""}`)}function R_(a,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 ke(`/nodes/${a}/workdir/branch${i?`?${i}`:""}`)}function __(a,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),ke(`/nodes/${a}/native-sessions?${o.toString()}`)}function O_(a,r){return ke(`/nodes/${a}/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 M_(a){const r=new URLSearchParams;a!=null&&a.status&&r.set("status",a.status),a!=null&&a.assignedTo&&r.set("assignedTo",a.assignedTo),a!=null&&a.priority&&r.set("priority",a.priority);{const u=Math.min(Math.max(1,a.limit),100);r.set("limit",String(u))}a!=null&&a.offset&&r.set("offset",String(a.offset));const o=r.toString();return(await ke(`/tasks${o?`?${o}`:""}`)).tasks}function D_(a){return ke(`/tasks/${a}`)}function j_(a){return ke("/tasks",{method:"POST",body:JSON.stringify(a)})}function z_(a){return ke("/tasks/import-session",{method:"POST",body:JSON.stringify(a)})}function k_(a){return ke("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:a})})}function L_(a){return ke("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:a})})}function U_(a){return ke(`/tasks/${a}/cancel`,{method:"POST"})}function B_(a){return ke(`/tasks/${a}/retry`,{method:"POST"})}function H_(a,r){return ke(`/tasks/${a}/logs`)}function V_(a,r){return ke(`/tasks/${a}/message`,{method:"POST",body:JSON.stringify({content:r})})}function Y_(a,r){return ke(`/tasks/${a}/share`,{method:"POST",body:JSON.stringify(r)})}function q_(a){return ke(`/tasks/${a}/share`,{method:"DELETE"})}function G_(a){return ke(`/shared/conversations/${encodeURIComponent(a)}`)}function $_(a,r){return ke(`/shared/conversations/${encodeURIComponent(a)}/logs`)}function X_(a){return ke(`/shared/conversations/${encodeURIComponent(a)}/output`)}function Q_(a,r="."){return ke(`/shared/conversations/${encodeURIComponent(a)}/output/tree?path=${encodeURIComponent(r)}`)}function Z_(a,r){return ke(`/shared/conversations/${encodeURIComponent(a)}/output/content?path=${encodeURIComponent(r)}`)}function K_(a,r){return ke(`/shared/conversations/${encodeURIComponent(a)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function P_(a){return ke(`/tasks/${a}/output`)}function J_(a,r="."){return ke(`/tasks/${a}/output/tree?path=${encodeURIComponent(r)}`)}function F_(a,r){return ke(`/tasks/${a}/output/content?path=${encodeURIComponent(r)}`)}function I_(a,r){return ke(`/tasks/${a}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function W_(a){return ke(`/tasks/${a}/output/diff`)}function aw(a,r,o=!0){const i=b.useRef(a);b.useEffect(()=>{i.current=a},[a]),b.useEffect(()=>{if(!o)return;const u=()=>i.current();u();const f=setInterval(u,r);return()=>clearInterval(f)},[r,o])}let lw=0;function rw(a=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","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","election.started","election.complete","cluster.state"];for(const w of m)x.addEventListener(w,N=>{const R={id:String(++lw),type:w,data:JSON.parse(N.data),timestamp:Date.now()};o(E=>[R,...E].slice(0,a));for(const[,{pattern:E,callback:C}]of h.current)w.startsWith(E)&&C(R)});return()=>{x.close(),f.current=null,u(!1)}},[a]);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 zv=b.createContext(null);function ow({children:a}){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}=rw(),w=b.useCallback(async()=>{try{const[N,R]=await Promise.all([tw(),ew()]),E=N,C=R.nodeId??R.id,T=E.nodes??[],j=T.find(B=>B.id===C)??{id:C,name:R.name,endpoint:R.endpoint,role:R.role,status:R.status,capabilities:R.capabilities,joinedAt:R.joinedAt,lastHeartbeat:R.lastHeartbeat},D=E.leaderId?T.find(B=>B.id===E.leaderId)??null:null;o({leader:D?{id:D.id,name:D.name,endpoint:D.endpoint}:null,term:E.term??0,nodes:T,self:j,taskSummary:E.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}}),u(R),v(null)}catch(N){v(N instanceof Error?N.message:"Failed to fetch cluster state")}finally{d(!1)}},[]);return aw(w,1e4),b.useEffect(()=>{const N=[m("cluster",w),m("election",w),m("node",w),m("task",w)];return()=>N.forEach(R=>R())},[m,w]),y.jsx(zv.Provider,{value:{cluster:r,systemInfo:i,events:p,sseConnected:x,subscribe:m,refresh:w,loading:f,error:h},children:a})}function kv(){const a=b.useContext(zv);if(!a)throw new Error("useCluster must be used within ClusterProvider");return a}/**
|
|
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 Lv=(...a)=>a.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 iw=a=>a.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 sw=a=>a.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 Tg=a=>{const r=sw(a);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 of={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 cw=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},uw=b.createContext({}),fw=()=>b.useContext(uw),dw=b.forwardRef(({color:a,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=""}=fw()??{},R=i??m?Number(o??x)*24/Number(r??p):o??x;return b.createElement("svg",{ref:v,...of,width:r??p??of.width,height:r??p??of.height,stroke:a??w,strokeWidth:R,className:Lv("lucide",N,u),...!f&&!cw(h)&&{"aria-hidden":"true"},...h},[...d.map(([E,C])=>b.createElement(E,C)),...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 We=(a,r)=>{const o=b.forwardRef(({className:i,...u},f)=>b.createElement(dw,{ref:f,iconNode:r,className:Lv(`lucide-${iw(Tg(a))}`,`lucide-${a}`,i),...u}));return o.displayName=Tg(a),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 mw=[["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"}]],Uv=We("activity",mw);/**
|
|
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 hw=[["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"}]],pw=We("book-open",hw);/**
|
|
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 gw=[["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"}]],Bv=We("bot",gw);/**
|
|
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 vw=[["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"}]],yw=We("cable",vw);/**
|
|
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 bw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xw=We("check",bw);/**
|
|
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 Sw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Hv=We("chevron-down",Sw);/**
|
|
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 ww=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ew=We("chevron-up",ww);/**
|
|
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 Nw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Cw=We("circle-check",Nw);/**
|
|
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 Tw=[["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"}]],Aw=We("circle-x",Tw);/**
|
|
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 Rw=[["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"}]],_w=We("copy",Rw);/**
|
|
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 Ow=[["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"}]],Mw=We("cpu",Ow);/**
|
|
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 Dw=[["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"}]],jw=We("external-link",Dw);/**
|
|
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 zw=[["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"}]],kw=We("folder-tree",zw);/**
|
|
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 Lw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Uw=We("info",Lw);/**
|
|
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 Bw=[["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"}]],Hw=We("monitor-cog",Bw);/**
|
|
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 Vw=[["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"}]],Yw=We("monitor",Vw);/**
|
|
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 qw=[["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"}]],Gw=We("moon",qw);/**
|
|
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 $w=[["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"}]],Vv=We("radio",$w);/**
|
|
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 Xw=[["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"}]],Qw=We("server",Xw);/**
|
|
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 Zw=[["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"}]],Kw=We("settings",Zw);/**
|
|
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 Pw=[["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"}]],Jw=We("shield",Pw);/**
|
|
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 Fw=[["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"}]],Iw=We("sun",Fw);/**
|
|
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 Ww=[["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"}]],eE=We("wifi-off",Ww);/**
|
|
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 tE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yv=We("x",tE);function Ag(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function $f(...a){return r=>{let o=!1;const i=a.map(u=>{const f=Ag(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():Ag(a[u],null)}}}}function Ie(...a){return b.useCallback($f(...a),a)}var nE=Symbol.for("react.lazy"),vs=Uf[" use ".trim().toString()];function aE(a){return typeof a=="object"&&a!==null&&"then"in a}function qv(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===nE&&"_payload"in a&&aE(a._payload)}function lE(a){const r=oE(a),o=b.forwardRef((i,u)=>{let{children:f,...d}=i;qv(f)&&typeof vs=="function"&&(f=vs(f._payload));const h=b.Children.toArray(f),v=h.find(sE);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=`${a}.Slot`,o}var rE=lE("Slot");function oE(a){const r=b.forwardRef((o,i)=>{let{children:u,...f}=o;if(qv(u)&&typeof vs=="function"&&(u=vs(u._payload)),b.isValidElement(u)){const d=uE(u),h=cE(f,u.props);return u.type!==b.Fragment&&(h.ref=i?$f(i,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var iE=Symbol("radix.slottable");function sE(a){return b.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===iE}function cE(a,r){const o={...r};for(const i in r){const u=a[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{...a,...o}}function uE(a){var i,u;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}function Gv(a){var r,o,i="";if(typeof a=="string"||typeof a=="number")i+=a;else if(typeof a=="object")if(Array.isArray(a)){var u=a.length;for(r=0;r<u;r++)a[r]&&(o=Gv(a[r]))&&(i&&(i+=" "),i+=o)}else for(o in a)a[o]&&(i&&(i+=" "),i+=o);return i}function $v(){for(var a,r,o=0,i="",u=arguments.length;o<u;o++)(a=arguments[o])&&(r=Gv(a))&&(i&&(i+=" "),i+=r);return i}const Rg=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,_g=$v,Xv=(a,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return _g(a,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=Rg(x)||Rg(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(R=>{let[E,C]=R;return Array.isArray(C)?C.includes({...f,...h}[E]):{...f,...h}[E]===C})?[...p,m,w]:p},[]);return _g(a,d,v,o==null?void 0:o.class,o==null?void 0:o.className)},fE=(a,r)=>{const o=new Array(a.length+r.length);for(let i=0;i<a.length;i++)o[i]=a[i];for(let i=0;i<r.length;i++)o[a.length+i]=r[i];return o},dE=(a,r)=>({classGroupId:a,validator:r}),Qv=(a=new Map,r=null,o)=>({nextPart:a,validators:r,classGroupId:o}),ys="-",Og=[],mE="arbitrary..",hE=a=>{const r=gE(a),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=a;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return pE(d);const h=d.split(ys),v=h[0]===""&&h.length>1?1:0;return Zv(h,v,r)},getConflictingClassGroupIds:(d,h)=>{if(h){const v=i[d],p=o[d];return v?p?fE(p,v):v:p||Og}return o[d]||Og}}},Zv=(a,r,o)=>{if(a.length-r===0)return o.classGroupId;const u=a[r],f=o.nextPart.get(u);if(f){const p=Zv(a,r+1,f);if(p)return p}const d=o.validators;if(d===null)return;const h=r===0?a.join(ys):a.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}},pE=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=a.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?mE+i:void 0})(),gE=a=>{const{theme:r,classGroups:o}=a;return vE(o,r)},vE=(a,r)=>{const o=Qv();for(const i in a){const u=a[i];Xf(u,o,i,r)}return o},Xf=(a,r,o,i)=>{const u=a.length;for(let f=0;f<u;f++){const d=a[f];yE(d,r,o,i)}},yE=(a,r,o,i)=>{if(typeof a=="string"){bE(a,r,o);return}if(typeof a=="function"){xE(a,r,o,i);return}SE(a,r,o,i)},bE=(a,r,o)=>{const i=a===""?r:Kv(r,a);i.classGroupId=o},xE=(a,r,o,i)=>{if(wE(a)){Xf(a(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(dE(o,a))},SE=(a,r,o,i)=>{const u=Object.entries(a),f=u.length;for(let d=0;d<f;d++){const[h,v]=u[d];Xf(v,Kv(r,h),o,i)}},Kv=(a,r)=>{let o=a;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=Qv(),o.nextPart.set(d,h)),o=h}return o},wE=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,EE=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const u=(f,d)=>{o[f]=d,r++,r>a&&(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="!",Mg=":",NE=[],Dg=(a,r,o,i,u)=>({modifiers:a,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),CE=a=>{const{prefix:r,experimentalParseClassName:o}=a;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 C=u[E];if(d===0&&h===0){if(C===Mg){f.push(u.slice(v,E)),v=E+1;continue}if(C==="/"){p=E;continue}}C==="["?d++:C==="]"?d--:C==="("?h++:C===")"&&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 R=p&&p>v?p-v:void 0;return Dg(f,N,w,R)};if(r){const u=r+Mg,f=i;i=d=>d.startsWith(u)?f(d.slice(u.length)):Dg(NE,!1,d,void 0,!0)}if(o){const u=i;i=f=>o({className:f,parseClassName:u})}return i},TE=a=>{const r=new Map;return a.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}},AE=a=>({cache:EE(a.cacheSize),parseClassName:CE(a),sortModifiers:TE(a),...hE(a)}),RE=/\s+/,_E=(a,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:f}=r,d=[],h=a.trim().split(RE);let v="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:m,modifiers:w,hasImportantModifier:N,baseClassName:R,maybePostfixModifierPosition:E}=o(x);if(m){v=x+(v.length>0?" "+v:v);continue}let C=!!E,T=i(C?R.substring(0,E):R);if(!T){if(!C){v=x+(v.length>0?" "+v:v);continue}if(T=i(R),!T){v=x+(v.length>0?" "+v:v);continue}C=!1}const j=w.length===0?"":w.length===1?w[0]:f(w).join(":"),D=N?j+Ef:j,B=D+T;if(d.indexOf(B)>-1)continue;d.push(B);const Z=u(T,C);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},OE=(...a)=>{let r=0,o,i,u="";for(;r<a.length;)(o=a[r++])&&(i=Pv(o))&&(u&&(u+=" "),u+=i);return u},Pv=a=>{if(typeof a=="string")return a;let r,o="";for(let i=0;i<a.length;i++)a[i]&&(r=Pv(a[i]))&&(o&&(o+=" "),o+=r);return o},ME=(a,...r)=>{let o,i,u,f;const d=v=>{const p=r.reduce((x,m)=>m(x),a());return o=AE(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=_E(v,o);return u(v,x),x};return f=d,(...v)=>f(OE(...v))},DE=[],ft=a=>{const r=o=>o[a]||DE;return r.isThemeGetter=!0,r},Jv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kE=/\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$/,LE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,UE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ba=a=>jE.test(a),Ae=a=>!!a&&!Number.isNaN(Number(a)),Ha=a=>!!a&&Number.isInteger(Number(a)),sf=a=>a.endsWith("%")&&Ae(a.slice(0,-1)),ra=a=>zE.test(a),Iv=()=>!0,HE=a=>kE.test(a)&&!LE.test(a),Qf=()=>!1,VE=a=>UE.test(a),YE=a=>BE.test(a),qE=a=>!se(a)&&!ce(a),GE=a=>Qa(a,ty,Qf),se=a=>Jv.test(a),yl=a=>Qa(a,ny,HE),jg=a=>Qa(a,FE,Ae),$E=a=>Qa(a,ly,Iv),XE=a=>Qa(a,ay,Qf),zg=a=>Qa(a,Wv,Qf),QE=a=>Qa(a,ey,YE),Wi=a=>Qa(a,ry,VE),ce=a=>Fv.test(a),To=a=>Tl(a,ny),ZE=a=>Tl(a,ay),kg=a=>Tl(a,Wv),KE=a=>Tl(a,ty),PE=a=>Tl(a,ey),es=a=>Tl(a,ry,!0),JE=a=>Tl(a,ly,!0),Qa=(a,r,o)=>{const i=Jv.exec(a);return i?i[1]?r(i[1]):o(i[2]):!1},Tl=(a,r,o=!1)=>{const i=Fv.exec(a);return i?i[1]?r(i[1]):o:!1},Wv=a=>a==="position"||a==="percentage",ey=a=>a==="image"||a==="url",ty=a=>a==="length"||a==="size"||a==="bg-size",ny=a=>a==="length",FE=a=>a==="number",ay=a=>a==="family-name",ly=a=>a==="number"||a==="weight",ry=a=>a==="shadow",IE=()=>{const a=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"),R=ft("blur"),E=ft("perspective"),C=ft("aspect"),T=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],ae=()=>[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()],le=()=>[Ba,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],I=()=>[a,ce,se],_=()=>[...B(),kg,zg,{position:[ce,se]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",KE,GE,{size:[ce,se]}],W=()=>[sf,To,yl],P=()=>["","none","full",p,ce,se],ne=()=>["",Ae,To,yl],ee=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Ae,sf,kg,zg],Te=()=>["","none",R,ce,se],we=()=>["none",Ae,ce,se],xe=()=>["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:[Iv],container:[ra],"drop-shadow":[ra],ease:["in","out","in-out"],font:[qE],"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,C]}],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:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[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",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],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,To,yl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,JE,$E]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sf,se]}],"font-family":[{font:[ZE,XE,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,jg]}],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,yl]}],"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]},PE,QE]}],"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,To,yl]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",x,es,Wi]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,es,Wi]}],"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,yl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,es,Wi]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Ae,ce,se]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[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:Te()}],brightness:[{brightness:[Ae,ce,se]}],contrast:[{contrast:[Ae,ce,se]}],"drop-shadow":[{"drop-shadow":["","none",N,es,Wi]}],"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":Te()}],"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",T,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:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"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,To,yl,jg]}],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"]}},WE=ME(IE);function Ce(...a){return WE($v(a))}const Zf=Xv("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"}}),Sl=b.forwardRef(({className:a,variant:r,size:o,asChild:i=!1,...u},f)=>{const d=i?rE:"button";return y.jsx(d,{className:Ce(Zf({variant:r,size:o,className:a})),ref:f,...u})});Sl.displayName="Button";const oy=b.createContext(null);function eN({children:a}){const[r,o]=b.useState(()=>typeof window<"u"?localStorage.getItem("meshy-theme")??"system":"system");return b.useEffect(()=>{const i=document.documentElement,u=f=>{if(f==="system"){const d=window.matchMedia("(prefers-color-scheme: dark)").matches;i.classList.toggle("dark",d)}else i.classList.toggle("dark",f==="dark")};if(u(r),localStorage.setItem("meshy-theme",r),r==="system"){const f=window.matchMedia("(prefers-color-scheme: dark)"),d=()=>u("system");return f.addEventListener("change",d),()=>f.removeEventListener("change",d)}},[r]),y.jsx(oy.Provider,{value:{theme:r,setTheme:o},children:a})}function tN(){const a=b.useContext(oy);if(!a)throw new Error("useTheme must be used within ThemeProvider");return a}const nN=Xv("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:a,variant:r,...o}){return y.jsx("div",{className:Ce(nN({variant:r}),a),...o})}const aN={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function iy({status:a}){return y.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[a==="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:Ce("relative inline-flex h-2.5 w-2.5 rounded-full",aN[a])})]})}function lN({role:a}){return y.jsx(St,{variant:a==="leader"?"default":"secondary",className:"text-[11px]",children:a})}const rN={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 e5({status:a}){const r=rN[a];return y.jsxs(St,{variant:r.variant,className:"gap-1.5 text-[11px] font-medium",children:[y.jsx("span",{className:Ce("h-1.5 w-1.5 rounded-full",r.dotClass)}),a]})}const oN={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function t5({priority:a}){const r=oN[a];return y.jsx(St,{variant:r.variant,className:"text-[11px]",children:r.label})}function iN(a){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=a:o.appendChild(document.createTextNode(a))}const sN=a=>{switch(a){case"success":return fN;case"info":return mN;case"warning":return dN;case"error":return hN;default:return null}},cN=Array(12).fill(0),uN=({visible:a,className:r})=>te.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":a},te.createElement("div",{className:"sonner-spinner"},cN.map((o,i)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),fN=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"})),dN=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"})),mN=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"})),hN=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"})),pN=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"})),gN=()=>{const[a,r]=te.useState(document.hidden);return te.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),a};let Nf=1;class vN{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(bN(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,R=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:w,...R})}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,R=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:w,...R})}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,R=typeof m=="object"&&!te.isValidElement(m)?m:{message:m};this.create({id:i,type:"success",description:w,...R})}}).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 vN,yN=(a,r)=>{const o=(r==null?void 0:r.id)||Nf++;return Vt.addToast({title:a,...r,id:o}),o},bN=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",xN=yN,SN=()=>Vt.toasts,wN=()=>Vt.getActiveToasts(),yr=Object.assign(xN,{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:SN,getToasts:wN});iN("[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 ts(a){return a.label!==void 0}const EN=3,NN="24px",CN="16px",Lg=4e3,TN=356,AN=14,RN=45,_N=200;function Rn(...a){return a.filter(Boolean).join(" ")}function ON(a){const[r,o]=a.split("-"),i=[];return r&&i.push(r),o&&i.push(o),i}const MN=a=>{var r,o,i,u,f,d,h,v,p;const{invert:x,toast:m,unstyled:w,interacting:N,setHeights:R,visibleToasts:E,heights:C,index:T,toasts:j,expanded:D,removeToast:B,defaultRichColors:Z,closeButton:F,style:q,cancelButtonStyle:V,actionButtonStyle:ae,className:he="",descriptionClassName:pe="",duration:fe,position:me,gap:ge,expandByDefault:ue,classNames:O,icons:Y,closeButtonAriaLabel:J="Close toast"}=a,[le,I]=te.useState(null),[_,G]=te.useState(null),[X,W]=te.useState(!1),[P,ne]=te.useState(!1),[ee,re]=te.useState(!1),[ie,Te]=te.useState(!1),[we,xe]=te.useState(!1),[tt,Xe]=te.useState(0),[fn,It]=te.useState(0),Yt=te.useRef(m.duration||fe||Lg),Pa=te.useRef(null),dt=te.useRef(null),_r=T===0,Or=T+1<=E,Tt=m.type,fa=m.dismissible!==!1,At=m.className||"",Hs=m.descriptionClassName||"",Ja=te.useMemo(()=>C.findIndex(be=>be.toastId===m.id)||0,[C,m.id]),Bo=te.useMemo(()=>{var be;return(be=m.closeButton)!=null?be:F},[m.closeButton,F]),Fa=te.useMemo(()=>m.duration||fe||Lg,[m.duration,fe]),Mr=te.useRef(0),Vn=te.useRef(0),Ho=te.useRef(0),da=te.useRef(null),[Ia,Rt]=me.split("-"),dn=te.useMemo(()=>C.reduce((be,Pe,mt)=>mt>=Ja?be:be+Pe.height,0),[C,Ja]),wt=gN(),Vs=m.invert||x,Dr=Tt==="loading";Vn.current=te.useMemo(()=>Ja*ge+dn,[Ja,dn]),te.useEffect(()=>{Yt.current=Fa},[Fa]),te.useEffect(()=>{W(!0)},[]),te.useEffect(()=>{const be=dt.current;if(be){const Pe=be.getBoundingClientRect().height;return It(Pe),R(mt=>[{toastId:m.id,height:Pe,position:m.position},...mt]),()=>R(mt=>mt.filter(Et=>Et.toastId!==m.id))}},[R,m.id]),te.useLayoutEffect(()=>{if(!X)return;const be=dt.current,Pe=be.style.height;be.style.height="auto";const mt=be.getBoundingClientRect().height;be.style.height=Pe,It(mt),R(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,R,m.id,m.jsx,m.action,m.cancel]);const wn=te.useCallback(()=>{ne(!0),Xe(Vn.current),R(be=>be.filter(Pe=>Pe.toastId!==m.id)),setTimeout(()=>{B(m)},_N)},[m,B,R,Vn]);te.useEffect(()=>{if(m.promise&&Tt==="loading"||m.duration===1/0||m.type==="loading")return;let be;return D||N||wt?(()=>{if(Ho.current<Mr.current){const Et=new Date().getTime()-Mr.current;Yt.current=Yt.current-Et}Ho.current=new Date().getTime()})():(()=>{Yt.current!==1/0&&(Mr.current=new Date().getTime(),be=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),wn()},Yt.current))})(),()=>clearTimeout(be)},[D,N,m,Tt,wt,wn]),te.useEffect(()=>{m.delete&&(wn(),m.onDismiss==null||m.onDismiss.call(m,m))},[wn,m.delete]);function Rl(){var be;if(Y!=null&&Y.loading){var Pe;return te.createElement("div",{className:Rn(O==null?void 0:O.loader,m==null||(Pe=m.classNames)==null?void 0:Pe.loader,"sonner-loader"),"data-visible":Tt==="loading"},Y.loading)}return te.createElement(uN,{className:Rn(O==null?void 0:O.loader,m==null||(be=m.classNames)==null?void 0:be.loader),visible:Tt==="loading"})}const _l=m.icon||(Y==null?void 0:Y[Tt])||sN(Tt);var Wa,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[Tt],m==null||(o=m.classNames)==null?void 0:o[Tt]),"data-sonner-toast":"","data-rich-colors":(Wa=m.richColors)!=null?Wa:Z,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":X,"data-promise":!!m.promise,"data-swiped":we,"data-removed":P,"data-visible":Or,"data-y-position":Ia,"data-x-position":Rt,"data-index":T,"data-front":_r,"data-swiping":ee,"data-dismissible":fa,"data-type":Tt,"data-invert":Vs,"data-swipe-out":ie,"data-swipe-direction":_,"data-expanded":!!(D||ue&&X),"data-testid":m.testId,style:{"--index":T,"--toasts-before":T,"--z-index":j.length-T,"--offset":`${P?tt:Vn.current}px`,"--initial-height":ue?"auto":`${fn}px`,...q,...m.style},onDragEnd:()=>{re(!1),I(null),da.current=null},onPointerDown:be=>{be.button!==2&&(Dr||!fa||(Pa.current=new Date,Xe(Vn.current),be.target.setPointerCapture(be.pointerId),be.target.tagName!=="BUTTON"&&(re(!0),da.current={x:be.clientX,y:be.clientY})))},onPointerUp:()=>{var be,Pe,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(((Pe=dt.current)==null?void 0:Pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((mt=Pa.current)==null?void 0:mt.getTime()),Ot=le==="x"?Et:ma,el=Math.abs(Ot)/et;if(Math.abs(Ot)>=RN||el>.11){Xe(Vn.current),m.onDismiss==null||m.onDismiss.call(m,m),G(le==="x"?Et>0?"right":"left":ma>0?"down":"up"),wn(),Te(!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")}xe(!1),re(!1),I(null)},onPointerMove:be=>{var Pe,mt,Et;if(!da.current||!fa||((Pe=window.getSelection())==null?void 0:Pe.toString().length)>0)return;const et=be.clientY-da.current.y,Ot=be.clientX-da.current.x;var el;const Mt=(el=a.swipeDirections)!=null?el:ON(me);!le&&(Math.abs(Ot)>1||Math.abs(et)>1)&&I(Math.abs(Ot)>Math.abs(et)?"x":"y");let Dt={x:0,y:0};const Ol=mn=>1/(1.5+Math.abs(mn)/20);if(le==="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*Ol(et);Dt.y=Math.abs(mn)<Math.abs(et)?mn:et}}else if(le==="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*Ol(Ot);Dt.x=Math.abs(mn)<Math.abs(Ot)?mn:Ot}(Math.abs(Dt.x)>0||Math.abs(Dt.y)>0)&&xe(!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`)}},Bo&&!m.jsx&&Tt!=="loading"?te.createElement("button",{"aria-label":J,"data-disabled":Dr,"data-close-button":!0,onClick:Dr||!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:pN):null,(Tt||m.icon||m.promise)&&m.icon!==null&&((Y==null?void 0:Y[Tt])!==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||Rl():null,m.type!=="loading"?_l: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,Hs,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&&ts(m.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||V,onClick:be=>{ts(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&&ts(m.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||ae,onClick:be=>{ts(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 Ug(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function DN(a,r){const o={};return[a,r].forEach((i,u)=>{const f=u===1,d=f?"--mobile-offset":"--offset",h=f?CN:NN;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 jN=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:R,style:E,visibleToasts:C=EN,toastOptions:T,dir:j=Ug(),gap:D=AN,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]),ae=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),le=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(()=>{jv.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(re=>W[re]||W.code===re)){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} ${le}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ae.map((X,W)=>{var P;const[ne,ee]=X.split("-");return V.length?te.createElement("ol",{key:X,dir:j==="auto"?Ug():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":`${TN}px`,"--gap":`${D}px`,...E,...DN(x,m)},onBlur:re=>{_.current&&!re.currentTarget.contains(re.relatedTarget)&&(_.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||_.current||(_.current=!0,I.current=re.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{ge||me(!1)},onDragEnd:()=>me(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},V.filter(re=>!re.position&&W===0||re.position===X).map((re,ie)=>{var Te,we;return te.createElement(MN,{key:re.id,icons:B,index:ie,toast:re,defaultRichColors:N,duration:(Te=T==null?void 0:T.duration)!=null?Te:R,className:T==null?void 0:T.className,descriptionClassName:T==null?void 0:T.descriptionClassName,invert:u,visibleToasts:C,closeButton:(we=T==null?void 0:T.closeButton)!=null?we:v,interacting:ge,position:X,style:T==null?void 0:T.style,unstyled:T==null?void 0:T.unstyled,classNames:T==null?void 0:T.classNames,cancelButtonStyle:T==null?void 0:T.cancelButtonStyle,actionButtonStyle:T==null?void 0:T.actionButtonStyle,closeButtonAriaLabel:T==null?void 0:T.closeButtonAriaLabel,removeToast:G,toasts:V.filter(xe=>xe.position==re.position),heights:he.filter(xe=>xe.position==re.position),setHeights:pe,expandByDefault:h,gap:D,expanded:fe,swipeDirections:r.swipeDirections})})):null}))}),_n=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ce("rounded-lg border bg-card text-card-foreground shadow-sm",a),...r}));_n.displayName="Card";const On=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ce("flex flex-col space-y-1.5 p-6",a),...r}));On.displayName="CardHeader";const Mn=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ce("text-2xl font-semibold leading-none tracking-tight",a),...r}));Mn.displayName="CardTitle";const Dn=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ce("text-sm text-muted-foreground",a),...r}));Dn.displayName="CardDescription";const jn=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ce("p-6 pt-0",a),...r}));jn.displayName="CardContent";const zN=b.forwardRef(({className:a,...r},o)=>y.jsx("div",{ref:o,className:Ce("flex items-center p-6 pt-0",a),...r}));zN.displayName="CardFooter";function ze(a,r,{checkForDefaultPrevented:o=!0}={}){return function(u){if(a==null||a(u),o===!1||!u.defaultPrevented)return r==null?void 0:r(u)}}function kN(a,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=a+"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 \`${a}\``)}return[i,u]}function Al(a,r=[]){let o=[];function i(f,d){const h=b.createContext(d),v=o.length;o=[...o,d];const p=m=>{var T;const{scope:w,children:N,...R}=m,E=((T=w==null?void 0:w[a])==null?void 0:T[v])||h,C=b.useMemo(()=>R,Object.values(R));return y.jsx(E.Provider,{value:C,children:N})};p.displayName=f+"Provider";function x(m,w){var E;const N=((E=w==null?void 0:w[a])==null?void 0:E[v])||h,R=b.useContext(N);if(R)return R;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[a])||f;return b.useMemo(()=>({[`__scope${a}`]:{...h,[a]:v}}),[h,v])}};return u.scopeName=a,[i,LN(u,...r)]}function LN(...a){const r=a[0];if(a.length===1)return r;const o=()=>{const i=a.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 Ct=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},UN=Uf[" useId ".trim().toString()]||(()=>{}),BN=0;function qa(a){const[r,o]=b.useState(UN());return Ct(()=>{o(i=>i??String(BN++))},[a]),r?`radix-${r}`:""}var HN=Uf[" useInsertionEffect ".trim().toString()]||Ct;function _o({prop:a,defaultProp:r,onChange:o=()=>{},caller:i}){const[u,f,d]=VN({defaultProp:r,onChange:o}),h=a!==void 0,v=h?a:u;{const x=b.useRef(a!==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=YN(x)?x(a):x;w!==a&&((m=d.current)==null||m.call(d,w))}else f(x)},[h,a,f,d]);return[v,p]}function VN({defaultProp:a,onChange:r}){const[o,i]=b.useState(a),u=b.useRef(o),f=b.useRef(r);return HN(()=>{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 YN(a){return typeof a=="function"}function Oo(a){const r=qN(a),o=b.forwardRef((i,u)=>{const{children:f,...d}=i,h=b.Children.toArray(f),v=h.find($N);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=`${a}.Slot`,o}function qN(a){const r=b.forwardRef((o,i)=>{const{children:u,...f}=o;if(b.isValidElement(u)){const d=QN(u),h=XN(f,u.props);return u.type!==b.Fragment&&(h.ref=i?$f(i,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var sy=Symbol("radix.slottable");function GN(a){const r=({children:o})=>y.jsx(y.Fragment,{children:o});return r.displayName=`${a}.Slottable`,r.__radixId=sy,r}function $N(a){return b.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===sy}function XN(a,r){const o={...r};for(const i in r){const u=a[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{...a,...o}}function QN(a){var i,u;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}var ZN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=ZN.reduce((a,r)=>{const o=Oo(`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}`,{...a,[r]:i}},{});function KN(a,r){a&&zo.flushSync(()=>a.dispatchEvent(r))}function Ga(a){const r=b.useRef(a);return b.useEffect(()=>{r.current=a}),b.useMemo(()=>(...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)},[])}function PN(a,r=globalThis==null?void 0:globalThis.document){const o=Ga(a);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 JN="DismissableLayer",Cf="dismissableLayer.update",FN="dismissableLayer.pointerDownOutside",IN="dismissableLayer.focusOutside",Bg,cy=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kf=b.forwardRef((a,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...v}=a,p=b.useContext(cy),[x,m]=b.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=b.useState({}),R=Ie(r,q=>m(q)),E=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),T=E.indexOf(C),j=x?E.indexOf(x):-1,D=p.layersWithOutsidePointerEventsDisabled.size>0,B=j>=T,Z=tC(q=>{const V=q.target,ae=[...p.branches].some(he=>he.contains(V));!B||ae||(u==null||u(q),d==null||d(q),q.defaultPrevented||h==null||h())},w),F=nC(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 PN(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(Cf,q),()=>document.removeEventListener(Cf,q)},[]),y.jsx(Be.div,{...v,ref:R,style:{pointerEvents:D?B?"auto":"none":void 0,...a.style},onFocusCapture:ze(a.onFocusCapture,F.onFocusCapture),onBlurCapture:ze(a.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ze(a.onPointerDownCapture,Z.onPointerDownCapture)})});Kf.displayName=JN;var WN="DismissableLayerBranch",eC=b.forwardRef((a,r)=>{const o=b.useContext(cy),i=b.useRef(null),u=Ie(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,{...a,ref:u})});eC.displayName=WN;function tC(a,r=globalThis==null?void 0:globalThis.document){const o=Ga(a),i=b.useRef(!1),u=b.useRef(()=>{});return b.useEffect(()=>{const f=h=>{if(h.target&&!i.current){let v=function(){uy(FN,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 nC(a,r=globalThis==null?void 0:globalThis.document){const o=Ga(a),i=b.useRef(!1);return b.useEffect(()=>{const u=f=>{f.target&&!i.current&&uy(IN,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 a=new CustomEvent(Cf);document.dispatchEvent(a)}function uy(a,r,o,{discrete:i}){const u=o.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:o});r&&u.addEventListener(a,r,{once:!0}),i?KN(u,f):u.dispatchEvent(f)}var cf="focusScope.autoFocusOnMount",uf="focusScope.autoFocusOnUnmount",Vg={bubbles:!1,cancelable:!0},aC="FocusScope",Pf=b.forwardRef((a,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=a,[h,v]=b.useState(null),p=Ga(u),x=Ga(f),m=b.useRef(null),w=Ie(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})},C=function(D){if(N.paused||!h)return;const B=D.relatedTarget;B!==null&&(h.contains(B)||Va(m.current,{select:!0}))},T=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",C);const j=new MutationObserver(T);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),j.disconnect()}}},[i,h,N.paused]),b.useEffect(()=>{if(h){qg.add(N);const E=document.activeElement;if(!h.contains(E)){const T=new CustomEvent(cf,Vg);h.addEventListener(cf,p),h.dispatchEvent(T),T.defaultPrevented||(lC(cC(fy(h)),{select:!0}),document.activeElement===E&&Va(h))}return()=>{h.removeEventListener(cf,p),setTimeout(()=>{const T=new CustomEvent(uf,Vg);h.addEventListener(uf,x),h.dispatchEvent(T),T.defaultPrevented||Va(E??document.body,{select:!0}),h.removeEventListener(uf,x),qg.remove(N)},0)}}},[h,p,x,N]);const R=b.useCallback(E=>{if(!o&&!i||N.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,T=document.activeElement;if(C&&T){const j=E.currentTarget,[D,B]=rC(j);D&&B?!E.shiftKey&&T===B?(E.preventDefault(),o&&Va(D,{select:!0})):E.shiftKey&&T===D&&(E.preventDefault(),o&&Va(B,{select:!0})):T===j&&E.preventDefault()}},[o,i,N.paused]);return y.jsx(Be.div,{tabIndex:-1,...d,ref:w,onKeyDown:R})});Pf.displayName=aC;function lC(a,{select:r=!1}={}){const o=document.activeElement;for(const i of a)if(Va(i,{select:r}),document.activeElement!==o)return}function rC(a){const r=fy(a),o=Yg(r,a),i=Yg(r.reverse(),a);return[o,i]}function fy(a){const r=[],o=document.createTreeWalker(a,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(a,r){for(const o of a)if(!oC(o,{upTo:r}))return o}function oC(a,{upTo:r}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(r!==void 0&&a===r)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function iC(a){return a instanceof HTMLInputElement&&"select"in a}function Va(a,{select:r=!1}={}){if(a&&a.focus){const o=document.activeElement;a.focus({preventScroll:!0}),a!==o&&iC(a)&&r&&a.select()}}var qg=sC();function sC(){let a=[];return{add(r){const o=a[0];r!==o&&(o==null||o.pause()),a=Gg(a,r),a.unshift(r)},remove(r){var o;a=Gg(a,r),(o=a[0])==null||o.resume()}}}function Gg(a,r){const o=[...a],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function cC(a){return a.filter(r=>r.tagName!=="A")}var uC="Portal",Jf=b.forwardRef((a,r)=>{var h;const{container:o,...i}=a,[u,f]=b.useState(!1);Ct(()=>f(!0),[]);const d=o||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?jv.createPortal(y.jsx(Be.div,{...i,ref:r}),d):null});Jf.displayName=uC;function fC(a,r){return b.useReducer((o,i)=>r[o][i]??o,a)}var ko=a=>{const{present:r,children:o}=a,i=dC(r),u=typeof o=="function"?o({present:i.isPresent}):b.Children.only(o),f=Ie(i.ref,mC(u));return typeof o=="function"||i.isPresent?b.cloneElement(u,{ref:f}):null};ko.displayName="Presence";function dC(a){const[r,o]=b.useState(),i=b.useRef(null),u=b.useRef(a),f=b.useRef("none"),d=a?"mounted":"unmounted",[h,v]=fC(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=ns(i.current);f.current=h==="mounted"?p:"none"},[h]),Ct(()=>{const p=i.current,x=u.current;if(x!==a){const w=f.current,N=ns(p);a?v("MOUNT"):N==="none"||(p==null?void 0:p.display)==="none"?v("UNMOUNT"):v(x&&w!==N?"ANIMATION_OUT":"UNMOUNT"),u.current=a}},[a,v]),Ct(()=>{if(r){let p;const x=r.ownerDocument.defaultView??window,m=N=>{const E=ns(i.current).includes(CSS.escape(N.animationName));if(N.target===r&&E&&(v("ANIMATION_END"),!u.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",p=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},w=N=>{N.target===r&&(f.current=ns(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 ns(a){return(a==null?void 0:a.animationName)||"none"}function mC(a){var i,u;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}var ff=0;function dy(){b.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??$g()),document.body.insertAdjacentElement("beforeend",a[1]??$g()),ff++,()=>{ff===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ff--}},[])}function $g(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}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 my(a,r){var o={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&r.indexOf(i)<0&&(o[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(a);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(a,i[u])&&(o[i[u]]=a[i[u]]);return o}function hC(a,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 a.concat(f||Array.prototype.slice.call(r))}var fs="right-scroll-bar-position",ds="width-before-scroll-bar",pC="with-scroll-bars-hidden",gC="--removed-body-scroll-bar-size";function df(a,r){return typeof a=="function"?a(r):a&&(a.current=r),a}function vC(a,r){var o=b.useState(function(){return{value:a,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 yC=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xg=new WeakMap;function bC(a,r){var o=vC(null,function(i){return a.forEach(function(u){return df(u,i)})});return yC(function(){var i=Xg.get(o);if(i){var u=new Set(i),f=new Set(a),d=o.current;u.forEach(function(h){f.has(h)||df(h,null)}),f.forEach(function(h){u.has(h)||df(h,d)})}Xg.set(o,a)},[a]),o}function xC(a){return a}function SC(a,r){r===void 0&&(r=xC);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]:a},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 wC(a){a===void 0&&(a={});var r=SC(null);return r.options=zn({async:!0,ssr:!1},a),r}var hy=function(a){var r=a.sideCar,o=my(a,["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))};hy.isSideCarExport=!0;function EC(a,r){return a.useMedium(r),hy}var py=wC(),mf=function(){},Rs=b.forwardRef(function(a,r){var o=b.useRef(null),i=b.useState({onScrollCapture:mf,onWheelCapture:mf,onTouchMoveCapture:mf}),u=i[0],f=i[1],d=a.forwardProps,h=a.children,v=a.className,p=a.removeScrollBar,x=a.enabled,m=a.shards,w=a.sideCar,N=a.noRelative,R=a.noIsolation,E=a.inert,C=a.allowPinchZoom,T=a.as,j=T===void 0?"div":T,D=a.gapMode,B=my(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=w,F=bC([o,r]),q=zn(zn({},B),u);return b.createElement(b.Fragment,null,x&&b.createElement(Z,{sideCar:py,removeScrollBar:p,shards:m,noRelative:N,noIsolation:R,inert:E,setCallbacks:f,allowPinchZoom:!!C,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))});Rs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rs.classNames={fullWidth:ds,zeroRight:fs};var NC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CC(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var r=NC();return r&&a.setAttribute("nonce",r),a}function TC(a,r){a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))}function AC(a){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(a)}var RC=function(){var a=0,r=null;return{add:function(o){a==0&&(r=CC())&&(TC(r,o),AC(r)),a++},remove:function(){a--,!a&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},_C=function(){var a=RC();return function(r,o){b.useEffect(function(){return a.add(r),function(){a.remove()}},[r&&o])}},gy=function(){var a=_C(),r=function(o){var i=o.styles,u=o.dynamic;return a(i,u),null};return r},OC={left:0,top:0,right:0,gap:0},hf=function(a){return parseInt(a||"",10)||0},MC=function(a){var r=window.getComputedStyle(document.body),o=r[a==="padding"?"paddingLeft":"marginLeft"],i=r[a==="padding"?"paddingTop":"marginTop"],u=r[a==="padding"?"paddingRight":"marginRight"];return[hf(o),hf(i),hf(u)]},DC=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return OC;var r=MC(a),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])}},jC=gy(),br="data-scroll-locked",zC=function(a,r,o,i){var u=a.left,f=a.top,d=a.right,h=a.gap;return o===void 0&&(o="margin"),`
|
|
217
|
+
.`.concat(pC,` {
|
|
218
|
+
overflow: hidden `).concat(i,`;
|
|
219
|
+
padding-right: `).concat(h,"px ").concat(i,`;
|
|
220
|
+
}
|
|
221
|
+
body[`).concat(br,`] {
|
|
222
|
+
overflow: hidden `).concat(i,`;
|
|
223
|
+
overscroll-behavior: contain;
|
|
224
|
+
`).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
|
|
225
|
+
padding-left: `.concat(u,`px;
|
|
226
|
+
padding-top: `).concat(f,`px;
|
|
227
|
+
padding-right: `).concat(d,`px;
|
|
228
|
+
margin-left:0;
|
|
229
|
+
margin-top:0;
|
|
230
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
231
|
+
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.`).concat(fs,` {
|
|
235
|
+
right: `).concat(h,"px ").concat(i,`;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.`).concat(ds,` {
|
|
239
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.`).concat(fs," .").concat(fs,` {
|
|
243
|
+
right: 0 `).concat(i,`;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.`).concat(ds," .").concat(ds,` {
|
|
247
|
+
margin-right: 0 `).concat(i,`;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
body[`).concat(br,`] {
|
|
251
|
+
`).concat(gC,": ").concat(h,`px;
|
|
252
|
+
}
|
|
253
|
+
`)},Qg=function(){var a=parseInt(document.body.getAttribute(br)||"0",10);return isFinite(a)?a:0},kC=function(){b.useEffect(function(){return document.body.setAttribute(br,(Qg()+1).toString()),function(){var a=Qg()-1;a<=0?document.body.removeAttribute(br):document.body.setAttribute(br,a.toString())}},[])},LC=function(a){var r=a.noRelative,o=a.noImportant,i=a.gapMode,u=i===void 0?"margin":i;kC();var f=b.useMemo(function(){return DC(u)},[u]);return b.createElement(jC,{styles:zC(f,!r,u,o?"":"!important")})},Tf=!1;if(typeof window<"u")try{var as=Object.defineProperty({},"passive",{get:function(){return Tf=!0,!0}});window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{Tf=!1}var pr=Tf?{passive:!1}:!1,UC=function(a){return a.tagName==="TEXTAREA"},vy=function(a,r){if(!(a instanceof Element))return!1;var o=window.getComputedStyle(a);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!UC(a)&&o[r]==="visible")},BC=function(a){return vy(a,"overflowY")},HC=function(a){return vy(a,"overflowX")},Zg=function(a,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=yy(a,i);if(u){var f=by(a,i),d=f[1],h=f[2];if(d>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},VC=function(a){var r=a.scrollTop,o=a.scrollHeight,i=a.clientHeight;return[r,o,i]},YC=function(a){var r=a.scrollLeft,o=a.scrollWidth,i=a.clientWidth;return[r,o,i]},yy=function(a,r){return a==="v"?BC(r):HC(r)},by=function(a,r){return a==="v"?VC(r):YC(r)},qC=function(a,r){return a==="h"&&r==="rtl"?-1:1},GC=function(a,r,o,i,u){var f=qC(a,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=by(a,h),R=N[0],E=N[1],C=N[2],T=E-C-f*R;(R||T)&&yy(a,h)&&(m+=T,w+=R);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},ls=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},Kg=function(a){return[a.deltaX,a.deltaY]},Pg=function(a){return a&&"current"in a?a.current:a},$C=function(a,r){return a[0]===r[0]&&a[1]===r[1]},XC=function(a){return`
|
|
254
|
+
.block-interactivity-`.concat(a,` {pointer-events: none;}
|
|
255
|
+
.allow-interactivity-`).concat(a,` {pointer-events: all;}
|
|
256
|
+
`)},QC=0,gr=[];function ZC(a){var r=b.useRef([]),o=b.useRef([0,0]),i=b.useRef(),u=b.useState(QC++)[0],f=b.useState(gy)[0],d=b.useRef(a);b.useEffect(function(){d.current=a},[a]),b.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(u));var E=hC([a.lockRef.current],(a.shards||[]).map(Pg),!0).filter(Boolean);return E.forEach(function(C){return C.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(u))})}}},[a.inert,a.lockRef.current,a.shards]);var h=b.useCallback(function(E,C){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var T=ls(E),j=o.current,D="deltaX"in E?E.deltaX:j[0]-T[0],B="deltaY"in E?E.deltaY:j[1]-T[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(),ae=V&&V.anchorNode,he=ae?ae===F||ae.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 GC(fe,C,E,fe==="h"?D:B)},[]),v=b.useCallback(function(E){var C=E;if(!(!gr.length||gr[gr.length-1]!==f)){var T="deltaY"in C?Kg(C):ls(C),j=r.current.filter(function(Z){return Z.name===C.type&&(Z.target===C.target||C.target===Z.shadowParent)&&$C(Z.delta,T)})[0];if(j&&j.should){C.cancelable&&C.preventDefault();return}if(!j){var D=(d.current.shards||[]).map(Pg).filter(Boolean).filter(function(Z){return Z.contains(C.target)}),B=D.length>0?h(C,D[0]):!d.current.noIsolation;B&&C.cancelable&&C.preventDefault()}}},[]),p=b.useCallback(function(E,C,T,j){var D={name:E,delta:C,target:T,should:j,shadowParent:KC(T)};r.current.push(D),setTimeout(function(){r.current=r.current.filter(function(B){return B!==D})},1)},[]),x=b.useCallback(function(E){o.current=ls(E),i.current=void 0},[]),m=b.useCallback(function(E){p(E.type,Kg(E),E.target,h(E,a.lockRef.current))},[]),w=b.useCallback(function(E){p(E.type,ls(E),E.target,h(E,a.lockRef.current))},[]);b.useEffect(function(){return gr.push(f),a.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:w}),document.addEventListener("wheel",v,pr),document.addEventListener("touchmove",v,pr),document.addEventListener("touchstart",x,pr),function(){gr=gr.filter(function(E){return E!==f}),document.removeEventListener("wheel",v,pr),document.removeEventListener("touchmove",v,pr),document.removeEventListener("touchstart",x,pr)}},[]);var N=a.removeScrollBar,R=a.inert;return b.createElement(b.Fragment,null,R?b.createElement(f,{styles:XC(u)}):null,N?b.createElement(LC,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function KC(a){for(var r=null;a!==null;)a instanceof ShadowRoot&&(r=a.host,a=a.host),a=a.parentNode;return r}const PC=EC(py,ZC);var Ff=b.forwardRef(function(a,r){return b.createElement(Rs,zn({},a,{ref:r,sideCar:PC}))});Ff.classNames=Rs.classNames;var JC=function(a){if(typeof document>"u")return null;var r=Array.isArray(a)?a[0]:a;return r.ownerDocument.body},vr=new WeakMap,rs=new WeakMap,os={},pf=0,xy=function(a){return a&&(a.host||xy(a.parentNode))},FC=function(a,r){return r.map(function(o){if(a.contains(o))return o;var i=xy(o);return i&&a.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",a,". Doing nothing"),null)}).filter(function(o){return!!o})},IC=function(a,r,o,i){var u=FC(r,Array.isArray(a)?a:[a]);os[o]||(os[o]=new WeakMap);var f=os[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),R=N!==null&&N!=="false",E=(vr.get(w)||0)+1,C=(f.get(w)||0)+1;vr.set(w,E),f.set(w,C),d.push(w),E===1&&R&&rs.set(w,!0),C===1&&w.setAttribute(o,"true"),R||w.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",w,T)}})};return x(r),h.clear(),pf++,function(){d.forEach(function(m){var w=vr.get(m)-1,N=f.get(m)-1;vr.set(m,w),f.set(m,N),w||(rs.has(m)||m.removeAttribute(i),rs.delete(m)),N||m.removeAttribute(o)}),pf--,pf||(vr=new WeakMap,vr=new WeakMap,rs=new WeakMap,os={})}},Sy=function(a,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(a)?a:[a]),u=JC(a);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),IC(i,u,o,"aria-hidden")):function(){return null}},_s="Dialog",[wy,Ey]=Al(_s),[WC,Sn]=wy(_s),Ny=a=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:f,modal:d=!0}=a,h=b.useRef(null),v=b.useRef(null),[p,x]=_o({prop:i,defaultProp:u??!1,onChange:f,caller:_s});return y.jsx(WC,{scope:r,triggerRef:h,contentRef:v,contentId:qa(),titleId:qa(),descriptionId:qa(),open:p,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(m=>!m),[x]),modal:d,children:o})};Ny.displayName=_s;var Cy="DialogTrigger",Ty=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(Cy,o),f=Ie(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:ze(a.onClick,u.onOpenToggle)})});Ty.displayName=Cy;var If="DialogPortal",[eT,Ay]=wy(If,{forceMount:void 0}),Ry=a=>{const{__scopeDialog:r,forceMount:o,children:i,container:u}=a,f=Sn(If,r);return y.jsx(eT,{scope:r,forceMount:o,children:b.Children.map(i,d=>y.jsx(ko,{present:o||f.open,children:y.jsx(Jf,{asChild:!0,container:u,children:d})}))})};Ry.displayName=If;var bs="DialogOverlay",_y=b.forwardRef((a,r)=>{const o=Ay(bs,a.__scopeDialog),{forceMount:i=o.forceMount,...u}=a,f=Sn(bs,a.__scopeDialog);return f.modal?y.jsx(ko,{present:i||f.open,children:y.jsx(nT,{...u,ref:r})}):null});_y.displayName=bs;var tT=Oo("DialogOverlay.RemoveScroll"),nT=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(bs,o);return y.jsx(Ff,{as:tT,allowPinchZoom:!0,shards:[u.contentRef],children:y.jsx(Be.div,{"data-state":ed(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),wl="DialogContent",Oy=b.forwardRef((a,r)=>{const o=Ay(wl,a.__scopeDialog),{forceMount:i=o.forceMount,...u}=a,f=Sn(wl,a.__scopeDialog);return y.jsx(ko,{present:i||f.open,children:f.modal?y.jsx(aT,{...u,ref:r}):y.jsx(lT,{...u,ref:r})})});Oy.displayName=wl;var aT=b.forwardRef((a,r)=>{const o=Sn(wl,a.__scopeDialog),i=b.useRef(null),u=Ie(r,o.contentRef,i);return b.useEffect(()=>{const f=i.current;if(f)return Sy(f)},[]),y.jsx(My,{...a,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(a.onCloseAutoFocus,f=>{var d;f.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ze(a.onPointerDownOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&f.preventDefault()}),onFocusOutside:ze(a.onFocusOutside,f=>f.preventDefault())})}),lT=b.forwardRef((a,r)=>{const o=Sn(wl,a.__scopeDialog),i=b.useRef(!1),u=b.useRef(!1);return y.jsx(My,{...a,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,h;(d=a.onCloseAutoFocus)==null||d.call(a,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=a.onInteractOutside)==null||v.call(a,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()}})}),My=b.forwardRef((a,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...d}=a,h=Sn(wl,o),v=b.useRef(null),p=Ie(r,v);return dy(),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(oT,{titleId:h.titleId}),y.jsx(sT,{contentRef:v,descriptionId:h.descriptionId})]})]})}),Wf="DialogTitle",Dy=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(Wf,o);return y.jsx(Be.h2,{id:u.titleId,...i,ref:r})});Dy.displayName=Wf;var jy="DialogDescription",zy=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(jy,o);return y.jsx(Be.p,{id:u.descriptionId,...i,ref:r})});zy.displayName=jy;var ky="DialogClose",Ly=b.forwardRef((a,r)=>{const{__scopeDialog:o,...i}=a,u=Sn(ky,o);return y.jsx(Be.button,{type:"button",...i,ref:r,onClick:ze(a.onClick,()=>u.onOpenChange(!1))})});Ly.displayName=ky;function ed(a){return a?"open":"closed"}var Uy="DialogTitleWarning",[rT,By]=kN(Uy,{contentName:wl,titleName:Wf,docsSlug:"dialog"}),oT=({titleId:a})=>{const r=By(Uy),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
257
|
+
|
|
258
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
259
|
+
|
|
260
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return b.useEffect(()=>{a&&(document.getElementById(a)||console.error(o))},[o,a]),null},iT="DialogDescriptionWarning",sT=({contentRef:a,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${By(iT).contentName}}.`;return b.useEffect(()=>{var f;const u=(f=a.current)==null?void 0:f.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,a,r]),null},Hy=Ny,Vy=Ty,Yy=Ry,td=_y,nd=Oy,ad=Dy,ld=zy,Os=Ly;const cT=Hy,uT=Vy,fT=Yy,n5=Os,qy=b.forwardRef(({className:a,...r},o)=>y.jsx(td,{ref:o,className:Ce("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",a),...r}));qy.displayName=td.displayName;const Gy=b.forwardRef(({className:a,children:r,...o},i)=>y.jsxs(fT,{children:[y.jsx(qy,{}),y.jsxs(nd,{ref:i,className:Ce("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",a),...o,children:[r,y.jsxs(Os,{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(Yv,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Gy.displayName=nd.displayName;const $y=({className:a,...r})=>y.jsx("div",{className:Ce("flex flex-col space-y-1.5 text-center sm:text-left",a),...r});$y.displayName="DialogHeader";const dT=({className:a,...r})=>y.jsx("div",{className:Ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...r});dT.displayName="DialogFooter";const Xy=b.forwardRef(({className:a,...r},o)=>y.jsx(ad,{ref:o,className:Ce("text-lg font-semibold leading-none tracking-tight",a),...r}));Xy.displayName=ad.displayName;const Qy=b.forwardRef(({className:a,...r},o)=>y.jsx(ld,{ref:o,className:Ce("text-sm text-muted-foreground",a),...r}));Qy.displayName=ld.displayName;function Jg(a,[r,o]){return Math.min(o,Math.max(r,a))}function Zy(a){const r=a+"CollectionProvider",[o,i]=Al(r),[u,f]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=E=>{const{scope:C,children:T}=E,j=te.useRef(null),D=te.useRef(new Map).current;return y.jsx(u,{scope:C,itemMap:D,collectionRef:j,children:T})};d.displayName=r;const h=a+"CollectionSlot",v=Oo(h),p=te.forwardRef((E,C)=>{const{scope:T,children:j}=E,D=f(h,T),B=Ie(C,D.collectionRef);return y.jsx(v,{ref:B,children:j})});p.displayName=h;const x=a+"CollectionItemSlot",m="data-radix-collection-item",w=Oo(x),N=te.forwardRef((E,C)=>{const{scope:T,children:j,...D}=E,B=te.useRef(null),Z=Ie(C,B),F=f(x,T);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 R(E){const C=f(a+"CollectionConsumer",E);return te.useCallback(()=>{const j=C.collectionRef.current;if(!j)return[];const D=Array.from(j.querySelectorAll(`[${m}]`));return Array.from(C.itemMap.values()).sort((F,q)=>D.indexOf(F.ref.current)-D.indexOf(q.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:d,Slot:p,ItemSlot:N},R,i]}var mT=b.createContext(void 0);function rd(a){const r=b.useContext(mT);return a||r||"ltr"}const hT=["top","right","bottom","left"],$a=Math.min,Pt=Math.max,xs=Math.round,is=Math.floor,Un=a=>({x:a,y:a}),pT={left:"right",right:"left",bottom:"top",top:"bottom"};function Af(a,r,o){return Pt(a,$a(r,o))}function ia(a,r){return typeof a=="function"?a(r):a}function sa(a){return a.split("-")[0]}function Tr(a){return a.split("-")[1]}function od(a){return a==="x"?"y":"x"}function id(a){return a==="y"?"height":"width"}function kn(a){const r=a[0];return r==="t"||r==="b"?"y":"x"}function sd(a){return od(kn(a))}function gT(a,r,o){o===void 0&&(o=!1);const i=Tr(a),u=sd(a),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=Ss(d)),[d,Ss(d)]}function vT(a){const r=Ss(a);return[Rf(a),r,Rf(r)]}function Rf(a){return a.includes("start")?a.replace("start","end"):a.replace("end","start")}const Fg=["left","right"],Ig=["right","left"],yT=["top","bottom"],bT=["bottom","top"];function xT(a,r,o){switch(a){case"top":case"bottom":return o?r?Ig:Fg:r?Fg:Ig;case"left":case"right":return r?yT:bT;default:return[]}}function ST(a,r,o,i){const u=Tr(a);let f=xT(sa(a),o==="start",i);return u&&(f=f.map(d=>d+"-"+u),r&&(f=f.concat(f.map(Rf)))),f}function Ss(a){const r=sa(a);return pT[r]+a.slice(r.length)}function wT(a){return{top:0,right:0,bottom:0,left:0,...a}}function Ky(a){return typeof a!="number"?wT(a):{top:a,right:a,bottom:a,left:a}}function ws(a){const{x:r,y:o,width:i,height:u}=a;return{width:i,height:u,top:o,left:r,right:r+i,bottom:o+u,x:r,y:o}}function Wg(a,r,o){let{reference:i,floating:u}=a;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(Tr(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 ET(a,r){var o;r===void 0&&(r={});const{x:i,y:u,platform:f,rects:d,elements:h,strategy:v}=a,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:m="floating",altBoundary:w=!1,padding:N=0}=ia(r,a),R=Ky(N),C=h[w?m==="floating"?"reference":"floating":m],T=ws(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(C)))==null||o?C:C.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=ws(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:D,strategy:v}):j);return{top:(T.top-Z.top+R.top)/B.y,bottom:(Z.bottom-T.bottom+R.bottom)/B.y,left:(T.left-Z.left+R.left)/B.x,right:(Z.right-T.right+R.right)/B.x}}const NT=50,CT=async(a,r,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:f=[],platform:d}=o,h=d.detectOverflow?d:{...d,detectOverflow:ET},v=await(d.isRTL==null?void 0:d.isRTL(r));let p=await d.getElementRects({reference:a,floating:r,strategy:u}),{x,y:m}=Wg(p,i,v),w=i,N=0;const R={};for(let E=0;E<f.length;E++){const C=f[E];if(!C)continue;const{name:T,fn:j}=C,{x:D,y:B,data:Z,reset:F}=await j({x,y:m,initialPlacement:i,placement:w,strategy:u,middlewareData:R,rects:p,platform:h,elements:{reference:a,floating:r}});x=D??x,m=B??m,R[T]={...R[T],...Z},F&&N<NT&&(N++,typeof F=="object"&&(F.placement&&(w=F.placement),F.rects&&(p=F.rects===!0?await d.getElementRects({reference:a,floating:r,strategy:u}):F.rects),{x,y:m}=Wg(p,w,v)),E=-1)}return{x,y:m,placement:w,strategy:u,middlewareData:R}},TT=a=>({name:"arrow",options:a,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(a,r)||{};if(p==null)return{};const m=Ky(x),w={x:o,y:i},N=sd(u),R=id(N),E=await d.getDimensions(p),C=N==="y",T=C?"top":"left",j=C?"bottom":"right",D=C?"clientHeight":"clientWidth",B=f.reference[R]+f.reference[N]-w[N]-f.floating[R],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[R]);const V=B/2-Z/2,ae=q/2-E[R]/2-1,he=$a(m[T],ae),pe=$a(m[j],ae),fe=he,me=q-E[R]-pe,ge=q/2-E[R]/2+V,ue=Af(fe,ge,me),O=!v.arrow&&Tr(u)!=null&&ge!==ue&&f.reference[R]/2-(ge<fe?he:pe)-E[R]/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}}}),AT=function(a){return a===void 0&&(a={}),{name:"flip",options:a,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:R="none",flipAlignment:E=!0,...C}=ia(a,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const T=sa(u),j=kn(h),D=sa(h)===h,B=await(v.isRTL==null?void 0:v.isRTL(p.floating)),Z=w||(D||!E?[Ss(h)]:vT(h)),F=R!=="none";!w&&F&&Z.push(...ST(h,E,R,B));const q=[h,...Z],V=await v.detectOverflow(r,C),ae=[];let he=((i=f.flip)==null?void 0:i.overflows)||[];if(x&&ae.push(V[T]),m){const ge=gT(u,d,B);ae.push(V[ge[0]],V[ge[1]])}if(he=[...he,{placement:u,overflows:ae}],!ae.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 le=kn(J.placement);return le===j||le==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(le=>le>0).reduce((le,I)=>le+I,0)]).sort((J,le)=>J[1]-le[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(a,r){return{top:a.top-r.height,right:a.right-r.width,bottom:a.bottom-r.height,left:a.left-r.width}}function tv(a){return hT.some(r=>a[r]>=0)}const RT=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(r){const{rects:o,platform:i}=r,{strategy:u="referenceHidden",...f}=ia(a,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{}}}}},Py=new Set(["left","top"]);async function _T(a,r){const{placement:o,platform:i,elements:u}=a,f=await(i.isRTL==null?void 0:i.isRTL(u.floating)),d=sa(o),h=Tr(o),v=kn(o)==="y",p=Py.has(d)?-1:1,x=f&&v?-1:1,m=ia(r,a);let{mainAxis:w,crossAxis:N,alignmentAxis:R}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return h&&typeof R=="number"&&(N=h==="end"?R*-1:R),v?{x:N*x,y:w*p}:{x:w*p,y:N*x}}const OT=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(r){var o,i;const{x:u,y:f,placement:d,middlewareData:h}=r,v=await _T(r,a);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}}}}},MT=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(r){const{x:o,y:i,placement:u,platform:f}=r,{mainAxis:d=!0,crossAxis:h=!1,limiter:v={fn:T=>{let{x:j,y:D}=T;return{x:j,y:D}}},...p}=ia(a,r),x={x:o,y:i},m=await f.detectOverflow(r,p),w=kn(sa(u)),N=od(w);let R=x[N],E=x[w];if(d){const T=N==="y"?"top":"left",j=N==="y"?"bottom":"right",D=R+m[T],B=R-m[j];R=Af(D,R,B)}if(h){const T=w==="y"?"top":"left",j=w==="y"?"bottom":"right",D=E+m[T],B=E-m[j];E=Af(D,E,B)}const C=v.fn({...r,[N]:R,[w]:E});return{...C,data:{x:C.x-o,y:C.y-i,enabled:{[N]:d,[w]:h}}}}}},DT=function(a){return a===void 0&&(a={}),{options:a,fn(r){const{x:o,y:i,placement:u,rects:f,middlewareData:d}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=ia(a,r),x={x:o,y:i},m=kn(u),w=od(m);let N=x[w],R=x[m];const E=ia(h,r),C=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]+C.mainAxis,Z=f.reference[w]+f.reference[D]-C.mainAxis;N<B?N=B:N>Z&&(N=Z)}if(p){var T,j;const D=w==="y"?"width":"height",B=Py.has(sa(u)),Z=f.reference[m]-f.floating[D]+(B&&((T=d.offset)==null?void 0:T[m])||0)+(B?0:C.crossAxis),F=f.reference[m]+f.reference[D]+(B?0:((j=d.offset)==null?void 0:j[m])||0)-(B?C.crossAxis:0);R<Z?R=Z:R>F&&(R=F)}return{[w]:N,[m]:R}}}},jT=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(r){var o,i;const{placement:u,rects:f,platform:d,elements:h}=r,{apply:v=()=>{},...p}=ia(a,r),x=await d.detectOverflow(r,p),m=sa(u),w=Tr(u),N=kn(u)==="y",{width:R,height:E}=f.floating;let C,T;m==="top"||m==="bottom"?(C=m,T=w===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(T=m,C=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,D=R-x.left-x.right,B=$a(E-x[C],j),Z=$a(R-x[T],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=R-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 ae=await d.getDimensions(h.floating);return R!==ae.width||E!==ae.height?{reset:{rects:!0}}:{}}}};function Ms(){return typeof window<"u"}function Ar(a){return Jy(a)?(a.nodeName||"").toLowerCase():"#document"}function Jt(a){var r;return(a==null||(r=a.ownerDocument)==null?void 0:r.defaultView)||window}function Hn(a){var r;return(r=(Jy(a)?a.ownerDocument:a.document)||window.document)==null?void 0:r.documentElement}function Jy(a){return Ms()?a instanceof Node||a instanceof Jt(a).Node:!1}function bn(a){return Ms()?a instanceof Element||a instanceof Jt(a).Element:!1}function ca(a){return Ms()?a instanceof HTMLElement||a instanceof Jt(a).HTMLElement:!1}function nv(a){return!Ms()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Jt(a).ShadowRoot}function Lo(a){const{overflow:r,overflowX:o,overflowY:i,display:u}=xn(a);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&u!=="inline"&&u!=="contents"}function zT(a){return/^(table|td|th)$/.test(Ar(a))}function Ds(a){try{if(a.matches(":popover-open"))return!0}catch{}try{return a.matches(":modal")}catch{return!1}}const kT=/transform|translate|scale|rotate|perspective|filter/,LT=/paint|layout|strict|content/,bl=a=>!!a&&a!=="none";let gf;function cd(a){const r=bn(a)?xn(a):a;return bl(r.transform)||bl(r.translate)||bl(r.scale)||bl(r.rotate)||bl(r.perspective)||!ud()&&(bl(r.backdropFilter)||bl(r.filter))||kT.test(r.willChange||"")||LT.test(r.contain||"")}function UT(a){let r=Xa(a);for(;ca(r)&&!wr(r);){if(cd(r))return r;if(Ds(r))return null;r=Xa(r)}return null}function ud(){return gf==null&&(gf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gf}function wr(a){return/^(html|body|#document)$/.test(Ar(a))}function xn(a){return Jt(a).getComputedStyle(a)}function js(a){return bn(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Xa(a){if(Ar(a)==="html")return a;const r=a.assignedSlot||a.parentNode||nv(a)&&a.host||Hn(a);return nv(r)?r.host:r}function Fy(a){const r=Xa(a);return wr(r)?a.ownerDocument?a.ownerDocument.body:a.body:ca(r)&&Lo(r)?r:Fy(r)}function Mo(a,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const u=Fy(a),f=u===((i=a.ownerDocument)==null?void 0:i.body),d=Jt(u);if(f){const h=_f(d);return r.concat(d,d.visualViewport||[],Lo(u)?u:[],h&&o?Mo(h):[])}else return r.concat(u,Mo(u,[],o))}function _f(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function Iy(a){const r=xn(a);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const u=ca(a),f=u?a.offsetWidth:o,d=u?a.offsetHeight:i,h=xs(o)!==f||xs(i)!==d;return h&&(o=f,i=d),{width:o,height:i,$:h}}function fd(a){return bn(a)?a:a.contextElement}function xr(a){const r=fd(a);if(!ca(r))return Un(1);const o=r.getBoundingClientRect(),{width:i,height:u,$:f}=Iy(r);let d=(f?xs(o.width):o.width)/i,h=(f?xs(o.height):o.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const BT=Un(0);function Wy(a){const r=Jt(a);return!ud()||!r.visualViewport?BT:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function HT(a,r,o){return r===void 0&&(r=!1),!o||r&&o!==Jt(a)?!1:r}function El(a,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const u=a.getBoundingClientRect(),f=fd(a);let d=Un(1);r&&(i?bn(i)&&(d=xr(i)):d=xr(a));const h=HT(f,o,i)?Wy(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 R=w,E=_f(R);for(;E&&i&&N!==R;){const C=xr(E),T=E.getBoundingClientRect(),j=xn(E),D=T.left+(E.clientLeft+parseFloat(j.paddingLeft))*C.x,B=T.top+(E.clientTop+parseFloat(j.paddingTop))*C.y;v*=C.x,p*=C.y,x*=C.x,m*=C.y,v+=D,p+=B,R=Jt(E),E=_f(R)}}return ws({width:x,height:m,x:v,y:p})}function zs(a,r){const o=js(a).scrollLeft;return r?r.left+o:El(Hn(a)).left+o}function e0(a,r){const o=a.getBoundingClientRect(),i=o.left+r.scrollLeft-zs(a,o),u=o.top+r.scrollTop;return{x:i,y:u}}function VT(a){let{elements:r,rect:o,offsetParent:i,strategy:u}=a;const f=u==="fixed",d=Hn(i),h=r?Ds(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)&&((Ar(i)!=="body"||Lo(d))&&(v=js(i)),m)){const N=El(i);p=xr(i),x.x=N.x+i.clientLeft,x.y=N.y+i.clientTop}const w=d&&!m&&!f?e0(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 YT(a){return Array.from(a.getClientRects())}function qT(a){const r=Hn(a),o=js(a),i=a.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+zs(a);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 GT(a,r){const o=Jt(a),i=Hn(a),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=zs(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,R=Math.abs(i.clientWidth-m.clientWidth-N);R<=av&&(f-=R)}else p<=av&&(f+=p);return{width:f,height:d,x:h,y:v}}function $T(a,r){const o=El(a,!0,r==="fixed"),i=o.top+a.clientTop,u=o.left+a.clientLeft,f=ca(a)?xr(a):Un(1),d=a.clientWidth*f.x,h=a.clientHeight*f.y,v=u*f.x,p=i*f.y;return{width:d,height:h,x:v,y:p}}function lv(a,r,o){let i;if(r==="viewport")i=GT(a,o);else if(r==="document")i=qT(Hn(a));else if(bn(r))i=$T(r,o);else{const u=Wy(a);i={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return ws(i)}function t0(a,r){const o=Xa(a);return o===r||!bn(o)||wr(o)?!1:xn(o).position==="fixed"||t0(o,r)}function XT(a,r){const o=r.get(a);if(o)return o;let i=Mo(a,[],!1).filter(h=>bn(h)&&Ar(h)!=="body"),u=null;const f=xn(a).position==="fixed";let d=f?Xa(a):a;for(;bn(d)&&!wr(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")||Lo(d)&&!v&&t0(a,d))?i=i.filter(x=>x!==d):u=h,d=Xa(d)}return r.set(a,i),i}function QT(a){let{element:r,boundary:o,rootBoundary:i,strategy:u}=a;const d=[...o==="clippingAncestors"?Ds(r)?[]:XT(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=$a(N.right,p),x=$a(N.bottom,x),m=Pt(N.left,m)}return{width:p-m,height:x-v,x:m,y:v}}function ZT(a){const{width:r,height:o}=Iy(a);return{width:r,height:o}}function KT(a,r,o){const i=ca(r),u=Hn(r),f=o==="fixed",d=El(a,!0,f,r);let h={scrollLeft:0,scrollTop:0};const v=Un(0);function p(){v.x=zs(u)}if(i||!i&&!f)if((Ar(r)!=="body"||Lo(u))&&(h=js(r)),i){const N=El(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?e0(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 vf(a){return xn(a).position==="static"}function rv(a,r){if(!ca(a)||xn(a).position==="fixed")return null;if(r)return r(a);let o=a.offsetParent;return Hn(a)===o&&(o=o.ownerDocument.body),o}function n0(a,r){const o=Jt(a);if(Ds(a))return o;if(!ca(a)){let u=Xa(a);for(;u&&!wr(u);){if(bn(u)&&!vf(u))return u;u=Xa(u)}return o}let i=rv(a,r);for(;i&&zT(i)&&vf(i);)i=rv(i,r);return i&&wr(i)&&vf(i)&&!cd(i)?o:i||UT(a)||o}const PT=async function(a){const r=this.getOffsetParent||n0,o=this.getDimensions,i=await o(a.floating);return{reference:KT(a.reference,await r(a.floating),a.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function JT(a){return xn(a).direction==="rtl"}const FT={convertOffsetParentRelativeRectToViewportRelativeRect:VT,getDocumentElement:Hn,getClippingRect:QT,getOffsetParent:n0,getElementRects:PT,getClientRects:YT,getDimensions:ZT,getScale:xr,isElement:bn,isRTL:JT};function a0(a,r){return a.x===r.x&&a.y===r.y&&a.width===r.width&&a.height===r.height}function IT(a,r){let o=null,i;const u=Hn(a);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=a.getBoundingClientRect(),{left:x,top:m,width:w,height:N}=p;if(h||r(),!w||!N)return;const R=is(m),E=is(u.clientWidth-(x+w)),C=is(u.clientHeight-(m+N)),T=is(x),D={rootMargin:-R+"px "+-E+"px "+-C+"px "+-T+"px",threshold:Pt(0,$a(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&&!a0(p,a.getBoundingClientRect())&&d(),B=!1}try{o=new IntersectionObserver(Z,{...D,root:u.ownerDocument})}catch{o=new IntersectionObserver(Z,D)}o.observe(a)}return d(!0),f}function WT(a,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(a),x=u||f?[...p?Mo(p):[],...r?Mo(r):[]]:[];x.forEach(T=>{u&&T.addEventListener("scroll",o,{passive:!0}),f&&T.addEventListener("resize",o)});const m=p&&h?IT(p,o):null;let w=-1,N=null;d&&(N=new ResizeObserver(T=>{let[j]=T;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 R,E=v?El(a):null;v&&C();function C(){const T=El(a);E&&!a0(E,T)&&o(),E=T,R=requestAnimationFrame(C)}return o(),()=>{var T;x.forEach(j=>{u&&j.removeEventListener("scroll",o),f&&j.removeEventListener("resize",o)}),m==null||m(),(T=N)==null||T.disconnect(),N=null,v&&cancelAnimationFrame(R)}}const eA=OT,tA=MT,nA=AT,aA=jT,lA=RT,ov=TT,rA=DT,oA=(a,r,o)=>{const i=new Map,u={platform:FT,...o},f={...u.platform,_c:i};return CT(a,r,{...u,platform:f})};var iA=typeof document<"u",sA=function(){},ms=iA?b.useLayoutEffect:sA;function Es(a,r){if(a===r)return!0;if(typeof a!=typeof r)return!1;if(typeof a=="function"&&a.toString()===r.toString())return!0;let o,i,u;if(a&&r&&typeof a=="object"){if(Array.isArray(a)){if(o=a.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!Es(a[i],r[i]))return!1;return!0}if(u=Object.keys(a),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"&&a.$$typeof)&&!Es(a[f],r[f]))return!1}return!0}return a!==a&&r!==r}function l0(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(a,r){const o=l0(a);return Math.round(r*o)/o}function yf(a){const r=b.useRef(a);return ms(()=>{r.current=a}),r}function cA(a){a===void 0&&(a={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:f,floating:d}={},transform:h=!0,whileElementsMounted:v,open:p}=a,[x,m]=b.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,N]=b.useState(i);Es(w,i)||N(i);const[R,E]=b.useState(null),[C,T]=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,T(J))},[]),B=f||R,Z=d||C,F=b.useRef(null),q=b.useRef(null),V=b.useRef(x),ae=v!=null,he=yf(v),pe=yf(u),fe=yf(p),me=b.useCallback(()=>{if(!F.current||!q.current)return;const J={placement:r,strategy:o,middleware:w};pe.current&&(J.platform=pe.current),oA(F.current,q.current,J).then(le=>{const I={...le,isPositioned:fe.current!==!1};ge.current&&!Es(V.current,I)&&(V.current=I,zo.flushSync(()=>{m(I)}))})},[w,r,o,pe,fe]);ms(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,m(J=>({...J,isPositioned:!1})))},[p]);const ge=b.useRef(!1);ms(()=>(ge.current=!0,()=>{ge.current=!1}),[]),ms(()=>{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,ae]);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 le=iv(O.floating,x.x),I=iv(O.floating,x.y);return h?{...J,transform:"translate("+le+"px, "+I+"px)",...l0(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:le,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 uA=a=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:a,fn(o){const{element:i,padding:u}=typeof a=="function"?a(o):a;return i&&r(i)?i.current!=null?ov({element:i.current,padding:u}).fn(o):{}:i?ov({element:i,padding:u}).fn(o):{}}}},fA=(a,r)=>{const o=eA(a);return{name:o.name,fn:o.fn,options:[a,r]}},dA=(a,r)=>{const o=tA(a);return{name:o.name,fn:o.fn,options:[a,r]}},mA=(a,r)=>({fn:rA(a).fn,options:[a,r]}),hA=(a,r)=>{const o=nA(a);return{name:o.name,fn:o.fn,options:[a,r]}},pA=(a,r)=>{const o=aA(a);return{name:o.name,fn:o.fn,options:[a,r]}},gA=(a,r)=>{const o=lA(a);return{name:o.name,fn:o.fn,options:[a,r]}},vA=(a,r)=>{const o=uA(a);return{name:o.name,fn:o.fn,options:[a,r]}};var yA="Arrow",r0=b.forwardRef((a,r)=>{const{children:o,width:i=10,height:u=5,...f}=a;return y.jsx(Be.svg,{...f,ref:r,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});r0.displayName=yA;var bA=r0;function xA(a){const[r,o]=b.useState(void 0);return Ct(()=>{if(a){o({width:a.offsetWidth,height:a.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=a.offsetWidth,h=a.offsetHeight;o({width:d,height:h})});return i.observe(a,{box:"border-box"}),()=>i.unobserve(a)}else o(void 0)},[a]),r}var dd="Popper",[o0,i0]=Al(dd),[SA,s0]=o0(dd),c0=a=>{const{__scopePopper:r,children:o}=a,[i,u]=b.useState(null);return y.jsx(SA,{scope:r,anchor:i,onAnchorChange:u,children:o})};c0.displayName=dd;var u0="PopperAnchor",f0=b.forwardRef((a,r)=>{const{__scopePopper:o,virtualRef:i,...u}=a,f=s0(u0,o),d=b.useRef(null),h=Ie(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})});f0.displayName=u0;var md="PopperContent",[wA,EA]=o0(md),d0=b.forwardRef((a,r)=>{var ee,re,ie,Te,we,xe;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:R,...E}=a,C=s0(md,o),[T,j]=b.useState(null),D=Ie(r,tt=>j(tt)),[B,Z]=b.useState(null),F=xA(B),q=(F==null?void 0:F.width)??0,V=(F==null?void 0:F.height)??0,ae=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(CA),altBoundary:fe},{refs:ge,floatingStyles:ue,placement:O,isPositioned:Y,middlewareData:J}=cA({strategy:"fixed",placement:ae,whileElementsMounted:(...tt)=>WT(...tt,{animationFrame:N==="always"}),elements:{reference:C.anchor},middleware:[fA({mainAxis:u+V,alignmentAxis:d}),v&&dA({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?mA():void 0,...me}),v&&hA({...me}),pA({...me,apply:({elements:tt,rects:Xe,availableWidth:fn,availableHeight:It})=>{const{width:Yt,height:Pa}=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",`${Pa}px`)}}),B&&vA({element:B,padding:h}),TA({arrowWidth:q,arrowHeight:V}),w&&gA({strategy:"referenceHidden",...me})]}),[le,I]=p0(O),_=Ga(R);Ct(()=>{Y&&(_==null||_())},[Y,_]);const G=(ee=J.arrow)==null?void 0:ee.x,X=(re=J.arrow)==null?void 0:re.y,W=((ie=J.arrow)==null?void 0:ie.centerOffset)!==0,[P,ne]=b.useState();return Ct(()=>{T&&ne(window.getComputedStyle(T).zIndex)},[T]),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":[(Te=J.transformOrigin)==null?void 0:Te.x,(we=J.transformOrigin)==null?void 0:we.y].join(" "),...((xe=J.hide)==null?void 0:xe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:y.jsx(wA,{scope:o,placedSide:le,onArrowChange:Z,arrowX:G,arrowY:X,shouldHideArrow:W,children:y.jsx(Be.div,{"data-side":le,"data-align":I,...E,ref:D,style:{...E.style,animation:Y?void 0:"none"}})})})});d0.displayName=md;var m0="PopperArrow",NA={top:"bottom",right:"left",bottom:"top",left:"right"},h0=b.forwardRef(function(r,o){const{__scopePopper:i,...u}=r,f=EA(m0,i),d=NA[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(bA,{...u,ref:o,style:{...u.style,display:"block"}})})});h0.displayName=m0;function CA(a){return a!==null}var TA=a=>({name:"transformOrigin",options:a,fn(r){var C,T,j;const{placement:o,rects:i,middlewareData:u}=r,d=((C=u.arrow)==null?void 0:C.centerOffset)!==0,h=d?0:a.arrowWidth,v=d?0:a.arrowHeight,[p,x]=p0(o),m={start:"0%",center:"50%",end:"100%"}[x],w=(((T=u.arrow)==null?void 0:T.x)??0)+h/2,N=(((j=u.arrow)==null?void 0:j.y)??0)+v/2;let R="",E="";return p==="bottom"?(R=d?m:`${w}px`,E=`${-v}px`):p==="top"?(R=d?m:`${w}px`,E=`${i.floating.height+v}px`):p==="right"?(R=`${-v}px`,E=d?m:`${N}px`):p==="left"&&(R=`${i.floating.width+v}px`,E=d?m:`${N}px`),{data:{x:R,y:E}}}});function p0(a){const[r,o="center"]=a.split("-");return[r,o]}var AA=c0,RA=f0,_A=d0,OA=h0;function MA(a){const r=b.useRef({value:a,previous:a});return b.useMemo(()=>(r.current.value!==a&&(r.current.previous=r.current.value,r.current.value=a),r.current.previous),[a])}var g0=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"}),DA="VisuallyHidden",jA=b.forwardRef((a,r)=>y.jsx(Be.span,{...a,ref:r,style:{...g0,...a.style}}));jA.displayName=DA;var zA=[" ","Enter","ArrowUp","ArrowDown"],kA=[" ","Enter"],Nl="Select",[ks,Ls,LA]=Zy(Nl),[Rr]=Al(Nl,[LA,i0]),Us=i0(),[UA,Za]=Rr(Nl),[BA,HA]=Rr(Nl),v0=a=>{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:R}=a,E=Us(r),[C,T]=b.useState(null),[j,D]=b.useState(null),[B,Z]=b.useState(!1),F=rd(p),[q,V]=_o({prop:i,defaultProp:u??!1,onChange:f,caller:Nl}),[ae,he]=_o({prop:d,defaultProp:h,onChange:v,caller:Nl}),pe=b.useRef(null),fe=C?R||!!C.closest("form"):!0,[me,ge]=b.useState(new Set),ue=Array.from(me).map(O=>O.props.value).join(";");return y.jsx(AA,{...E,children:y.jsxs(UA,{required:N,scope:r,trigger:C,onTriggerChange:T,valueNode:j,onValueNodeChange:D,valueNodeHasChildren:B,onValueNodeHasChildrenChange:Z,contentId:qa(),value:ae,onValueChange:he,open:q,onOpenChange:V,dir:F,triggerPointerDownPosRef:pe,disabled:w,children:[y.jsx(ks.Provider,{scope:r,children:y.jsx(BA,{scope:a.__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(Y0,{"aria-hidden":!0,required:N,tabIndex:-1,name:x,autoComplete:m,value:ae,onChange:O=>he(O.target.value),disabled:w,form:R,children:[ae===void 0?y.jsx("option",{value:""}):null,Array.from(me)]},ue):null]})})};v0.displayName=Nl;var y0="SelectTrigger",b0=b.forwardRef((a,r)=>{const{__scopeSelect:o,disabled:i=!1,...u}=a,f=Us(o),d=Za(y0,o),h=d.disabled||i,v=Ie(r,d.onTriggerChange),p=Ls(o),x=b.useRef("touch"),[m,w,N]=G0(E=>{const C=p().filter(D=>!D.disabled),T=C.find(D=>D.value===d.value),j=$0(C,E,T);j!==void 0&&d.onValueChange(j.value)}),R=E=>{h||(d.onOpenChange(!0),N()),E&&(d.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return y.jsx(RA,{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":q0(d.value)?"":void 0,...u,ref:v,onClick:ze(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&R(E)}),onPointerDown:ze(u.onPointerDown,E=>{x.current=E.pointerType;const C=E.target;C.hasPointerCapture(E.pointerId)&&C.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(R(E),E.preventDefault())}),onKeyDown:ze(u.onKeyDown,E=>{const C=m.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(C&&E.key===" ")&&zA.includes(E.key)&&(R(),E.preventDefault())})})})});b0.displayName=y0;var x0="SelectValue",S0=b.forwardRef((a,r)=>{const{__scopeSelect:o,className:i,style:u,children:f,placeholder:d="",...h}=a,v=Za(x0,o),{onValueNodeHasChildrenChange:p}=v,x=f!==void 0,m=Ie(r,v.onValueNodeChange);return Ct(()=>{p(x)},[p,x]),y.jsx(Be.span,{...h,ref:m,style:{pointerEvents:"none"},children:q0(v.value)?y.jsx(y.Fragment,{children:d}):f})});S0.displayName=x0;var VA="SelectIcon",w0=b.forwardRef((a,r)=>{const{__scopeSelect:o,children:i,...u}=a;return y.jsx(Be.span,{"aria-hidden":!0,...u,ref:r,children:i||"▼"})});w0.displayName=VA;var YA="SelectPortal",E0=a=>y.jsx(Jf,{asChild:!0,...a});E0.displayName=YA;var Cl="SelectContent",N0=b.forwardRef((a,r)=>{const o=Za(Cl,a.__scopeSelect),[i,u]=b.useState();if(Ct(()=>{u(new DocumentFragment)},[]),!o.open){const f=i;return f?zo.createPortal(y.jsx(C0,{scope:a.__scopeSelect,children:y.jsx(ks.Slot,{scope:a.__scopeSelect,children:y.jsx("div",{children:a.children})})}),f):null}return y.jsx(T0,{...a,ref:r})});N0.displayName=Cl;var vn=10,[C0,Ka]=Rr(Cl),qA="SelectContentImpl",GA=Oo("SelectContent.RemoveScroll"),T0=b.forwardRef((a,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:R,hideWhenDetached:E,avoidCollisions:C,...T}=a,j=Za(Cl,o),[D,B]=b.useState(null),[Z,F]=b.useState(null),q=Ie(r,ee=>B(ee)),[V,ae]=b.useState(null),[he,pe]=b.useState(null),fe=Ls(o),[me,ge]=b.useState(!1),ue=b.useRef(!1);b.useEffect(()=>{if(D)return Sy(D)},[D]),dy();const O=b.useCallback(ee=>{const[re,...ie]=fe().map(xe=>xe.ref.current),[Te]=ie.slice(-1),we=document.activeElement;for(const xe of ee)if(xe===we||(xe==null||xe.scrollIntoView({block:"nearest"}),xe===re&&Z&&(Z.scrollTop=0),xe===Te&&Z&&(Z.scrollTop=Z.scrollHeight),xe==null||xe.focus(),document.activeElement!==we))return},[fe,Z]),Y=b.useCallback(()=>O([V,D]),[O,V,D]);b.useEffect(()=>{me&&Y()},[me,Y]);const{onOpenChange:J,triggerPointerDownPosRef:le}=j;b.useEffect(()=>{if(D){let ee={x:0,y:0};const re=Te=>{var we,xe;ee={x:Math.abs(Math.round(Te.pageX)-(((we=le.current)==null?void 0:we.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((xe=le.current)==null?void 0:xe.y)??0))}},ie=Te=>{ee.x<=10&&ee.y<=10?Te.preventDefault():D.contains(Te.target)||J(!1),document.removeEventListener("pointermove",re),le.current=null};return le.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",ie,{capture:!0})}}},[D,J,le]),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,_]=G0(ee=>{const re=fe().filter(we=>!we.disabled),ie=re.find(we=>we.ref.current===document.activeElement),Te=$0(re,ee,ie);Te&&setTimeout(()=>Te.ref.current.focus())}),G=b.useCallback((ee,re,ie)=>{const Te=!ue.current&&!ie;(j.value!==void 0&&j.value===re||Te)&&(ae(ee),Te&&(ue.current=!0))},[j.value]),X=b.useCallback(()=>D==null?void 0:D.focus(),[D]),W=b.useCallback((ee,re,ie)=>{const Te=!ue.current&&!ie;(j.value!==void 0&&j.value===re||Te)&&pe(ee)},[j.value]),P=i==="popper"?Of:A0,ne=P===Of?{side:h,sideOffset:v,align:p,alignOffset:x,arrowPadding:m,collisionBoundary:w,collisionPadding:N,sticky:R,hideWhenDetached:E,avoidCollisions:C}:{};return y.jsx(C0,{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:GA,allowPinchZoom:!0,children:y.jsx(Pf,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:ze(u,ee=>{var re;(re=j.trigger)==null||re.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(),...T,...ne,onPlaced:()=>ge(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:ze(T.onKeyDown,ee=>{const re=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!re&&ee.key.length===1&&_(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Te=fe().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const we=ee.target,xe=Te.indexOf(we);Te=Te.slice(xe+1)}setTimeout(()=>O(Te)),ee.preventDefault()}})})})})})})});T0.displayName=qA;var $A="SelectItemAlignedPosition",A0=b.forwardRef((a,r)=>{const{__scopeSelect:o,onPlaced:i,...u}=a,f=Za(Cl,o),d=Ka(Cl,o),[h,v]=b.useState(null),[p,x]=b.useState(null),m=Ie(r,q=>x(q)),w=Ls(o),N=b.useRef(!1),R=b.useRef(!0),{viewport:E,selectedItem:C,selectedItemText:T,focusSelectedItem:j}=d,D=b.useCallback(()=>{if(f.trigger&&f.valueNode&&h&&p&&E&&C&&T){const q=f.trigger.getBoundingClientRect(),V=p.getBoundingClientRect(),ae=f.valueNode.getBoundingClientRect(),he=T.getBoundingClientRect();if(f.dir!=="rtl"){const we=he.left-V.left,xe=ae.left-we,tt=q.left-xe,Xe=q.width+tt,fn=Math.max(Xe,V.width),It=window.innerWidth-vn,Yt=Jg(xe,[vn,Math.max(vn,It-fn)]);h.style.minWidth=Xe+"px",h.style.left=Yt+"px"}else{const we=V.right-he.right,xe=window.innerWidth-ae.right-we,tt=window.innerWidth-q.right-xe,Xe=q.width+tt,fn=Math.max(Xe,V.width),It=window.innerWidth-vn,Yt=Jg(xe,[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),le=ue+O+me+J+Y,I=Math.min(C.offsetHeight*5,le),_=window.getComputedStyle(E),G=parseInt(_.paddingTop,10),X=parseInt(_.paddingBottom,10),W=q.top+q.height/2-vn,P=fe-W,ne=C.offsetHeight/2,ee=C.offsetTop+ne,re=ue+O+ee,ie=le-re;if(re<=W){const we=pe.length>0&&C===pe[pe.length-1].ref.current;h.style.bottom="0px";const xe=p.clientHeight-E.offsetTop-E.offsetHeight,tt=Math.max(P,ne+(we?X:0)+xe+Y),Xe=re+tt;h.style.height=Xe+"px"}else{const we=pe.length>0&&C===pe[0].ref.current;h.style.top="0px";const tt=Math.max(W,ue+E.offsetTop+(we?G:0)+ne)+ie;h.style.height=tt+"px",E.scrollTop=re-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,C,T,f.dir,i]);Ct(()=>D(),[D]);const[B,Z]=b.useState();Ct(()=>{p&&Z(window.getComputedStyle(p).zIndex)},[p]);const F=b.useCallback(q=>{q&&R.current===!0&&(D(),j==null||j(),R.current=!1)},[D,j]);return y.jsx(QA,{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}})})})});A0.displayName=$A;var XA="SelectPopperPosition",Of=b.forwardRef((a,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=vn,...f}=a,d=Us(o);return y.jsx(_A,{...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=XA;var[QA,hd]=Rr(Cl,{}),Mf="SelectViewport",R0=b.forwardRef((a,r)=>{const{__scopeSelect:o,nonce:i,...u}=a,f=Ka(Mf,o),d=hd(Mf,o),h=Ie(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(ks.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:ze(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 R=window.innerHeight-vn*2,E=parseFloat(m.style.minHeight),C=parseFloat(m.style.height),T=Math.max(E,C);if(T<R){const j=T+N,D=Math.min(R,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})})})]})});R0.displayName=Mf;var _0="SelectGroup",[ZA,KA]=Rr(_0),PA=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a,u=qa();return y.jsx(ZA,{scope:o,id:u,children:y.jsx(Be.div,{role:"group","aria-labelledby":u,...i,ref:r})})});PA.displayName=_0;var O0="SelectLabel",M0=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a,u=KA(O0,o);return y.jsx(Be.div,{id:u.id,...i,ref:r})});M0.displayName=O0;var Ns="SelectItem",[JA,D0]=Rr(Ns),j0=b.forwardRef((a,r)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:f,...d}=a,h=Za(Ns,o),v=Ka(Ns,o),p=h.value===i,[x,m]=b.useState(f??""),[w,N]=b.useState(!1),R=Ie(r,j=>{var D;return(D=v.itemRefCallback)==null?void 0:D.call(v,j,i,u)}),E=qa(),C=b.useRef("touch"),T=()=>{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(JA,{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(ks.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:R,onFocus:ze(d.onFocus,()=>N(!0)),onBlur:ze(d.onBlur,()=>N(!1)),onClick:ze(d.onClick,()=>{C.current!=="mouse"&&T()}),onPointerUp:ze(d.onPointerUp,()=>{C.current==="mouse"&&T()}),onPointerDown:ze(d.onPointerDown,j=>{C.current=j.pointerType}),onPointerMove:ze(d.onPointerMove,j=>{var D;C.current=j.pointerType,u?(D=v.onItemLeave)==null||D.call(v):C.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ze(d.onPointerLeave,j=>{var D;j.currentTarget===document.activeElement&&((D=v.onItemLeave)==null||D.call(v))}),onKeyDown:ze(d.onKeyDown,j=>{var B;((B=v.searchRef)==null?void 0:B.current)!==""&&j.key===" "||(kA.includes(j.key)&&T(),j.key===" "&&j.preventDefault())})})})})});j0.displayName=Ns;var Ao="SelectItemText",z0=b.forwardRef((a,r)=>{const{__scopeSelect:o,className:i,style:u,...f}=a,d=Za(Ao,o),h=Ka(Ao,o),v=D0(Ao,o),p=HA(Ao,o),[x,m]=b.useState(null),w=Ie(r,T=>m(T),v.onItemTextChange,T=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,T,v.value,v.disabled)}),N=x==null?void 0:x.textContent,R=b.useMemo(()=>y.jsx("option",{value:v.value,disabled:v.disabled,children:N},v.value),[v.disabled,v.value,N]),{onNativeOptionAdd:E,onNativeOptionRemove:C}=p;return Ct(()=>(E(R),()=>C(R)),[E,C,R]),y.jsxs(y.Fragment,{children:[y.jsx(Be.span,{id:v.textId,...f,ref:w}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?zo.createPortal(f.children,d.valueNode):null]})});z0.displayName=Ao;var k0="SelectItemIndicator",L0=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a;return D0(k0,o).isSelected?y.jsx(Be.span,{"aria-hidden":!0,...i,ref:r}):null});L0.displayName=k0;var Df="SelectScrollUpButton",U0=b.forwardRef((a,r)=>{const o=Ka(Df,a.__scopeSelect),i=hd(Df,a.__scopeSelect),[u,f]=b.useState(!1),d=Ie(r,i.onScrollButtonChange);return Ct(()=>{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(H0,{...a,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});U0.displayName=Df;var jf="SelectScrollDownButton",B0=b.forwardRef((a,r)=>{const o=Ka(jf,a.__scopeSelect),i=hd(jf,a.__scopeSelect),[u,f]=b.useState(!1),d=Ie(r,i.onScrollButtonChange);return Ct(()=>{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(H0,{...a,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});B0.displayName=jf;var H0=b.forwardRef((a,r)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=a,f=Ka("SelectScrollButton",o),d=b.useRef(null),h=Ls(o),v=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>v(),[v]),Ct(()=>{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:ze(u.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:ze(u.onPointerMove,()=>{var p;(p=f.onItemLeave)==null||p.call(f),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:ze(u.onPointerLeave,()=>{v()})})}),FA="SelectSeparator",V0=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a;return y.jsx(Be.div,{"aria-hidden":!0,...i,ref:r})});V0.displayName=FA;var zf="SelectArrow",IA=b.forwardRef((a,r)=>{const{__scopeSelect:o,...i}=a,u=Us(o),f=Za(zf,o),d=Ka(zf,o);return f.open&&d.position==="popper"?y.jsx(OA,{...u,...i,ref:r}):null});IA.displayName=zf;var WA="SelectBubbleInput",Y0=b.forwardRef(({__scopeSelect:a,value:r,...o},i)=>{const u=b.useRef(null),f=Ie(i,u),d=MA(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:{...g0,...o.style},ref:f,defaultValue:r})});Y0.displayName=WA;function q0(a){return a===""||a===void 0}function G0(a){const r=Ga(a),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 $0(a,r,o){const u=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,f=o?a.indexOf(o):-1;let d=eR(a,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 eR(a,r){return a.map((o,i)=>a[(r+i)%a.length])}var tR=v0,X0=b0,nR=S0,aR=w0,lR=E0,Q0=N0,rR=R0,Z0=M0,K0=j0,oR=z0,iR=L0,P0=U0,J0=B0,F0=V0;const sR=tR,cR=nR,I0=b.forwardRef(({className:a,children:r,...o},i)=>y.jsxs(X0,{ref:i,className:Ce("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",a),...o,children:[r,y.jsx(aR,{asChild:!0,children:y.jsx(Hv,{className:"h-4 w-4 opacity-50"})})]}));I0.displayName=X0.displayName;const W0=b.forwardRef(({className:a,...r},o)=>y.jsx(P0,{ref:o,className:Ce("flex cursor-default items-center justify-center py-1",a),...r,children:y.jsx(Ew,{className:"h-4 w-4"})}));W0.displayName=P0.displayName;const eb=b.forwardRef(({className:a,...r},o)=>y.jsx(J0,{ref:o,className:Ce("flex cursor-default items-center justify-center py-1",a),...r,children:y.jsx(Hv,{className:"h-4 w-4"})}));eb.displayName=J0.displayName;const tb=b.forwardRef(({className:a,children:r,position:o="popper",...i},u)=>y.jsx(lR,{children:y.jsxs(Q0,{ref:u,className:Ce("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",a),position:o,...i,children:[y.jsx(W0,{}),y.jsx(rR,{className:Ce("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),y.jsx(eb,{})]})}));tb.displayName=Q0.displayName;const uR=b.forwardRef(({className:a,...r},o)=>y.jsx(Z0,{ref:o,className:Ce("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...r}));uR.displayName=Z0.displayName;const nb=b.forwardRef(({className:a,children:r,...o},i)=>y.jsxs(K0,{ref:i,className:Ce("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",a),...o,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(iR,{children:y.jsx(xw,{className:"h-4 w-4"})})}),y.jsx(oR,{children:r})]}));nb.displayName=K0.displayName;const fR=b.forwardRef(({className:a,...r},o)=>y.jsx(F0,{ref:o,className:Ce("-mx-1 my-1 h-px bg-muted",a),...r}));fR.displayName=F0.displayName;var bf="rovingFocusGroup.onEntryFocus",dR={bubbles:!1,cancelable:!0},Uo="RovingFocusGroup",[kf,ab,mR]=Zy(Uo),[hR,lb]=Al(Uo,[mR]),[pR,gR]=hR(Uo),rb=b.forwardRef((a,r)=>y.jsx(kf.Provider,{scope:a.__scopeRovingFocusGroup,children:y.jsx(kf.Slot,{scope:a.__scopeRovingFocusGroup,children:y.jsx(vR,{...a,ref:r})})}));rb.displayName=Uo;var vR=b.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...m}=a,w=b.useRef(null),N=Ie(r,w),R=rd(f),[E,C]=_o({prop:d,defaultProp:h??null,onChange:v,caller:Uo}),[T,j]=b.useState(!1),D=Ga(p),B=ab(o),Z=b.useRef(!1),[F,q]=b.useState(0);return b.useEffect(()=>{const V=w.current;if(V)return V.addEventListener(bf,D),()=>V.removeEventListener(bf,D)},[D]),y.jsx(pR,{scope:o,orientation:i,dir:R,loop:u,currentTabStopId:E,onItemFocus:b.useCallback(V=>C(V),[C]),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:T||F===0?-1:0,"data-orientation":i,...m,ref:N,style:{outline:"none",...a.style},onMouseDown:ze(a.onMouseDown,()=>{Z.current=!0}),onFocus:ze(a.onFocus,V=>{const ae=!Z.current;if(V.target===V.currentTarget&&ae&&!T){const he=new CustomEvent(bf,dR);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);sb(ue,x)}}Z.current=!1}),onBlur:ze(a.onBlur,()=>j(!1))})})}),ob="RovingFocusGroupItem",ib=b.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:f,children:d,...h}=a,v=qa(),p=f||v,x=gR(ob,o),m=x.currentTabStopId===p,w=ab(o),{onFocusableItemAdd:N,onFocusableItemRemove:R,currentTabStopId:E}=x;return b.useEffect(()=>{if(i)return N(),()=>R()},[i,N,R]),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:ze(a.onMouseDown,C=>{i?x.onItemFocus(p):C.preventDefault()}),onFocus:ze(a.onFocus,()=>x.onItemFocus(p)),onKeyDown:ze(a.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const T=xR(C,x.orientation,x.dir);if(T!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let D=w().filter(B=>B.focusable).map(B=>B.ref.current);if(T==="last")D.reverse();else if(T==="prev"||T==="next"){T==="prev"&&D.reverse();const B=D.indexOf(C.currentTarget);D=x.loop?SR(D,B+1):D.slice(B+1)}setTimeout(()=>sb(D))}}),children:typeof d=="function"?d({isCurrentTabStop:m,hasTabStop:E!=null}):d})})});ib.displayName=ob;var yR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bR(a,r){return r!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function xR(a,r,o){const i=bR(a.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return yR[i]}function sb(a,r=!1){const o=document.activeElement;for(const i of a)if(i===o||(i.focus({preventScroll:r}),document.activeElement!==o))return}function SR(a,r){return a.map((o,i)=>a[(r+i)%a.length])}var wR=rb,ER=ib,Bs="Tabs",[NR]=Al(Bs,[lb]),cb=lb(),[CR,pd]=NR(Bs),ub=b.forwardRef((a,r)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:v="automatic",...p}=a,x=rd(h),[m,w]=_o({prop:i,onChange:u,defaultProp:f??"",caller:Bs});return y.jsx(CR,{scope:o,baseId:qa(),value:m,onValueChange:w,orientation:d,dir:x,activationMode:v,children:y.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:r})})});ub.displayName=Bs;var fb="TabsList",db=b.forwardRef((a,r)=>{const{__scopeTabs:o,loop:i=!0,...u}=a,f=pd(fb,o),d=cb(o);return y.jsx(wR,{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})})});db.displayName=fb;var mb="TabsTrigger",hb=b.forwardRef((a,r)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...f}=a,d=pd(mb,o),h=cb(o),v=vb(d.baseId,i),p=yb(d.baseId,i),x=i===d.value;return y.jsx(ER,{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:ze(a.onMouseDown,m=>{!u&&m.button===0&&m.ctrlKey===!1?d.onValueChange(i):m.preventDefault()}),onKeyDown:ze(a.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&d.onValueChange(i)}),onFocus:ze(a.onFocus,()=>{const m=d.activationMode!=="manual";!x&&!u&&m&&d.onValueChange(i)})})})});hb.displayName=mb;var pb="TabsContent",gb=b.forwardRef((a,r)=>{const{__scopeTabs:o,value:i,forceMount:u,children:f,...d}=a,h=pd(pb,o),v=vb(h.baseId,i),p=yb(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(ko,{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:{...a.style,animationDuration:m.current?"0s":void 0},children:w&&f})})});gb.displayName=pb;function vb(a,r){return`${a}-trigger-${r}`}function yb(a,r){return`${a}-content-${r}`}var TR=ub,bb=db,xb=hb,Sb=gb;const AR=TR,wb=b.forwardRef(({className:a,...r},o)=>y.jsx(bb,{ref:o,className:Ce("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...r}));wb.displayName=bb.displayName;const hs=b.forwardRef(({className:a,...r},o)=>y.jsx(xb,{ref:o,className:Ce("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",a),...r}));hs.displayName=xb.displayName;const ps=b.forwardRef(({className:a,...r},o)=>y.jsx(Sb,{ref:o,className:Ce("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",a),...r}));ps.displayName=Sb.displayName;var Eb="AlertDialog",[RR]=Al(Eb,[Ey]),ua=Ey(),Nb=a=>{const{__scopeAlertDialog:r,...o}=a,i=ua(r);return y.jsx(Hy,{...i,...o,modal:!0})};Nb.displayName=Eb;var _R="AlertDialogTrigger",Cb=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(Vy,{...u,...i,ref:r})});Cb.displayName=_R;var OR="AlertDialogPortal",Tb=a=>{const{__scopeAlertDialog:r,...o}=a,i=ua(r);return y.jsx(Yy,{...i,...o})};Tb.displayName=OR;var MR="AlertDialogOverlay",Ab=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(td,{...u,...i,ref:r})});Ab.displayName=MR;var Sr="AlertDialogContent",[DR,jR]=RR(Sr),zR=GN("AlertDialogContent"),Rb=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,children:i,...u}=a,f=ua(o),d=b.useRef(null),h=Ie(r,d),v=b.useRef(null);return y.jsx(rT,{contentName:Sr,titleName:_b,docsSlug:"alert-dialog",children:y.jsx(DR,{scope:o,cancelRef:v,children:y.jsxs(nd,{role:"alertdialog",...f,...u,ref:h,onOpenAutoFocus:ze(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(zR,{children:i}),y.jsx(LR,{contentRef:d})]})})})});Rb.displayName=Sr;var _b="AlertDialogTitle",Ob=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(ad,{...u,...i,ref:r})});Ob.displayName=_b;var Mb="AlertDialogDescription",Db=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(ld,{...u,...i,ref:r})});Db.displayName=Mb;var kR="AlertDialogAction",jb=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,u=ua(o);return y.jsx(Os,{...u,...i,ref:r})});jb.displayName=kR;var zb="AlertDialogCancel",kb=b.forwardRef((a,r)=>{const{__scopeAlertDialog:o,...i}=a,{cancelRef:u}=jR(zb,o),f=ua(o),d=Ie(r,u);return y.jsx(Os,{...f,...i,ref:d})});kb.displayName=zb;var LR=({contentRef:a})=>{const r=`\`${Sr}\` requires a description for the component to be accessible for screen reader users.
|
|
261
|
+
|
|
262
|
+
You can add a description to the \`${Sr}\` by passing a \`${Mb}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
263
|
+
|
|
264
|
+
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 \`${Sr}\`. 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.
|
|
265
|
+
|
|
266
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{var i;document.getElementById((i=a.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(r)},[r,a]),null},UR=Nb,BR=Cb,HR=Tb,Lb=Ab,Ub=Rb,Bb=jb,Hb=kb,Vb=Ob,Yb=Db;const VR=UR,YR=BR,qR=HR,qb=b.forwardRef(({className:a,...r},o)=>y.jsx(Lb,{className:Ce("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",a),...r,ref:o}));qb.displayName=Lb.displayName;const Gb=b.forwardRef(({className:a,...r},o)=>y.jsxs(qR,{children:[y.jsx(qb,{}),y.jsx(Ub,{ref:o,className:Ce("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",a),...r})]}));Gb.displayName=Ub.displayName;const $b=({className:a,...r})=>y.jsx("div",{className:Ce("flex flex-col space-y-2 text-center sm:text-left",a),...r});$b.displayName="AlertDialogHeader";const Xb=({className:a,...r})=>y.jsx("div",{className:Ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...r});Xb.displayName="AlertDialogFooter";const Qb=b.forwardRef(({className:a,...r},o)=>y.jsx(Vb,{ref:o,className:Ce("text-lg font-semibold",a),...r}));Qb.displayName=Vb.displayName;const Zb=b.forwardRef(({className:a,...r},o)=>y.jsx(Yb,{ref:o,className:Ce("text-sm text-muted-foreground",a),...r}));Zb.displayName=Yb.displayName;const Kb=b.forwardRef(({className:a,...r},o)=>y.jsx(Bb,{ref:o,className:Ce(Zf(),a),...r}));Kb.displayName=Bb.displayName;const Pb=b.forwardRef(({className:a,...r},o)=>y.jsx(Hb,{ref:o,className:Ce(Zf({variant:"outline"}),"mt-2 sm:mt-0",a),...r}));Pb.displayName=Hb.displayName;function Ya(a){if(a==null||a==="")return"Unavailable";const r=new Date(a);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function GR(a){const r=Math.max(0,Math.floor(a)),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(a){if(a==null||Number.isNaN(a))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=a,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 Jb(a){return a==="ok"?"default":a==="missing"||a==="install-failed"||a==="login-failed"?"destructive":a==="not-authenticated"||a==="unsupported-platform"?"outline":"secondary"}function $R(a){return a.available?y.jsxs(St,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[y.jsx(Cw,{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(Aw,{className:"h-3 w-3"}),"Unavailable"]})}function XR(a){return a.update?a.update.updateAvailable?y.jsxs(St,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",a.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 QR(a){var o;const r=`npm install -g ${(o=a.update)==null?void 0:o.packageName}@latest`;return a.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function je({label:a,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:a}),y.jsx("span",{className:Ce("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function ZR({agent:a,nodeName:r,upgrading:o,onUpgrade:i}){var d,h;const u=((d=a.update)==null?void 0:d.updateAvailable)===!0,f=XR(a);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(Bv,{className:"h-3.5 w-3.5 text-primary"}),a.label]}),y.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:["Command: ",y.jsx("span",{className:"font-mono text-[10px]",children:a.command})]})]}),y.jsxs("div",{className:"flex flex-col items-end gap-1",children:[$R(a),u?y.jsxs(VR,{children:[y.jsx(YR,{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(Gb,{children:[y.jsxs($b,{children:[y.jsxs(Qb,{children:["Upgrade ",a.label,"?"]}),y.jsxs(Zb,{children:["This runs ",QR(a)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),y.jsxs(Xb,{children:[y.jsx(Pb,{children:"Cancel"}),y.jsx(Kb,{onClick:()=>i(a),children:"Upgrade"})]})]})]}):f]})]}),y.jsxs("div",{className:"mt-2 space-y-1 text-[11px]",children:[y.jsx(je,{label:"Version",value:a.version??"Unavailable",mono:!!a.version}),a.update&&y.jsx(je,{label:"Latest",value:a.update.latestVersion??"Unavailable",mono:!!a.update.latestVersion}),y.jsx(je,{label:"Path",value:a.path??"Not on PATH",mono:!!a.path}),y.jsx(je,{label:"Checked",value:Ya(a.checkedAt)}),a.update&&y.jsx(je,{label:"Update check",value:Ya(a.update.checkedAt)})]}),((h=a.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:a.update.detail}),a.metadataStatus&&y.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[y.jsx(St,{variant:Jb(a.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:a.metadataStatus}),y.jsx("span",{children:"Startup preflight"})]}),a.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:a.detail})]})}function ss({name:a,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:a}),y.jsx("div",{className:"text-[10px] text-muted-foreground",children:Ya(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:Jb(r==null?void 0:r.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(r==null?void 0:r.status)??"unknown"})]})]})}function KR(a){return[{key:"workspace",label:"Workspace",value:a==null?void 0:a.workspace},{key:"node",label:"Node app",value:a==null?void 0:a.node},{key:"core",label:"Core",value:a==null?void 0:a.core},{key:"dashboard",label:"Dashboard",value:a==null?void 0:a.dashboard},{key:"api",label:"API",value:a==null?void 0:a.api}].filter(o=>o.value)}function PR(a,r){var o;return(o=a==null?void 0:a.nodes)!=null&&o.length?a.nodes:r?[r]:[]}function JR(a,r){var i;if(r&&a.id===r.nodeId)return r;const o=a.settingsSnapshot;return{...a,nodeId:a.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 FR(a,r){return a.id===r?`${a.name} (this node)`:`${a.name} (${a.role})`}function IR({cluster:a,systemInfo:r,sseConnected:o,onRefresh:i}){var T,j,D,B,Z,F,q,V,ae,he,pe,fe,me,ge,ue,O,Y,J,le,I,_,G,X,W;const u=b.useMemo(()=>PR(a,r),[a,r]),[f,d]=b.useState(()=>{var P;return(r==null?void 0:r.nodeId)??((P=a==null?void 0:a.self)==null?void 0:P.id)??""}),[h,v]=b.useState(null),p=(a==null?void 0:a.self)??r??u[0]??null,x=u.find(P=>P.id===f)??p,m=x?JR(x,r):null,w=!!(r&&x&&x.id===r.nodeId),N=w||!!(x!=null&&x.settingsSnapshot),R=b.useMemo(()=>KR(m==null?void 0:m.packages),[m==null?void 0:m.packages]),E=((T=m==null?void 0:m.startupRequirements)==null?void 0:T.components)??(m==null?void 0:m.components)??{};async function C(P){if(!x)return;const ne=`${x.id}:${P.id}`;v(ne);try{const ee=await nw(x.id,P.id);ee.ok?(yr.success(`${P.label} upgrade finished on ${x.name}`),i==null||i()):yr.error(ee.detail??`${P.label} upgrade failed`)}catch(ee){yr.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(iy,{status:x.status}),y.jsx("span",{className:"font-medium text-foreground",children:x.name})]}),y.jsx(lN,{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(sR,{value:x.id,onValueChange:d,children:[y.jsx(I0,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:y.jsx(cR,{placeholder:"Choose a node"})}),y.jsx(tb,{children:u.map(P=>y.jsx(nb,{value:P.id,children:FR(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(Vv,{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 ",GR(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 ",Ya((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(AR,{defaultValue:"session",className:"space-y-2",children:[y.jsxs(wb,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[y.jsx(hs,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),y.jsx(hs,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),y.jsx(hs,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),y.jsxs(ps,{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(Qw,{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(je,{label:"Node ID",value:m.nodeId,mono:!0}),y.jsx(je,{label:"Status",value:x.status}),y.jsx(je,{label:"Role",value:x.role}),y.jsx(je,{label:"Endpoint",value:x.endpoint,mono:!0}),y.jsx(je,{label:"Joined",value:Ya(x.joinedAt)}),y.jsx(je,{label:"Heartbeat",value:Ya(x.lastHeartbeat)}),y.jsx(je,{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(Mw,{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(je,{label:"Host",value:((D=m.os)==null?void 0:D.hostname)??"Unavailable"}),y.jsx(je,{label:"Platform",value:m.os?`${m.os.platform} ${m.os.release}`:"Unavailable"}),y.jsx(je,{label:"Arch",value:((B=m.os)==null?void 0:B.arch)??"Unavailable"}),y.jsx(je,{label:"CPU",value:((Z=m.os)==null?void 0:Z.cpuModel)??"Unavailable"}),y.jsx(je,{label:"Cores",value:String(((F=m.os)==null?void 0:F.cpuCount)??"Unavailable")}),y.jsx(je,{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(Bv,{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(ZR,{agent:P,nodeName:x.name,upgrading:h===`${x.id}:${P.id}`,onUpgrade:C},P.id))})]})]}),y.jsxs(ps,{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(yw,{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(je,{label:"Transport",value:x.transportType??m.transportType??"direct"}),y.jsx(je,{label:"Node URL",value:x.endpoint,mono:!0}),y.jsx(je,{label:"Node tunnel",value:x.devtunnelEndpoint??"Disabled",mono:!!x.devtunnelEndpoint}),y.jsx(je,{label:"Dashboard URL",value:x.dashboardOrigin??m.localDashboardOrigin??"Unavailable",mono:!!(x.dashboardOrigin||m.localDashboardOrigin)}),y.jsx(je,{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(Jw,{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(je,{label:"Enabled",value:(q=m.auth)!=null&&q.enabled?"Yes":"No"}),y.jsx(je,{label:"Same tenant",value:(V=m.auth)!=null&&V.allowSameTenant?"Allowed":"Off"}),y.jsx(je,{label:"Allowed users",value:(ae=m.auth)!=null&&ae.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(kw,{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(je,{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(je,{label:"Storage",value:((fe=m.runtime)==null?void 0:fe.storagePath)??"Unavailable",mono:!!((me=m.runtime)!=null&&me.storagePath)}),y.jsx(je,{label:"Process cwd",value:((ge=m.runtime)==null?void 0:ge.cwd)??"Unavailable",mono:!!((ue=m.runtime)!=null&&ue.cwd)}),y.jsx(je,{label:"Started",value:Ya((O=m.runtime)==null?void 0:O.startedAt)}),y.jsx(je,{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(Uv,{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:Ya((Y=m.startupRequirements)==null?void 0:Y.lastCheckedAt)})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(ss,{name:"Azure CLI",status:E.az}),y.jsx(ss,{name:"DevTunnel",status:E.devtunnel}),y.jsx(ss,{name:"Claude Code",status:E.claude}),y.jsx(ss,{name:"Codex",status:E.codex})]})]})]})]}),y.jsxs(ps,{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(pw,{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(jw,{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(je,{label:"Branch",value:((le=m.repository)==null?void 0:le.branch)??"Unavailable",mono:!!((I=m.repository)!=null&&I.branch)}),y.jsx(je,{label:"Commit",value:((_=m.repository)==null?void 0:_.commit)??"Unavailable",mono:!!((G=m.repository)!=null&&G.commit)}),y.jsx(je,{label:"Runtime",value:`${m.packageName??"meshy"} ${m.version}`,mono:!0}),y.jsx(je,{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(Uw,{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:R.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 WR(){const{cluster:a,systemInfo:r,sseConnected:o,refresh:i}=kv(),[u,f]=b.useState(!1);return y.jsxs(cT,{open:u,onOpenChange:f,children:[y.jsx(uT,{asChild:!0,children:y.jsx(Sl,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-full border border-border/70 bg-background/70 shadow-sm",children:y.jsx(Kw,{className:"h-4 w-4"})})}),y.jsxs(Gy,{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($y,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[y.jsxs(Xy,{className:"flex items-center gap-1.5 text-[12px]",children:[y.jsx(Hw,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),y.jsx(Qy,{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(IR,{cluster:a,systemInfo:r,sseConnected:o,onRefresh:i})})]})]})}const a5="bypass",e_=[{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"}],l5=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],r5=new Set(e_.filter(a=>a.supportsFollowUp).map(a=>a.value)),o5=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],i5=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],t_=new Set(["pending","assigned"]),n_=new Set(["running"]),a_=new Set(["completed","failed","cancelled"]);function s5(a,r){switch(r){case"running":return n_.has(a.status);case"waiting":return t_.has(a.status);case"closed":return a_.has(a.status);case"shared":return!!a.activeShare;case"archived":return a.status==="archived";case"active":default:return a.status!=="archived"}}function c5(a,r){if(r==="all")return!0;const o=a.conversationKind==="nativeSession";return r==="native"?o:!o}function u5(a,r){const o=r.trim().toLowerCase();return o?[a.title,a.description,a.id,a.agent,a.assignedTo??"",a.assignedNodeName??"",a.project??"",a.effectiveProjectPath??"",a.conversationKind==="nativeSession"?"native session":"meshy chat",a.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function l_(a,r,o){if(!a)return"unassigned";const i=r==null?void 0:r.find(u=>u.id===a);return(i==null?void 0:i.name)??o??a.slice(0,8)}function f5(a,r,o){return l_(a,r,o).toLowerCase()}function d5(a,r){return[...a].sort((o,i)=>o.id===r?-1:i.id===r?1:o.name.localeCompare(i.name))}function m5(a){if(!a||typeof a!="object")return null;const r=a,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 h5(a){switch(a){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 p5(a){return a==="default workspace"?a:a.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??a}function g5(a){const r=Date.now()-a;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 v5(a){return new Date(a).toLocaleString()}function y5(a){const r=Math.floor(a/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 r_(a,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(a),yr.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=a,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 yr.success(r),!0}catch(f){return yr.error(f instanceof Error?f.message:"Failed to copy"),!1}}function b5(a,r){const o=new Map;for(const u of a){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 o_={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"};function i_(a){return a.split(".")[0]??"unknown"}function s_(a){return new Date(a).toLocaleTimeString("en-US",{hour12:!1})}function xf(a,r){return(r==null?void 0:r.get(a))??a}function c_(a,r){const o=a.data;switch(a.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${xf(o.nodeId,r)} left (${o.reason})`;case"node.status":return`${xf(o.nodeId,r)} is now ${o.status}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${xf(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 u_(a){return JSON.stringify(a,null,2)}function f_({events:a,maxHeight:r="400px",emptyTitle:o="No live events yet",emptyDescription:i="Cluster activity appears here as it happens.",nodeNameById:u,onDismiss:f}){return a.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:a.map(d=>{const h=i_(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:s_(d.timestamp)}),y.jsx(St,{variant:"outline",className:Ce("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",o_[h]),children:d.type})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[y.jsx(Sl,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-full text-muted-foreground",onClick:()=>void r_(u_(d),"Event copied"),"aria-label":`Copy ${d.type} event`,title:"Copy event",children:y.jsx(_w,{className:"h-3 w-3"})}),f&&y.jsx(Sl,{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(Yv,{className:"h-3 w-3"})})]})]}),y.jsx("div",{className:"text-[11px] leading-snug text-foreground/85",children:c_(d,u)})]})},d.id)})})})}const d_=["node.","election.","cluster."];function m_(a){return d_.some(r=>a.type.startsWith(r))}function h_(a){return a?`${a.type} · ${new Date(a.timestamp).toLocaleTimeString("en-US",{hour12:!1})}`:"Waiting for cluster activity"}function p_({connected:a,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(()=>r.filter(m=>m_(m)&&!d.has(m.id)),[r,d]),x=p[0];return b.useEffect(()=>{h(m=>{if(m.size===0)return m;const w=new Set(r.map(R=>R.id)),N=new Set(Array.from(m).filter(R=>w.has(R)));return N.size===m.size?m:N})},[r]),b.useEffect(()=>{if(!u)return;const m=N=>{var R;(R=v.current)!=null&&R.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:Ce("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",a?"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:a?"Live link connected":"Live link reconnecting",children:[y.jsx(Vv,{className:Ce("h-3.5 w-3.5",a?"text-emerald-500":"text-destructive")}),a?"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:[a?y.jsx(Uv,{className:"h-3.5 w-3.5 text-emerald-500"}):y.jsx(eE,{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:a?"SSE stream is connected":"SSE stream is reconnecting"})]}),y.jsx("div",{className:Ce("rounded-full border px-2 py-0.5 text-[9px] font-medium uppercase tracking-[0.14em]",a?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:a?"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-[10px] text-foreground/80",children:h_(x)})]})]}),y.jsx("div",{className:"px-2 py-2",children:y.jsx(f_,{events:p,maxHeight:"16rem",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and cluster 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, cluster activity."}),y.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[y.jsx(Sl,{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(Sl,{type:"button",variant:"ghost",size:"sm",className:"h-6 rounded-full px-2 text-[10px]",onClick:()=>f(!1),children:"Close"})]})]})]})]})}function g_(){var x,m;const{cluster:a,events:r,sseConnected:o}=kv(),{theme:i,setTheme:u}=tN(),f=Bn(),d=f.pathname==="/"||/^\/tasks\/[^/]+$/.test(f.pathname),h=b.useMemo(()=>{const w=new Map;for(const N of(a==null?void 0:a.nodes)??[])w.set(N.id,N.name);return w},[a==null?void 0:a.nodes]),v=i==="dark"?Gw:i==="light"?Iw:Yw,p=()=>{const w=["light","dark","system"],N=w.indexOf(i);u(w[(N+1)%w.length])};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(Mv,{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:[(a==null?void 0:a.self)&&y.jsx(iy,{status:a.self.status}),y.jsx("span",{className:"font-medium text-foreground",children:((x=a==null?void 0:a.self)==null?void 0:x.name)??"offline"})]}),y.jsx("span",{className:"text-border",children:"/"}),y.jsx("span",{className:"capitalize",children:((m=a==null?void 0:a.self)==null?void 0:m.role)??"node"})]}),y.jsx(p_,{connected:o,events:r,nodeNameById:h}),y.jsx(WR,{}),y.jsx(Sl,{variant:"ghost",size:"icon",onClick:p,className:"rounded-full border border-border/60 bg-background/70",title:`Theme: ${i}`,children:y.jsx(v,{className:"h-4 w-4"})})]})]})}),y.jsx("main",{className:Ce("min-h-0 flex-1 px-3 pb-3 sm:px-5 lg:px-6",d?"overflow-hidden":"overflow-y-auto"),children:y.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:y.jsx(v2,{})})})]})]})}const cv=b.lazy(async()=>({default:(await dv(()=>import("./DashboardPage-vg1FNZ-b.js").then(r=>r.D),__vite__mapDeps([0,1,2]))).DashboardPage})),v_=b.lazy(async()=>({default:(await dv(()=>import("./SharedConversationPage-CNmEk_vb.js"),__vite__mapDeps([3,1]))).SharedConversationPage}));function y_(){return y.jsx(G2,{children:y.jsx(b.Suspense,{fallback:y.jsx(b_,{}),children:y.jsxs(b2,{children:[y.jsx(xl,{path:"/shared/tasks/:shareId",element:y.jsx(v_,{})}),y.jsxs(xl,{element:y.jsx(ow,{children:y.jsx(g_,{})}),children:[y.jsx(xl,{path:"/",element:y.jsx(cv,{})}),y.jsx(xl,{path:"/nodes",element:y.jsx(Ng,{to:"/",replace:!0})}),y.jsx(xl,{path:"/tasks",element:y.jsx(Ng,{to:"/",replace:!0})}),y.jsx(xl,{path:"/tasks/:id",element:y.jsx(cv,{})})]})]})})})}function b_(){return y.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function x_(a){return y.jsx(jN,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...a})}vS.createRoot(document.getElementById("root")).render(y.jsx(b.StrictMode,{children:y.jsxs(eN,{children:[y.jsx(y_,{}),y.jsx(x_,{})]})}));export{d5 as $,cT as A,St as B,xw as C,Gy as D,_w as E,kw as F,r_ as G,l_ as H,AR as I,e5 as J,wb as K,hs as L,v5 as M,ps as N,VR as O,t5 as P,Gb as Q,$b as R,nb as S,l5 as T,Qb as U,Zb as V,Xb as W,Yv as X,Pb as Y,Kb as Z,dv as _,Ce as a,Vv as a0,f_ as a1,iy as a2,jw as a3,lN as a4,y5 as a5,t_ as a6,ko as a7,Be as a8,_o as a9,u5 as aA,D_ as aB,r5 as aC,n_ as aD,V_ as aE,U_ as aF,B_ as aG,L_ as aH,k_ as aI,E_ as aJ,C_ as aK,w_ as aL,T_ as aM,Z_ as aN,Q_ as aO,X_ as aP,K_ as aQ,G_ as aR,$_ as aS,Ew as aT,uv as aU,F_ as aV,J_ as aW,P_ as aX,I_ as aY,n5 as aZ,W_ as a_,Ie as aa,ze as ab,MA as ac,xA as ad,Al as ae,b5 as af,Aw as ag,o5 as ah,i5 as ai,p5 as aj,h5 as ak,g5 as al,YR as am,Y_ as an,q_ as ao,M_ as ap,aw as aq,H_ as ar,S_ as as,Bn as at,Ev as au,kv as av,m5 as aw,s5 as ax,c5 as ay,f5 as az,lE as b,We as c,Xv as d,N_ as e,$y as f,Xy as g,dT as h,Sl as i,y as j,R_ as k,O_ as l,A_ as m,a5 as n,__ as o,z_ as p,sR as q,b as r,I0 as s,yr as t,cR as u,tb as v,Bv as w,Hv as x,e_ as y,j_ as z};
|