@getvision/core 0.0.7 → 0.0.8-2635948-develop

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.
@@ -0,0 +1,243 @@
1
+ var jx=Object.defineProperty;var gg=l=>{throw TypeError(l)};var Hx=(l,r,i)=>r in l?jx(l,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):l[r]=i;var Xn=(l,r,i)=>Hx(l,typeof r!="symbol"?r+"":r,i),af=(l,r,i)=>r.has(l)||gg("Cannot "+i);var C=(l,r,i)=>(af(l,r,"read from private field"),i?i.call(l):r.get(l)),se=(l,r,i)=>r.has(l)?gg("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(l):r.set(l,i),ee=(l,r,i,s)=>(af(l,r,"write to private field"),s?s.call(l,i):r.set(l,i),i),ye=(l,r,i)=>(af(l,r,"access private method"),i);var cu=(l,r,i,s)=>({set _(c){ee(l,r,c,i)},get _(){return C(l,r,s)}});function Bx(l,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function xy(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var rf={exports:{}},Ni={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var yg;function kx(){if(yg)return Ni;yg=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:l,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Ni.Fragment=r,Ni.jsx=i,Ni.jsxs=i,Ni}var vg;function Qx(){return vg||(vg=1,rf.exports=kx()),rf.exports}var Yf=Qx();const sn=Yf.Fragment,p=Yf.jsx,w=Yf.jsxs;var sf={exports:{}},de={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var bg;function Gx(){if(bg)return de;bg=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),N=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=N&&E[N]||E["@@iterator"],typeof E=="function"?E:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,O={};function U(E,Y,P){this.props=E,this.context=Y,this.refs=O,this.updater=P||_}U.prototype.isReactComponent={},U.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Y,"setState")},U.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function V(){}V.prototype=U.prototype;function B(E,Y,P){this.props=E,this.context=Y,this.refs=O,this.updater=P||_}var Q=B.prototype=new V;Q.constructor=B,z(Q,U.prototype),Q.isPureReactComponent=!0;var H=Array.isArray;function k(){}var K={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function I(E,Y,P){var te=P.ref;return{$$typeof:l,type:E,key:Y,ref:te!==void 0?te:null,props:P}}function $(E,Y){return I(E.type,Y,E.props)}function oe(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function ie(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(P){return Y[P]})}var qe=/\/+/g;function Ge(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?ie(""+E.key):Y.toString(36)}function le(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(k,k):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,Y,P,te,fe){var ve=typeof E;(ve==="undefined"||ve==="boolean")&&(E=null);var Oe=!1;if(E===null)Oe=!0;else switch(ve){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(E.$$typeof){case l:case r:Oe=!0;break;case x:return Oe=E._init,D(Oe(E._payload),Y,P,te,fe)}}if(Oe)return fe=fe(E),Oe=te===""?"."+Ge(E,0):te,H(fe)?(P="",Oe!=null&&(P=Oe.replace(qe,"$&/")+"/"),D(fe,Y,P,"",function(Or){return Or})):fe!=null&&(oe(fe)&&(fe=$(fe,P+(fe.key==null||E&&E.key===fe.key?"":(""+fe.key).replace(qe,"$&/")+"/")+Oe)),Y.push(fe)),1;Oe=0;var vt=te===""?".":te+":";if(H(E))for(var $e=0;$e<E.length;$e++)te=E[$e],ve=vt+Ge(te,$e),Oe+=D(te,Y,P,ve,fe);else if($e=R(E),typeof $e=="function")for(E=$e.call(E),$e=0;!(te=E.next()).done;)te=te.value,ve=vt+Ge(te,$e++),Oe+=D(te,Y,P,ve,fe);else if(ve==="object"){if(typeof E.then=="function")return D(le(E),Y,P,te,fe);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function W(E,Y,P){if(E==null)return E;var te=[],fe=0;return D(E,te,"","",function(ve){return Y.call(P,ve,fe++)}),te}function re(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(P){(E._status===0||E._status===-1)&&(E._status=1,E._result=P)},function(P){(E._status===0||E._status===-1)&&(E._status=2,E._result=P)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var ge=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Te={map:W,forEach:function(E,Y,P){W(E,function(){Y.apply(this,arguments)},P)},count:function(E){var Y=0;return W(E,function(){Y++}),Y},toArray:function(E){return W(E,function(Y){return Y})||[]},only:function(E){if(!oe(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return de.Activity=S,de.Children=Te,de.Component=U,de.Fragment=i,de.Profiler=c,de.PureComponent=B,de.StrictMode=s,de.Suspense=y,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,de.__COMPILER_RUNTIME={__proto__:null,c:function(E){return K.H.useMemoCache(E)}},de.cache=function(E){return function(){return E.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(E,Y,P){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var te=z({},E.props),fe=E.key;if(Y!=null)for(ve in Y.key!==void 0&&(fe=""+Y.key),Y)!F.call(Y,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&Y.ref===void 0||(te[ve]=Y[ve]);var ve=arguments.length-2;if(ve===1)te.children=P;else if(1<ve){for(var Oe=Array(ve),vt=0;vt<ve;vt++)Oe[vt]=arguments[vt+2];te.children=Oe}return I(E.type,fe,te)},de.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},de.createElement=function(E,Y,P){var te,fe={},ve=null;if(Y!=null)for(te in Y.key!==void 0&&(ve=""+Y.key),Y)F.call(Y,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(fe[te]=Y[te]);var Oe=arguments.length-2;if(Oe===1)fe.children=P;else if(1<Oe){for(var vt=Array(Oe),$e=0;$e<Oe;$e++)vt[$e]=arguments[$e+2];fe.children=vt}if(E&&E.defaultProps)for(te in Oe=E.defaultProps,Oe)fe[te]===void 0&&(fe[te]=Oe[te]);return I(E,ve,fe)},de.createRef=function(){return{current:null}},de.forwardRef=function(E){return{$$typeof:h,render:E}},de.isValidElement=oe,de.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:re}},de.memo=function(E,Y){return{$$typeof:g,type:E,compare:Y===void 0?null:Y}},de.startTransition=function(E){var Y=K.T,P={};K.T=P;try{var te=E(),fe=K.S;fe!==null&&fe(P,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(k,ge)}catch(ve){ge(ve)}finally{Y!==null&&P.types!==null&&(Y.types=P.types),K.T=Y}},de.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},de.use=function(E){return K.H.use(E)},de.useActionState=function(E,Y,P){return K.H.useActionState(E,Y,P)},de.useCallback=function(E,Y){return K.H.useCallback(E,Y)},de.useContext=function(E){return K.H.useContext(E)},de.useDebugValue=function(){},de.useDeferredValue=function(E,Y){return K.H.useDeferredValue(E,Y)},de.useEffect=function(E,Y){return K.H.useEffect(E,Y)},de.useEffectEvent=function(E){return K.H.useEffectEvent(E)},de.useId=function(){return K.H.useId()},de.useImperativeHandle=function(E,Y,P){return K.H.useImperativeHandle(E,Y,P)},de.useInsertionEffect=function(E,Y){return K.H.useInsertionEffect(E,Y)},de.useLayoutEffect=function(E,Y){return K.H.useLayoutEffect(E,Y)},de.useMemo=function(E,Y){return K.H.useMemo(E,Y)},de.useOptimistic=function(E,Y){return K.H.useOptimistic(E,Y)},de.useReducer=function(E,Y,P){return K.H.useReducer(E,Y,P)},de.useRef=function(E){return K.H.useRef(E)},de.useState=function(E){return K.H.useState(E)},de.useSyncExternalStore=function(E,Y,P){return K.H.useSyncExternalStore(E,Y,P)},de.useTransition=function(){return K.H.useTransition()},de.version="19.2.0",de}var xg;function Vf(){return xg||(xg=1,sf.exports=Gx()),sf.exports}var v=Vf();const wt=xy(v),Sy=Bx({__proto__:null,default:wt},[v]);var uf={exports:{}},wi={},of={exports:{}},cf={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Sg;function Yx(){return Sg||(Sg=1,(function(l){function r(D,W){var re=D.length;D.push(W);e:for(;0<re;){var ge=re-1>>>1,Te=D[ge];if(0<c(Te,W))D[ge]=W,D[re]=Te,re=ge;else break e}}function i(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var W=D[0],re=D.pop();if(re!==W){D[0]=re;e:for(var ge=0,Te=D.length,E=Te>>>1;ge<E;){var Y=2*(ge+1)-1,P=D[Y],te=Y+1,fe=D[te];if(0>c(P,re))te<Te&&0>c(fe,P)?(D[ge]=fe,D[te]=re,ge=te):(D[ge]=P,D[Y]=re,ge=Y);else if(te<Te&&0>c(fe,re))D[ge]=fe,D[te]=re,ge=te;else break e}}return W}function c(D,W){var re=D.sortIndex-W.sortIndex;return re!==0?re:D.id-W.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();l.unstable_now=function(){return d.now()-h}}var y=[],g=[],x=1,S=null,N=3,R=!1,_=!1,z=!1,O=!1,U=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var W=i(g);W!==null;){if(W.callback===null)s(g);else if(W.startTime<=D)s(g),W.sortIndex=W.expirationTime,r(y,W);else break;W=i(g)}}function H(D){if(z=!1,Q(D),!_)if(i(y)!==null)_=!0,k||(k=!0,ie());else{var W=i(g);W!==null&&le(H,W.startTime-D)}}var k=!1,K=-1,F=5,I=-1;function $(){return O?!0:!(l.unstable_now()-I<F)}function oe(){if(O=!1,k){var D=l.unstable_now();I=D;var W=!0;try{e:{_=!1,z&&(z=!1,V(K),K=-1),R=!0;var re=N;try{t:{for(Q(D),S=i(y);S!==null&&!(S.expirationTime>D&&$());){var ge=S.callback;if(typeof ge=="function"){S.callback=null,N=S.priorityLevel;var Te=ge(S.expirationTime<=D);if(D=l.unstable_now(),typeof Te=="function"){S.callback=Te,Q(D),W=!0;break t}S===i(y)&&s(y),Q(D)}else s(y);S=i(y)}if(S!==null)W=!0;else{var E=i(g);E!==null&&le(H,E.startTime-D),W=!1}}break e}finally{S=null,N=re,R=!1}W=void 0}}finally{W?ie():k=!1}}}var ie;if(typeof B=="function")ie=function(){B(oe)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Ge=qe.port2;qe.port1.onmessage=oe,ie=function(){Ge.postMessage(null)}}else ie=function(){U(oe,0)};function le(D,W){K=U(function(){D(l.unstable_now())},W)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return N},l.unstable_next=function(D){switch(N){case 1:case 2:case 3:var W=3;break;default:W=N}var re=N;N=W;try{return D()}finally{N=re}},l.unstable_requestPaint=function(){O=!0},l.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=N;N=D;try{return W()}finally{N=re}},l.unstable_scheduleCallback=function(D,W,re){var ge=l.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ge+re:ge):re=ge,D){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=re+Te,D={id:x++,callback:W,priorityLevel:D,startTime:re,expirationTime:Te,sortIndex:-1},re>ge?(D.sortIndex=re,r(g,D),i(y)===null&&D===i(g)&&(z?(V(K),K=-1):z=!0,le(H,re-ge))):(D.sortIndex=Te,r(y,D),_||R||(_=!0,k||(k=!0,ie()))),D},l.unstable_shouldYield=$,l.unstable_wrapCallback=function(D){var W=N;return function(){var re=N;N=W;try{return D.apply(this,arguments)}finally{N=re}}}})(cf)),cf}var Ng;function Vx(){return Ng||(Ng=1,of.exports=Yx()),of.exports}var ff={exports:{}},pt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var wg;function Xx(){if(wg)return pt;wg=1;var l=Vf();function r(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,g,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:y,containerInfo:g,implementation:x}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,pt.createPortal=function(y,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(y,g,null,x)},pt.flushSync=function(y){var g=d.T,x=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=g,s.p=x,s.d.f()}},pt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(y,g))},pt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},pt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var x=g.as,S=h(x,g.crossOrigin),N=typeof g.integrity=="string"?g.integrity:void 0,R=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?s.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:N,fetchPriority:R}):x==="script"&&s.d.X(y,{crossOrigin:S,integrity:N,fetchPriority:R,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},pt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=h(g.as,g.crossOrigin);s.d.M(y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(y)},pt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,S=h(x,g.crossOrigin);s.d.L(y,x,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},pt.preloadModule=function(y,g){if(typeof y=="string")if(g){var x=h(g.as,g.crossOrigin);s.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(y)},pt.requestFormReset=function(y){s.d.r(y)},pt.unstable_batchedUpdates=function(y,g){return y(g)},pt.useFormState=function(y,g,x){return d.H.useFormState(y,g,x)},pt.useFormStatus=function(){return d.H.useHostTransitionStatus()},pt.version="19.2.0",pt}var Eg;function Ny(){if(Eg)return ff.exports;Eg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),ff.exports=Xx(),ff.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Tg;function Kx(){if(Tg)return wi;Tg=1;var l=Vx(),r=Vf(),i=Ny();function s(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 c(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 y(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var o=u.alternate;if(o===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===n)return y(u),e;if(o===a)return y(u),t;o=o.sibling}throw Error(s(188))}if(n.return!==a.return)n=u,a=o;else{for(var m=!1,b=u.child;b;){if(b===n){m=!0,n=u,a=o;break}if(b===a){m=!0,a=u,n=o;break}b=b.sibling}if(!m){for(b=o.child;b;){if(b===n){m=!0,n=o,a=u;break}if(b===a){m=!0,a=o,n=u;break}b=b.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(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 S=Object.assign,N=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case U:return"Profiler";case O:return"StrictMode";case H:return"Suspense";case k:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case B:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var le=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ge=[],Te=-1;function E(e){return{current:e}}function Y(e){0>Te||(e.current=ge[Te],ge[Te]=null,Te--)}function P(e,t){Te++,ge[Te]=e.current,e.current=t}var te=E(null),fe=E(null),ve=E(null),Oe=E(null);function vt(e,t){switch(P(ve,t),P(fe,e),P(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bp(t),e=kp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(te),P(te,e)}function $e(){Y(te),Y(fe),Y(ve)}function Or(e){e.memoizedState!==null&&P(Oe,e);var t=te.current,n=kp(t,e.type);t!==n&&(P(fe,e),P(te,n))}function Ki(e){fe.current===e&&(Y(te),Y(fe)),Oe.current===e&&(Y(Oe),vi._currentValue=re)}var Bu,pd;function Yl(e){if(Bu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||"",pd=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Bu+e+pd}var ku=!1;function Qu(e,t){if(!e||ku)return"";ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(G){var j=G}Reflect.construct(e,[],J)}else{try{J.call()}catch(G){j=G}e.call(J.prototype)}}else{try{throw Error()}catch(G){j=G}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(G){if(G&&j&&typeof G.stack=="string")return[G.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),m=o[0],b=o[1];if(m&&b){var T=m.split(`
44
+ `),q=b.split(`
45
+ `);for(u=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;u<q.length&&!q[u].includes("DetermineComponentFrameRoot");)u++;if(a===T.length||u===q.length)for(a=T.length-1,u=q.length-1;1<=a&&0<=u&&T[a]!==q[u];)u--;for(;1<=a&&0<=u;a--,u--)if(T[a]!==q[u]){if(a!==1||u!==1)do if(a--,u--,0>u||T[a]!==q[u]){var X=`
46
+ `+T[a].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=a&&0<=u);break}}}finally{ku=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Yl(n):""}function m0(e,t){switch(e.tag){case 26:case 27:case 5:return Yl(e.type);case 16:return Yl("Lazy");case 13:return e.child!==t&&t!==null?Yl("Suspense Fallback"):Yl("Suspense");case 19:return Yl("SuspenseList");case 0:case 15:return Qu(e.type,!1);case 11:return Qu(e.type.render,!1);case 1:return Qu(e.type,!0);case 31:return Yl("Activity");default:return""}}function gd(e){try{var t="",n=null;do t+=m0(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Gu=Object.prototype.hasOwnProperty,Yu=l.unstable_scheduleCallback,Vu=l.unstable_cancelCallback,p0=l.unstable_shouldYield,g0=l.unstable_requestPaint,Lt=l.unstable_now,y0=l.unstable_getCurrentPriorityLevel,yd=l.unstable_ImmediatePriority,vd=l.unstable_UserBlockingPriority,Zi=l.unstable_NormalPriority,v0=l.unstable_LowPriority,bd=l.unstable_IdlePriority,b0=l.log,x0=l.unstable_setDisableYieldValue,Mr=null,qt=null;function tl(e){if(typeof b0=="function"&&x0(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(Mr,e)}catch{}}var jt=Math.clz32?Math.clz32:w0,S0=Math.log,N0=Math.LN2;function w0(e){return e>>>=0,e===0?32:31-(S0(e)/N0|0)|0}var Ji=256,$i=262144,Fi=4194304;function Vl(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 Wi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~o,a!==0?u=Vl(a):(m&=b,m!==0?u=Vl(m):n||(n=b&~e,n!==0&&(u=Vl(n))))):(b=a&~o,b!==0?u=Vl(b):m!==0?u=Vl(m):n||(n=a&~e,n!==0&&(u=Vl(n)))),u===0?0:t!==0&&t!==u&&(t&o)===0&&(o=u&-u,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:u}function zr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function E0(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 xd(){var e=Fi;return Fi<<=1,(Fi&62914560)===0&&(Fi=4194304),e}function Xu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Dr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function T0(e,t,n,a,u,o){var m=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 b=e.entanglements,T=e.expirationTimes,q=e.hiddenUpdates;for(n=m&~n;0<n;){var X=31-jt(n),J=1<<X;b[X]=0,T[X]=-1;var j=q[X];if(j!==null)for(q[X]=null,X=0;X<j.length;X++){var G=j[X];G!==null&&(G.lane&=-536870913)}n&=~J}a!==0&&Sd(e,a,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function Sd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-jt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Nd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-jt(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function wd(e,t){var n=t&-t;return n=(n&42)!==0?1:Ku(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ku(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 Zu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ed(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:og(e.type))}function Td(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var nl=Math.random().toString(36).slice(2),st="__reactFiber$"+nl,Tt="__reactProps$"+nl,Sa="__reactContainer$"+nl,Ju="__reactEvents$"+nl,C0="__reactListeners$"+nl,A0="__reactHandles$"+nl,Cd="__reactResources$"+nl,_r="__reactMarker$"+nl;function $u(e){delete e[st],delete e[Tt],delete e[Ju],delete e[C0],delete e[A0]}function Na(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sa]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zp(e);e!==null;){if(n=e[st])return n;e=Zp(e)}return t}e=n,n=e.parentNode}return null}function wa(e){if(e=e[st]||e[Sa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ur(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ea(e){var t=e[Cd];return t||(t=e[Cd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[_r]=!0}var Ad=new Set,Rd={};function Xl(e,t){Ta(e,t),Ta(e+"Capture",t)}function Ta(e,t){for(Rd[e]=t,e=0;e<t.length;e++)Ad.add(t[e])}var R0=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]*$"),Od={},Md={};function O0(e){return Gu.call(Md,e)?!0:Gu.call(Od,e)?!1:R0.test(e)?Md[e]=!0:(Od[e]=!0,!1)}function Ii(e,t,n){if(O0(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Pi(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 An(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M0(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fu(e){if(!e._valueTracker){var t=zd(e)?"checked":"value";e._valueTracker=M0(e,t,""+e[t])}}function Dd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=zd(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function es(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 z0=/[\n"\\]/g;function $t(e){return e.replace(z0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Wu(e,t,n,a,u,o,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,m,Jt(t)):n!=null?Iu(e,m,Jt(n)):a!=null&&e.removeAttribute("value"),u==null&&o!=null&&(e.defaultChecked=!!o),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Jt(b):e.removeAttribute("name")}function _d(e,t,n,a,u,o,m,b){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Fu(e);return}n=n!=null?""+Jt(n):"",t=t!=null?""+Jt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Fu(e)}function Iu(e,t,n){t==="number"&&es(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ca(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Jt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Ud(e,t,n){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Jt(n):""}function Ld(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(le(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Jt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Fu(e)}function Aa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var D0=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 qd(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||D0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function jd(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&n[u]!==a&&qd(e,u,a)}else for(var o in t)t.hasOwnProperty(o)&&qd(e,o,t[o])}function Pu(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 _0=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"]]),U0=/^[\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 ts(e){return U0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var eo=null;function to(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ra=null,Oa=null;function Hd(e){var t=wa(e);if(t&&(e=t.stateNode)){var n=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Wu(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="'+$t(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[Tt]||null;if(!u)throw Error(s(90));Wu(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Dd(a)}break e;case"textarea":Ud(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ca(e,!!n.multiple,t,!1)}}}var no=!1;function Bd(e,t,n){if(no)return e(t,n);no=!0;try{var a=e(t);return a}finally{if(no=!1,(Ra!==null||Oa!==null)&&(Gs(),Ra&&(t=Ra,e=Oa,Oa=Ra=null,Hd(t),e)))for(t=0;t<e.length;t++)Hd(e[t])}}function Lr(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Tt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lo=!1;if(On)try{var qr={};Object.defineProperty(qr,"passive",{get:function(){lo=!0}}),window.addEventListener("test",qr,qr),window.removeEventListener("test",qr,qr)}catch{lo=!1}var ll=null,ao=null,ns=null;function kd(){if(ns)return ns;var e,t=ao,n=t.length,a,u="value"in ll?ll.value:ll.textContent,o=u.length;for(e=0;e<n&&t[e]===u[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===u[o-a];a++);return ns=u.slice(e,1<a?1-a:void 0)}function ls(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 as(){return!0}function Qd(){return!1}function Ct(e){function t(n,a,u,o,m){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(o):o[b]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?as:Qd,this.isPropagationStopped=Qd,this}return S(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=as)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),t}var Kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rs=Ct(Kl),jr=S({},Kl,{view:0,detail:0}),L0=Ct(jr),ro,io,Hr,is=S({},jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hr&&(Hr&&e.type==="mousemove"?(ro=e.screenX-Hr.screenX,io=e.screenY-Hr.screenY):io=ro=0,Hr=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:io}}),Gd=Ct(is),q0=S({},is,{dataTransfer:0}),j0=Ct(q0),H0=S({},jr,{relatedTarget:0}),so=Ct(H0),B0=S({},Kl,{animationName:0,elapsedTime:0,pseudoElement:0}),k0=Ct(B0),Q0=S({},Kl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),G0=Ct(Q0),Y0=S({},Kl,{data:0}),Yd=Ct(Y0),V0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X0={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"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K0[e])?!!t[e]:!1}function uo(){return Z0}var J0=S({},jr,{key:function(e){if(e.key){var t=V0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?X0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uo,charCode:function(e){return e.type==="keypress"?ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$0=Ct(J0),F0=S({},is,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vd=Ct(F0),W0=S({},jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uo}),I0=Ct(W0),P0=S({},Kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),eb=Ct(P0),tb=S({},is,{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}),nb=Ct(tb),lb=S({},Kl,{newState:0,oldState:0}),ab=Ct(lb),rb=[9,13,27,32],oo=On&&"CompositionEvent"in window,Br=null;On&&"documentMode"in document&&(Br=document.documentMode);var ib=On&&"TextEvent"in window&&!Br,Xd=On&&(!oo||Br&&8<Br&&11>=Br),Kd=" ",Zd=!1;function Jd(e,t){switch(e){case"keyup":return rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ma=!1;function sb(e,t){switch(e){case"compositionend":return $d(t);case"keypress":return t.which!==32?null:(Zd=!0,Kd);case"textInput":return e=t.data,e===Kd&&Zd?null:e;default:return null}}function ub(e,t){if(Ma)return e==="compositionend"||!oo&&Jd(e,t)?(e=kd(),ns=ao=ll=null,Ma=!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 Xd&&t.locale!=="ko"?null:t.data;default:return null}}var ob={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 Fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ob[e.type]:t==="textarea"}function Wd(e,t,n,a){Ra?Oa?Oa.push(a):Oa=[a]:Ra=a,t=$s(t,"onChange"),0<t.length&&(n=new rs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var kr=null,Qr=null;function cb(e){_p(e,0)}function ss(e){var t=Ur(e);if(Dd(t))return e}function Id(e,t){if(e==="change")return t}var Pd=!1;if(On){var co;if(On){var fo="oninput"in document;if(!fo){var eh=document.createElement("div");eh.setAttribute("oninput","return;"),fo=typeof eh.oninput=="function"}co=fo}else co=!1;Pd=co&&(!document.documentMode||9<document.documentMode)}function th(){kr&&(kr.detachEvent("onpropertychange",nh),Qr=kr=null)}function nh(e){if(e.propertyName==="value"&&ss(Qr)){var t=[];Wd(t,Qr,e,to(e)),Bd(cb,t)}}function fb(e,t,n){e==="focusin"?(th(),kr=t,Qr=n,kr.attachEvent("onpropertychange",nh)):e==="focusout"&&th()}function db(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ss(Qr)}function hb(e,t){if(e==="click")return ss(t)}function mb(e,t){if(e==="input"||e==="change")return ss(t)}function pb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:pb;function Gr(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!Gu.call(t,u)||!Ht(e[u],t[u]))return!1}return!0}function lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ah(e,t){var n=lh(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lh(n)}}function rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ih(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=es(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=es(e.document)}return t}function ho(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 gb=On&&"documentMode"in document&&11>=document.documentMode,za=null,mo=null,Yr=null,po=!1;function sh(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;po||za==null||za!==es(a)||(a=za,"selectionStart"in a&&ho(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Yr&&Gr(Yr,a)||(Yr=a,a=$s(mo,"onSelect"),0<a.length&&(t=new rs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=za)))}function Zl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Da={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionrun:Zl("Transition","TransitionRun"),transitionstart:Zl("Transition","TransitionStart"),transitioncancel:Zl("Transition","TransitionCancel"),transitionend:Zl("Transition","TransitionEnd")},go={},uh={};On&&(uh=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function Jl(e){if(go[e])return go[e];if(!Da[e])return e;var t=Da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in uh)return go[e]=t[n];return e}var oh=Jl("animationend"),ch=Jl("animationiteration"),fh=Jl("animationstart"),yb=Jl("transitionrun"),vb=Jl("transitionstart"),bb=Jl("transitioncancel"),dh=Jl("transitionend"),hh=new Map,yo="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(" ");yo.push("scrollEnd");function cn(e,t){hh.set(e,t),Xl(t,[e])}var us=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)},Ft=[],_a=0,vo=0;function os(){for(var e=_a,t=vo=_a=0;t<e;){var n=Ft[t];Ft[t++]=null;var a=Ft[t];Ft[t++]=null;var u=Ft[t];Ft[t++]=null;var o=Ft[t];if(Ft[t++]=null,a!==null&&u!==null){var m=a.pending;m===null?u.next=u:(u.next=m.next,m.next=u),a.pending=u}o!==0&&mh(n,u,o)}}function cs(e,t,n,a){Ft[_a++]=e,Ft[_a++]=t,Ft[_a++]=n,Ft[_a++]=a,vo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function bo(e,t,n,a){return cs(e,t,n,a),fs(e)}function $l(e,t){return cs(e,null,null,t),fs(e)}function mh(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var u=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(u=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,u&&t!==null&&(u=31-jt(n),e=o.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),o):null}function fs(e){if(50<fi)throw fi=0,Rc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ua={};function xb(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,a){return new xb(e,t,n,a)}function xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mn(e,t){var n=e.alternate;return n===null?(n=Bt(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 ph(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 ds(e,t,n,a,u,o){var m=0;if(a=e,typeof e=="function")xo(e)&&(m=1);else if(typeof e=="string")m=Tx(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=Bt(31,n,t,u),e.elementType=I,e.lanes=o,e;case z:return Fl(n.children,u,o,t);case O:m=8,u|=24;break;case U:return e=Bt(12,n,t,u|2),e.elementType=U,e.lanes=o,e;case H:return e=Bt(13,n,t,u),e.elementType=H,e.lanes=o,e;case k:return e=Bt(19,n,t,u),e.elementType=k,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:m=10;break e;case V:m=9;break e;case Q:m=11;break e;case K:m=14;break e;case F:m=16,a=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Bt(m,n,t,u),t.elementType=e,t.type=a,t.lanes=o,t}function Fl(e,t,n,a){return e=Bt(7,e,a,t),e.lanes=n,e}function So(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function gh(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function No(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yh=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var n=yh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:gd(t)},yh.set(e,t),t)}return{value:e,source:t,stack:gd(t)}}var La=[],qa=0,hs=null,Vr=0,It=[],Pt=0,al=null,yn=1,vn="";function zn(e,t){La[qa++]=Vr,La[qa++]=hs,hs=e,Vr=t}function vh(e,t,n){It[Pt++]=yn,It[Pt++]=vn,It[Pt++]=al,al=e;var a=yn;e=vn;var u=32-jt(a)-1;a&=~(1<<u),n+=1;var o=32-jt(t)+u;if(30<o){var m=u-u%5;o=(a&(1<<m)-1).toString(32),a>>=m,u-=m,yn=1<<32-jt(t)+u|n<<u|a,vn=o+e}else yn=1<<o|n<<u|a,vn=e}function wo(e){e.return!==null&&(zn(e,1),vh(e,1,0))}function Eo(e){for(;e===hs;)hs=La[--qa],La[qa]=null,Vr=La[--qa],La[qa]=null;for(;e===al;)al=It[--Pt],It[Pt]=null,vn=It[--Pt],It[Pt]=null,yn=It[--Pt],It[Pt]=null}function bh(e,t){It[Pt++]=yn,It[Pt++]=vn,It[Pt++]=al,yn=t.id,vn=t.overflow,al=e}var ut=null,Be=null,we=!1,rl=null,en=!1,To=Error(s(519));function il(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xr(Wt(t,e)),To}function xh(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[st]=e,t[Tt]=a,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<hi.length;n++)xe(hi[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),_d(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Ld(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||jp(t.textContent,n)?(a.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),a.onScroll!=null&&xe("scroll",t),a.onScrollEnd!=null&&xe("scrollend",t),a.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||il(e,!0)}function Sh(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:en=!1;return;case 27:case 3:en=!0;return;default:ut=ut.return}}function ja(e){if(e!==ut)return!1;if(!we)return Sh(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Yc(e.type,e.memoizedProps)),n=!n),n&&Be&&il(e),Sh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Be=Kp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Be=Kp(e)}else t===27?(t=Be,xl(e.type)?(e=Jc,Jc=null,Be=e):Be=t):Be=ut?nn(e.stateNode.nextSibling):null;return!0}function Wl(){Be=ut=null,we=!1}function Co(){var e=rl;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),rl=null),e}function Xr(e){rl===null?rl=[e]:rl.push(e)}var Ao=E(null),Il=null,Dn=null;function sl(e,t,n){P(Ao,t._currentValue),t._currentValue=n}function _n(e){e._currentValue=Ao.current,Y(Ao)}function Ro(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var o=u.dependencies;if(o!==null){var m=u.child;o=o.firstContext;e:for(;o!==null;){var b=o;o=u;for(var T=0;T<t.length;T++)if(b.context===t[T]){o.lanes|=n,b=o.alternate,b!==null&&(b.lanes|=n),Ro(o.return,n,e),a||(m=null);break e}o=b.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(s(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Ro(m,n,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Ha(e,t,n,a){e=null;for(var u=t,o=!1;u!==null;){if(!o){if((u.flags&524288)!==0)o=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var b=u.type;Ht(u.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(u===Oe.current){if(m=u.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(vi):e=[vi])}u=u.return}e!==null&&Oo(t,e,n,a),t.flags|=262144}function ms(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pl(e){Il=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return Nh(Il,e)}function ps(e,t){return Il===null&&Pl(e),Nh(e,t)}function Nh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Dn===null){if(e===null)throw Error(s(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return n}var Sb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Nb=l.unstable_scheduleCallback,wb=l.unstable_NormalPriority,Ie={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mo(){return{controller:new Sb,data:new Map,refCount:0}}function Kr(e){e.refCount--,e.refCount===0&&Nb(wb,function(){e.controller.abort()})}var Zr=null,zo=0,Ba=0,ka=null;function Eb(e,t){if(Zr===null){var n=Zr=[];zo=0,Ba=Uc(),ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return zo++,t.then(wh,wh),t}function wh(){if(--zo===0&&Zr!==null){ka!==null&&(ka.status="fulfilled");var e=Zr;Zr=null,Ba=0,ka=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tb(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var Eh=D.S;D.S=function(e,t){sp=Lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Eb(e,t),Eh!==null&&Eh(e,t)};var ea=E(null);function Do(){var e=ea.current;return e!==null?e:je.pooledCache}function gs(e,t){t===null?P(ea,ea.current):P(ea,t.pool)}function Th(){var e=Do();return e===null?null:{parent:Ie._currentValue,pool:e}}var Qa=Error(s(460)),_o=Error(s(474)),ys=Error(s(542)),vs={then:function(){}};function Ch(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ah(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Rn,Rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oh(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oh(e),e}throw na=t,Qa}}function ta(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(na=n,Qa):n}}var na=null;function Rh(){if(na===null)throw Error(s(459));var e=na;return na=null,e}function Oh(e){if(e===Qa||e===ys)throw Error(s(483))}var Ga=null,Jr=0;function bs(e){var t=Jr;return Jr+=1,Ga===null&&(Ga=[]),Ah(Ga,e,t)}function $r(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xs(e,t){throw t.$$typeof===N?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mh(e){function t(M,A){if(e){var L=M.deletions;L===null?(M.deletions=[A],M.flags|=16):L.push(A)}}function n(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function a(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function u(M,A){return M=Mn(M,A),M.index=0,M.sibling=null,M}function o(M,A,L){return M.index=L,e?(L=M.alternate,L!==null?(L=L.index,L<A?(M.flags|=67108866,A):L):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function m(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,A,L,Z){return A===null||A.tag!==6?(A=So(L,M.mode,Z),A.return=M,A):(A=u(A,L),A.return=M,A)}function T(M,A,L,Z){var ue=L.type;return ue===z?X(M,A,L.props.children,Z,L.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===F&&ta(ue)===A.type)?(A=u(A,L.props),$r(A,L),A.return=M,A):(A=ds(L.type,L.key,L.props,null,M.mode,Z),$r(A,L),A.return=M,A)}function q(M,A,L,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==L.containerInfo||A.stateNode.implementation!==L.implementation?(A=No(L,M.mode,Z),A.return=M,A):(A=u(A,L.children||[]),A.return=M,A)}function X(M,A,L,Z,ue){return A===null||A.tag!==7?(A=Fl(L,M.mode,Z,ue),A.return=M,A):(A=u(A,L),A.return=M,A)}function J(M,A,L){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=So(""+A,M.mode,L),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case R:return L=ds(A.type,A.key,A.props,null,M.mode,L),$r(L,A),L.return=M,L;case _:return A=No(A,M.mode,L),A.return=M,A;case F:return A=ta(A),J(M,A,L)}if(le(A)||ie(A))return A=Fl(A,M.mode,L,null),A.return=M,A;if(typeof A.then=="function")return J(M,bs(A),L);if(A.$$typeof===B)return J(M,ps(M,A),L);xs(M,A)}return null}function j(M,A,L,Z){var ue=A!==null?A.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ue!==null?null:b(M,A,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case R:return L.key===ue?T(M,A,L,Z):null;case _:return L.key===ue?q(M,A,L,Z):null;case F:return L=ta(L),j(M,A,L,Z)}if(le(L)||ie(L))return ue!==null?null:X(M,A,L,Z,null);if(typeof L.then=="function")return j(M,A,bs(L),Z);if(L.$$typeof===B)return j(M,A,ps(M,L),Z);xs(M,L)}return null}function G(M,A,L,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return M=M.get(L)||null,b(A,M,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case R:return M=M.get(Z.key===null?L:Z.key)||null,T(A,M,Z,ue);case _:return M=M.get(Z.key===null?L:Z.key)||null,q(A,M,Z,ue);case F:return Z=ta(Z),G(M,A,L,Z,ue)}if(le(Z)||ie(Z))return M=M.get(L)||null,X(A,M,Z,ue,null);if(typeof Z.then=="function")return G(M,A,L,bs(Z),ue);if(Z.$$typeof===B)return G(M,A,L,ps(A,Z),ue);xs(A,Z)}return null}function ne(M,A,L,Z){for(var ue=null,Ce=null,ae=A,me=A=0,Ne=null;ae!==null&&me<L.length;me++){ae.index>me?(Ne=ae,ae=null):Ne=ae.sibling;var Ae=j(M,ae,L[me],Z);if(Ae===null){ae===null&&(ae=Ne);break}e&&ae&&Ae.alternate===null&&t(M,ae),A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae,ae=Ne}if(me===L.length)return n(M,ae),we&&zn(M,me),ue;if(ae===null){for(;me<L.length;me++)ae=J(M,L[me],Z),ae!==null&&(A=o(ae,A,me),Ce===null?ue=ae:Ce.sibling=ae,Ce=ae);return we&&zn(M,me),ue}for(ae=a(ae);me<L.length;me++)Ne=G(ae,M,me,L[me],Z),Ne!==null&&(e&&Ne.alternate!==null&&ae.delete(Ne.key===null?me:Ne.key),A=o(Ne,A,me),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne);return e&&ae.forEach(function(Tl){return t(M,Tl)}),we&&zn(M,me),ue}function ce(M,A,L,Z){if(L==null)throw Error(s(151));for(var ue=null,Ce=null,ae=A,me=A=0,Ne=null,Ae=L.next();ae!==null&&!Ae.done;me++,Ae=L.next()){ae.index>me?(Ne=ae,ae=null):Ne=ae.sibling;var Tl=j(M,ae,Ae.value,Z);if(Tl===null){ae===null&&(ae=Ne);break}e&&ae&&Tl.alternate===null&&t(M,ae),A=o(Tl,A,me),Ce===null?ue=Tl:Ce.sibling=Tl,Ce=Tl,ae=Ne}if(Ae.done)return n(M,ae),we&&zn(M,me),ue;if(ae===null){for(;!Ae.done;me++,Ae=L.next())Ae=J(M,Ae.value,Z),Ae!==null&&(A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return we&&zn(M,me),ue}for(ae=a(ae);!Ae.done;me++,Ae=L.next())Ae=G(ae,M,me,Ae.value,Z),Ae!==null&&(e&&Ae.alternate!==null&&ae.delete(Ae.key===null?me:Ae.key),A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return e&&ae.forEach(function(qx){return t(M,qx)}),we&&zn(M,me),ue}function Le(M,A,L,Z){if(typeof L=="object"&&L!==null&&L.type===z&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case R:e:{for(var ue=L.key;A!==null;){if(A.key===ue){if(ue=L.type,ue===z){if(A.tag===7){n(M,A.sibling),Z=u(A,L.props.children),Z.return=M,M=Z;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===F&&ta(ue)===A.type){n(M,A.sibling),Z=u(A,L.props),$r(Z,L),Z.return=M,M=Z;break e}n(M,A);break}else t(M,A);A=A.sibling}L.type===z?(Z=Fl(L.props.children,M.mode,Z,L.key),Z.return=M,M=Z):(Z=ds(L.type,L.key,L.props,null,M.mode,Z),$r(Z,L),Z.return=M,M=Z)}return m(M);case _:e:{for(ue=L.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===L.containerInfo&&A.stateNode.implementation===L.implementation){n(M,A.sibling),Z=u(A,L.children||[]),Z.return=M,M=Z;break e}else{n(M,A);break}else t(M,A);A=A.sibling}Z=No(L,M.mode,Z),Z.return=M,M=Z}return m(M);case F:return L=ta(L),Le(M,A,L,Z)}if(le(L))return ne(M,A,L,Z);if(ie(L)){if(ue=ie(L),typeof ue!="function")throw Error(s(150));return L=ue.call(L),ce(M,A,L,Z)}if(typeof L.then=="function")return Le(M,A,bs(L),Z);if(L.$$typeof===B)return Le(M,A,ps(M,L),Z);xs(M,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,A!==null&&A.tag===6?(n(M,A.sibling),Z=u(A,L),Z.return=M,M=Z):(n(M,A),Z=So(L,M.mode,Z),Z.return=M,M=Z),m(M)):n(M,A)}return function(M,A,L,Z){try{Jr=0;var ue=Le(M,A,L,Z);return Ga=null,ue}catch(ae){if(ae===Qa||ae===ys)throw ae;var Ce=Bt(29,ae,null,M.mode);return Ce.lanes=Z,Ce.return=M,Ce}finally{}}}var la=Mh(!0),zh=Mh(!1),ul=!1;function Uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lo(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 ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function cl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=fs(e),mh(e,null,n),t}return cs(e,a,t,n),fs(e)}function Fr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Nd(e,n)}}function qo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?u=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?u=o=t:o=o.next=t}else u=o=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var jo=!1;function Wr(){if(jo){var e=ka;if(e!==null)throw e}}function Ir(e,t,n,a){jo=!1;var u=e.updateQueue;ul=!1;var o=u.firstBaseUpdate,m=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var T=b,q=T.next;T.next=null,m===null?o=q:m.next=q,m=T;var X=e.alternate;X!==null&&(X=X.updateQueue,b=X.lastBaseUpdate,b!==m&&(b===null?X.firstBaseUpdate=q:b.next=q,X.lastBaseUpdate=T))}if(o!==null){var J=u.baseState;m=0,X=q=T=null,b=o;do{var j=b.lane&-536870913,G=j!==b.lane;if(G?(Se&j)===j:(a&j)===j){j!==0&&j===Ba&&(jo=!0),X!==null&&(X=X.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,ce=b;j=t;var Le=n;switch(ce.tag){case 1:if(ne=ce.payload,typeof ne=="function"){J=ne.call(Le,J,j);break e}J=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ce.payload,j=typeof ne=="function"?ne.call(Le,J,j):ne,j==null)break e;J=S({},J,j);break e;case 2:ul=!0}}j=b.callback,j!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[j]:G.push(j))}else G={lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},X===null?(q=X=G,T=J):X=X.next=G,m|=j;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;G=b,b=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);X===null&&(T=J),u.baseState=T,u.firstBaseUpdate=q,u.lastBaseUpdate=X,o===null&&(u.shared.lanes=0),pl|=m,e.lanes=m,e.memoizedState=J}}function Dh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function _h(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Dh(n[e],t)}var Ya=E(null),Ss=E(0);function Uh(e,t){e=Gn,P(Ss,e),P(Ya,t),Gn=e|t.baseLanes}function Ho(){P(Ss,Gn),P(Ya,Ya.current)}function Bo(){Gn=Ss.current,Y(Ya),Y(Ss)}var kt=E(null),tn=null;function fl(e){var t=e.alternate;P(Fe,Fe.current&1),P(kt,e),tn===null&&(t===null||Ya.current!==null||t.memoizedState!==null)&&(tn=e)}function ko(e){P(Fe,Fe.current),P(kt,e),tn===null&&(tn=e)}function Lh(e){e.tag===22?(P(Fe,Fe.current),P(kt,e),tn===null&&(tn=e)):dl()}function dl(){P(Fe,Fe.current),P(kt,kt.current)}function Qt(e){Y(kt),tn===e&&(tn=null),Y(Fe)}var Fe=E(0);function Ns(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Kc(n)||Zc(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 Un=0,he=null,_e=null,Pe=null,ws=!1,Va=!1,aa=!1,Es=0,Pr=0,Xa=null,Cb=0;function Ke(){throw Error(s(321))}function Qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Go(e,t,n,a,u,o){return Un=o,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?vm:lc,aa=!1,o=n(a,u),aa=!1,Va&&(o=jh(t,n,a,u)),qh(e),o}function qh(e){D.H=ni;var t=_e!==null&&_e.next!==null;if(Un=0,Pe=_e=he=null,ws=!1,Pr=0,Xa=null,t)throw Error(s(300));e===null||et||(e=e.dependencies,e!==null&&ms(e)&&(et=!0))}function jh(e,t,n,a){he=e;var u=0;do{if(Va&&(Xa=null),Pr=0,Va=!1,25<=u)throw Error(s(301));if(u+=1,Pe=_e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=bm,o=t(n,a)}while(Va);return o}function Ab(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?ei(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(he.flags|=1024),t}function Yo(){var e=Es!==0;return Es=0,e}function Vo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Xo(e){if(ws){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ws=!1}Un=0,Pe=_e=he=null,Va=!1,Pr=Es=0,Xa=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?he.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function We(){if(_e===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Pe===null?he.memoizedState:Pe.next;if(t!==null)Pe=t,_e=e;else{if(e===null)throw he.alternate===null?Error(s(467)):Error(s(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Pe===null?he.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ei(e){var t=Pr;return Pr+=1,Xa===null&&(Xa=[]),e=Ah(Xa,e,t),t=he,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?vm:lc),e}function Cs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ei(e);if(e.$$typeof===B)return ot(e)}throw Error(s(438,String(e)))}function Ko(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ts(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=$;return t.index++,n}function Ln(e,t){return typeof t=="function"?t(e):t}function As(e){var t=We();return Zo(t,_e,e)}function Zo(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var u=e.baseQueue,o=a.pending;if(o!==null){if(u!==null){var m=u.next;u.next=o.next,o.next=m}t.baseQueue=u=o,a.pending=null}if(o=e.baseState,u===null)e.memoizedState=o;else{t=u.next;var b=m=null,T=null,q=t,X=!1;do{var J=q.lane&-536870913;if(J!==q.lane?(Se&J)===J:(Un&J)===J){var j=q.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),J===Ba&&(X=!0);else if((Un&j)===j){q=q.next,j===Ba&&(X=!0);continue}else J={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(b=T=J,m=o):T=T.next=J,he.lanes|=j,pl|=j;J=q.action,aa&&n(o,J),o=q.hasEagerState?q.eagerState:n(o,J)}else j={lane:J,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(b=T=j,m=o):T=T.next=j,he.lanes|=J,pl|=J;q=q.next}while(q!==null&&q!==t);if(T===null?m=o:T.next=b,!Ht(o,e.memoizedState)&&(et=!0,X&&(n=ka,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=T,a.lastRenderedState=o}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Jo(e){var t=We(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,o=t.memoizedState;if(u!==null){n.pending=null;var m=u=u.next;do o=e(o,m.action),m=m.next;while(m!==u);Ht(o,t.memoizedState)||(et=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Hh(e,t,n){var a=he,u=We(),o=we;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!Ht((_e||u).memoizedState,n);if(m&&(u.memoizedState=n,et=!0),u=u.queue,Wo(Qh.bind(null,a,u,e),[e]),u.getSnapshot!==t||m||Pe!==null&&Pe.memoizedState.tag&1){if(a.flags|=2048,Ka(9,{destroy:void 0},kh.bind(null,a,u,n,t),null),je===null)throw Error(s(349));o||(Un&127)!==0||Bh(a,t,n)}return n}function Bh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=Ts(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kh(e,t,n,a){t.value=n,t.getSnapshot=a,Gh(t)&&Yh(e)}function Qh(e,t,n){return n(function(){Gh(t)&&Yh(e)})}function Gh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function Yh(e){var t=$l(e,2);t!==null&&zt(t,e,2)}function $o(e){var t=bt();if(typeof e=="function"){var n=e;if(e=n(),aa){tl(!0);try{n()}finally{tl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function Vh(e,t,n,a){return e.baseState=n,Zo(e,_e,typeof a=="function"?a:Ln)}function Rb(e,t,n,a,u){if(Ms(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Xh(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Xh(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var o=D.T,m={};D.T=m;try{var b=n(u,a),T=D.S;T!==null&&T(m,b),Kh(e,t,b)}catch(q){Fo(e,t,q)}finally{o!==null&&m.types!==null&&(o.types=m.types),D.T=o}}else try{o=n(u,a),Kh(e,t,o)}catch(q){Fo(e,t,q)}}function Kh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Zh(e,t,a)},function(a){return Fo(e,t,a)}):Zh(e,t,n)}function Zh(e,t,n){t.status="fulfilled",t.value=n,Jh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xh(e,n)))}function Fo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Jh(t),t=t.next;while(t!==a)}e.action=null}function Jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $h(e,t){return t}function Fh(e,t){if(we){var n=je.formState;if(n!==null){e:{var a=he;if(we){if(Be){t:{for(var u=Be,o=en;u.nodeType!==8;){if(!o){u=null;break t}if(u=nn(u.nextSibling),u===null){u=null;break t}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){Be=nn(u.nextSibling),a=u.data==="F!";break e}}il(a)}a=!1}a&&(t=n[0])}}return n=bt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$h,lastRenderedState:t},n.queue=a,n=pm.bind(null,he,a),a.dispatch=n,a=$o(!1),o=nc.bind(null,he,!1,a.queue),a=bt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Rb.bind(null,he,u,o,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Wh(e){var t=We();return Ih(t,_e,e)}function Ih(e,t,n){if(t=Zo(e,t,$h)[0],e=As(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ei(t)}catch(m){throw m===Qa?ys:m}else a=t;t=We();var u=t.queue,o=u.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Ka(9,{destroy:void 0},Ob.bind(null,u,n),null)),[a,o,e]}function Ob(e,t){e.action=t}function Ph(e){var t=We(),n=_e;if(n!==null)return Ih(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ka(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=Ts(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function em(){return We().memoizedState}function Rs(e,t,n,a){var u=bt();he.flags|=e,u.memoizedState=Ka(1|t,{destroy:void 0},n,a===void 0?null:a)}function Os(e,t,n,a){var u=We();a=a===void 0?null:a;var o=u.memoizedState.inst;_e!==null&&a!==null&&Qo(a,_e.memoizedState.deps)?u.memoizedState=Ka(t,o,n,a):(he.flags|=e,u.memoizedState=Ka(1|t,o,n,a))}function tm(e,t){Rs(8390656,8,e,t)}function Wo(e,t){Os(2048,8,e,t)}function Mb(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=Ts(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function nm(e){var t=We().memoizedState;return Mb({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function lm(e,t){return Os(4,2,e,t)}function am(e,t){return Os(4,4,e,t)}function rm(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 im(e,t,n){n=n!=null?n.concat([e]):null,Os(4,4,rm.bind(null,t,e),n)}function Io(){}function sm(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Qo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function um(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Qo(t,a[1]))return a[0];if(a=e(),aa){tl(!0);try{e()}finally{tl(!1)}}return n.memoizedState=[a,t],a}function Po(e,t,n){return n===void 0||(Un&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=op(),he.lanes|=e,pl|=e,n)}function om(e,t,n,a){return Ht(n,t)?n:Ya.current!==null?(e=Po(e,n,a),Ht(e,t)||(et=!0),e):(Un&42)===0||(Un&1073741824)!==0&&(Se&261930)===0?(et=!0,e.memoizedState=n):(e=op(),he.lanes|=e,pl|=e,t)}function cm(e,t,n,a,u){var o=W.p;W.p=o!==0&&8>o?o:8;var m=D.T,b={};D.T=b,nc(e,!1,t,n);try{var T=u(),q=D.S;if(q!==null&&q(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=Tb(T,a);ti(e,t,X,Vt(e))}else ti(e,t,a,Vt(e))}catch(J){ti(e,t,{then:function(){},status:"rejected",reason:J},Vt())}finally{W.p=o,m!==null&&b.types!==null&&(m.types=b.types),D.T=m}}function zb(){}function ec(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=fm(e).queue;cm(e,u,t,re,n===null?zb:function(){return dm(e),n(a)})}function fm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dm(e){var t=fm(e);t.next===null&&(t=e.alternate.memoizedState),ti(e,t.next.queue,{},Vt())}function tc(){return ot(vi)}function hm(){return We().memoizedState}function mm(){return We().memoizedState}function Db(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Vt();e=ol(n);var a=cl(t,e,n);a!==null&&(zt(a,t,n),Fr(a,t,n)),t={cache:Mo()},e.payload=t;return}t=t.return}}function _b(e,t,n){var a=Vt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(e)?gm(t,n):(n=bo(e,t,n,a),n!==null&&(zt(n,e,a),ym(n,t,a)))}function pm(e,t,n){var a=Vt();ti(e,t,n,a)}function ti(e,t,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))gm(t,u);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,b=o(m,n);if(u.hasEagerState=!0,u.eagerState=b,Ht(b,m))return cs(e,t,u,0),je===null&&os(),!1}catch{}finally{}if(n=bo(e,t,u,a),n!==null)return zt(n,e,a),ym(n,t,a),!0}return!1}function nc(e,t,n,a){if(a={lane:2,revertLane:Uc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(s(479))}else t=bo(e,n,a,2),t!==null&&zt(t,e,2)}function Ms(e){var t=e.alternate;return e===he||t!==null&&t===he}function gm(e,t){Va=ws=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ym(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Nd(e,n)}}var ni={readContext:ot,use:Cs,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};ni.useEffectEvent=Ke;var vm={readContext:ot,use:Cs,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:tm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Rs(4194308,4,rm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var n=bt();t=t===void 0?null:t;var a=e();if(aa){tl(!0);try{e()}finally{tl(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=bt();if(n!==void 0){var u=n(t);if(aa){tl(!0);try{n(t)}finally{tl(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=_b.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=$o(e);var t=e.queue,n=pm.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Io,useDeferredValue:function(e,t){var n=bt();return Po(n,e,t)},useTransition:function(){var e=$o(!1);return e=cm.bind(null,he,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,u=bt();if(we){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),je===null)throw Error(s(349));(Se&127)!==0||Bh(a,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,tm(Qh.bind(null,a,o,e),[e]),a.flags|=2048,Ka(9,{destroy:void 0},kh.bind(null,a,o,n,t),null),n},useId:function(){var e=bt(),t=je.identifierPrefix;if(we){var n=vn,a=yn;n=(a&~(1<<32-jt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Es++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Cb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Fh,useActionState:Fh,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nc.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ko,useCacheRefresh:function(){return bt().memoizedState=Db.bind(null,he)},useEffectEvent:function(e){var t=bt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},lc={readContext:ot,use:Cs,useCallback:sm,useContext:ot,useEffect:Wo,useImperativeHandle:im,useInsertionEffect:lm,useLayoutEffect:am,useMemo:um,useReducer:As,useRef:em,useState:function(){return As(Ln)},useDebugValue:Io,useDeferredValue:function(e,t){var n=We();return om(n,_e.memoizedState,e,t)},useTransition:function(){var e=As(Ln)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:Hh,useId:hm,useHostTransitionStatus:tc,useFormState:Wh,useActionState:Wh,useOptimistic:function(e,t){var n=We();return Vh(n,_e,e,t)},useMemoCache:Ko,useCacheRefresh:mm};lc.useEffectEvent=nm;var bm={readContext:ot,use:Cs,useCallback:sm,useContext:ot,useEffect:Wo,useImperativeHandle:im,useInsertionEffect:lm,useLayoutEffect:am,useMemo:um,useReducer:Jo,useRef:em,useState:function(){return Jo(Ln)},useDebugValue:Io,useDeferredValue:function(e,t){var n=We();return _e===null?Po(n,e,t):om(n,_e.memoizedState,e,t)},useTransition:function(){var e=Jo(Ln)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:Hh,useId:hm,useHostTransitionStatus:tc,useFormState:Ph,useActionState:Ph,useOptimistic:function(e,t){var n=We();return _e!==null?Vh(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ko,useCacheRefresh:mm};bm.useEffectEvent=nm;function ac(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var rc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Vt(),u=ol(a);u.payload=t,n!=null&&(u.callback=n),t=cl(e,u,a),t!==null&&(zt(t,e,a),Fr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Vt(),u=ol(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=cl(e,u,a),t!==null&&(zt(t,e,a),Fr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vt(),a=ol(n);a.tag=2,t!=null&&(a.callback=t),t=cl(e,a,n),t!==null&&(zt(t,e,n),Fr(t,e,n))}};function xm(e,t,n,a,u,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,m):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,a)||!Gr(u,o):!0}function Sm(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&rc.enqueueReplaceState(t,t.state,null)}function ra(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Nm(e){us(e)}function wm(e){console.error(e)}function Em(e){us(e)}function zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Tm(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ic(e,t,n){return n=ol(n),n.tag=3,n.payload={element:null},n.callback=function(){zs(e,t)},n}function Cm(e){return e=ol(e),e.tag=3,e}function Am(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var o=a.value;e.payload=function(){return u(o)},e.callback=function(){Tm(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Tm(t,n,a),typeof u!="function"&&(gl===null?gl=new Set([this]):gl.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function Ub(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ha(t,n,u,!0),n=kt.current,n!==null){switch(n.tag){case 31:case 13:return tn===null?Ys():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===vs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),zc(e,a,u)),!1;case 22:return n.flags|=65536,a===vs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),zc(e,a,u)),!1}throw Error(s(435,n.tag))}return zc(e,a,u),Ys(),!1}if(we)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==To&&(e=Error(s(422),{cause:a}),Xr(Wt(e,n)))):(a!==To&&(t=Error(s(423),{cause:a}),Xr(Wt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Wt(a,n),u=ic(e.stateNode,a,u),qo(e,u),Ze!==4&&(Ze=2)),!1;var o=Error(s(520),{cause:a});if(o=Wt(o,n),ci===null?ci=[o]:ci.push(o),Ze!==4&&(Ze=2),t===null)return!0;a=Wt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=ic(n.stateNode,a,e),qo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(gl===null||!gl.has(o))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Cm(u),Am(u,e,n,a),qo(n,u),!1}n=n.return}while(n!==null);return!1}var sc=Error(s(461)),et=!1;function ct(e,t,n,a){t.child=e===null?zh(t,null,n,a):la(t,e.child,n,a)}function Rm(e,t,n,a,u){n=n.render;var o=t.ref;if("ref"in a){var m={};for(var b in a)b!=="ref"&&(m[b]=a[b])}else m=a;return Pl(t),a=Go(e,t,n,m,o,u),b=Yo(),e!==null&&!et?(Vo(e,t,u),qn(e,t,u)):(we&&b&&wo(t),t.flags|=1,ct(e,t,a,u),t.child)}function Om(e,t,n,a,u){if(e===null){var o=n.type;return typeof o=="function"&&!xo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Mm(e,t,o,a,u)):(e=ds(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!pc(e,u)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(m,a)&&e.ref===t.ref)return qn(e,t,u)}return t.flags|=1,e=Mn(o,a),e.ref=t.ref,e.return=t,t.child=e}function Mm(e,t,n,a,u){if(e!==null){var o=e.memoizedProps;if(Gr(o,a)&&e.ref===t.ref)if(et=!1,t.pendingProps=a=o,pc(e,u))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,qn(e,t,u)}return uc(e,t,n,a,u)}function zm(e,t,n,a){var u=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~o}else a=0,t.child=null;return Dm(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gs(t,o!==null?o.cachePool:null),o!==null?Uh(t,o):Ho(),Lh(t);else return a=t.lanes=536870912,Dm(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(gs(t,o.cachePool),Uh(t,o),dl(),t.memoizedState=null):(e!==null&&gs(t,null),Ho(),dl());return ct(e,t,u,n),t.child}function li(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Dm(e,t,n,a,u){var o=Do();return o=o===null?null:{parent:Ie._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&gs(t,null),Ho(),Lh(t),e!==null&&Ha(e,t,a,!0),t.childLanes=u,null}function Ds(e,t){return t=Us({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _m(e,t,n){return la(t,e.child,null,n),e=Ds(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function Lb(e,t,n){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(a.mode==="hidden")return e=Ds(t,a),t.lanes=536870912,li(null,e);if(ko(t),(e=Be)?(e=Xp(e,en),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:yn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},n=gh(e),n.return=t,t.child=n,ut=t,Be=null)):e=null,e===null)throw il(t);return t.lanes=536870912,null}return Ds(t,a)}var o=e.memoizedState;if(o!==null){var m=o.dehydrated;if(ko(t),u)if(t.flags&256)t.flags&=-257,t=_m(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(et||Ha(e,t,n,!1),u=(n&e.childLanes)!==0,et||u){if(a=je,a!==null&&(m=wd(a,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,$l(e,m),zt(a,e,m),sc;Ys(),t=_m(e,t,n)}else e=o.treeContext,Be=nn(m.nextSibling),ut=t,we=!0,rl=null,en=!1,e!==null&&bh(t,e),t=Ds(t,a),t.flags|=4096;return t}return e=Mn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _s(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uc(e,t,n,a,u){return Pl(t),n=Go(e,t,n,a,void 0,u),a=Yo(),e!==null&&!et?(Vo(e,t,u),qn(e,t,u)):(we&&a&&wo(t),t.flags|=1,ct(e,t,n,u),t.child)}function Um(e,t,n,a,u,o){return Pl(t),t.updateQueue=null,n=jh(t,a,n,u),qh(e),a=Yo(),e!==null&&!et?(Vo(e,t,o),qn(e,t,o)):(we&&a&&wo(t),t.flags|=1,ct(e,t,n,o),t.child)}function Lm(e,t,n,a,u){if(Pl(t),t.stateNode===null){var o=Ua,m=n.contextType;typeof m=="object"&&m!==null&&(o=ot(m)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=rc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Uo(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?ot(m):Ua,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(ac(t,n,m,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&rc.enqueueReplaceState(o,o.state,null),Ir(t,a,o,u),Wr(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var b=t.memoizedProps,T=ra(n,b);o.props=T;var q=o.context,X=n.contextType;m=Ua,typeof X=="object"&&X!==null&&(m=ot(X));var J=n.getDerivedStateFromProps;X=typeof J=="function"||typeof o.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,X||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(b||q!==m)&&Sm(t,o,a,m),ul=!1;var j=t.memoizedState;o.state=j,Ir(t,a,o,u),Wr(),q=t.memoizedState,b||j!==q||ul?(typeof J=="function"&&(ac(t,n,J,a),q=t.memoizedState),(T=ul||xm(t,n,T,a,j,q,m))?(X||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=q),o.props=a,o.state=q,o.context=m,a=T):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Lo(e,t),m=t.memoizedProps,X=ra(n,m),o.props=X,J=t.pendingProps,j=o.context,q=n.contextType,T=Ua,typeof q=="object"&&q!==null&&(T=ot(q)),b=n.getDerivedStateFromProps,(q=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==J||j!==T)&&Sm(t,o,a,T),ul=!1,j=t.memoizedState,o.state=j,Ir(t,a,o,u),Wr();var G=t.memoizedState;m!==J||j!==G||ul||e!==null&&e.dependencies!==null&&ms(e.dependencies)?(typeof b=="function"&&(ac(t,n,b,a),G=t.memoizedState),(X=ul||xm(t,n,X,a,j,G,T)||e!==null&&e.dependencies!==null&&ms(e.dependencies))?(q||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,G,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,G,T)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=G),o.props=a,o.state=G,o.context=T,a=X):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,_s(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=la(t,e.child,null,u),t.child=la(t,null,n,u)):ct(e,t,n,u),t.memoizedState=o.state,e=t.child):e=qn(e,t,u),e}function qm(e,t,n,a){return Wl(),t.flags|=256,ct(e,t,n,a),t.child}var oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(e){return{baseLanes:e,cachePool:Th()}}function fc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Yt),e}function jm(e,t,n){var a=t.pendingProps,u=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),m&&(u=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(u?fl(t):dl(),(e=Be)?(e=Xp(e,en),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:yn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},n=gh(e),n.return=t,t.child=n,ut=t,Be=null)):e=null,e===null)throw il(t);return Zc(e)?t.lanes=32:t.lanes=536870912,null}var b=a.children;return a=a.fallback,u?(dl(),u=t.mode,b=Us({mode:"hidden",children:b},u),a=Fl(a,u,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,a=t.child,a.memoizedState=cc(n),a.childLanes=fc(e,m,n),t.memoizedState=oc,li(null,a)):(fl(t),dc(t,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(o)t.flags&256?(fl(t),t.flags&=-257,t=hc(e,t,n)):t.memoizedState!==null?(dl(),t.child=e.child,t.flags|=128,t=null):(dl(),b=a.fallback,u=t.mode,a=Us({mode:"visible",children:a.children},u),b=Fl(b,u,n,null),b.flags|=2,a.return=t,b.return=t,a.sibling=b,t.child=a,la(t,e.child,null,n),a=t.child,a.memoizedState=cc(n),a.childLanes=fc(e,m,n),t.memoizedState=oc,t=li(null,a));else if(fl(t),Zc(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var q=m.dgst;m=q,a=Error(s(419)),a.stack="",a.digest=m,Xr({value:a,source:null,stack:null}),t=hc(e,t,n)}else if(et||Ha(e,t,n,!1),m=(n&e.childLanes)!==0,et||m){if(m=je,m!==null&&(a=wd(m,n),a!==0&&a!==T.retryLane))throw T.retryLane=a,$l(e,a),zt(m,e,a),sc;Kc(b)||Ys(),t=hc(e,t,n)}else Kc(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Be=nn(b.nextSibling),ut=t,we=!0,rl=null,en=!1,e!==null&&bh(t,e),t=dc(t,a.children),t.flags|=4096);return t}return u?(dl(),b=a.fallback,u=t.mode,T=e.child,q=T.sibling,a=Mn(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,q!==null?b=Mn(q,b):(b=Fl(b,u,n,null),b.flags|=2),b.return=t,a.return=t,a.sibling=b,t.child=a,li(null,a),a=t.child,b=e.child.memoizedState,b===null?b=cc(n):(u=b.cachePool,u!==null?(T=Ie._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=Th(),b={baseLanes:b.baseLanes|n,cachePool:u}),a.memoizedState=b,a.childLanes=fc(e,m,n),t.memoizedState=oc,li(e.child,a)):(fl(t),n=e.child,e=n.sibling,n=Mn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function dc(e,t){return t=Us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Us(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function hc(e,t,n){return la(t,e.child,null,n),e=dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hm(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ro(e.return,t,n)}function mc(e,t,n,a,u,o){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:o}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=u,m.treeForkCount=o)}function Bm(e,t,n){var a=t.pendingProps,u=a.revealOrder,o=a.tail;a=a.children;var m=Fe.current,b=(m&2)!==0;if(b?(m=m&1|2,t.flags|=128):m&=1,P(Fe,m),ct(e,t,a,n),a=we?Vr:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hm(e,n,t);else if(e.tag===19)Hm(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(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&Ns(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),mc(t,!1,u,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Ns(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}mc(t,!0,n,null,o,a);break;case"together":mc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ha(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ms(e)))}function qb(e,t,n){switch(t.tag){case 3:vt(t,t.stateNode.containerInfo),sl(t,Ie,e.memoizedState.cache),Wl();break;case 27:case 5:Or(t);break;case 4:vt(t,t.stateNode.containerInfo);break;case 10:sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(fl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?jm(e,t,n):(fl(t),e=qn(e,t,n),e!==null?e.sibling:null);fl(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ha(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Bm(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),P(Fe,Fe.current),a)break;return null;case 22:return t.lanes=0,zm(e,t,n,t.pendingProps);case 24:sl(t,Ie,e.memoizedState.cache)}return qn(e,t,n)}function km(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!pc(e,n)&&(t.flags&128)===0)return et=!1,qb(e,t,n);et=(e.flags&131072)!==0}else et=!1,we&&(t.flags&1048576)!==0&&vh(t,Vr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ta(t.elementType),t.type=e,typeof e=="function")xo(e)?(a=ra(e,a),t.tag=1,t=Lm(null,t,e,a,n)):(t.tag=0,t=uc(null,t,e,a,n));else{if(e!=null){var u=e.$$typeof;if(u===Q){t.tag=11,t=Rm(null,t,e,a,n);break e}else if(u===K){t.tag=14,t=Om(null,t,e,a,n);break e}}throw t=Ge(e)||e,Error(s(306,t,""))}}return t;case 0:return uc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=ra(a,t.pendingProps),Lm(e,t,a,u,n);case 3:e:{if(vt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var o=t.memoizedState;u=o.element,Lo(e,t),Ir(t,a,null,n);var m=t.memoizedState;if(a=m.cache,sl(t,Ie,a),a!==o.cache&&Oo(t,[Ie],n,!0),Wr(),a=m.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=qm(e,t,a,n);break e}else if(a!==u){u=Wt(Error(s(424)),t),Xr(u),t=qm(e,t,a,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(Be=nn(e.firstChild),ut=t,we=!0,rl=null,en=!0,n=zh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wl(),a===u){t=qn(e,t,n);break e}ct(e,t,a,n)}t=t.child}return t;case 26:return _s(e,t),e===null?(n=Wp(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,a=Fs(ve.current).createElement(n),a[st]=t,a[Tt]=e,ft(a,n,e),at(a),t.stateNode=a):t.memoizedState=Wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Or(t),e===null&&we&&(a=t.stateNode=Jp(t.type,t.pendingProps,ve.current),ut=t,en=!0,u=Be,xl(t.type)?(Jc=u,Be=nn(a.firstChild)):Be=u),ct(e,t,t.pendingProps.children,n),_s(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((u=a=Be)&&(a=dx(a,t.type,t.pendingProps,en),a!==null?(t.stateNode=a,ut=t,Be=nn(a.firstChild),en=!1,u=!0):u=!1),u||il(t)),Or(t),u=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,a=o.children,Yc(u,o)?a=null:m!==null&&Yc(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Go(e,t,Ab,null,null,n),vi._currentValue=u),_s(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&we&&((e=n=Be)&&(n=hx(n,t.pendingProps,en),n!==null?(t.stateNode=n,ut=t,Be=null,e=!0):e=!1),e||il(t)),null;case 13:return jm(e,t,n);case 4:return vt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=la(t,null,a,n):ct(e,t,a,n),t.child;case 11:return Rm(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,sl(t,t.type,a.value),ct(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Pl(t),u=ot(u),a=a(u),t.flags|=1,ct(e,t,a,n),t.child;case 14:return Om(e,t,t.type,t.pendingProps,n);case 15:return Mm(e,t,t.type,t.pendingProps,n);case 19:return Bm(e,t,n);case 31:return Lb(e,t,n);case 22:return zm(e,t,n,t.pendingProps);case 24:return Pl(t),a=ot(Ie),e===null?(u=Do(),u===null&&(u=je,o=Mo(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),t.memoizedState={parent:a,cache:u},Uo(t),sl(t,Ie,u)):((e.lanes&n)!==0&&(Lo(e,t),Ir(t,null,null,n),Wr()),u=e.memoizedState,o=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),sl(t,Ie,a)):(a=o.cache,sl(t,Ie,a),a!==u.cache&&Oo(t,[Ie],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function jn(e){e.flags|=4}function gc(e,t,n,a,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(hp())e.flags|=8192;else throw na=vs,_o}else e.flags&=-16777217}function Qm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ng(t))if(hp())e.flags|=8192;else throw na=vs,_o}function Ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xd():536870912,e.lanes|=t,Fa|=t)}function ai(e,t){if(!we)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function jb(e,t,n){var a=t.pendingProps;switch(Eo(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,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(Ie),$e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ja(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Co())),ke(t),null;case 26:var u=t.type,o=t.memoizedState;return e===null?(jn(t),o!==null?(ke(t),Qm(t,o)):(ke(t),gc(t,u,null,a,n))):o?o!==e.memoizedState?(jn(t),ke(t),Qm(t,o)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&jn(t),ke(t),gc(t,u,e,a,n)),null;case 27:if(Ki(t),n=ve.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&jn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ke(t),null}e=te.current,ja(t)?xh(t):(e=Jp(u,a,n),t.stateNode=e,jn(t))}return ke(t),null;case 5:if(Ki(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&jn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ke(t),null}if(o=te.current,ja(t))xh(t);else{var m=Fs(ve.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?m.createElement(u,{is:a.is}):m.createElement(u)}}o[st]=t,o[Tt]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=o;e:switch(ft(o,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&jn(t)}}return ke(t),gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&jn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,ja(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=ut,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||jp(e.nodeValue,n)),e||il(t,!0)}else e=Fs(e).createTextNode(a),e[st]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ja(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[st]=t}else Wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ke(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ja(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[st]=t}else Wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),u=!1}else u=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ls(t,t.updateQueue),ke(t),null);case 4:return $e(),e===null&&Hc(t.stateNode.containerInfo),ke(t),null;case 10:return _n(t.type),ke(t),null;case 19:if(Y(Fe),a=t.memoizedState,a===null)return ke(t),null;if(u=(t.flags&128)!==0,o=a.rendering,o===null)if(u)ai(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Ns(e),o!==null){for(t.flags|=128,ai(a,!1),e=o.updateQueue,t.updateQueue=e,Ls(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ph(n,e),n=n.sibling;return P(Fe,Fe.current&1|2),we&&zn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Lt()>ks&&(t.flags|=128,u=!0,ai(a,!1),t.lanes=4194304)}else{if(!u)if(e=Ns(o),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Ls(t,e),ai(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!we)return ke(t),null}else 2*Lt()-a.renderingStartTime>ks&&n!==536870912&&(t.flags|=128,u=!0,ai(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Lt(),e.sibling=null,n=Fe.current,P(Fe,u?n&1|2:n&1),we&&zn(t,a.treeForkCount),e):(ke(t),null);case 22:case 23:return Qt(t),Bo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&Ls(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Y(ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_n(Ie),ke(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Hb(e,t){switch(Eo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(Ie),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ki(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(s(340));Wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Fe),null;case 4:return $e(),null;case 10:return _n(t.type),null;case 22:case 23:return Qt(t),Bo(),e!==null&&Y(ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(Ie),null;case 25:return null;default:return null}}function Gm(e,t){switch(Eo(t),t.tag){case 3:_n(Ie),$e();break;case 26:case 27:case 5:Ki(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:Y(Fe);break;case 10:_n(t.type);break;case 22:case 23:Qt(t),Bo(),e!==null&&Y(ea);break;case 24:_n(Ie)}}function ri(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){a=void 0;var o=n.create,m=n.inst;a=o(),m.destroy=a}n=n.next}while(n!==u)}}catch(b){De(t,t.return,b)}}function hl(e,t,n){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var o=u.next;a=o;do{if((a.tag&e)===e){var m=a.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,u=t;var T=n,q=b;try{q()}catch(X){De(u,T,X)}}}a=a.next}while(a!==o)}}catch(X){De(t,t.return,X)}}function Ym(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{_h(t,n)}catch(a){De(e,e.return,a)}}}function Vm(e,t,n){n.props=ra(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){De(e,t,a)}}function ii(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(u){De(e,t,u)}}function bn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){De(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){De(e,t,u)}else n.current=null}function Xm(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){De(e,e.return,u)}}function yc(e,t,n){try{var a=e.stateNode;ix(a,e.type,n,t),a[Tt]=t}catch(u){De(e,e.return,u)}}function Km(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xl(e.type)||e.tag===4}function vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Km(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&&xl(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 bc(e,t,n){var a=e.tag;if(a===5||a===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=Rn));else if(a!==4&&(a===27&&xl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(bc(e,t,n),e=e.sibling;e!==null;)bc(e,t,n),e=e.sibling}function qs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&xl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qs(e,t,n),e=e.sibling;e!==null;)qs(e,t,n),e=e.sibling}function Zm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ft(t,a,n),t[st]=e,t[Tt]=n}catch(o){De(e,e.return,o)}}var Hn=!1,tt=!1,xc=!1,Jm=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Bb(e,t){if(e=e.containerInfo,Qc=lu,e=ih(e),ho(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,b=-1,T=-1,q=0,X=0,J=e,j=null;t:for(;;){for(var G;J!==n||u!==0&&J.nodeType!==3||(b=m+u),J!==o||a!==0&&J.nodeType!==3||(T=m+a),J.nodeType===3&&(m+=J.nodeValue.length),(G=J.firstChild)!==null;)j=J,J=G;for(;;){if(J===e)break t;if(j===n&&++q===u&&(b=m),j===o&&++X===a&&(T=m),(G=J.nextSibling)!==null)break;J=j,j=J.parentNode}J=G}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gc={focusedElem:e,selectionRange:n},lu=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,o=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++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,u=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=ra(n.type,u);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(ce){De(n,n.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Xc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function $m(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n),a&4&&ri(5,n);break;case 1:if(kn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){De(n,n.return,m)}else{var u=ra(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){De(n,n.return,m)}}a&64&&Ym(n),a&512&&ii(n,n.return);break;case 3:if(kn(e,n),a&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{_h(e,t)}catch(m){De(n,n.return,m)}}break;case 27:t===null&&a&4&&Zm(n);case 26:case 5:kn(e,n),t===null&&a&4&&Xm(n),a&512&&ii(n,n.return);break;case 12:kn(e,n);break;case 31:kn(e,n),a&4&&Im(e,n);break;case 13:kn(e,n),a&4&&Pm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Jb.bind(null,n),mx(e,n))));break;case 22:if(a=n.memoizedState!==null||Hn,!a){t=t!==null&&t.memoizedState!==null||tt,u=Hn;var o=tt;Hn=a,(tt=t)&&!o?Qn(e,n,(n.subtreeFlags&8772)!==0):kn(e,n),Hn=u,tt=o}break;case 30:break;default:kn(e,n)}}function Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$u(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 Ye=null,At=!1;function Bn(e,t,n){for(n=n.child;n!==null;)Wm(e,t,n),n=n.sibling}function Wm(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Mr,n)}catch{}switch(n.tag){case 26:tt||bn(n,t),Bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||bn(n,t);var a=Ye,u=At;xl(n.type)&&(Ye=n.stateNode,At=!1),Bn(e,t,n),pi(n.stateNode),Ye=a,At=u;break;case 5:tt||bn(n,t);case 6:if(a=Ye,u=At,Ye=null,Bn(e,t,n),Ye=a,At=u,Ye!==null)if(At)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(n.stateNode)}catch(o){De(n,t,o)}else try{Ye.removeChild(n.stateNode)}catch(o){De(n,t,o)}break;case 18:Ye!==null&&(At?(e=Ye,Yp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ar(e)):Yp(Ye,n.stateNode));break;case 4:a=Ye,u=At,Ye=n.stateNode.containerInfo,At=!0,Bn(e,t,n),Ye=a,At=u;break;case 0:case 11:case 14:case 15:hl(2,n,t),tt||hl(4,n,t),Bn(e,t,n);break;case 1:tt||(bn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Vm(n,t,a)),Bn(e,t,n);break;case 21:Bn(e,t,n);break;case 22:tt=(a=tt)||n.memoizedState!==null,Bn(e,t,n),tt=a;break;default:Bn(e,t,n)}}function Im(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ar(e)}catch(n){De(t,t.return,n)}}}function Pm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ar(e)}catch(n){De(t,t.return,n)}}function kb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jm),t;default:throw Error(s(435,e.tag))}}function js(e,t){var n=kb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var u=$b.bind(null,e,a);a.then(u,u)}})}function Rt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],o=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(xl(b.type)){Ye=b.stateNode,At=!1;break e}break;case 5:Ye=b.stateNode,At=!1;break e;case 3:case 4:Ye=b.stateNode.containerInfo,At=!0;break e}b=b.return}if(Ye===null)throw Error(s(160));Wm(o,m,u),Ye=null,At=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ep(t,e),t=t.sibling}var fn=null;function ep(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Rt(t,e),Ot(e),a&4&&(hl(3,e,e.return),ri(3,e),hl(5,e,e.return));break;case 1:Rt(t,e),Ot(e),a&512&&(tt||n===null||bn(n,n.return)),a&64&&Hn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=fn;if(Rt(t,e),Ot(e),a&512&&(tt||n===null||bn(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":o=u.getElementsByTagName("title")[0],(!o||o[_r]||o[st]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(a),u.head.insertBefore(o,u.querySelector("head > title"))),ft(o,a,n),o[st]=e,at(o),a=o;break e;case"link":var m=eg("link","href",u).get(a+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(o=m[b],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(b,1);break t}}o=u.createElement(a),ft(o,a,n),u.head.appendChild(o);break;case"meta":if(m=eg("meta","content",u).get(a+(n.content||""))){for(b=0;b<m.length;b++)if(o=m[b],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(b,1);break t}}o=u.createElement(a),ft(o,a,n),u.head.appendChild(o);break;default:throw Error(s(468,a))}o[st]=e,at(o),a=o}e.stateNode=a}else tg(u,e.type,e.stateNode);else e.stateNode=Pp(u,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?tg(u,e.type,e.stateNode):Pp(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&yc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Rt(t,e),Ot(e),a&512&&(tt||n===null||bn(n,n.return)),n!==null&&a&4&&yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Rt(t,e),Ot(e),a&512&&(tt||n===null||bn(n,n.return)),e.flags&32){u=e.stateNode;try{Aa(u,"")}catch(ne){De(e,e.return,ne)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,yc(e,u,n!==null?n.memoizedProps:u)),a&1024&&(xc=!0);break;case 6:if(Rt(t,e),Ot(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){De(e,e.return,ne)}}break;case 3:if(Ps=null,u=fn,fn=Ws(t.containerInfo),Rt(t,e),fn=u,Ot(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ar(t.containerInfo)}catch(ne){De(e,e.return,ne)}xc&&(xc=!1,tp(e));break;case 4:a=fn,fn=Ws(e.stateNode.containerInfo),Rt(t,e),Ot(e),fn=a;break;case 12:Rt(t,e),Ot(e);break;case 31:Rt(t,e),Ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,js(e,a)));break;case 13:Rt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bs=Lt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,js(e,a)));break;case 22:u=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,q=Hn,X=tt;if(Hn=q||u,tt=X||T,Rt(t,e),tt=X,Hn=q,Ot(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||T||Hn||tt||ia(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(o=T.stateNode,u)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=T.stateNode;var J=T.memoizedProps.style,j=J!=null&&J.hasOwnProperty("display")?J.display:null;b.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(ne){De(T,T.return,ne)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(ne){De(T,T.return,ne)}}}else if(t.tag===18){if(n===null){T=t;try{var G=T.stateNode;u?Vp(G,!0):Vp(T.stateNode,!1)}catch(ne){De(T,T.return,ne)}}}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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,js(e,n))));break;case 19:Rt(t,e),Ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,js(e,a)));break;case 30:break;case 21:break;default:Rt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Km(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,o=vc(e);qs(e,o,u);break;case 5:var m=n.stateNode;n.flags&32&&(Aa(m,""),n.flags&=-33);var b=vc(e);qs(e,b,m);break;case 3:case 4:var T=n.stateNode.containerInfo,q=vc(e);bc(e,q,T);break;default:throw Error(s(161))}}catch(X){De(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;tp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$m(e,t.alternate,t),t=t.sibling}function ia(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:hl(4,t,t.return),ia(t);break;case 1:bn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Vm(t,t.return,n),ia(t);break;case 27:pi(t.stateNode);case 26:case 5:bn(t,t.return),ia(t);break;case 22:t.memoizedState===null&&ia(t);break;case 30:ia(t);break;default:ia(t)}e=e.sibling}}function Qn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Qn(u,o,n),ri(4,o);break;case 1:if(Qn(u,o,n),a=o,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(q){De(a,a.return,q)}if(a=o,u=a.updateQueue,u!==null){var b=a.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)Dh(T[u],b)}catch(q){De(a,a.return,q)}}n&&m&64&&Ym(o),ii(o,o.return);break;case 27:Zm(o);case 26:case 5:Qn(u,o,n),n&&a===null&&m&4&&Xm(o),ii(o,o.return);break;case 12:Qn(u,o,n);break;case 31:Qn(u,o,n),n&&m&4&&Im(u,o);break;case 13:Qn(u,o,n),n&&m&4&&Pm(u,o);break;case 22:o.memoizedState===null&&Qn(u,o,n),ii(o,o.return);break;case 30:break;default:Qn(u,o,n)}t=t.sibling}}function Sc(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&&Kr(n))}function Nc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kr(e))}function dn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)np(e,t,n,a),t=t.sibling}function np(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,n,a),u&2048&&ri(9,t);break;case 1:dn(e,t,n,a);break;case 3:dn(e,t,n,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kr(e)));break;case 12:if(u&2048){dn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,b=o.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){De(t,t.return,T)}}else dn(e,t,n,a);break;case 31:dn(e,t,n,a);break;case 13:dn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?dn(e,t,n,a):si(e,t):o._visibility&2?dn(e,t,n,a):(o._visibility|=2,Za(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Sc(m,t);break;case 24:dn(e,t,n,a),u&2048&&Nc(t.alternate,t);break;default:dn(e,t,n,a)}}function Za(e,t,n,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,m=t,b=n,T=a,q=m.flags;switch(m.tag){case 0:case 11:case 15:Za(o,m,b,T,u),ri(8,m);break;case 23:break;case 22:var X=m.stateNode;m.memoizedState!==null?X._visibility&2?Za(o,m,b,T,u):si(o,m):(X._visibility|=2,Za(o,m,b,T,u)),u&&q&2048&&Sc(m.alternate,m);break;case 24:Za(o,m,b,T,u),u&&q&2048&&Nc(m.alternate,m);break;default:Za(o,m,b,T,u)}t=t.sibling}}function si(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,u=a.flags;switch(a.tag){case 22:si(n,a),u&2048&&Sc(a.alternate,a);break;case 24:si(n,a),u&2048&&Nc(a.alternate,a);break;default:si(n,a)}t=t.sibling}}var ui=8192;function Ja(e,t,n){if(e.subtreeFlags&ui)for(e=e.child;e!==null;)lp(e,t,n),e=e.sibling}function lp(e,t,n){switch(e.tag){case 26:Ja(e,t,n),e.flags&ui&&e.memoizedState!==null&&Cx(n,fn,e.memoizedState,e.memoizedProps);break;case 5:Ja(e,t,n);break;case 3:case 4:var a=fn;fn=Ws(e.stateNode.containerInfo),Ja(e,t,n),fn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ui,ui=16777216,Ja(e,t,n),ui=a):Ja(e,t,n));break;default:Ja(e,t,n)}}function ap(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 oi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rt=a,ip(a,e)}ap(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rp(e),e=e.sibling}function rp(e){switch(e.tag){case 0:case 11:case 15:oi(e),e.flags&2048&&hl(9,e,e.return);break;case 3:oi(e);break;case 12:oi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hs(e)):oi(e);break;default:oi(e)}}function Hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rt=a,ip(a,e)}ap(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hl(8,t,t.return),Hs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hs(t));break;default:Hs(t)}e=e.sibling}}function ip(e,t){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:hl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Kr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,rt=a;else e:for(n=e;rt!==null;){a=rt;var u=a.sibling,o=a.return;if(Fm(a),a===n){rt=null;break e}if(u!==null){u.return=o,rt=u;break e}rt=o}}}var Qb={getCacheForType:function(e){var t=ot(Ie),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot(Ie).controller.signal}},Gb=typeof WeakMap=="function"?WeakMap:Map,Re=0,je=null,be=null,Se=0,ze=0,Gt=null,ml=!1,$a=!1,wc=!1,Gn=0,Ze=0,pl=0,sa=0,Ec=0,Yt=0,Fa=0,ci=null,Mt=null,Tc=!1,Bs=0,sp=0,ks=1/0,Qs=null,gl=null,nt=0,yl=null,Wa=null,Yn=0,Cc=0,Ac=null,up=null,fi=0,Rc=null;function Vt(){return(Re&2)!==0&&Se!==0?Se&-Se:D.T!==null?Uc():Ed()}function op(){if(Yt===0)if((Se&536870912)===0||we){var e=$i;$i<<=1,($i&3932160)===0&&($i=262144),Yt=e}else Yt=536870912;return e=kt.current,e!==null&&(e.flags|=32),Yt}function zt(e,t,n){(e===je&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Ia(e,0),vl(e,Se,Yt,!1)),Dr(e,n),((Re&2)===0||e!==je)&&(e===je&&((Re&2)===0&&(sa|=n),Ze===4&&vl(e,Se,Yt,!1)),xn(e))}function cp(e,t,n){if((Re&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||zr(e,t),u=a?Xb(e,t):Mc(e,t,!0),o=a;do{if(u===0){$a&&!a&&vl(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Yb(n)){u=Mc(e,t,!1),o=!1;continue}if(u===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var b=e;u=ci;var T=b.current.memoizedState.isDehydrated;if(T&&(Ia(b,m).flags|=256),m=Mc(b,m,!1),m!==2){if(wc&&!T){b.errorRecoveryDisabledLanes|=o,sa|=o,u=4;break e}o=Mt,Mt=u,o!==null&&(Mt===null?Mt=o:Mt.push.apply(Mt,o))}u=m}if(o=!1,u!==2)continue}}if(u===1){Ia(e,0),vl(e,t,0,!0);break}e:{switch(a=e,o=u,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:vl(a,t,Yt,!ml);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Bs+300-Lt(),10<u)){if(vl(a,t,Yt,!ml),Wi(a,0,!0)!==0)break e;Yn=t,a.timeoutHandle=Qp(fp.bind(null,a,n,Mt,Qs,Tc,t,Yt,sa,Fa,ml,o,"Throttled",-0,0),u);break e}fp(a,n,Mt,Qs,Tc,t,Yt,sa,Fa,ml,o,null,-0,0)}}break}while(!0);xn(e)}function fp(e,t,n,a,u,o,m,b,T,q,X,J,j,G){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},lp(t,o,J);var ne=(o&62914560)===o?Bs-Lt():(o&4194048)===o?sp-Lt():0;if(ne=Ax(J,ne),ne!==null){Yn=o,e.cancelPendingCommit=ne(bp.bind(null,e,t,o,n,a,u,m,b,T,X,J,null,j,G)),vl(e,o,m,!q);return}}bp(e,t,o,n,a,u,m,b,T)}function Yb(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 a=0;a<n.length;a++){var u=n[a],o=u.getSnapshot;u=u.value;try{if(!Ht(o(),u))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 vl(e,t,n,a){t&=~Ec,t&=~sa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var o=31-jt(u),m=1<<o;a[o]=-1,u&=~m}n!==0&&Sd(e,n,t)}function Gs(){return(Re&6)===0?(di(0),!1):!0}function Oc(){if(be!==null){if(ze===0)var e=be.return;else e=be,Dn=Il=null,Xo(e),Ga=null,Jr=0,e=be;for(;e!==null;)Gm(e.alternate,e),e=e.return;be=null}}function Ia(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ox(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,Oc(),je=e,be=n=Mn(e.current,null),Se=t,ze=0,Gt=null,ml=!1,$a=zr(e,t),wc=!1,Fa=Yt=Ec=sa=pl=Ze=0,Mt=ci=null,Tc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-jt(a),o=1<<u;t|=e[u],a&=~o}return Gn=t,os(),n}function dp(e,t){he=null,D.H=ni,t===Qa||t===ys?(t=Rh(),ze=3):t===_o?(t=Rh(),ze=4):ze=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gt=t,be===null&&(Ze=1,zs(e,Wt(t,e.current)))}function hp(){var e=kt.current;return e===null?!0:(Se&4194048)===Se?tn===null:(Se&62914560)===Se||(Se&536870912)!==0?e===tn:!1}function mp(){var e=D.H;return D.H=ni,e===null?ni:e}function pp(){var e=D.A;return D.A=Qb,e}function Ys(){Ze=4,ml||(Se&4194048)!==Se&&kt.current!==null||($a=!0),(pl&134217727)===0&&(sa&134217727)===0||je===null||vl(je,Se,Yt,!1)}function Mc(e,t,n){var a=Re;Re|=2;var u=mp(),o=pp();(je!==e||Se!==t)&&(Qs=null,Ia(e,t)),t=!1;var m=Ze;e:do try{if(ze!==0&&be!==null){var b=be,T=Gt;switch(ze){case 8:Oc(),m=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var q=ze;if(ze=0,Gt=null,Pa(e,b,T,q),n&&$a){m=0;break e}break;default:q=ze,ze=0,Gt=null,Pa(e,b,T,q)}}Vb(),m=Ze;break}catch(X){dp(e,X)}while(!0);return t&&e.shellSuspendCounter++,Dn=Il=null,Re=a,D.H=u,D.A=o,be===null&&(je=null,Se=0,os()),m}function Vb(){for(;be!==null;)gp(be)}function Xb(e,t){var n=Re;Re|=2;var a=mp(),u=pp();je!==e||Se!==t?(Qs=null,ks=Lt()+500,Ia(e,t)):$a=zr(e,t);e:do try{if(ze!==0&&be!==null){t=be;var o=Gt;t:switch(ze){case 1:ze=0,Gt=null,Pa(e,t,o,1);break;case 2:case 9:if(Ch(o)){ze=0,Gt=null,yp(t);break}t=function(){ze!==2&&ze!==9||je!==e||(ze=7),xn(e)},o.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Ch(o)?(ze=0,Gt=null,yp(t)):(ze=0,Gt=null,Pa(e,t,o,7));break;case 5:var m=null;switch(be.tag){case 26:m=be.memoizedState;case 5:case 27:var b=be;if(m?ng(m):b.stateNode.complete){ze=0,Gt=null;var T=b.sibling;if(T!==null)be=T;else{var q=b.return;q!==null?(be=q,Vs(q)):be=null}break t}}ze=0,Gt=null,Pa(e,t,o,5);break;case 6:ze=0,Gt=null,Pa(e,t,o,6);break;case 8:Oc(),Ze=6;break e;default:throw Error(s(462))}}Kb();break}catch(X){dp(e,X)}while(!0);return Dn=Il=null,D.H=a,D.A=u,Re=n,be!==null?0:(je=null,Se=0,os(),Ze)}function Kb(){for(;be!==null&&!p0();)gp(be)}function gp(e){var t=km(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?Vs(e):be=t}function yp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Um(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Um(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Xo(t);default:Gm(n,t),t=be=ph(t,Gn),t=km(n,t,Gn)}e.memoizedProps=e.pendingProps,t===null?Vs(e):be=t}function Pa(e,t,n,a){Dn=Il=null,Xo(t),Ga=null,Jr=0;var u=t.return;try{if(Ub(e,u,t,n,Se)){Ze=1,zs(e,Wt(n,e.current)),be=null;return}}catch(o){if(u!==null)throw be=u,o;Ze=1,zs(e,Wt(n,e.current)),be=null;return}t.flags&32768?(we||a===1?e=!0:$a||(Se&536870912)!==0?e=!1:(ml=e=!0,(a===2||a===9||a===3||a===6)&&(a=kt.current,a!==null&&a.tag===13&&(a.flags|=16384))),vp(t,e)):Vs(t)}function Vs(e){var t=e;do{if((t.flags&32768)!==0){vp(t,ml);return}e=t.return;var n=jb(t.alternate,t,Gn);if(n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ze===0&&(Ze=5)}function vp(e,t){do{var n=Hb(e.alternate,e);if(n!==null){n.flags&=32767,be=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=n}while(e!==null);Ze=6,be=null}function bp(e,t,n,a,u,o,m,b,T){e.cancelPendingCommit=null;do Xs();while(nt!==0);if((Re&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=vo,T0(e,n,o,m,b,T),e===je&&(be=je=null,Se=0),Wa=t,yl=e,Yn=n,Cc=o,Ac=u,up=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fb(Zi,function(){return Ep(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,u=W.p,W.p=2,m=Re,Re|=4;try{Bb(e,t,n)}finally{Re=m,W.p=u,D.T=a}}nt=1,xp(),Sp(),Np()}}function xp(){if(nt===1){nt=0;var e=yl,t=Wa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=W.p;W.p=2;var u=Re;Re|=4;try{ep(t,e);var o=Gc,m=ih(e.containerInfo),b=o.focusedElem,T=o.selectionRange;if(m!==b&&b&&b.ownerDocument&&rh(b.ownerDocument.documentElement,b)){if(T!==null&&ho(b)){var q=T.start,X=T.end;if(X===void 0&&(X=q),"selectionStart"in b)b.selectionStart=q,b.selectionEnd=Math.min(X,b.value.length);else{var J=b.ownerDocument||document,j=J&&J.defaultView||window;if(j.getSelection){var G=j.getSelection(),ne=b.textContent.length,ce=Math.min(T.start,ne),Le=T.end===void 0?ce:Math.min(T.end,ne);!G.extend&&ce>Le&&(m=Le,Le=ce,ce=m);var M=ah(b,ce),A=ah(b,Le);if(M&&A&&(G.rangeCount!==1||G.anchorNode!==M.node||G.anchorOffset!==M.offset||G.focusNode!==A.node||G.focusOffset!==A.offset)){var L=J.createRange();L.setStart(M.node,M.offset),G.removeAllRanges(),ce>Le?(G.addRange(L),G.extend(A.node,A.offset)):(L.setEnd(A.node,A.offset),G.addRange(L))}}}}for(J=[],G=b;G=G.parentNode;)G.nodeType===1&&J.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<J.length;b++){var Z=J[b];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}lu=!!Qc,Gc=Qc=null}finally{Re=u,W.p=a,D.T=n}}e.current=t,nt=2}}function Sp(){if(nt===2){nt=0;var e=yl,t=Wa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=W.p;W.p=2;var u=Re;Re|=4;try{$m(e,t.alternate,t)}finally{Re=u,W.p=a,D.T=n}}nt=3}}function Np(){if(nt===4||nt===3){nt=0,g0();var e=yl,t=Wa,n=Yn,a=up;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Wa=yl=null,wp(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(gl=null),Zu(n),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Mr,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,u=W.p,W.p=2,D.T=null;try{for(var o=e.onRecoverableError,m=0;m<a.length;m++){var b=a[m];o(b.value,{componentStack:b.stack})}}finally{D.T=t,W.p=u}}(Yn&3)!==0&&Xs(),xn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Rc?fi++:(fi=0,Rc=e):fi=0,di(0)}}function wp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kr(t)))}function Xs(){return xp(),Sp(),Np(),Ep()}function Ep(){if(nt!==5)return!1;var e=yl,t=Cc;Cc=0;var n=Zu(Yn),a=D.T,u=W.p;try{W.p=32>n?32:n,D.T=null,n=Ac,Ac=null;var o=yl,m=Yn;if(nt=0,Wa=yl=null,Yn=0,(Re&6)!==0)throw Error(s(331));var b=Re;if(Re|=4,rp(o.current),np(o,o.current,m,n),Re=b,di(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Mr,o)}catch{}return!0}finally{W.p=u,D.T=a,wp(e,t)}}function Tp(e,t,n){t=Wt(n,t),t=ic(e.stateNode,t,2),e=cl(e,t,2),e!==null&&(Dr(e,2),xn(e))}function De(e,t,n){if(e.tag===3)Tp(e,e,n);else for(;t!==null;){if(t.tag===3){Tp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(gl===null||!gl.has(a))){e=Wt(n,e),n=Cm(2),a=cl(t,n,2),a!==null&&(Am(n,a,t,e),Dr(a,2),xn(a));break}}t=t.return}}function zc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Gb;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(n)||(wc=!0,u.add(n),e=Zb.bind(null,e,t,n),t.then(e,e))}function Zb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(Se&n)===n&&(Ze===4||Ze===3&&(Se&62914560)===Se&&300>Lt()-Bs?(Re&2)===0&&Ia(e,0):Ec|=n,Fa===Se&&(Fa=0)),xn(e)}function Cp(e,t){t===0&&(t=xd()),e=$l(e,t),e!==null&&(Dr(e,t),xn(e))}function Jb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cp(e,n)}function $b(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Cp(e,n)}function Fb(e,t){return Yu(e,t)}var Ks=null,er=null,Dc=!1,Zs=!1,_c=!1,bl=0;function xn(e){e!==er&&e.next===null&&(er===null?Ks=er=e:er=er.next=e),Zs=!0,Dc||(Dc=!0,Ib())}function di(e,t){if(!_c&&Zs){_c=!0;do for(var n=!1,a=Ks;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var o=0;else{var m=a.suspendedLanes,b=a.pingedLanes;o=(1<<31-jt(42|e)+1)-1,o&=u&~(m&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Mp(a,o))}else o=Se,o=Wi(a,a===je?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||zr(a,o)||(n=!0,Mp(a,o));a=a.next}while(n);_c=!1}}function Wb(){Ap()}function Ap(){Zs=Dc=!1;var e=0;bl!==0&&ux()&&(e=bl);for(var t=Lt(),n=null,a=Ks;a!==null;){var u=a.next,o=Rp(a,t);o===0?(a.next=null,n===null?Ks=u:n.next=u,u===null&&(er=n)):(n=a,(e!==0||(o&3)!==0)&&(Zs=!0)),a=u}nt!==0&&nt!==5||di(e),bl!==0&&(bl=0)}function Rp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-jt(o),b=1<<m,T=u[m];T===-1?((b&n)===0||(b&a)!==0)&&(u[m]=E0(b,t)):T<=t&&(e.expiredLanes|=b),o&=~b}if(t=je,n=Se,n=Wi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Vu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||zr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Vu(a),Zu(n)){case 2:case 8:n=vd;break;case 32:n=Zi;break;case 268435456:n=bd;break;default:n=Zi}return a=Op.bind(null,e),n=Yu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Vu(a),e.callbackPriority=2,e.callbackNode=null,2}function Op(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xs()&&e.callbackNode!==n)return null;var a=Se;return a=Wi(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(cp(e,a,t),Rp(e,Lt()),e.callbackNode!=null&&e.callbackNode===n?Op.bind(null,e):null)}function Mp(e,t){if(Xs())return null;cp(e,t,!0)}function Ib(){cx(function(){(Re&6)!==0?Yu(yd,Wb):Ap()})}function Uc(){if(bl===0){var e=Ba;e===0&&(e=Ji,Ji<<=1,(Ji&261888)===0&&(Ji=256)),bl=e}return bl}function zp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ts(""+e)}function Dp(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 Pb(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var o=zp((u[Tt]||null).action),m=a.submitter;m&&(t=(t=m[Tt]||null)?zp(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var b=new rs("action","action",null,a,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(bl!==0){var T=m?Dp(u,m):new FormData(u);ec(n,{pending:!0,data:T,method:u.method,action:o},null,T)}}else typeof o=="function"&&(b.preventDefault(),T=m?Dp(u,m):new FormData(u),ec(n,{pending:!0,data:T,method:u.method,action:o},o,T))},currentTarget:u}]})}}for(var Lc=0;Lc<yo.length;Lc++){var qc=yo[Lc],ex=qc.toLowerCase(),tx=qc[0].toUpperCase()+qc.slice(1);cn(ex,"on"+tx)}cn(oh,"onAnimationEnd"),cn(ch,"onAnimationIteration"),cn(fh,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(yb,"onTransitionRun"),cn(vb,"onTransitionStart"),cn(bb,"onTransitionCancel"),cn(dh,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),Xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="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(" "),nx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hi));function _p(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var m=a.length-1;0<=m;m--){var b=a[m],T=b.instance,q=b.currentTarget;if(b=b.listener,T!==o&&u.isPropagationStopped())break e;o=b,u.currentTarget=q;try{o(u)}catch(X){us(X)}u.currentTarget=null,o=T}else for(m=0;m<a.length;m++){if(b=a[m],T=b.instance,q=b.currentTarget,b=b.listener,T!==o&&u.isPropagationStopped())break e;o=b,u.currentTarget=q;try{o(u)}catch(X){us(X)}u.currentTarget=null,o=T}}}}function xe(e,t){var n=t[Ju];n===void 0&&(n=t[Ju]=new Set);var a=e+"__bubble";n.has(a)||(Up(t,e,2,!1),n.add(a))}function jc(e,t,n){var a=0;t&&(a|=4),Up(n,e,a,t)}var Js="_reactListening"+Math.random().toString(36).slice(2);function Hc(e){if(!e[Js]){e[Js]=!0,Ad.forEach(function(n){n!=="selectionchange"&&(nx.has(n)||jc(n,!1,e),jc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Js]||(t[Js]=!0,jc("selectionchange",!1,t))}}function Up(e,t,n,a){switch(og(t)){case 2:var u=Mx;break;case 8:u=zx;break;default:u=Pc}n=u.bind(null,t,n,e),u=void 0,!lo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Bc(e,t,n,a,u){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var b=a.stateNode.containerInfo;if(b===u)break;if(m===4)for(m=a.return;m!==null;){var T=m.tag;if((T===3||T===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;b!==null;){if(m=Na(b),m===null)return;if(T=m.tag,T===5||T===6||T===26||T===27){a=o=m;continue e}b=b.parentNode}}a=a.return}Bd(function(){var q=o,X=to(n),J=[];e:{var j=hh.get(e);if(j!==void 0){var G=rs,ne=e;switch(e){case"keypress":if(ls(n)===0)break e;case"keydown":case"keyup":G=$0;break;case"focusin":ne="focus",G=so;break;case"focusout":ne="blur",G=so;break;case"beforeblur":case"afterblur":G=so;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":G=Gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=j0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=I0;break;case oh:case ch:case fh:G=k0;break;case dh:G=eb;break;case"scroll":case"scrollend":G=L0;break;case"wheel":G=nb;break;case"copy":case"cut":case"paste":G=G0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Vd;break;case"toggle":case"beforetoggle":G=ab}var ce=(t&4)!==0,Le=!ce&&(e==="scroll"||e==="scrollend"),M=ce?j!==null?j+"Capture":null:j;ce=[];for(var A=q,L;A!==null;){var Z=A;if(L=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||L===null||M===null||(Z=Lr(A,M),Z!=null&&ce.push(mi(A,Z,L))),Le)break;A=A.return}0<ce.length&&(j=new G(j,ne,null,n,X),J.push({event:j,listeners:ce}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",j&&n!==eo&&(ne=n.relatedTarget||n.fromElement)&&(Na(ne)||ne[Sa]))break e;if((G||j)&&(j=X.window===X?X:(j=X.ownerDocument)?j.defaultView||j.parentWindow:window,G?(ne=n.relatedTarget||n.toElement,G=q,ne=ne?Na(ne):null,ne!==null&&(Le=f(ne),ce=ne.tag,ne!==Le||ce!==5&&ce!==27&&ce!==6)&&(ne=null)):(G=null,ne=q),G!==ne)){if(ce=Gd,Z="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Vd,Z="onPointerLeave",M="onPointerEnter",A="pointer"),Le=G==null?j:Ur(G),L=ne==null?j:Ur(ne),j=new ce(Z,A+"leave",G,n,X),j.target=Le,j.relatedTarget=L,Z=null,Na(X)===q&&(ce=new ce(M,A+"enter",ne,n,X),ce.target=L,ce.relatedTarget=Le,Z=ce),Le=Z,G&&ne)t:{for(ce=lx,M=G,A=ne,L=0,Z=M;Z;Z=ce(Z))L++;Z=0;for(var ue=A;ue;ue=ce(ue))Z++;for(;0<L-Z;)M=ce(M),L--;for(;0<Z-L;)A=ce(A),Z--;for(;L--;){if(M===A||A!==null&&M===A.alternate){ce=M;break t}M=ce(M),A=ce(A)}ce=null}else ce=null;G!==null&&Lp(J,j,G,ce,!1),ne!==null&&Le!==null&&Lp(J,Le,ne,ce,!0)}}e:{if(j=q?Ur(q):window,G=j.nodeName&&j.nodeName.toLowerCase(),G==="select"||G==="input"&&j.type==="file")var Ce=Id;else if(Fd(j))if(Pd)Ce=mb;else{Ce=db;var ae=fb}else G=j.nodeName,!G||G.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?q&&Pu(q.elementType)&&(Ce=Id):Ce=hb;if(Ce&&(Ce=Ce(e,q))){Wd(J,Ce,n,X);break e}ae&&ae(e,j,q),e==="focusout"&&q&&j.type==="number"&&q.memoizedProps.value!=null&&Iu(j,"number",j.value)}switch(ae=q?Ur(q):window,e){case"focusin":(Fd(ae)||ae.contentEditable==="true")&&(za=ae,mo=q,Yr=null);break;case"focusout":Yr=mo=za=null;break;case"mousedown":po=!0;break;case"contextmenu":case"mouseup":case"dragend":po=!1,sh(J,n,X);break;case"selectionchange":if(gb)break;case"keydown":case"keyup":sh(J,n,X)}var me;if(oo)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Ma?Jd(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(Xd&&n.locale!=="ko"&&(Ma||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Ma&&(me=kd()):(ll=X,ao="value"in ll?ll.value:ll.textContent,Ma=!0)),ae=$s(q,Ne),0<ae.length&&(Ne=new Yd(Ne,e,null,n,X),J.push({event:Ne,listeners:ae}),me?Ne.data=me:(me=$d(n),me!==null&&(Ne.data=me)))),(me=ib?sb(e,n):ub(e,n))&&(Ne=$s(q,"onBeforeInput"),0<Ne.length&&(ae=new Yd("onBeforeInput","beforeinput",null,n,X),J.push({event:ae,listeners:Ne}),ae.data=me)),Pb(J,e,q,n,X)}_p(J,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $s(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,o=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||o===null||(u=Lr(e,n),u!=null&&a.unshift(mi(e,u,o)),u=Lr(e,t),u!=null&&a.push(mi(e,u,o))),e.tag===3)return a;e=e.return}return[]}function lx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lp(e,t,n,a,u){for(var o=t._reactName,m=[];n!==null&&n!==a;){var b=n,T=b.alternate,q=b.stateNode;if(b=b.tag,T!==null&&T===a)break;b!==5&&b!==26&&b!==27||q===null||(T=q,u?(q=Lr(n,o),q!=null&&m.unshift(mi(n,q,T))):u||(q=Lr(n,o),q!=null&&m.push(mi(n,q,T)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var ax=/\r\n?/g,rx=/\u0000|\uFFFD/g;function qp(e){return(typeof e=="string"?e:""+e).replace(ax,`
49
+ `).replace(rx,"")}function jp(e,t){return t=qp(t),qp(e)===t}function Ue(e,t,n,a,u,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Aa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Aa(e,""+a);break;case"className":Pi(e,"class",a);break;case"tabIndex":Pi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pi(e,n,a);break;case"style":jd(e,a,o);break;case"data":if(t!=="object"){Pi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ts(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 o=="function"&&(n==="formAction"?(t!=="input"&&Ue(e,t,"name",u.name,u,null),Ue(e,t,"formEncType",u.formEncType,u,null),Ue(e,t,"formMethod",u.formMethod,u,null),Ue(e,t,"formTarget",u.formTarget,u,null)):(Ue(e,t,"encType",u.encType,u,null),Ue(e,t,"method",u.method,u,null),Ue(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ts(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Rn);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=ts(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Ii(e,"popover",a);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ii(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=_0.get(n)||n,Ii(e,n,a))}}function kc(e,t,n,a,u,o){switch(n){case"style":jd(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Aa(e,a):(typeof a=="number"||typeof a=="bigint")&&Aa(e,""+a);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),o=e[Tt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,u),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,u);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ii(e,n,a)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var a=!1,u=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ue(e,t,o,m,n,null)}}u&&Ue(e,t,"srcSet",n.srcSet,n,null),a&&Ue(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var b=o=m=u=null,T=null,q=null;for(a in n)if(n.hasOwnProperty(a)){var X=n[a];if(X!=null)switch(a){case"name":u=X;break;case"type":m=X;break;case"checked":T=X;break;case"defaultChecked":q=X;break;case"value":o=X;break;case"defaultValue":b=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:Ue(e,t,a,X,n,null)}}_d(e,o,b,T,q,m,u,!1);return;case"select":xe("invalid",e),a=m=o=null;for(u in n)if(n.hasOwnProperty(u)&&(b=n[u],b!=null))switch(u){case"value":o=b;break;case"defaultValue":m=b;break;case"multiple":a=b;default:Ue(e,t,u,b,n,null)}t=o,n=m,e.multiple=!!a,t!=null?Ca(e,!!a,t,!1):n!=null&&Ca(e,!!a,n,!0);return;case"textarea":xe("invalid",e),o=u=a=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":a=b;break;case"defaultValue":u=b;break;case"children":o=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Ue(e,t,m,b,n,null)}Ld(e,a,u,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(a=n[T],a!=null))switch(T){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ue(e,t,T,a,n,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(a=0;a<hi.length;a++)xe(hi[a],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(q in n)if(n.hasOwnProperty(q)&&(a=n[q],a!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ue(e,t,q,a,n,null)}return;default:if(Pu(t)){for(X in n)n.hasOwnProperty(X)&&(a=n[X],a!==void 0&&kc(e,t,X,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&Ue(e,t,b,a,n,null))}function ix(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,o=null,m=null,b=null,T=null,q=null,X=null;for(G in n){var J=n[G];if(n.hasOwnProperty(G)&&J!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":T=J;default:a.hasOwnProperty(G)||Ue(e,t,G,null,a,J)}}for(var j in a){var G=a[j];if(J=n[j],a.hasOwnProperty(j)&&(G!=null||J!=null))switch(j){case"type":o=G;break;case"name":u=G;break;case"checked":q=G;break;case"defaultChecked":X=G;break;case"value":m=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:G!==J&&Ue(e,t,j,G,a,J)}}Wu(e,m,b,T,q,X,o,u);return;case"select":G=m=b=j=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":G=T;default:a.hasOwnProperty(o)||Ue(e,t,o,null,a,T)}for(u in a)if(o=a[u],T=n[u],a.hasOwnProperty(u)&&(o!=null||T!=null))switch(u){case"value":j=o;break;case"defaultValue":b=o;break;case"multiple":m=o;default:o!==T&&Ue(e,t,u,o,a,T)}t=b,n=m,a=G,j!=null?Ca(e,!!n,j,!1):!!a!=!!n&&(t!=null?Ca(e,!!n,t,!0):Ca(e,!!n,n?[]:"",!1));return;case"textarea":G=j=null;for(b in n)if(u=n[b],n.hasOwnProperty(b)&&u!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ue(e,t,b,null,a,u)}for(m in a)if(u=a[m],o=n[m],a.hasOwnProperty(m)&&(u!=null||o!=null))switch(m){case"value":j=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==o&&Ue(e,t,m,u,a,o)}Ud(e,j,G);return;case"option":for(var ne in n)if(j=n[ne],n.hasOwnProperty(ne)&&j!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Ue(e,t,ne,null,a,j)}for(T in a)if(j=a[T],G=n[T],a.hasOwnProperty(T)&&j!==G&&(j!=null||G!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ue(e,t,T,j,a,G)}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 ce in n)j=n[ce],n.hasOwnProperty(ce)&&j!=null&&!a.hasOwnProperty(ce)&&Ue(e,t,ce,null,a,j);for(q in a)if(j=a[q],G=n[q],a.hasOwnProperty(q)&&j!==G&&(j!=null||G!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Ue(e,t,q,j,a,G)}return;default:if(Pu(t)){for(var Le in n)j=n[Le],n.hasOwnProperty(Le)&&j!==void 0&&!a.hasOwnProperty(Le)&&kc(e,t,Le,void 0,a,j);for(X in a)j=a[X],G=n[X],!a.hasOwnProperty(X)||j===G||j===void 0&&G===void 0||kc(e,t,X,j,a,G);return}}for(var M in n)j=n[M],n.hasOwnProperty(M)&&j!=null&&!a.hasOwnProperty(M)&&Ue(e,t,M,null,a,j);for(J in a)j=a[J],G=n[J],!a.hasOwnProperty(J)||j===G||j==null&&G==null||Ue(e,t,J,j,a,G)}function Hp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],o=u.transferSize,m=u.initiatorType,b=u.duration;if(o&&b&&Hp(m)){for(m=0,b=u.responseEnd,a+=1;a<n.length;a++){var T=n[a],q=T.startTime;if(q>b)break;var X=T.transferSize,J=T.initiatorType;X&&Hp(J)&&(T=T.responseEnd,m+=X*(T<b?1:(b-q)/(T-q)))}if(--a,t+=8*(o+m)/(u.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 Qc=null,Gc=null;function Fs(e){return e.nodeType===9?e:e.ownerDocument}function Bp(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 kp(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 Yc(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 Vc=null;function ux(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var Qp=typeof setTimeout=="function"?setTimeout:void 0,ox=typeof clearTimeout=="function"?clearTimeout:void 0,Gp=typeof Promise=="function"?Promise:void 0,cx=typeof queueMicrotask=="function"?queueMicrotask:typeof Gp<"u"?function(e){return Gp.resolve(null).then(e).catch(fx)}:Qp;function fx(e){setTimeout(function(){throw e})}function xl(e){return e==="head"}function Yp(e,t){var n=t,a=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(u),ar(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")pi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,pi(n);for(var o=n.firstChild;o;){var m=o.nextSibling,b=o.nodeName;o[_r]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&pi(e.ownerDocument.body);n=u}while(n);ar(t)}function Vp(e,t){var n=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Xc(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":Xc(n),$u(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function dx(e,t,n,a){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[_r])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function hx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=nn(e.nextSibling),e===null))return null;return e}function Xp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nn(e.nextSibling),e===null))return null;return e}function Kc(e){return e.data==="$?"||e.data==="$~"}function Zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function nn(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 Jc=null;function Kp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return nn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Zp(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 Jp(e,t,n){switch(t=Fs(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$u(e)}var ln=new Map,$p=new Set;function Ws(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=W.d;W.d={f:px,r:gx,D:yx,C:vx,L:bx,m:xx,X:Nx,S:Sx,M:wx};function px(){var e=Vn.f(),t=Gs();return e||t}function gx(e){var t=wa(e);t!==null&&t.tag===5&&t.type==="form"?dm(t):Vn.r(e)}var tr=typeof document>"u"?null:document;function Fp(e,t,n){var a=tr;if(a&&typeof t=="string"&&t){var u=$t(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),$p.has(u)||($p.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function yx(e){Vn.D(e),Fp("dns-prefetch",e,null)}function vx(e,t){Vn.C(e,t),Fp("preconnect",e,t)}function bx(e,t,n){Vn.L(e,t,n);var a=tr;if(a&&e&&t){var u='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+$t(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+$t(n.imageSizes)+'"]')):u+='[href="'+$t(e)+'"]';var o=u;switch(t){case"style":o=nr(e);break;case"script":o=lr(e)}ln.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(o,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(gi(o))||t==="script"&&a.querySelector(yi(o))||(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function xx(e,t){Vn.m(e,t);var n=tr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',o=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=lr(e)}if(!ln.has(o)&&(e=S({rel:"modulepreload",href:e},t),ln.set(o,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yi(o)))return}a=n.createElement("link"),ft(a,"link",e),at(a),n.head.appendChild(a)}}}function Sx(e,t,n){Vn.S(e,t,n);var a=tr;if(a&&e){var u=Ea(a).hoistableStyles,o=nr(e);t=t||"default";var m=u.get(o);if(!m){var b={loading:0,preload:null};if(m=a.querySelector(gi(o)))b.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(o))&&$c(e,n);var T=m=a.createElement("link");at(T),ft(T,"link",e),T._p=new Promise(function(q,X){T.onload=q,T.onerror=X}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Is(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:b},u.set(o,m)}}}function Nx(e,t){Vn.X(e,t);var n=tr;if(n&&e){var a=Ea(n).hoistableScripts,u=lr(e),o=a.get(u);o||(o=n.querySelector(yi(u)),o||(e=S({src:e,async:!0},t),(t=ln.get(u))&&Fc(e,t),o=n.createElement("script"),at(o),ft(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function wx(e,t){Vn.M(e,t);var n=tr;if(n&&e){var a=Ea(n).hoistableScripts,u=lr(e),o=a.get(u);o||(o=n.querySelector(yi(u)),o||(e=S({src:e,async:!0,type:"module"},t),(t=ln.get(u))&&Fc(e,t),o=n.createElement("script"),at(o),ft(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function Wp(e,t,n,a){var u=(u=ve.current)?Ws(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=nr(n.href),n=Ea(u).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=nr(n.href);var o=Ea(u).hoistableStyles,m=o.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=u.querySelector(gi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),ln.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},ln.set(e,n),o||Ex(u,e,n,m.state))),t&&a===null)throw Error(s(528,""));return m}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=lr(n),n=Ea(u).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function nr(e){return'href="'+$t(e)+'"'}function gi(e){return'link[rel="stylesheet"]['+e+"]"}function Ip(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Ex(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ft(t,"link",n),at(t),e.head.appendChild(t))}function lr(e){return'[src="'+$t(e)+'"]'}function yi(e){return"script[async]"+e}function Pp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(n.href)+'"]');if(a)return t.instance=a,at(a),a;var u=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ft(a,"style",u),Is(a,n.precedence,e),t.instance=a;case"stylesheet":u=nr(n.href);var o=e.querySelector(gi(u));if(o)return t.state.loading|=4,t.instance=o,at(o),o;a=Ip(n),(u=ln.get(u))&&$c(a,u),o=(e.ownerDocument||e).createElement("link"),at(o);var m=o;return m._p=new Promise(function(b,T){m.onload=b,m.onerror=T}),ft(o,"link",a),t.state.loading|=4,Is(o,n.precedence,e),t.instance=o;case"script":return o=lr(n.src),(u=e.querySelector(yi(o)))?(t.instance=u,at(u),u):(a=n,(u=ln.get(o))&&(a=S({},n),Fc(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),at(u),ft(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Is(a,n.precedence,e));return t.instance}function Is(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,o=u,m=0;m<a.length;m++){var b=a[m];if(b.dataset.precedence===t)o=b;else if(o!==u)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ps=null;function eg(e,t,n){if(Ps===null){var a=new Map,u=Ps=new Map;u.set(n,a)}else u=Ps,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var o=n[u];if(!(o[_r]||o[st]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var b=a.get(m);b?b.push(o):a.set(m,[o])}}return a}function tg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Tx(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 ng(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cx(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=nr(a.href),o=t.querySelector(gi(u));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=eu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,a=Ip(a),(u=ln.get(u))&&$c(a,u),o=o.createElement("link"),at(o);var m=o;m._p=new Promise(function(b,T){m.onload=b,m.onerror=T}),ft(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=eu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wc=0;function Ax(e,t){return e.stylesheets&&e.count===0&&nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Wc===0&&(Wc=62500*sx());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Wc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tu=null;function nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tu=new Map,t.forEach(Rx,e),tu=null,eu.call(e))}function Rx(e,t){if(!(t.state.loading&4)){var n=tu.get(e);if(n)var a=n.get(null);else{n=new Map,tu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<u.length;o++){var m=u[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}u=t.instance,m=u.getAttribute("data-precedence"),o=n.get(m)||a,o===a&&n.set(null,u),n.set(m,u),this.count++,a=eu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),o?o.parentNode.insertBefore(u,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var vi={$$typeof:B,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Ox(e,t,n,a,u,o,m,b,T){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=Xu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xu(0),this.hiddenUpdates=Xu(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function lg(e,t,n,a,u,o,m,b,T,q,X,J){return e=new Ox(e,t,n,m,T,q,X,J,b),t=1,o===!0&&(t|=24),o=Bt(3,null,null,t),e.current=o,o.stateNode=e,t=Mo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Uo(o),e}function ag(e){return e?(e=Ua,e):Ua}function rg(e,t,n,a,u,o){u=ag(u),a.context===null?a.context=u:a.pendingContext=u,a=ol(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=cl(e,a,t),n!==null&&(zt(n,e,t),Fr(n,e,t))}function ig(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ic(e,t){ig(e,t),(e=e.alternate)&&ig(e,t)}function sg(e){if(e.tag===13||e.tag===31){var t=$l(e,67108864);t!==null&&zt(t,e,67108864),Ic(e,67108864)}}function ug(e){if(e.tag===13||e.tag===31){var t=Vt();t=Ku(t);var n=$l(e,t);n!==null&&zt(n,e,t),Ic(e,t)}}var lu=!0;function Mx(e,t,n,a){var u=D.T;D.T=null;var o=W.p;try{W.p=2,Pc(e,t,n,a)}finally{W.p=o,D.T=u}}function zx(e,t,n,a){var u=D.T;D.T=null;var o=W.p;try{W.p=8,Pc(e,t,n,a)}finally{W.p=o,D.T=u}}function Pc(e,t,n,a){if(lu){var u=ef(a);if(u===null)Bc(e,t,a,au,n),cg(e,a);else if(_x(u,e,t,n,a))a.stopPropagation();else if(cg(e,a),t&4&&-1<Dx.indexOf(e)){for(;u!==null;){var o=wa(u);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=Vl(o.pendingLanes);if(m!==0){var b=o;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var T=1<<31-jt(m);b.entanglements[1]|=T,m&=~T}xn(o),(Re&6)===0&&(ks=Lt()+500,di(0))}}break;case 31:case 13:b=$l(o,2),b!==null&&zt(b,o,2),Gs(),Ic(o,2)}if(o=ef(a),o===null&&Bc(e,t,a,au,n),o===u)break;u=o}u!==null&&a.stopPropagation()}else Bc(e,t,a,null,n)}}function ef(e){return e=to(e),tf(e)}var au=null;function tf(e){if(au=null,e=Na(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 au=e,null}function og(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(y0()){case yd:return 2;case vd:return 8;case Zi:case v0:return 32;case bd:return 268435456;default:return 32}default:return 32}}var nf=!1,Sl=null,Nl=null,wl=null,bi=new Map,xi=new Map,El=[],Dx="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 cg(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(t.pointerId)}}function Si(e,t,n,a,u,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[u]},t!==null&&(t=wa(t),t!==null&&sg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function _x(e,t,n,a,u){switch(t){case"focusin":return Sl=Si(Sl,e,t,n,a,u),!0;case"dragenter":return Nl=Si(Nl,e,t,n,a,u),!0;case"mouseover":return wl=Si(wl,e,t,n,a,u),!0;case"pointerover":var o=u.pointerId;return bi.set(o,Si(bi.get(o)||null,e,t,n,a,u)),!0;case"gotpointercapture":return o=u.pointerId,xi.set(o,Si(xi.get(o)||null,e,t,n,a,u)),!0}return!1}function fg(e){var t=Na(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,Td(e.priority,function(){ug(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Td(e.priority,function(){ug(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 ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ef(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);eo=a,n.target.dispatchEvent(a),eo=null}else return t=wa(n),t!==null&&sg(t),e.blockedOn=n,!1;t.shift()}return!0}function dg(e,t,n){ru(e)&&n.delete(t)}function Ux(){nf=!1,Sl!==null&&ru(Sl)&&(Sl=null),Nl!==null&&ru(Nl)&&(Nl=null),wl!==null&&ru(wl)&&(wl=null),bi.forEach(dg),xi.forEach(dg)}function iu(e,t){e.blockedOn===t&&(e.blockedOn=null,nf||(nf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Ux)))}var su=null;function hg(e){su!==e&&(su=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){su===e&&(su=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(tf(a||n)===null)continue;break}var o=wa(n);o!==null&&(e.splice(t,3),t-=3,ec(o,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function ar(e){function t(T){return iu(T,e)}Sl!==null&&iu(Sl,e),Nl!==null&&iu(Nl,e),wl!==null&&iu(wl,e),bi.forEach(t),xi.forEach(t);for(var n=0;n<El.length;n++){var a=El[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<El.length&&(n=El[0],n.blockedOn===null);)fg(n),n.blockedOn===null&&El.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],m=u[Tt]||null;if(typeof o=="function")m||hg(n);else if(m){var b=null;if(o&&o.hasAttribute("formAction")){if(u=o,m=o[Tt]||null)b=m.formAction;else if(tf(u)!==null)continue}else b=m.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),hg(n)}}}function mg(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function lf(e){this._internalRoot=e}uu.prototype.render=lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Vt();rg(n,a,e,t,null,null)},uu.prototype.unmount=lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rg(e.current,2,null,e,null,null),Gs(),t[Sa]=null}};function uu(e){this._internalRoot=e}uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ed();e={blockedOn:null,target:e,priority:t};for(var n=0;n<El.length&&t!==0&&t<El[n].priority;n++);El.splice(n,0,e),n===0&&fg(e)}};var pg=r.version;if(pg!=="19.2.0")throw Error(s(527,pg,"19.2.0"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Lx={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{Mr=ou.inject(Lx),qt=ou}catch{}}return wi.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",u=Nm,o=wm,m=Em;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=lg(e,1,!1,null,null,n,a,null,u,o,m,mg),e[Sa]=t.current,Hc(e),new lf(t)},wi.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,u="",o=Nm,m=wm,b=Em,T=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=lg(e,1,!0,t,n??null,a,u,T,o,m,b,mg),t.context=ag(null),n=t.current,a=Vt(),a=Ku(a),u=ol(a),u.callback=null,cl(n,u,a),n=a,t.current.lanes=n,Dr(t,n),xn(t),e[Sa]=t.current,Hc(e),new uu(t)},wi.version="19.2.0",wi}var Cg;function Zx(){if(Cg)return uf.exports;Cg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),uf.exports=Kx(),uf.exports}var Jx=Zx();const $x=xy(Jx);var Sr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fx={setTimeout:(l,r)=>setTimeout(l,r),clearTimeout:l=>clearTimeout(l),setInterval:(l,r)=>setInterval(l,r),clearInterval:l=>clearInterval(l)},Ml,Gf,oy,Wx=(oy=class{constructor(){se(this,Ml,Fx);se(this,Gf,!1)}setTimeoutProvider(l){ee(this,Ml,l)}setTimeout(l,r){return C(this,Ml).setTimeout(l,r)}clearTimeout(l){C(this,Ml).clearTimeout(l)}setInterval(l,r){return C(this,Ml).setInterval(l,r)}clearInterval(l){C(this,Ml).clearInterval(l)}},Ml=new WeakMap,Gf=new WeakMap,oy),oa=new Wx;function Ix(l){setTimeout(l,0)}var ba=typeof window>"u"||"Deno"in globalThis;function Nt(){}function Px(l,r){return typeof l=="function"?l(r):l}function xf(l){return typeof l=="number"&&l>=0&&l!==1/0}function wy(l,r){return Math.max(l+(r||0)-Date.now(),0)}function Bl(l,r){return typeof l=="function"?l(r):l}function rn(l,r){return typeof l=="function"?l(r):l}function Ag(l,r){const{type:i="all",exact:s,fetchStatus:c,predicate:f,queryKey:d,stale:h}=l;if(d){if(s){if(r.queryHash!==Xf(d,r.options))return!1}else if(!Di(r.queryKey,d))return!1}if(i!=="all"){const y=r.isActive();if(i==="active"&&!y||i==="inactive"&&y)return!1}return!(typeof h=="boolean"&&r.isStale()!==h||c&&c!==r.state.fetchStatus||f&&!f(r))}function Rg(l,r){const{exact:i,status:s,predicate:c,mutationKey:f}=l;if(f){if(!r.options.mutationKey)return!1;if(i){if(xa(r.options.mutationKey)!==xa(f))return!1}else if(!Di(r.options.mutationKey,f))return!1}return!(s&&r.state.status!==s||c&&!c(r))}function Xf(l,r){return((r==null?void 0:r.queryKeyHashFn)||xa)(l)}function xa(l){return JSON.stringify(l,(r,i)=>Sf(i)?Object.keys(i).sort().reduce((s,c)=>(s[c]=i[c],s),{}):i)}function Di(l,r){return l===r?!0:typeof l!=typeof r?!1:l&&r&&typeof l=="object"&&typeof r=="object"?Object.keys(r).every(i=>Di(l[i],r[i])):!1}var e1=Object.prototype.hasOwnProperty;function Ey(l,r){if(l===r)return l;const i=Og(l)&&Og(r);if(!i&&!(Sf(l)&&Sf(r)))return r;const c=(i?l:Object.keys(l)).length,f=i?r:Object.keys(r),d=f.length,h=i?new Array(d):{};let y=0;for(let g=0;g<d;g++){const x=i?g:f[g],S=l[x],N=r[x];if(S===N){h[x]=S,(i?g<c:e1.call(l,x))&&y++;continue}if(S===null||N===null||typeof S!="object"||typeof N!="object"){h[x]=N;continue}const R=Ey(S,N);h[x]=R,R===S&&y++}return c===d&&y===c?l:h}function xu(l,r){if(!r||Object.keys(l).length!==Object.keys(r).length)return!1;for(const i in l)if(l[i]!==r[i])return!1;return!0}function Og(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Sf(l){if(!Mg(l))return!1;const r=l.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!Mg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Mg(l){return Object.prototype.toString.call(l)==="[object Object]"}function t1(l){return new Promise(r=>{oa.setTimeout(r,l)})}function Nf(l,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(l,r):i.structuralSharing!==!1?Ey(l,r):r}function n1(l,r,i=0){const s=[...l,r];return i&&s.length>i?s.slice(1):s}function l1(l,r,i=0){const s=[r,...l];return i&&s.length>i?s.slice(0,-1):s}var Kf=Symbol();function Ty(l,r){return!l.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!l.queryFn||l.queryFn===Kf?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function Cy(l,r){return typeof l=="function"?l(...r):!!l}var ca,zl,ur,cy,a1=(cy=class extends Sr{constructor(){super();se(this,ca);se(this,zl);se(this,ur);ee(this,ur,r=>{if(!ba&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){C(this,zl)||this.setEventListener(C(this,ur))}onUnsubscribe(){var r;this.hasListeners()||((r=C(this,zl))==null||r.call(this),ee(this,zl,void 0))}setEventListener(r){var i;ee(this,ur,r),(i=C(this,zl))==null||i.call(this),ee(this,zl,r(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(r){C(this,ca)!==r&&(ee(this,ca,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof C(this,ca)=="boolean"?C(this,ca):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},ca=new WeakMap,zl=new WeakMap,ur=new WeakMap,cy),Zf=new a1;function wf(){let l,r;const i=new Promise((c,f)=>{l=c,r=f});i.status="pending",i.catch(()=>{});function s(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{s({status:"fulfilled",value:c}),l(c)},i.reject=c=>{s({status:"rejected",reason:c}),r(c)},i}var r1=Ix;function i1(){let l=[],r=0,i=h=>{h()},s=h=>{h()},c=r1;const f=h=>{r?l.push(h):c(()=>{i(h)})},d=()=>{const h=l;l=[],h.length&&c(()=>{s(()=>{h.forEach(y=>{i(y)})})})};return{batch:h=>{let y;r++;try{y=h()}finally{r--,r||d()}return y},batchCalls:h=>(...y)=>{f(()=>{h(...y)})},schedule:f,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{c=h}}}var lt=i1(),or,Dl,cr,fy,s1=(fy=class extends Sr{constructor(){super();se(this,or,!0);se(this,Dl);se(this,cr);ee(this,cr,r=>{if(!ba&&window.addEventListener){const i=()=>r(!0),s=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){C(this,Dl)||this.setEventListener(C(this,cr))}onUnsubscribe(){var r;this.hasListeners()||((r=C(this,Dl))==null||r.call(this),ee(this,Dl,void 0))}setEventListener(r){var i;ee(this,cr,r),(i=C(this,Dl))==null||i.call(this),ee(this,Dl,r(this.setOnline.bind(this)))}setOnline(r){C(this,or)!==r&&(ee(this,or,r),this.listeners.forEach(s=>{s(r)}))}isOnline(){return C(this,or)}},or=new WeakMap,Dl=new WeakMap,cr=new WeakMap,fy),Su=new s1;function u1(l){return Math.min(1e3*2**l,3e4)}function Ay(l){return(l??"online")==="online"?Su.isOnline():!0}var Ef=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function Ry(l){let r=!1,i=0,s;const c=wf(),f=()=>c.status!=="pending",d=z=>{var O;if(!f()){const U=new Ef(z);N(U),(O=l.onCancel)==null||O.call(l,U)}},h=()=>{r=!0},y=()=>{r=!1},g=()=>Zf.isFocused()&&(l.networkMode==="always"||Su.isOnline())&&l.canRun(),x=()=>Ay(l.networkMode)&&l.canRun(),S=z=>{f()||(s==null||s(),c.resolve(z))},N=z=>{f()||(s==null||s(),c.reject(z))},R=()=>new Promise(z=>{var O;s=U=>{(f()||g())&&z(U)},(O=l.onPause)==null||O.call(l)}).then(()=>{var z;s=void 0,f()||(z=l.onContinue)==null||z.call(l)}),_=()=>{if(f())return;let z;const O=i===0?l.initialPromise:void 0;try{z=O??l.fn()}catch(U){z=Promise.reject(U)}Promise.resolve(z).then(S).catch(U=>{var k;if(f())return;const V=l.retry??(ba?0:3),B=l.retryDelay??u1,Q=typeof B=="function"?B(i,U):B,H=V===!0||typeof V=="number"&&i<V||typeof V=="function"&&V(i,U);if(r||!H){N(U);return}i++,(k=l.onFail)==null||k.call(l,i,U),t1(Q).then(()=>g()?void 0:R()).then(()=>{r?N(U):_()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(s==null||s(),c),cancelRetry:h,continueRetry:y,canStart:x,start:()=>(x()?_():R().then(_),c)}}var fa,dy,Oy=(dy=class{constructor(){se(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xf(this.gcTime)&&ee(this,fa,oa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ba?1/0:300*1e3))}clearGcTimeout(){C(this,fa)&&(oa.clearTimeout(C(this,fa)),ee(this,fa,void 0))}},fa=new WeakMap,dy),da,fr,an,ha,it,qi,ma,hn,Zn,hy,o1=(hy=class extends Oy{constructor(r){super();se(this,hn);se(this,da);se(this,fr);se(this,an);se(this,ha);se(this,it);se(this,qi);se(this,ma);ee(this,ma,!1),ee(this,qi,r.defaultOptions),this.setOptions(r.options),this.observers=[],ee(this,ha,r.client),ee(this,an,C(this,ha).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ee(this,da,zg(this.options)),this.state=r.state??C(this,da),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=C(this,it))==null?void 0:r.promise}setOptions(r){if(this.options={...C(this,qi),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=zg(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),ee(this,da,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,an).remove(this)}setData(r,i){const s=Nf(this.state.data,r,this.options);return ye(this,hn,Zn).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(r,i){ye(this,hn,Zn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var s,c;const i=(s=C(this,it))==null?void 0:s.promise;return(c=C(this,it))==null||c.cancel(r),i?i.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,da))}isActive(){return this.observers.some(r=>rn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>Bl(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!wy(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(s=>s.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=C(this,it))==null||i.continue()}onOnline(){var i;const r=this.observers.find(s=>s.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=C(this,it))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),C(this,an).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(C(this,it)&&(C(this,ma)?C(this,it).cancel({revert:!0}):C(this,it).cancelRetry()),this.scheduleGc()),C(this,an).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ye(this,hn,Zn).call(this,{type:"invalidate"})}async fetch(r,i){var y,g,x,S,N,R,_,z,O,U,V,B;if(this.state.fetchStatus!=="idle"&&((y=C(this,it))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(C(this,it))return C(this,it).continueRetry(),C(this,it).promise}if(r&&this.setOptions(r),!this.options.queryFn){const Q=this.observers.find(H=>H.options.queryFn);Q&&this.setOptions(Q.options)}const s=new AbortController,c=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(ee(this,ma,!0),s.signal)})},f=()=>{const Q=Ty(this.options,i),k=(()=>{const K={client:C(this,ha),queryKey:this.queryKey,meta:this.meta};return c(K),K})();return ee(this,ma,!1),this.options.persister?this.options.persister(Q,k,this):Q(k)},h=(()=>{const Q={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:C(this,ha),state:this.state,fetchFn:f};return c(Q),Q})();(g=this.options.behavior)==null||g.onFetch(h,this),ee(this,fr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=h.fetchOptions)==null?void 0:x.meta))&&ye(this,hn,Zn).call(this,{type:"fetch",meta:(S=h.fetchOptions)==null?void 0:S.meta}),ee(this,it,Ry({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,onCancel:Q=>{Q instanceof Ef&&Q.revert&&this.setState({...C(this,fr),fetchStatus:"idle"}),s.abort()},onFail:(Q,H)=>{ye(this,hn,Zn).call(this,{type:"failed",failureCount:Q,error:H})},onPause:()=>{ye(this,hn,Zn).call(this,{type:"pause"})},onContinue:()=>{ye(this,hn,Zn).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}));try{const Q=await C(this,it).start();if(Q===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Q),(R=(N=C(this,an).config).onSuccess)==null||R.call(N,Q,this),(z=(_=C(this,an).config).onSettled)==null||z.call(_,Q,this.state.error,this),Q}catch(Q){if(Q instanceof Ef){if(Q.silent)return C(this,it).promise;if(Q.revert){if(this.state.data===void 0)throw Q;return this.state.data}}throw ye(this,hn,Zn).call(this,{type:"error",error:Q}),(U=(O=C(this,an).config).onError)==null||U.call(O,Q,this),(B=(V=C(this,an).config).onSettled)==null||B.call(V,this.state.data,Q,this),Q}finally{this.scheduleGc()}}},da=new WeakMap,fr=new WeakMap,an=new WeakMap,ha=new WeakMap,it=new WeakMap,qi=new WeakMap,ma=new WeakMap,hn=new WeakSet,Zn=function(r){const i=s=>{switch(r.type){case"failed":return{...s,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...My(s.data,this.options),fetchMeta:r.meta??null};case"success":const c={...s,data:r.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,fr,r.manual?c:void 0),c;case"error":const f=r.error;return{...s,error:f,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...r.state}}};this.state=i(this.state),lt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),C(this,an).notify({query:this,type:"updated",action:r})})},hy);function My(l,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ay(r.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function zg(l){const r=typeof l.initialData=="function"?l.initialData():l.initialData,i=r!==void 0,s=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Dt,Ee,ji,xt,pa,dr,Jn,_l,Hi,hr,mr,ga,ya,Ul,pr,Me,Ai,Tf,Cf,Af,Rf,Of,Mf,zf,zy,my,c1=(my=class extends Sr{constructor(r,i){super();se(this,Me);se(this,Dt);se(this,Ee);se(this,ji);se(this,xt);se(this,pa);se(this,dr);se(this,Jn);se(this,_l);se(this,Hi);se(this,hr);se(this,mr);se(this,ga);se(this,ya);se(this,Ul);se(this,pr,new Set);this.options=i,ee(this,Dt,r),ee(this,_l,null),ee(this,Jn,wf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,Ee).addObserver(this),Dg(C(this,Ee),this.options)?ye(this,Me,Ai).call(this):this.updateResult(),ye(this,Me,Rf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Df(C(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Df(C(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,Me,Of).call(this),ye(this,Me,Mf).call(this),C(this,Ee).removeObserver(this)}setOptions(r){const i=this.options,s=C(this,Ee);if(this.options=C(this,Dt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rn(this.options.enabled,C(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ye(this,Me,zf).call(this),C(this,Ee).setOptions(this.options),i._defaulted&&!xu(this.options,i)&&C(this,Dt).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,Ee),observer:this});const c=this.hasListeners();c&&_g(C(this,Ee),s,this.options,i)&&ye(this,Me,Ai).call(this),this.updateResult(),c&&(C(this,Ee)!==s||rn(this.options.enabled,C(this,Ee))!==rn(i.enabled,C(this,Ee))||Bl(this.options.staleTime,C(this,Ee))!==Bl(i.staleTime,C(this,Ee)))&&ye(this,Me,Tf).call(this);const f=ye(this,Me,Cf).call(this);c&&(C(this,Ee)!==s||rn(this.options.enabled,C(this,Ee))!==rn(i.enabled,C(this,Ee))||f!==C(this,Ul))&&ye(this,Me,Af).call(this,f)}getOptimisticResult(r){const i=C(this,Dt).getQueryCache().build(C(this,Dt),r),s=this.createResult(i,r);return d1(this,s)&&(ee(this,xt,s),ee(this,dr,this.options),ee(this,pa,C(this,Ee).state)),s}getCurrentResult(){return C(this,xt)}trackResult(r,i){return new Proxy(r,{get:(s,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&!this.options.experimental_prefetchInRender&&C(this,Jn).status==="pending"&&C(this,Jn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,c))})}trackProp(r){C(this,pr).add(r)}getCurrentQuery(){return C(this,Ee)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=C(this,Dt).defaultQueryOptions(r),s=C(this,Dt).getQueryCache().build(C(this,Dt),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(r){return ye(this,Me,Ai).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,xt)))}createResult(r,i){var I;const s=C(this,Ee),c=this.options,f=C(this,xt),d=C(this,pa),h=C(this,dr),g=r!==s?r.state:C(this,ji),{state:x}=r;let S={...x},N=!1,R;if(i._optimisticResults){const $=this.hasListeners(),oe=!$&&Dg(r,i),ie=$&&_g(r,s,i,c);(oe||ie)&&(S={...S,...My(x.data,r.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:_,errorUpdatedAt:z,status:O}=S;R=S.data;let U=!1;if(i.placeholderData!==void 0&&R===void 0&&O==="pending"){let $;f!=null&&f.isPlaceholderData&&i.placeholderData===(h==null?void 0:h.placeholderData)?($=f.data,U=!0):$=typeof i.placeholderData=="function"?i.placeholderData((I=C(this,mr))==null?void 0:I.state.data,C(this,mr)):i.placeholderData,$!==void 0&&(O="success",R=Nf(f==null?void 0:f.data,$,i),N=!0)}if(i.select&&R!==void 0&&!U)if(f&&R===(d==null?void 0:d.data)&&i.select===C(this,Hi))R=C(this,hr);else try{ee(this,Hi,i.select),R=i.select(R),R=Nf(f==null?void 0:f.data,R,i),ee(this,hr,R),ee(this,_l,null)}catch($){ee(this,_l,$)}C(this,_l)&&(_=C(this,_l),R=C(this,hr),z=Date.now(),O="error");const V=S.fetchStatus==="fetching",B=O==="pending",Q=O==="error",H=B&&V,k=R!==void 0,F={status:O,fetchStatus:S.fetchStatus,isPending:B,isSuccess:O==="success",isError:Q,isInitialLoading:H,isLoading:H,data:R,dataUpdatedAt:S.dataUpdatedAt,error:_,errorUpdatedAt:z,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>g.dataUpdateCount||S.errorUpdateCount>g.errorUpdateCount,isFetching:V,isRefetching:V&&!B,isLoadingError:Q&&!k,isPaused:S.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:Q&&k,isStale:Jf(r,i),refetch:this.refetch,promise:C(this,Jn),isEnabled:rn(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const $=qe=>{F.status==="error"?qe.reject(F.error):F.data!==void 0&&qe.resolve(F.data)},oe=()=>{const qe=ee(this,Jn,F.promise=wf());$(qe)},ie=C(this,Jn);switch(ie.status){case"pending":r.queryHash===s.queryHash&&$(ie);break;case"fulfilled":(F.status==="error"||F.data!==ie.value)&&oe();break;case"rejected":(F.status!=="error"||F.error!==ie.reason)&&oe();break}}return F}updateResult(){const r=C(this,xt),i=this.createResult(C(this,Ee),this.options);if(ee(this,pa,C(this,Ee).state),ee(this,dr,this.options),C(this,pa).data!==void 0&&ee(this,mr,C(this,Ee)),xu(i,r))return;ee(this,xt,i);const s=()=>{if(!r)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!C(this,pr).size)return!0;const d=new Set(f??C(this,pr));return this.options.throwOnError&&d.add("error"),Object.keys(C(this,xt)).some(h=>{const y=h;return C(this,xt)[y]!==r[y]&&d.has(y)})};ye(this,Me,zy).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,Me,Rf).call(this)}},Dt=new WeakMap,Ee=new WeakMap,ji=new WeakMap,xt=new WeakMap,pa=new WeakMap,dr=new WeakMap,Jn=new WeakMap,_l=new WeakMap,Hi=new WeakMap,hr=new WeakMap,mr=new WeakMap,ga=new WeakMap,ya=new WeakMap,Ul=new WeakMap,pr=new WeakMap,Me=new WeakSet,Ai=function(r){ye(this,Me,zf).call(this);let i=C(this,Ee).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(Nt)),i},Tf=function(){ye(this,Me,Of).call(this);const r=Bl(this.options.staleTime,C(this,Ee));if(ba||C(this,xt).isStale||!xf(r))return;const s=wy(C(this,xt).dataUpdatedAt,r)+1;ee(this,ga,oa.setTimeout(()=>{C(this,xt).isStale||this.updateResult()},s))},Cf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,Ee)):this.options.refetchInterval)??!1},Af=function(r){ye(this,Me,Mf).call(this),ee(this,Ul,r),!(ba||rn(this.options.enabled,C(this,Ee))===!1||!xf(C(this,Ul))||C(this,Ul)===0)&&ee(this,ya,oa.setInterval(()=>{(this.options.refetchIntervalInBackground||Zf.isFocused())&&ye(this,Me,Ai).call(this)},C(this,Ul)))},Rf=function(){ye(this,Me,Tf).call(this),ye(this,Me,Af).call(this,ye(this,Me,Cf).call(this))},Of=function(){C(this,ga)&&(oa.clearTimeout(C(this,ga)),ee(this,ga,void 0))},Mf=function(){C(this,ya)&&(oa.clearInterval(C(this,ya)),ee(this,ya,void 0))},zf=function(){const r=C(this,Dt).getQueryCache().build(C(this,Dt),this.options);if(r===C(this,Ee))return;const i=C(this,Ee);ee(this,Ee,r),ee(this,ji,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},zy=function(r){lt.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(C(this,xt))}),C(this,Dt).getQueryCache().notify({query:C(this,Ee),type:"observerResultsUpdated"})})},my);function f1(l,r){return rn(r.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&r.retryOnMount===!1)}function Dg(l,r){return f1(l,r)||l.state.data!==void 0&&Df(l,r,r.refetchOnMount)}function Df(l,r,i){if(rn(r.enabled,l)!==!1&&Bl(r.staleTime,l)!=="static"){const s=typeof i=="function"?i(l):i;return s==="always"||s!==!1&&Jf(l,r)}return!1}function _g(l,r,i,s){return(l!==r||rn(s.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Jf(l,i)}function Jf(l,r){return rn(r.enabled,l)!==!1&&l.isStaleByTime(Bl(r.staleTime,l))}function d1(l,r){return!xu(l.getCurrentResult(),r)}function Ug(l){return{onFetch:(r,i)=>{var x,S,N,R,_;const s=r.options,c=(N=(S=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:S.fetchMore)==null?void 0:N.direction,f=((R=r.state.data)==null?void 0:R.pages)||[],d=((_=r.state.data)==null?void 0:_.pageParams)||[];let h={pages:[],pageParams:[]},y=0;const g=async()=>{let z=!1;const O=B=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>(r.signal.aborted?z=!0:r.signal.addEventListener("abort",()=>{z=!0}),r.signal)})},U=Ty(r.options,r.fetchOptions),V=async(B,Q,H)=>{if(z)return Promise.reject();if(Q==null&&B.pages.length)return Promise.resolve(B);const K=(()=>{const oe={client:r.client,queryKey:r.queryKey,pageParam:Q,direction:H?"backward":"forward",meta:r.options.meta};return O(oe),oe})(),F=await U(K),{maxPages:I}=r.options,$=H?l1:n1;return{pages:$(B.pages,F,I),pageParams:$(B.pageParams,Q,I)}};if(c&&f.length){const B=c==="backward",Q=B?h1:Lg,H={pages:f,pageParams:d},k=Q(s,H);h=await V(H,k,B)}else{const B=l??f.length;do{const Q=y===0?d[0]??s.initialPageParam:Lg(s,h);if(y>0&&Q==null)break;h=await V(h,Q),y++}while(y<B)}return h};r.options.persister?r.fetchFn=()=>{var z,O;return(O=(z=r.options).persister)==null?void 0:O.call(z,g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=g}}}function Lg(l,{pages:r,pageParams:i}){const s=r.length-1;return r.length>0?l.getNextPageParam(r[s],r,i[s],i):void 0}function h1(l,{pages:r,pageParams:i}){var s;return r.length>0?(s=l.getPreviousPageParam)==null?void 0:s.call(l,r[0],r,i[0],i):void 0}var Bi,Nn,St,va,wn,Rl,py,m1=(py=class extends Oy{constructor(r){super();se(this,wn);se(this,Bi);se(this,Nn);se(this,St);se(this,va);ee(this,Bi,r.client),this.mutationId=r.mutationId,ee(this,St,r.mutationCache),ee(this,Nn,[]),this.state=r.state||Dy(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){C(this,Nn).includes(r)||(C(this,Nn).push(r),this.clearGcTimeout(),C(this,St).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){ee(this,Nn,C(this,Nn).filter(i=>i!==r)),this.scheduleGc(),C(this,St).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){C(this,Nn).length||(this.state.status==="pending"?this.scheduleGc():C(this,St).remove(this))}continue(){var r;return((r=C(this,va))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var d,h,y,g,x,S,N,R,_,z,O,U,V,B,Q,H,k,K,F,I;const i=()=>{ye(this,wn,Rl).call(this,{type:"continue"})},s={client:C(this,Bi),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,va,Ry({fn:()=>this.options.mutationFn?this.options.mutationFn(r,s):Promise.reject(new Error("No mutationFn found")),onFail:($,oe)=>{ye(this,wn,Rl).call(this,{type:"failed",failureCount:$,error:oe})},onPause:()=>{ye(this,wn,Rl).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,St).canRun(this)}));const c=this.state.status==="pending",f=!C(this,va).canStart();try{if(c)i();else{ye(this,wn,Rl).call(this,{type:"pending",variables:r,isPaused:f}),await((h=(d=C(this,St).config).onMutate)==null?void 0:h.call(d,r,this,s));const oe=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,r,s));oe!==this.state.context&&ye(this,wn,Rl).call(this,{type:"pending",context:oe,variables:r,isPaused:f})}const $=await C(this,va).start();return await((S=(x=C(this,St).config).onSuccess)==null?void 0:S.call(x,$,r,this.state.context,this,s)),await((R=(N=this.options).onSuccess)==null?void 0:R.call(N,$,r,this.state.context,s)),await((z=(_=C(this,St).config).onSettled)==null?void 0:z.call(_,$,null,this.state.variables,this.state.context,this,s)),await((U=(O=this.options).onSettled)==null?void 0:U.call(O,$,null,r,this.state.context,s)),ye(this,wn,Rl).call(this,{type:"success",data:$}),$}catch($){try{throw await((B=(V=C(this,St).config).onError)==null?void 0:B.call(V,$,r,this.state.context,this,s)),await((H=(Q=this.options).onError)==null?void 0:H.call(Q,$,r,this.state.context,s)),await((K=(k=C(this,St).config).onSettled)==null?void 0:K.call(k,void 0,$,this.state.variables,this.state.context,this,s)),await((I=(F=this.options).onSettled)==null?void 0:I.call(F,void 0,$,r,this.state.context,s)),$}finally{ye(this,wn,Rl).call(this,{type:"error",error:$})}}finally{C(this,St).runNext(this)}}},Bi=new WeakMap,Nn=new WeakMap,St=new WeakMap,va=new WeakMap,wn=new WeakSet,Rl=function(r){const i=s=>{switch(r.type){case"failed":return{...s,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...s,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:r.error,failureCount:s.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),lt.batch(()=>{C(this,Nn).forEach(s=>{s.onMutationUpdate(r)}),C(this,St).notify({mutation:this,type:"updated",action:r})})},py);function Dy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $n,mn,ki,gy,p1=(gy=class extends Sr{constructor(r={}){super();se(this,$n);se(this,mn);se(this,ki);this.config=r,ee(this,$n,new Set),ee(this,mn,new Map),ee(this,ki,0)}build(r,i,s){const c=new m1({client:r,mutationCache:this,mutationId:++cu(this,ki)._,options:r.defaultMutationOptions(i),state:s});return this.add(c),c}add(r){C(this,$n).add(r);const i=fu(r);if(typeof i=="string"){const s=C(this,mn).get(i);s?s.push(r):C(this,mn).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(C(this,$n).delete(r)){const i=fu(r);if(typeof i=="string"){const s=C(this,mn).get(i);if(s)if(s.length>1){const c=s.indexOf(r);c!==-1&&s.splice(c,1)}else s[0]===r&&C(this,mn).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=fu(r);if(typeof i=="string"){const s=C(this,mn).get(i),c=s==null?void 0:s.find(f=>f.state.status==="pending");return!c||c===r}else return!0}runNext(r){var s;const i=fu(r);if(typeof i=="string"){const c=(s=C(this,mn).get(i))==null?void 0:s.find(f=>f!==r&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){lt.batch(()=>{C(this,$n).forEach(r=>{this.notify({type:"removed",mutation:r})}),C(this,$n).clear(),C(this,mn).clear()})}getAll(){return Array.from(C(this,$n))}find(r){const i={exact:!0,...r};return this.getAll().find(s=>Rg(i,s))}findAll(r={}){return this.getAll().filter(i=>Rg(r,i))}notify(r){lt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return lt.batch(()=>Promise.all(r.map(i=>i.continue().catch(Nt))))}},$n=new WeakMap,mn=new WeakMap,ki=new WeakMap,gy);function fu(l){var r;return(r=l.options.scope)==null?void 0:r.id}var Fn,Ll,_t,Wn,Pn,yu,_f,yy,g1=(yy=class extends Sr{constructor(i,s){super();se(this,Pn);se(this,Fn);se(this,Ll);se(this,_t);se(this,Wn);ee(this,Fn,i),this.setOptions(s),this.bindMethods(),ye(this,Pn,yu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const s=this.options;this.options=C(this,Fn).defaultMutationOptions(i),xu(this.options,s)||C(this,Fn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,_t),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&xa(s.mutationKey)!==xa(this.options.mutationKey)?this.reset():((c=C(this,_t))==null?void 0:c.state.status)==="pending"&&C(this,_t).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=C(this,_t))==null||i.removeObserver(this)}onMutationUpdate(i){ye(this,Pn,yu).call(this),ye(this,Pn,_f).call(this,i)}getCurrentResult(){return C(this,Ll)}reset(){var i;(i=C(this,_t))==null||i.removeObserver(this),ee(this,_t,void 0),ye(this,Pn,yu).call(this),ye(this,Pn,_f).call(this)}mutate(i,s){var c;return ee(this,Wn,s),(c=C(this,_t))==null||c.removeObserver(this),ee(this,_t,C(this,Fn).getMutationCache().build(C(this,Fn),this.options)),C(this,_t).addObserver(this),C(this,_t).execute(i)}},Fn=new WeakMap,Ll=new WeakMap,_t=new WeakMap,Wn=new WeakMap,Pn=new WeakSet,yu=function(){var s;const i=((s=C(this,_t))==null?void 0:s.state)??Dy();ee(this,Ll,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},_f=function(i){lt.batch(()=>{var s,c,f,d,h,y,g,x;if(C(this,Wn)&&this.hasListeners()){const S=C(this,Ll).variables,N=C(this,Ll).context,R={client:C(this,Fn),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((c=(s=C(this,Wn)).onSuccess)==null||c.call(s,i.data,S,N,R),(d=(f=C(this,Wn)).onSettled)==null||d.call(f,i.data,null,S,N,R)):(i==null?void 0:i.type)==="error"&&((y=(h=C(this,Wn)).onError)==null||y.call(h,i.error,S,N,R),(x=(g=C(this,Wn)).onSettled)==null||x.call(g,void 0,i.error,S,N,R))}this.listeners.forEach(S=>{S(C(this,Ll))})})},yy),En,vy,y1=(vy=class extends Sr{constructor(r={}){super();se(this,En);this.config=r,ee(this,En,new Map)}build(r,i,s){const c=i.queryKey,f=i.queryHash??Xf(c,i);let d=this.get(f);return d||(d=new o1({client:r,queryKey:c,queryHash:f,options:r.defaultQueryOptions(i),state:s,defaultOptions:r.getQueryDefaults(c)}),this.add(d)),d}add(r){C(this,En).has(r.queryHash)||(C(this,En).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=C(this,En).get(r.queryHash);i&&(r.destroy(),i===r&&C(this,En).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){lt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return C(this,En).get(r)}getAll(){return[...C(this,En).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(s=>Ag(i,s))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(s=>Ag(r,s)):i}notify(r){lt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){lt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){lt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},En=new WeakMap,vy),Je,ql,jl,gr,yr,Hl,vr,br,by,v1=(by=class{constructor(l={}){se(this,Je);se(this,ql);se(this,jl);se(this,gr);se(this,yr);se(this,Hl);se(this,vr);se(this,br);ee(this,Je,l.queryCache||new y1),ee(this,ql,l.mutationCache||new p1),ee(this,jl,l.defaultOptions||{}),ee(this,gr,new Map),ee(this,yr,new Map),ee(this,Hl,0)}mount(){cu(this,Hl)._++,C(this,Hl)===1&&(ee(this,vr,Zf.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Je).onFocus())})),ee(this,br,Su.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Je).onOnline())})))}unmount(){var l,r;cu(this,Hl)._--,C(this,Hl)===0&&((l=C(this,vr))==null||l.call(this),ee(this,vr,void 0),(r=C(this,br))==null||r.call(this),ee(this,br,void 0))}isFetching(l){return C(this,Je).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return C(this,ql).findAll({...l,status:"pending"}).length}getQueryData(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=C(this,Je).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(l){const r=this.defaultQueryOptions(l),i=C(this,Je).build(this,r),s=i.state.data;return s===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(Bl(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(s))}getQueriesData(l){return C(this,Je).findAll(l).map(({queryKey:r,state:i})=>{const s=i.data;return[r,s]})}setQueryData(l,r,i){const s=this.defaultQueryOptions({queryKey:l}),c=C(this,Je).get(s.queryHash),f=c==null?void 0:c.state.data,d=Px(r,f);if(d!==void 0)return C(this,Je).build(this,s).setData(d,{...i,manual:!0})}setQueriesData(l,r,i){return lt.batch(()=>C(this,Je).findAll(l).map(({queryKey:s})=>[s,this.setQueryData(s,r,i)]))}getQueryState(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=C(this,Je).get(r.queryHash))==null?void 0:i.state}removeQueries(l){const r=C(this,Je);lt.batch(()=>{r.findAll(l).forEach(i=>{r.remove(i)})})}resetQueries(l,r){const i=C(this,Je);return lt.batch(()=>(i.findAll(l).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...l},r)))}cancelQueries(l,r={}){const i={revert:!0,...r},s=lt.batch(()=>C(this,Je).findAll(l).map(c=>c.cancel(i)));return Promise.all(s).then(Nt).catch(Nt)}invalidateQueries(l,r={}){return lt.batch(()=>(C(this,Je).findAll(l).forEach(i=>{i.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},r)))}refetchQueries(l,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},s=lt.batch(()=>C(this,Je).findAll(l).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(Nt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(Nt)}fetchQuery(l){const r=this.defaultQueryOptions(l);r.retry===void 0&&(r.retry=!1);const i=C(this,Je).build(this,r);return i.isStaleByTime(Bl(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(Nt).catch(Nt)}fetchInfiniteQuery(l){return l.behavior=Ug(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(Nt).catch(Nt)}ensureInfiniteQueryData(l){return l.behavior=Ug(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Su.isOnline()?C(this,ql).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Je)}getMutationCache(){return C(this,ql)}getDefaultOptions(){return C(this,jl)}setDefaultOptions(l){ee(this,jl,l)}setQueryDefaults(l,r){C(this,gr).set(xa(l),{queryKey:l,defaultOptions:r})}getQueryDefaults(l){const r=[...C(this,gr).values()],i={};return r.forEach(s=>{Di(l,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(l,r){C(this,yr).set(xa(l),{mutationKey:l,defaultOptions:r})}getMutationDefaults(l){const r=[...C(this,yr).values()],i={};return r.forEach(s=>{Di(l,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const r={...C(this,jl).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return r.queryHash||(r.queryHash=Xf(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Kf&&(r.enabled=!1),r}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...C(this,jl).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){C(this,Je).clear(),C(this,ql).clear()}},Je=new WeakMap,ql=new WeakMap,jl=new WeakMap,gr=new WeakMap,yr=new WeakMap,Hl=new WeakMap,vr=new WeakMap,br=new WeakMap,by),_y=v.createContext(void 0),Nr=l=>{const r=v.useContext(_y);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},b1=({client:l,children:r})=>(v.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),p(_y.Provider,{value:l,children:r})),Uy=v.createContext(!1),x1=()=>v.useContext(Uy);Uy.Provider;function S1(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var N1=v.createContext(S1()),w1=()=>v.useContext(N1),E1=(l,r)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(r.isReset()||(l.retryOnMount=!1))},T1=l=>{v.useEffect(()=>{l.clearReset()},[l])},C1=({result:l,errorResetBoundary:r,throwOnError:i,query:s,suspense:c})=>l.isError&&!r.isReset()&&!l.isFetching&&s&&(c&&l.data===void 0||Cy(i,[l.error,s])),A1=l=>{if(l.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=l.staleTime;l.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},R1=(l,r)=>l.isLoading&&l.isFetching&&!r,O1=(l,r)=>(l==null?void 0:l.suspense)&&r.isPending,qg=(l,r,i)=>r.fetchOptimistic(l).catch(()=>{i.clearReset()});function M1(l,r,i){var S,N,R,_,z;const s=x1(),c=w1(),f=Nr(),d=f.defaultQueryOptions(l);(N=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||N.call(S,d),d._optimisticResults=s?"isRestoring":"optimistic",A1(d),E1(d,c),T1(c);const h=!f.getQueryCache().get(d.queryHash),[y]=v.useState(()=>new r(f,d)),g=y.getOptimisticResult(d),x=!s&&l.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(O=>{const U=x?y.subscribe(lt.batchCalls(O)):Nt;return y.updateResult(),U},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),v.useEffect(()=>{y.setOptions(d)},[d,y]),O1(d,g))throw qg(d,y,c);if(C1({result:g,errorResetBoundary:c,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw g.error;if((_=(R=f.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||_.call(R,d,g),d.experimental_prefetchInRender&&!ba&&R1(g,s)){const O=h?qg(d,y,c):(z=f.getQueryCache().get(d.queryHash))==null?void 0:z.promise;O==null||O.catch(Nt).finally(()=>{y.updateResult()})}return d.notifyOnChangeProps?g:y.trackResult(g)}function Ql(l,r){return M1(l,c1)}function Ru(l,r){const i=Nr(),[s]=v.useState(()=>new g1(i,l));v.useEffect(()=>{s.setOptions(l)},[s,l]);const c=v.useSyncExternalStore(v.useCallback(d=>s.subscribe(lt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=v.useCallback((d,h)=>{s.mutate(d,h).catch(Nt)},[s]);if(c.error&&Cy(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}/**
50
+ * react-router v7.9.4
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var jg="popstate";function z1(l={}){function r(s,c){let{pathname:f,search:d,hash:h}=s.location;return Uf("",{pathname:f,search:d,hash:h},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function i(s,c){return typeof c=="string"?c:_i(c)}return _1(r,i,null,l)}function Ve(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function pn(l,r){if(!l){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function D1(){return Math.random().toString(36).substring(2,10)}function Hg(l,r){return{usr:l.state,key:l.key,idx:r}}function Uf(l,r,i=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof r=="string"?wr(r):r,state:i,key:r&&r.key||s||D1()}}function _i({pathname:l="/",search:r="",hash:i=""}){return r&&r!=="?"&&(l+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function wr(l){let r={};if(l){let i=l.indexOf("#");i>=0&&(r.hash=l.substring(i),l=l.substring(0,i));let s=l.indexOf("?");s>=0&&(r.search=l.substring(s),l=l.substring(0,s)),l&&(r.pathname=l)}return r}function _1(l,r,i,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,h="POP",y=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function S(){h="POP";let O=x(),U=O==null?null:O-g;g=O,y&&y({action:h,location:z.location,delta:U})}function N(O,U){h="PUSH";let V=Uf(z.location,O,U);g=x()+1;let B=Hg(V,g),Q=z.createHref(V);try{d.pushState(B,"",Q)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;c.location.assign(Q)}f&&y&&y({action:h,location:z.location,delta:1})}function R(O,U){h="REPLACE";let V=Uf(z.location,O,U);g=x();let B=Hg(V,g),Q=z.createHref(V);d.replaceState(B,"",Q),f&&y&&y({action:h,location:z.location,delta:0})}function _(O){return U1(O)}let z={get action(){return h},get location(){return l(c,d)},listen(O){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(jg,S),y=O,()=>{c.removeEventListener(jg,S),y=null}},createHref(O){return r(c,O)},createURL:_,encodeLocation(O){let U=_(O);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:N,replace:R,go(O){return d.go(O)}};return z}function U1(l,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(i,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:_i(l);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Ly(l,r,i="/"){return L1(l,r,i,!1)}function L1(l,r,i,s){let c=typeof r=="string"?wr(r):r,f=el(c.pathname||"/",i);if(f==null)return null;let d=qy(l);q1(d);let h=null;for(let y=0;h==null&&y<d.length;++y){let g=Z1(f);h=X1(d[y],g,s)}return h}function qy(l,r=[],i=[],s="",c=!1){let f=(d,h,y=c,g)=>{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&y)return;Ve(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let S=In([s,x.relativePath]),N=i.concat(x);d.children&&d.children.length>0&&(Ve(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),qy(d.children,r,N,S,y)),!(d.path==null&&!d.index)&&r.push({path:S,score:Y1(S,d.index),routesMeta:N})};return l.forEach((d,h)=>{var y;if(d.path===""||!((y=d.path)!=null&&y.includes("?")))f(d,h);else for(let g of jy(d.path))f(d,h,!0,g)}),r}function jy(l){let r=l.split("/");if(r.length===0)return[];let[i,...s]=r,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=jy(s.join("/")),h=[];return h.push(...d.map(y=>y===""?f:[f,y].join("/"))),c&&h.push(...d),h.map(y=>l.startsWith("/")&&y===""?"/":y)}function q1(l){l.sort((r,i)=>r.score!==i.score?i.score-r.score:V1(r.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var j1=/^:[\w-]+$/,H1=3,B1=2,k1=1,Q1=10,G1=-2,Bg=l=>l==="*";function Y1(l,r){let i=l.split("/"),s=i.length;return i.some(Bg)&&(s+=G1),r&&(s+=B1),i.filter(c=>!Bg(c)).reduce((c,f)=>c+(j1.test(f)?H1:f===""?k1:Q1),s)}function V1(l,r){return l.length===r.length&&l.slice(0,-1).every((s,c)=>s===r[c])?l[l.length-1]-r[r.length-1]:0}function X1(l,r,i=!1){let{routesMeta:s}=l,c={},f="/",d=[];for(let h=0;h<s.length;++h){let y=s[h],g=h===s.length-1,x=f==="/"?r:r.slice(f.length)||"/",S=Nu({path:y.relativePath,caseSensitive:y.caseSensitive,end:g},x),N=y.route;if(!S&&g&&i&&!s[s.length-1].route.index&&(S=Nu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!S)return null;Object.assign(c,S.params),d.push({params:c,pathname:In([f,S.pathname]),pathnameBase:W1(In([f,S.pathnameBase])),route:N}),S.pathnameBase!=="/"&&(f=In([f,S.pathnameBase]))}return d}function Nu(l,r){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,s]=K1(l.path,l.caseSensitive,l.end),c=r.match(i);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:s.reduce((g,{paramName:x,isOptional:S},N)=>{if(x==="*"){let _=h[N]||"";d=f.slice(0,f.length-_.length).replace(/(.)\/+$/,"$1")}const R=h[N];return S&&!R?g[x]=void 0:g[x]=(R||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:d,pattern:l}}function K1(l,r=!1,i=!0){pn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,y)=>(s.push({paramName:h,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function Z1(l){try{return l.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return pn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),l}}function el(l,r){if(r==="/")return l;if(!l.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,s=l.charAt(i);return s&&s!=="/"?null:l.slice(i)||"/"}function J1(l,r="/"){let{pathname:i,search:s="",hash:c=""}=typeof l=="string"?wr(l):l;return{pathname:i?i.startsWith("/")?i:$1(i,r):r,search:I1(s),hash:P1(c)}}function $1(l,r){let i=r.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function df(l,r,i,s){return`Cannot include a '${l}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function F1(l){return l.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function $f(l){let r=F1(l);return r.map((i,s)=>s===r.length-1?i.pathname:i.pathnameBase)}function Ff(l,r,i,s=!1){let c;typeof l=="string"?c=wr(l):(c={...l},Ve(!c.pathname||!c.pathname.includes("?"),df("?","pathname","search",c)),Ve(!c.pathname||!c.pathname.includes("#"),df("#","pathname","hash",c)),Ve(!c.search||!c.search.includes("#"),df("#","search","hash",c)));let f=l===""||c.pathname==="",d=f?"/":c.pathname,h;if(d==null)h=i;else{let S=r.length-1;if(!s&&d.startsWith("..")){let N=d.split("/");for(;N[0]==="..";)N.shift(),S-=1;c.pathname=N.join("/")}h=S>=0?r[S]:"/"}let y=J1(c,h),g=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&i.endsWith("/");return!y.pathname.endsWith("/")&&(g||x)&&(y.pathname+="/"),y}var In=l=>l.join("/").replace(/\/\/+/g,"/"),W1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),I1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,P1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function eS(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Hy=["POST","PUT","PATCH","DELETE"];new Set(Hy);var tS=["GET",...Hy];new Set(tS);var Er=v.createContext(null);Er.displayName="DataRouter";var Ou=v.createContext(null);Ou.displayName="DataRouterState";v.createContext(!1);var By=v.createContext({isTransitioning:!1});By.displayName="ViewTransition";var nS=v.createContext(new Map);nS.displayName="Fetchers";var lS=v.createContext(null);lS.displayName="Await";var gn=v.createContext(null);gn.displayName="Navigation";var Qi=v.createContext(null);Qi.displayName="Location";var un=v.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var Wf=v.createContext(null);Wf.displayName="RouteError";function aS(l,{relative:r}={}){Ve(Tr(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=v.useContext(gn),{hash:c,pathname:f,search:d}=Yi(l,{relative:r}),h=f;return i!=="/"&&(h=f==="/"?i:In([i,f])),s.createHref({pathname:h,search:d,hash:c})}function Tr(){return v.useContext(Qi)!=null}function Gl(){return Ve(Tr(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Qi).location}var ky="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qy(l){v.useContext(gn).static||v.useLayoutEffect(l)}function Gi(){let{isDataRoute:l}=v.useContext(un);return l?bS():rS()}function rS(){Ve(Tr(),"useNavigate() may be used only in the context of a <Router> component.");let l=v.useContext(Er),{basename:r,navigator:i}=v.useContext(gn),{matches:s}=v.useContext(un),{pathname:c}=Gl(),f=JSON.stringify($f(s)),d=v.useRef(!1);return Qy(()=>{d.current=!0}),v.useCallback((y,g={})=>{if(pn(d.current,ky),!d.current)return;if(typeof y=="number"){i.go(y);return}let x=Ff(y,JSON.parse(f),c,g.relative==="path");l==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:In([r,x.pathname])),(g.replace?i.replace:i.push)(x,g.state,g)},[r,i,f,c,l])}var iS=v.createContext(null);function sS(l){let r=v.useContext(un).outlet;return v.useMemo(()=>r&&v.createElement(iS.Provider,{value:l},r),[r,l])}function If(){let{matches:l}=v.useContext(un),r=l[l.length-1];return r?r.params:{}}function Yi(l,{relative:r}={}){let{matches:i}=v.useContext(un),{pathname:s}=Gl(),c=JSON.stringify($f(i));return v.useMemo(()=>Ff(l,JSON.parse(c),s,r==="path"),[l,c,s,r])}function uS(l,r){return Gy(l,r)}function Gy(l,r,i,s,c){var V;Ve(Tr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=v.useContext(gn),{matches:d}=v.useContext(un),h=d[d.length-1],y=h?h.params:{},g=h?h.pathname:"/",x=h?h.pathnameBase:"/",S=h&&h.route;{let B=S&&S.path||"";Yy(g,!S||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${B}">) 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.
59
+
60
+ Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let N=Gl(),R;if(r){let B=typeof r=="string"?wr(r):r;Ve(x==="/"||((V=B.pathname)==null?void 0:V.startsWith(x)),`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 "${x}" but pathname "${B.pathname}" was given in the \`location\` prop.`),R=B}else R=N;let _=R.pathname||"/",z=_;if(x!=="/"){let B=x.replace(/^\//,"").split("/");z="/"+_.replace(/^\//,"").split("/").slice(B.length).join("/")}let O=Ly(l,{pathname:z});pn(S||O!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),pn(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.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 U=hS(O&&O.map(B=>Object.assign({},B,{params:Object.assign({},y,B.params),pathname:In([x,f.encodeLocation?f.encodeLocation(B.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?x:In([x,f.encodeLocation?f.encodeLocation(B.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),d,i,s,c);return r&&U?v.createElement(Qi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...R},navigationType:"POP"}},U):U}function oS(){let l=vS(),r=eS(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:f},"ErrorBoundary")," or"," ",v.createElement("code",{style:f},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),i?v.createElement("pre",{style:c},i):null,d)}var cS=v.createElement(oS,null),fS=class extends v.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,r){return r.location!==l.location||r.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:r.error,location:r.location,revalidation:l.revalidation||r.revalidation}}componentDidCatch(l,r){this.props.unstable_onError?this.props.unstable_onError(l,r):console.error("React Router caught the following error during render",l)}render(){return this.state.error!==void 0?v.createElement(un.Provider,{value:this.props.routeContext},v.createElement(Wf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function dS({routeContext:l,match:r,children:i}){let s=v.useContext(Er);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(un.Provider,{value:l},i)}function hS(l,r=[],i=null,s=null,c=null){if(l==null){if(!i)return null;if(i.errors)l=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)l=i.matches;else return null}let f=l,d=i==null?void 0:i.errors;if(d!=null){let g=f.findIndex(x=>x.route.id&&(d==null?void 0:d[x.route.id])!==void 0);Ve(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let h=!1,y=-1;if(i)for(let g=0;g<f.length;g++){let x=f[g];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(y=g),x.route.id){let{loaderData:S,errors:N}=i,R=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!N||N[x.route.id]===void 0);if(x.route.lazy||R){h=!0,y>=0?f=f.slice(0,y+1):f=[f[0]];break}}}return f.reduceRight((g,x,S)=>{let N,R=!1,_=null,z=null;i&&(N=d&&x.route.id?d[x.route.id]:void 0,_=x.route.errorElement||cS,h&&(y<0&&S===0?(Yy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,z=null):y===S&&(R=!0,z=x.route.hydrateFallbackElement||null)));let O=r.concat(f.slice(0,S+1)),U=()=>{let V;return N?V=_:R?V=z:x.route.Component?V=v.createElement(x.route.Component,null):x.route.element?V=x.route.element:V=g,v.createElement(dS,{match:x,routeContext:{outlet:g,matches:O,isDataRoute:i!=null},children:V})};return i&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?v.createElement(fS,{location:i.location,revalidation:i.revalidation,component:_,error:N,children:U(),routeContext:{outlet:null,matches:O,isDataRoute:!0},unstable_onError:s}):U()},null)}function Pf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mS(l){let r=v.useContext(Er);return Ve(r,Pf(l)),r}function pS(l){let r=v.useContext(Ou);return Ve(r,Pf(l)),r}function gS(l){let r=v.useContext(un);return Ve(r,Pf(l)),r}function ed(l){let r=gS(l),i=r.matches[r.matches.length-1];return Ve(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function yS(){return ed("useRouteId")}function vS(){var s;let l=v.useContext(Wf),r=pS("useRouteError"),i=ed("useRouteError");return l!==void 0?l:(s=r.errors)==null?void 0:s[i]}function bS(){let{router:l}=mS("useNavigate"),r=ed("useNavigate"),i=v.useRef(!1);return Qy(()=>{i.current=!0}),v.useCallback(async(c,f={})=>{pn(i.current,ky),i.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:r,...f}))},[l,r])}var kg={};function Yy(l,r,i){!r&&!kg[l]&&(kg[l]=!0,pn(!1,i))}v.memo(xS);function xS({routes:l,future:r,state:i,unstable_onError:s}){return Gy(l,void 0,i,s,r)}function SS({to:l,replace:r,state:i,relative:s}){Ve(Tr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(gn);pn(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=v.useContext(un),{pathname:d}=Gl(),h=Gi(),y=Ff(l,$f(f),d,s==="path"),g=JSON.stringify(y);return v.useEffect(()=>{h(JSON.parse(g),{replace:r,state:i,relative:s})},[h,g,s,r,i]),null}function Vy(l){return sS(l.context)}function Sn(l){Ve(!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 NS({basename:l="/",children:r=null,location:i,navigationType:s="POP",navigator:c,static:f=!1}){Ve(!Tr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),h=v.useMemo(()=>({basename:d,navigator:c,static:f,future:{}}),[d,c,f]);typeof i=="string"&&(i=wr(i));let{pathname:y="/",search:g="",hash:x="",state:S=null,key:N="default"}=i,R=v.useMemo(()=>{let _=el(y,d);return _==null?null:{location:{pathname:_,search:g,hash:x,state:S,key:N},navigationType:s}},[d,y,g,x,S,N,s]);return pn(R!=null,`<Router basename="${d}"> is not able to match the URL "${y}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:v.createElement(gn.Provider,{value:h},v.createElement(Qi.Provider,{children:r,value:R}))}function wS({children:l,location:r}){return uS(Lf(l),r)}function Lf(l,r=[]){let i=[];return v.Children.forEach(l,(s,c)=>{if(!v.isValidElement(s))return;let f=[...r,c];if(s.type===v.Fragment){i.push.apply(i,Lf(s.props.children,f));return}Ve(s.type===Sn,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=Lf(s.props.children,f)),i.push(d)}),i}var vu="get",bu="application/x-www-form-urlencoded";function Mu(l){return l!=null&&typeof l.tagName=="string"}function ES(l){return Mu(l)&&l.tagName.toLowerCase()==="button"}function TS(l){return Mu(l)&&l.tagName.toLowerCase()==="form"}function CS(l){return Mu(l)&&l.tagName.toLowerCase()==="input"}function AS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function RS(l,r){return l.button===0&&(!r||r==="_self")&&!AS(l)}var du=null;function OS(){if(du===null)try{new FormData(document.createElement("form"),0),du=!1}catch{du=!0}return du}var MS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hf(l){return l!=null&&!MS.has(l)?(pn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bu}"`),null):l}function zS(l,r){let i,s,c,f,d;if(TS(l)){let h=l.getAttribute("action");s=h?el(h,r):null,i=l.getAttribute("method")||vu,c=hf(l.getAttribute("enctype"))||bu,f=new FormData(l)}else if(ES(l)||CS(l)&&(l.type==="submit"||l.type==="image")){let h=l.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=l.getAttribute("formaction")||h.getAttribute("action");if(s=y?el(y,r):null,i=l.getAttribute("formmethod")||h.getAttribute("method")||vu,c=hf(l.getAttribute("formenctype"))||hf(h.getAttribute("enctype"))||bu,f=new FormData(h,l),!OS()){let{name:g,type:x,value:S}=l;if(x==="image"){let N=g?`${g}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else g&&f.append(g,S)}}else{if(Mu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=vu,s=null,c=bu,d=l}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:i.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function td(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function DS(l,r,i){let s=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s.pathname==="/"?s.pathname=`_root.${i}`:r&&el(s.pathname,r)==="/"?s.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function _S(l,r){if(l.id in r)return r[l.id];try{let i=await import(l.module);return r[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function US(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function LS(l,r,i){let s=await Promise.all(l.map(async c=>{let f=r.routes[c.route.id];if(f){let d=await _S(f,i);return d.links?d.links():[]}return[]}));return BS(s.flat(1).filter(US).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Qg(l,r,i,s,c,f){let d=(y,g)=>i[g]?y.route.id!==i[g].route.id:!0,h=(y,g)=>{var x;return i[g].pathname!==y.pathname||((x=i[g].route.path)==null?void 0:x.endsWith("*"))&&i[g].params["*"]!==y.params["*"]};return f==="assets"?r.filter((y,g)=>d(y,g)||h(y,g)):f==="data"?r.filter((y,g)=>{var S;let x=s.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(d(y,g)||h(y,g))return!0;if(y.route.shouldRevalidate){let N=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=i[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function qS(l,r,{includeHydrateFallback:i}={}){return jS(l.map(s=>{let c=r.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function jS(l){return[...new Set(l)]}function HS(l){let r={},i=Object.keys(l).sort();for(let s of i)r[s]=l[s];return r}function BS(l,r){let i=new Set;return new Set(r),l.reduce((s,c)=>{let f=JSON.stringify(HS(c));return i.has(f)||(i.add(f),s.push({key:f,link:c})),s},[])}function Xy(){let l=v.useContext(Er);return td(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function kS(){let l=v.useContext(Ou);return td(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var nd=v.createContext(void 0);nd.displayName="FrameworkContext";function Ky(){let l=v.useContext(nd);return td(l,"You must render this element inside a <HydratedRouter> element"),l}function QS(l,r){let i=v.useContext(nd),[s,c]=v.useState(!1),[f,d]=v.useState(!1),{onFocus:h,onBlur:y,onMouseEnter:g,onMouseLeave:x,onTouchStart:S}=r,N=v.useRef(null);v.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let z=U=>{U.forEach(V=>{d(V.isIntersecting)})},O=new IntersectionObserver(z,{threshold:.5});return N.current&&O.observe(N.current),()=>{O.disconnect()}}},[l]),v.useEffect(()=>{if(s){let z=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(z)}}},[s]);let R=()=>{c(!0)},_=()=>{c(!1),d(!1)};return i?l!=="intent"?[f,N,{}]:[f,N,{onFocus:Ei(h,R),onBlur:Ei(y,_),onMouseEnter:Ei(g,R),onMouseLeave:Ei(x,_),onTouchStart:Ei(S,R)}]:[!1,N,{}]}function Ei(l,r){return i=>{l&&l(i),i.defaultPrevented||r(i)}}function GS({page:l,...r}){let{router:i}=Xy(),s=v.useMemo(()=>Ly(i.routes,l,i.basename),[i.routes,l,i.basename]);return s?v.createElement(VS,{page:l,matches:s,...r}):null}function YS(l){let{manifest:r,routeModules:i}=Ky(),[s,c]=v.useState([]);return v.useEffect(()=>{let f=!1;return LS(l,r,i).then(d=>{f||c(d)}),()=>{f=!0}},[l,r,i]),s}function VS({page:l,matches:r,...i}){let s=Gl(),{manifest:c,routeModules:f}=Ky(),{basename:d}=Xy(),{loaderData:h,matches:y}=kS(),g=v.useMemo(()=>Qg(l,r,y,c,s,"data"),[l,r,y,c,s]),x=v.useMemo(()=>Qg(l,r,y,c,s,"assets"),[l,r,y,c,s]),S=v.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let _=new Set,z=!1;if(r.forEach(U=>{var B;let V=c.routes[U.route.id];!V||!V.hasLoader||(!g.some(Q=>Q.route.id===U.route.id)&&U.route.id in h&&((B=f[U.route.id])!=null&&B.shouldRevalidate)||V.hasClientLoader?z=!0:_.add(U.route.id))}),_.size===0)return[];let O=DS(l,d,"data");return z&&_.size>0&&O.searchParams.set("_routes",r.filter(U=>_.has(U.route.id)).map(U=>U.route.id).join(",")),[O.pathname+O.search]},[d,h,s,c,g,r,l,f]),N=v.useMemo(()=>qS(x,c),[x,c]),R=YS(x);return v.createElement(v.Fragment,null,S.map(_=>v.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...i})),N.map(_=>v.createElement("link",{key:_,rel:"modulepreload",href:_,...i})),R.map(({key:_,link:z})=>v.createElement("link",{key:_,nonce:i.nonce,...z})))}function XS(...l){return r=>{l.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var Zy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Zy&&(window.__reactRouterVersion="7.9.4")}catch{}function KS({basename:l,children:r,window:i}){let s=v.useRef();s.current==null&&(s.current=z1({window:i,v5Compat:!0}));let c=s.current,[f,d]=v.useState({action:c.action,location:c.location}),h=v.useCallback(y=>{v.startTransition(()=>d(y))},[d]);return v.useLayoutEffect(()=>c.listen(h),[c,h]),v.createElement(NS,{basename:l,children:r,location:f.location,navigationType:f.action,navigator:c})}var Jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zu=v.forwardRef(function({onClick:r,discover:i="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:h,target:y,to:g,preventScrollReset:x,viewTransition:S,...N},R){let{basename:_}=v.useContext(gn),z=typeof g=="string"&&Jy.test(g),O,U=!1;if(typeof g=="string"&&z&&(O=g,Zy))try{let I=new URL(window.location.href),$=g.startsWith("//")?new URL(I.protocol+g):new URL(g),oe=el($.pathname,_);$.origin===I.origin&&oe!=null?g=oe+$.search+$.hash:U=!0}catch{pn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let V=aS(g,{relative:c}),[B,Q,H]=QS(s,N),k=$S(g,{replace:d,state:h,target:y,preventScrollReset:x,relative:c,viewTransition:S});function K(I){r&&r(I),I.defaultPrevented||k(I)}let F=v.createElement("a",{...N,...H,href:O||V,onClick:U||f?r:K,ref:XS(R,Q),target:y,"data-discover":!z&&i==="render"?"true":void 0});return B&&!z?v.createElement(v.Fragment,null,F,v.createElement(GS,{page:V})):F});zu.displayName="Link";var ua=v.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:h,children:y,...g},x){let S=Yi(d,{relative:g.relative}),N=Gl(),R=v.useContext(Ou),{navigator:_,basename:z}=v.useContext(gn),O=R!=null&&e2(S)&&h===!0,U=_.encodeLocation?_.encodeLocation(S).pathname:S.pathname,V=N.pathname,B=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;i||(V=V.toLowerCase(),B=B?B.toLowerCase():null,U=U.toLowerCase()),B&&z&&(B=el(B,z)||B);const Q=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let H=V===U||!c&&V.startsWith(U)&&V.charAt(Q)==="/",k=B!=null&&(B===U||!c&&B.startsWith(U)&&B.charAt(U.length)==="/"),K={isActive:H,isPending:k,isTransitioning:O},F=H?r:void 0,I;typeof s=="function"?I=s(K):I=[s,H?"active":null,k?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let $=typeof f=="function"?f(K):f;return v.createElement(zu,{...g,"aria-current":F,className:I,ref:x,style:$,to:d,viewTransition:h},typeof y=="function"?y(K):y)});ua.displayName="NavLink";var ZS=v.forwardRef(({discover:l="render",fetcherKey:r,navigate:i,reloadDocument:s,replace:c,state:f,method:d=vu,action:h,onSubmit:y,relative:g,preventScrollReset:x,viewTransition:S,...N},R)=>{let _=IS(),z=PS(h,{relative:g}),O=d.toLowerCase()==="get"?"get":"post",U=typeof h=="string"&&Jy.test(h),V=B=>{if(y&&y(B),B.defaultPrevented)return;B.preventDefault();let Q=B.nativeEvent.submitter,H=(Q==null?void 0:Q.getAttribute("formmethod"))||d;_(Q||B.currentTarget,{fetcherKey:r,method:H,navigate:i,replace:c,state:f,relative:g,preventScrollReset:x,viewTransition:S})};return v.createElement("form",{ref:R,method:O,action:z,onSubmit:s?y:V,...N,"data-discover":!U&&l==="render"?"true":void 0})});ZS.displayName="Form";function JS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $y(l){let r=v.useContext(Er);return Ve(r,JS(l)),r}function $S(l,{target:r,replace:i,state:s,preventScrollReset:c,relative:f,viewTransition:d}={}){let h=Gi(),y=Gl(),g=Yi(l,{relative:f});return v.useCallback(x=>{if(RS(x,r)){x.preventDefault();let S=i!==void 0?i:_i(y)===_i(g);h(l,{replace:S,state:s,preventScrollReset:c,relative:f,viewTransition:d})}},[y,h,g,i,s,r,l,c,f,d])}var FS=0,WS=()=>`__${String(++FS)}__`;function IS(){let{router:l}=$y("useSubmit"),{basename:r}=v.useContext(gn),i=yS();return v.useCallback(async(s,c={})=>{let{action:f,method:d,encType:h,formData:y,body:g}=zS(s,r);if(c.navigate===!1){let x=c.fetcherKey||WS();await l.fetch(x,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||d,formEncType:c.encType||h,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||d,formEncType:c.encType||h,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,r,i])}function PS(l,{relative:r}={}){let{basename:i}=v.useContext(gn),s=v.useContext(un);Ve(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Yi(l||".",{relative:r})},d=Gl();if(l==null){f.search=d.search;let h=new URLSearchParams(f.search),y=h.getAll("index");if(y.some(x=>x==="")){h.delete("index"),y.filter(S=>S).forEach(S=>h.append("index",S));let x=h.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:In([i,f.pathname])),_i(f)}function e2(l,{relative:r}={}){let i=v.useContext(By);Ve(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=$y("useViewTransitionState"),c=Yi(l,{relative:r});if(!i.isTransitioning)return!1;let f=el(i.currentLocation.pathname,s)||i.currentLocation.pathname,d=el(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Nu(c.pathname,d)!=null||Nu(c.pathname,f)!=null}var t2=Ny();/**
61
+ * @license lucide-react v0.468.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const n2=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fy=(...l)=>l.filter((r,i,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===i).join(" ").trim();/**
66
+ * @license lucide-react v0.468.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */var l2={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"};/**
71
+ * @license lucide-react v0.468.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const a2=v.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...h},y)=>v.createElement("svg",{ref:y,...l2,width:r,height:r,stroke:l,strokeWidth:s?Number(i)*24/Number(r):i,className:Fy("lucide",c),...h},[...d.map(([g,x])=>v.createElement(g,x)),...Array.isArray(f)?f:[f]]));/**
76
+ * @license lucide-react v0.468.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const He=(l,r)=>{const i=v.forwardRef(({className:s,...c},f)=>v.createElement(a2,{ref:f,iconNode:r,className:Fy(`lucide-${n2(l)}`,s),...c}));return i.displayName=`${l}`,i};/**
81
+ * @license lucide-react v0.468.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const r2=He("Activity",[["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"}]]);/**
86
+ * @license lucide-react v0.468.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const i2=He("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
91
+ * @license lucide-react v0.468.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const s2=He("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
96
+ * @license lucide-react v0.468.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const u2=He("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
101
+ * @license lucide-react v0.468.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const o2=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
106
+ * @license lucide-react v0.468.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Wy=He("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
111
+ * @license lucide-react v0.468.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Iy=He("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
116
+ * @license lucide-react v0.468.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const wu=He("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
121
+ * @license lucide-react v0.468.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const Gg=He("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
126
+ * @license lucide-react v0.468.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Du=He("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
131
+ * @license lucide-react v0.468.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Py=He("Copy",[["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"}]]);/**
136
+ * @license lucide-react v0.468.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const ld=He("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
141
+ * @license lucide-react v0.468.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const c2=He("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
146
+ * @license lucide-react v0.468.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const ev=He("ExternalLink",[["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"}]]);/**
151
+ * @license lucide-react v0.468.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const f2=He("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
156
+ * @license lucide-react v0.468.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const d2=He("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
161
+ * @license lucide-react v0.468.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const h2=He("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
166
+ * @license lucide-react v0.468.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const m2=He("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
171
+ * @license lucide-react v0.468.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const p2=He("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
176
+ * @license lucide-react v0.468.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const Yg=He("Server",[["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"}]]);/**
181
+ * @license lucide-react v0.468.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const g2=He("Sun",[["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"}]]);/**
186
+ * @license lucide-react v0.468.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const Vg=He("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
191
+ * @license lucide-react v0.468.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const qf=He("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
196
+ * @license lucide-react v0.468.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const tv=He("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
201
+ * @license lucide-react v0.468.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const y2=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
206
+ * @license lucide-react v0.468.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const Cr=He("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);class v2{constructor(r){Xn(this,"ws",null);Xn(this,"url");Xn(this,"reconnectAttempts",0);Xn(this,"maxReconnectAttempts",5);Xn(this,"reconnectDelay",1e3);Xn(this,"messageId",0);Xn(this,"pendingRequests",new Map);Xn(this,"eventHandlers",new Map);if(r)this.url=r;else{const i=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host||"localhost:9500";this.url=`${i}//${s}/ws`}}connect(){return new Promise((r,i)=>{try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("🔌 Connected to Vision Dashboard"),this.reconnectAttempts=0,r()},this.ws.onmessage=s=>{this.handleMessage(s.data)},this.ws.onerror=s=>{console.error("WebSocket error:",s),i(s)},this.ws.onclose=()=>{console.log("🔌 Disconnected from Vision Dashboard"),this.handleReconnect()}}catch(s){i(s)}})}handleMessage(r){try{const i=JSON.parse(r);if("result"in i||"error"in i){const s=i,c=this.pendingRequests.get(s.id);c&&(s.error?c.reject(new Error(s.error.message)):c.resolve(s.result),this.pendingRequests.delete(s.id))}else if("method"in i&&!("id"in i)){const s=i;this.emitEvent(s.method,s.params)}}catch(i){console.error("Failed to parse message:",i)}}handleReconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){this.reconnectAttempts++;const r=this.reconnectDelay*this.reconnectAttempts;console.log(`Reconnecting in ${r}ms (attempt ${this.reconnectAttempts}/${this.maxReconnectAttempts})`),setTimeout(()=>{this.connect().catch(console.error)},r)}}async call(r,i){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("WebSocket is not connected");const s=++this.messageId,c={jsonrpc:"2.0",method:r,params:i,id:s};return new Promise((f,d)=>{this.pendingRequests.set(s,{resolve:f,reject:d}),this.ws.send(JSON.stringify(c)),setTimeout(()=>{this.pendingRequests.has(s)&&(this.pendingRequests.delete(s),d(new Error("Request timeout")))},3e4)})}on(r,i){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Set),this.eventHandlers.get(r).add(i),()=>{const s=this.eventHandlers.get(r);s&&s.delete(i)}}emitEvent(r,i){const s=this.eventHandlers.get(r);s&&s.forEach(c=>c(i))}close(){this.ws&&(this.ws.close(),this.ws=null),this.pendingRequests.clear(),this.eventHandlers.clear()}isConnected(){var r;return((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN}}let mf=null;function yt(){return mf||(mf=new v2),mf}function b2(){const[l,r]=v.useState(!1),[i,s]=v.useState(null);return v.useEffect(()=>{const c=yt();return c.connect().then(()=>r(!0)).catch(f=>s(f)),()=>{c.close()}},[]),{connected:l,error:i}}function ad(){return Ql({queryKey:["app-status"],queryFn:async()=>await yt().call("status"),refetchInterval:5e3})}function nv(l){const r=Nr();return v.useEffect(()=>yt().on("trace.new",c=>{r.setQueryData(["traces",l],(f=[])=>[c,...f].slice(0,(l==null?void 0:l.limit)??100))}),[r,l]),Ql({queryKey:["traces",l],queryFn:async()=>await yt().call("traces/list",l)})}function x2(l){return Ql({queryKey:["trace",l],queryFn:async()=>l?await yt().call("traces/get",{traceId:l}):null,enabled:!!l})}function S2(){const l=Nr();return Ru({mutationFn:async()=>await yt().call("traces/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]}),l.invalidateQueries({queryKey:["trace"]})}})}function N2(){return Ru({mutationFn:async l=>await yt().call("traces/export",l)})}function lv(){const l=Nr();return Ru({mutationFn:async r=>await yt().call("traces/addClientMetrics",r),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]})}})}function w2(l){const[r,i]=v.useState([]);v.useEffect(()=>{const c=yt(),f=d=>{i(h=>[d,...h].slice(0,(l==null?void 0:l.limit)||100))};return c.on("log.entry",f),()=>{var h;const d=(h=c.eventHandlers)==null?void 0:h.get("log.entry");d&&d.delete(f)}},[l==null?void 0:l.limit]);const s=Ql({queryKey:["logs",l],queryFn:async()=>await yt().call("logs/list",l)});return v.useEffect(()=>{s.data&&i(s.data)},[s.data]),{data:r,isLoading:s.isLoading,error:s.error,refetch:s.refetch}}function E2(){const l=Nr();return Ru({mutationFn:async()=>await yt().call("logs/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["logs"]})}})}function T2(){return Ql({queryKey:["routes"],queryFn:async()=>await yt().call("routes/list")})}function C2(){return Ql({queryKey:["services"],queryFn:async()=>await yt().call("services/list")})}function av(){return Ql({queryKey:["events"],queryFn:async()=>await yt().call("events/list"),refetchInterval:5e3})}function A2(){return Ql({queryKey:["crons"],queryFn:async()=>await yt().call("cron/list"),refetchInterval:5e3})}function rv(l){var r,i,s="";if(typeof l=="string"||typeof l=="number")s+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(r=0;r<c;r++)l[r]&&(i=rv(l[r]))&&(s&&(s+=" "),s+=i)}else for(i in l)l[i]&&(s&&(s+=" "),s+=i);return s}function iv(){for(var l,r,i=0,s="",c=arguments.length;i<c;i++)(l=arguments[i])&&(r=rv(l))&&(s&&(s+=" "),s+=r);return s}const Xg=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Kg=iv,rd=(l,r)=>i=>{var s;if((r==null?void 0:r.variants)==null)return Kg(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(g=>{const x=i==null?void 0:i[g],S=f==null?void 0:f[g];if(x===null)return null;const N=Xg(x)||Xg(S);return c[g][N]}),h=i&&Object.entries(i).reduce((g,x)=>{let[S,N]=x;return N===void 0||(g[S]=N),g},{}),y=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,x)=>{let{class:S,className:N,...R}=x;return Object.entries(R).every(_=>{let[z,O]=_;return Array.isArray(O)?O.includes({...f,...h}[z]):{...f,...h}[z]===O})?[...g,S,N]:g},[]);return Kg(l,d,y,i==null?void 0:i.class,i==null?void 0:i.className)},id="-",R2=l=>{const r=M2(l),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=l;return{getClassGroupId:d=>{const h=d.split(id);return h[0]===""&&h.length!==1&&h.shift(),sv(h,r)||O2(d)},getConflictingClassGroupIds:(d,h)=>{const y=i[d]||[];return h&&s[d]?[...y,...s[d]]:y}}},sv=(l,r)=>{var d;if(l.length===0)return r.classGroupId;const i=l[0],s=r.nextPart.get(i),c=s?sv(l.slice(1),s):void 0;if(c)return c;if(r.validators.length===0)return;const f=l.join(id);return(d=r.validators.find(({validator:h})=>h(f)))==null?void 0:d.classGroupId},Zg=/^\[(.+)\]$/,O2=l=>{if(Zg.test(l)){const r=Zg.exec(l)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},M2=l=>{const{theme:r,prefix:i}=l,s={nextPart:new Map,validators:[]};return D2(Object.entries(l.classGroups),i).forEach(([f,d])=>{jf(d,s,f,r)}),s},jf=(l,r,i,s)=>{l.forEach(c=>{if(typeof c=="string"){const f=c===""?r:Jg(r,c);f.classGroupId=i;return}if(typeof c=="function"){if(z2(c)){jf(c(s),r,i,s);return}r.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,d])=>{jf(d,Jg(r,f),i,s)})})},Jg=(l,r)=>{let i=l;return r.split(id).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},z2=l=>l.isThemeGetter,D2=(l,r)=>r?l.map(([i,s])=>{const c=s.map(f=>typeof f=="string"?r+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,h])=>[r+d,h])):f);return[i,c]}):l,_2=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,s=new Map;const c=(f,d)=>{i.set(f,d),r++,r>l&&(r=0,s=i,i=new Map)};return{get(f){let d=i.get(f);if(d!==void 0)return d;if((d=s.get(f))!==void 0)return c(f,d),d},set(f,d){i.has(f)?i.set(f,d):c(f,d)}}},uv="!",U2=l=>{const{separator:r,experimentalParseClassName:i}=l,s=r.length===1,c=r[0],f=r.length,d=h=>{const y=[];let g=0,x=0,S;for(let O=0;O<h.length;O++){let U=h[O];if(g===0){if(U===c&&(s||h.slice(O,O+f)===r)){y.push(h.slice(x,O)),x=O+f;continue}if(U==="/"){S=O;continue}}U==="["?g++:U==="]"&&g--}const N=y.length===0?h:h.substring(x),R=N.startsWith(uv),_=R?N.substring(1):N,z=S&&S>x?S-x:void 0;return{modifiers:y,hasImportantModifier:R,baseClassName:_,maybePostfixModifierPosition:z}};return i?h=>i({className:h,parseClassName:d}):d},L2=l=>{if(l.length<=1)return l;const r=[];let i=[];return l.forEach(s=>{s[0]==="["?(r.push(...i.sort(),s),i=[]):i.push(s)}),r.push(...i.sort()),r},q2=l=>({cache:_2(l.cacheSize),parseClassName:U2(l),...R2(l)}),j2=/\s+/,H2=(l,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:c}=r,f=[],d=l.trim().split(j2);let h="";for(let y=d.length-1;y>=0;y-=1){const g=d[y],{modifiers:x,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:R}=i(g);let _=!!R,z=s(_?N.substring(0,R):N);if(!z){if(!_){h=g+(h.length>0?" "+h:h);continue}if(z=s(N),!z){h=g+(h.length>0?" "+h:h);continue}_=!1}const O=L2(x).join(":"),U=S?O+uv:O,V=U+z;if(f.includes(V))continue;f.push(V);const B=c(z,_);for(let Q=0;Q<B.length;++Q){const H=B[Q];f.push(U+H)}h=g+(h.length>0?" "+h:h)}return h};function B2(){let l=0,r,i,s="";for(;l<arguments.length;)(r=arguments[l++])&&(i=ov(r))&&(s&&(s+=" "),s+=i);return s}const ov=l=>{if(typeof l=="string")return l;let r,i="";for(let s=0;s<l.length;s++)l[s]&&(r=ov(l[s]))&&(i&&(i+=" "),i+=r);return i};function k2(l,...r){let i,s,c,f=d;function d(y){const g=r.reduce((x,S)=>S(x),l());return i=q2(g),s=i.cache.get,c=i.cache.set,f=h,h(y)}function h(y){const g=s(y);if(g)return g;const x=H2(y,i);return c(y,x),x}return function(){return f(B2.apply(null,arguments))}}const Qe=l=>{const r=i=>i[l]||[];return r.isThemeGetter=!0,r},cv=/^\[(?:([a-z-]+):)?(.+)\]$/i,Q2=/^\d+\/\d+$/,G2=new Set(["px","full","screen"]),Y2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V2=/\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$/,X2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,K2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=l=>sr(l)||G2.has(l)||Q2.test(l),Cl=l=>Ar(l,"length",tN),sr=l=>!!l&&!Number.isNaN(Number(l)),pf=l=>Ar(l,"number",sr),Ti=l=>!!l&&Number.isInteger(Number(l)),J2=l=>l.endsWith("%")&&sr(l.slice(0,-1)),pe=l=>cv.test(l),Al=l=>Y2.test(l),$2=new Set(["length","size","percentage"]),F2=l=>Ar(l,$2,fv),W2=l=>Ar(l,"position",fv),I2=new Set(["image","url"]),P2=l=>Ar(l,I2,lN),eN=l=>Ar(l,"",nN),Ci=()=>!0,Ar=(l,r,i)=>{const s=cv.exec(l);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):i(s[2]):!1},tN=l=>V2.test(l)&&!X2.test(l),fv=()=>!1,nN=l=>K2.test(l),lN=l=>Z2.test(l),aN=()=>{const l=Qe("colors"),r=Qe("spacing"),i=Qe("blur"),s=Qe("brightness"),c=Qe("borderColor"),f=Qe("borderRadius"),d=Qe("borderSpacing"),h=Qe("borderWidth"),y=Qe("contrast"),g=Qe("grayscale"),x=Qe("hueRotate"),S=Qe("invert"),N=Qe("gap"),R=Qe("gradientColorStops"),_=Qe("gradientColorStopPositions"),z=Qe("inset"),O=Qe("margin"),U=Qe("opacity"),V=Qe("padding"),B=Qe("saturate"),Q=Qe("scale"),H=Qe("sepia"),k=Qe("skew"),K=Qe("space"),F=Qe("translate"),I=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",pe,r],ie=()=>[pe,r],qe=()=>["",Kn,Cl],Ge=()=>["auto",sr,pe],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],ge=()=>["","0",pe],Te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[sr,pe];return{cacheSize:500,separator:":",theme:{colors:[Ci],spacing:[Kn,Cl],blur:["none","",Al,pe],brightness:E(),borderColor:[l],borderRadius:["none","","full",Al,pe],borderSpacing:ie(),borderWidth:qe(),contrast:E(),grayscale:ge(),hueRotate:E(),invert:ge(),gap:ie(),gradientColorStops:[l],gradientColorStopPositions:[J2,Cl],inset:oe(),margin:oe(),opacity:E(),padding:ie(),saturate:E(),scale:E(),sepia:ge(),skew:E(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[Al]}],"break-after":[{"break-after":Te()}],"break-before":[{"break-before":Te()}],"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"],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:[...le(),pe]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ti,pe]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:ge()}],shrink:[{shrink:ge()}],order:[{order:["first","last","none",Ti,pe]}],"grid-cols":[{"grid-cols":[Ci]}],"col-start-end":[{col:["auto",{span:["full",Ti,pe]},pe]}],"col-start":[{"col-start":Ge()}],"col-end":[{"col-end":Ge()}],"grid-rows":[{"grid-rows":[Ci]}],"row-start-end":[{row:["auto",{span:[Ti,pe]},pe]}],"row-start":[{"row-start":Ge()}],"row-end":[{"row-end":Ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[V]}],px:[{px:[V]}],py:[{py:[V]}],ps:[{ps:[V]}],pe:[{pe:[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]}],mt:[{mt:[O]}],mr:[{mr:[O]}],mb:[{mb:[O]}],ml:[{ml:[O]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,r]}],"min-w":[{"min-w":[pe,r,"min","max","fit"]}],"max-w":[{"max-w":[pe,r,"none","full","min","max","fit","prose",{screen:[Al]},Al]}],h:[{h:[pe,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Al,Cl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pf]}],"font-family":[{font:[Ci]}],"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:["tighter","tight","normal","wide","wider","widest",pe]}],"line-clamp":[{"line-clamp":["none",sr,pf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kn,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[l]}],"placeholder-opacity":[{"placeholder-opacity":[U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[U]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kn,Cl]}],"underline-offset":[{"underline-offset":["auto",Kn,pe]}],"text-decoration-color":[{decoration:[l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[U]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),W2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",F2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P2]}],"bg-color":[{bg:[l]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[U]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[U]}],"divide-style":[{divide:D()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Kn,pe]}],"outline-w":[{outline:[Kn,Cl]}],"outline-color":[{outline:[l]}],"ring-w":[{ring:qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[l]}],"ring-opacity":[{"ring-opacity":[U]}],"ring-offset-w":[{"ring-offset":[Kn,Cl]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",Al,eN]}],"shadow-color":[{shadow:[Ci]}],opacity:[{opacity:[U]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[s]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",Al,pe]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[S]}],saturate:[{saturate:[B]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[U]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Q]}],"scale-x":[{"scale-x":[Q]}],"scale-y":[{"scale-y":[Q]}],rotate:[{rotate:[Ti,pe]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],accent:[{accent:["auto",l]}],appearance:[{appearance:["none","auto"]}],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",pe]}],"caret-color":[{caret:[l]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"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",pe]}],fill:[{fill:[l,"none"]}],"stroke-w":[{stroke:[Kn,Cl,pf]}],stroke:[{stroke:[l,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},rN=k2(aN);function mt(...l){return rN(iv(l))}const iN=rd("inline-flex items-center rounded-md 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 shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Xe({className:l,variant:r,...i}){return p("div",{className:mt(iN({variant:r}),l),...i})}const Kt=v.forwardRef(({className:l,variant:r="default",size:i="default",...s},c)=>p("button",{className:mt("inline-flex items-center justify-center rounded-md font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground hover:bg-primary/90":r==="default","bg-secondary text-secondary-foreground hover:bg-secondary/80":r==="secondary","border border-input bg-background hover:bg-accent hover:text-accent-foreground":r==="outline","hover:bg-accent hover:text-accent-foreground":r==="ghost"},{"h-10 px-4 py-2":i==="default","h-9 rounded-md px-3":i==="sm","h-11 rounded-md px-8":i==="lg"},l),ref:c,...s}));Kt.displayName="Button";function $g(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function dv(...l){return r=>{let i=!1;const s=l.map(c=>{const f=$g(c,r);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():$g(l[c],null)}}}}function Tn(...l){return v.useCallback(dv(...l),l)}function Hf(l){const r=sN(l),i=v.forwardRef((s,c)=>{const{children:f,...d}=s,h=v.Children.toArray(f),y=h.find(oN);if(y){const g=y.props.children,x=h.map(S=>S===y?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:S);return p(r,{...d,ref:c,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return p(r,{...d,ref:c,children:f})});return i.displayName=`${l}.Slot`,i}function sN(l){const r=v.forwardRef((i,s)=>{const{children:c,...f}=i;if(v.isValidElement(c)){const d=fN(c),h=cN(f,c.props);return c.type!==v.Fragment&&(h.ref=s?dv(s,d):d),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var uN=Symbol("radix.slottable");function oN(l){return v.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===uN}function cN(l,r){const i={...r};for(const s in r){const c=l[s],f=r[s];/^on[A-Z]/.test(s)?c&&f?i[s]=(...h)=>{const y=f(...h);return c(...h),y}:c&&(i[s]=c):s==="style"?i[s]={...c,...f}:s==="className"&&(i[s]=[c,f].filter(Boolean).join(" "))}return{...l,...i}}function fN(l){var s,c;let r=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?l.ref:(r=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}var dN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=dN.reduce((l,r)=>{const i=Hf(`Primitive.${r}`),s=v.forwardRef((c,f)=>{const{asChild:d,...h}=c,y=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(y,{...h,ref:f})});return s.displayName=`Primitive.${r}`,{...l,[r]:s}},{}),hN="Separator",Fg="horizontal",mN=["horizontal","vertical"],hv=v.forwardRef((l,r)=>{const{decorative:i,orientation:s=Fg,...c}=l,f=pN(s)?s:Fg,h=i?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return p(Zt.div,{"data-orientation":f,...h,...c,ref:r})});hv.displayName=hN;function pN(l){return mN.includes(l)}var mv=hv;const _u=v.forwardRef(({className:l,orientation:r="horizontal",decorative:i=!0,...s},c)=>p(mv,{ref:c,decorative:i,orientation:r,className:mt("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...s}));_u.displayName=mv.displayName;function gN(){var c,f;const{data:l}=ad(),{data:r}=av(),[i,s]=v.useState(()=>localStorage.getItem("vision.theme")||"light");return v.useEffect(()=>{const d=document.documentElement;i==="dark"?d.classList.add("dark"):d.classList.remove("dark"),localStorage.setItem("vision.theme",i)},[i]),w("div",{className:"h-screen flex flex-col bg-background text-foreground",children:[w("nav",{className:"bg-background/80 backdrop-blur-md px-6 py-3 flex items-center justify-between border-b border-border",children:[w("div",{className:"flex items-center gap-6",children:[w("div",{className:"flex items-center gap-3",children:[p("span",{className:"text-base font-semibold",children:(l==null?void 0:l.name)||"Vision Dashboard"}),p(Xe,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700":"",children:l!=null&&l.running?"Running":"Stopped"})]}),p(_u,{orientation:"vertical",className:"h-6 bg-border"}),w("div",{className:"flex gap-1",children:[p(ua,{to:"/api-explorer",className:({isActive:d})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${d?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"API Explorer"}),p(ua,{to:"/traces",className:({isActive:d})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${d?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Traces"}),p(ua,{to:"/logs",className:({isActive:d})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${d?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Logs"}),!!(r&&r.length>0)&&p(ua,{to:"/events",className:({isActive:d})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${d?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Events"}),p(ua,{to:"/services",className:({isActive:d})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${d?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Services"}),((f=(c=l==null?void 0:l.metadata)==null?void 0:c.drizzle)==null?void 0:f.detected)&&p(ua,{to:"/database",className:({isActive:d})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${d?"bg-white text-black":"text-gray-400 hover:text-foreground/90 hover:bg-accent"}`,children:"Database"})]})]}),w(Kt,{variant:"ghost",size:"sm",onClick:()=>s(i==="dark"?"light":"dark"),className:"text-gray-400 hover:text-foreground/90 hover:bg-accent",children:[i==="dark"?p(g2,{className:"w-4 h-4"}):p(d2,{className:"w-4 h-4"}),p("span",{className:"ml-2 text-sm font-medium hidden sm:inline",children:i==="dark"?"Light":"Dark"})]})]}),p("main",{className:"flex-1 min-h-0",children:p(Vy,{})})]})}function yN(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Wg(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);r&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,s)}return i}function Ig(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Wg(Object(i),!0).forEach(function(s){yN(l,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Wg(Object(i)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))})}return l}function vN(l,r){if(l==null)return{};var i={},s=Object.keys(l),c,f;for(f=0;f<s.length;f++)c=s[f],!(r.indexOf(c)>=0)&&(i[c]=l[c]);return i}function bN(l,r){if(l==null)return{};var i=vN(l,r),s,c;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(c=0;c<f.length;c++)s=f[c],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(l,s)&&(i[s]=l[s])}return i}function xN(l,r){return SN(l)||NN(l,r)||wN(l,r)||EN()}function SN(l){if(Array.isArray(l))return l}function NN(l,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(l)))){var i=[],s=!0,c=!1,f=void 0;try{for(var d=l[Symbol.iterator](),h;!(s=(h=d.next()).done)&&(i.push(h.value),!(r&&i.length===r));s=!0);}catch(y){c=!0,f=y}finally{try{!s&&d.return!=null&&d.return()}finally{if(c)throw f}}return i}}function wN(l,r){if(l){if(typeof l=="string")return Pg(l,r);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Pg(l,r)}}function Pg(l,r){(r==null||r>l.length)&&(r=l.length);for(var i=0,s=new Array(r);i<r;i++)s[i]=l[i];return s}function EN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
211
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TN(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function ey(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);r&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,s)}return i}function ty(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?ey(Object(i),!0).forEach(function(s){TN(l,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):ey(Object(i)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))})}return l}function CN(){for(var l=arguments.length,r=new Array(l),i=0;i<l;i++)r[i]=arguments[i];return function(s){return r.reduceRight(function(c,f){return f(c)},s)}}function Ri(l){return function r(){for(var i=this,s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var d=arguments.length,h=new Array(d),y=0;y<d;y++)h[y]=arguments[y];return r.apply(i,[].concat(c,h))}}}function Eu(l){return{}.toString.call(l).includes("Object")}function AN(l){return!Object.keys(l).length}function Ui(l){return typeof l=="function"}function RN(l,r){return Object.prototype.hasOwnProperty.call(l,r)}function ON(l,r){return Eu(r)||kl("changeType"),Object.keys(r).some(function(i){return!RN(l,i)})&&kl("changeField"),r}function MN(l){Ui(l)||kl("selectorType")}function zN(l){Ui(l)||Eu(l)||kl("handlerType"),Eu(l)&&Object.values(l).some(function(r){return!Ui(r)})&&kl("handlersType")}function DN(l){l||kl("initialIsRequired"),Eu(l)||kl("initialType"),AN(l)&&kl("initialContent")}function _N(l,r){throw new Error(l[r]||l.default)}var UN={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},kl=Ri(_N)(UN),hu={changes:ON,selector:MN,handler:zN,initial:DN};function LN(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};hu.initial(l),hu.handler(r);var i={current:l},s=Ri(HN)(i,r),c=Ri(jN)(i),f=Ri(hu.changes)(l),d=Ri(qN)(i);function h(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(x){return x};return hu.selector(g),g(i.current)}function y(g){CN(s,c,f,d)(g)}return[h,y]}function qN(l,r){return Ui(r)?r(l.current):r}function jN(l,r){return l.current=ty(ty({},l.current),r),r}function HN(l,r,i){return Ui(r)?r(l.current):Object.keys(i).forEach(function(s){var c;return(c=r[s])===null||c===void 0?void 0:c.call(r,l.current[s])}),i}var BN={create:LN},kN={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function QN(l){return function r(){for(var i=this,s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var d=arguments.length,h=new Array(d),y=0;y<d;y++)h[y]=arguments[y];return r.apply(i,[].concat(c,h))}}}function GN(l){return{}.toString.call(l).includes("Object")}function YN(l){return l||ny("configIsRequired"),GN(l)||ny("configType"),l.urls?(VN(),{paths:{vs:l.urls.monacoBase}}):l}function VN(){console.warn(pv.deprecation)}function XN(l,r){throw new Error(l[r]||l.default)}var pv={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
212
+ You are using deprecated way of configuration.
213
+
214
+ Instead of using
215
+ monaco.config({ urls: { monacoBase: '...' } })
216
+ use
217
+ monaco.config({ paths: { vs: '...' } })
218
+
219
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
220
+ `},ny=QN(XN)(pv),KN={config:YN},ZN=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return function(c){return i.reduceRight(function(f,d){return d(f)},c)}};function gv(l,r){return Object.keys(r).forEach(function(i){r[i]instanceof Object&&l[i]&&Object.assign(r[i],gv(l[i],r[i]))}),Ig(Ig({},l),r)}var JN={type:"cancelation",msg:"operation is manually canceled"};function gf(l){var r=!1,i=new Promise(function(s,c){l.then(function(f){return r?c(JN):s(f)}),l.catch(c)});return i.cancel=function(){return r=!0},i}var $N=BN.create({config:kN,isInitialized:!1,resolve:null,reject:null,monaco:null}),yv=xN($N,2),Vi=yv[0],Uu=yv[1];function FN(l){var r=KN.config(l),i=r.monaco,s=bN(r,["monaco"]);Uu(function(c){return{config:gv(c.config,s),monaco:i}})}function WN(){var l=Vi(function(r){var i=r.monaco,s=r.isInitialized,c=r.resolve;return{monaco:i,isInitialized:s,resolve:c}});if(!l.isInitialized){if(Uu({isInitialized:!0}),l.monaco)return l.resolve(l.monaco),gf(yf);if(window.monaco&&window.monaco.editor)return vv(window.monaco),l.resolve(window.monaco),gf(yf);ZN(IN,ew)(tw)}return gf(yf)}function IN(l){return document.body.appendChild(l)}function PN(l){var r=document.createElement("script");return l&&(r.src=l),r}function ew(l){var r=Vi(function(s){var c=s.config,f=s.reject;return{config:c,reject:f}}),i=PN("".concat(r.config.paths.vs,"/loader.js"));return i.onload=function(){return l()},i.onerror=r.reject,i}function tw(){var l=Vi(function(i){var s=i.config,c=i.resolve,f=i.reject;return{config:s,resolve:c,reject:f}}),r=window.require;r.config(l.config),r(["vs/editor/editor.main"],function(i){vv(i),l.resolve(i)},function(i){l.reject(i)})}function vv(l){Vi().monaco||Uu({monaco:l})}function nw(){return Vi(function(l){var r=l.monaco;return r})}var yf=new Promise(function(l,r){return Uu({resolve:l,reject:r})}),bv={config:FN,init:WN,__getMonacoInstance:nw},lw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},vf=lw,aw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},rw=aw;function iw({children:l}){return wt.createElement("div",{style:rw.container},l)}var sw=iw,uw=sw;function ow({width:l,height:r,isEditorReady:i,loading:s,_ref:c,className:f,wrapperProps:d}){return wt.createElement("section",{style:{...vf.wrapper,width:l,height:r},...d},!i&&wt.createElement(uw,null,s),wt.createElement("div",{ref:c,style:{...vf.fullWidth,...!i&&vf.hide},className:f}))}var cw=ow,xv=v.memo(cw);function fw(l){v.useEffect(l,[])}var Sv=fw;function dw(l,r,i=!0){let s=v.useRef(!0);v.useEffect(s.current||!i?()=>{s.current=!1}:l,r)}var Xt=dw;function zi(){}function ir(l,r,i,s){return hw(l,s)||mw(l,r,i,s)}function hw(l,r){return l.editor.getModel(Nv(l,r))}function mw(l,r,i,s){return l.editor.createModel(r,i,s?Nv(l,s):void 0)}function Nv(l,r){return l.Uri.parse(r)}function pw({original:l,modified:r,language:i,originalLanguage:s,modifiedLanguage:c,originalModelPath:f,modifiedModelPath:d,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:y=!1,theme:g="light",loading:x="Loading...",options:S={},height:N="100%",width:R="100%",className:_,wrapperProps:z={},beforeMount:O=zi,onMount:U=zi}){let[V,B]=v.useState(!1),[Q,H]=v.useState(!0),k=v.useRef(null),K=v.useRef(null),F=v.useRef(null),I=v.useRef(U),$=v.useRef(O),oe=v.useRef(!1);Sv(()=>{let le=bv.init();return le.then(D=>(K.current=D)&&H(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>k.current?Ge():le.cancel()}),Xt(()=>{if(k.current&&K.current){let le=k.current.getOriginalEditor(),D=ir(K.current,l||"",s||i||"text",f||"");D!==le.getModel()&&le.setModel(D)}},[f],V),Xt(()=>{if(k.current&&K.current){let le=k.current.getModifiedEditor(),D=ir(K.current,r||"",c||i||"text",d||"");D!==le.getModel()&&le.setModel(D)}},[d],V),Xt(()=>{let le=k.current.getModifiedEditor();le.getOption(K.current.editor.EditorOption.readOnly)?le.setValue(r||""):r!==le.getValue()&&(le.executeEdits("",[{range:le.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),le.pushUndoStop())},[r],V),Xt(()=>{var le,D;(D=(le=k.current)==null?void 0:le.getModel())==null||D.original.setValue(l||"")},[l],V),Xt(()=>{let{original:le,modified:D}=k.current.getModel();K.current.editor.setModelLanguage(le,s||i||"text"),K.current.editor.setModelLanguage(D,c||i||"text")},[i,s,c],V),Xt(()=>{var le;(le=K.current)==null||le.editor.setTheme(g)},[g],V),Xt(()=>{var le;(le=k.current)==null||le.updateOptions(S)},[S],V);let ie=v.useCallback(()=>{var W;if(!K.current)return;$.current(K.current);let le=ir(K.current,l||"",s||i||"text",f||""),D=ir(K.current,r||"",c||i||"text",d||"");(W=k.current)==null||W.setModel({original:le,modified:D})},[i,r,c,l,s,f,d]),qe=v.useCallback(()=>{var le;!oe.current&&F.current&&(k.current=K.current.editor.createDiffEditor(F.current,{automaticLayout:!0,...S}),ie(),(le=K.current)==null||le.editor.setTheme(g),B(!0),oe.current=!0)},[S,g,ie]);v.useEffect(()=>{V&&I.current(k.current,K.current)},[V]),v.useEffect(()=>{!Q&&!V&&qe()},[Q,V,qe]);function Ge(){var D,W,re,ge;let le=(D=k.current)==null?void 0:D.getModel();h||((W=le==null?void 0:le.original)==null||W.dispose()),y||((re=le==null?void 0:le.modified)==null||re.dispose()),(ge=k.current)==null||ge.dispose()}return wt.createElement(xv,{width:R,height:N,isEditorReady:V,loading:x,_ref:F,className:_,wrapperProps:z})}var gw=pw;v.memo(gw);function yw(l){let r=v.useRef();return v.useEffect(()=>{r.current=l},[l]),r.current}var vw=yw,mu=new Map;function bw({defaultValue:l,defaultLanguage:r,defaultPath:i,value:s,language:c,path:f,theme:d="light",line:h,loading:y="Loading...",options:g={},overrideServices:x={},saveViewState:S=!0,keepCurrentModel:N=!1,width:R="100%",height:_="100%",className:z,wrapperProps:O={},beforeMount:U=zi,onMount:V=zi,onChange:B,onValidate:Q=zi}){let[H,k]=v.useState(!1),[K,F]=v.useState(!0),I=v.useRef(null),$=v.useRef(null),oe=v.useRef(null),ie=v.useRef(V),qe=v.useRef(U),Ge=v.useRef(),le=v.useRef(s),D=vw(f),W=v.useRef(!1),re=v.useRef(!1);Sv(()=>{let E=bv.init();return E.then(Y=>(I.current=Y)&&F(!1)).catch(Y=>(Y==null?void 0:Y.type)!=="cancelation"&&console.error("Monaco initialization: error:",Y)),()=>$.current?Te():E.cancel()}),Xt(()=>{var Y,P,te,fe;let E=ir(I.current,l||s||"",r||c||"",f||i||"");E!==((Y=$.current)==null?void 0:Y.getModel())&&(S&&mu.set(D,(P=$.current)==null?void 0:P.saveViewState()),(te=$.current)==null||te.setModel(E),S&&((fe=$.current)==null||fe.restoreViewState(mu.get(f))))},[f],H),Xt(()=>{var E;(E=$.current)==null||E.updateOptions(g)},[g],H),Xt(()=>{!$.current||s===void 0||($.current.getOption(I.current.editor.EditorOption.readOnly)?$.current.setValue(s):s!==$.current.getValue()&&(re.current=!0,$.current.executeEdits("",[{range:$.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),$.current.pushUndoStop(),re.current=!1))},[s],H),Xt(()=>{var Y,P;let E=(Y=$.current)==null?void 0:Y.getModel();E&&c&&((P=I.current)==null||P.editor.setModelLanguage(E,c))},[c],H),Xt(()=>{var E;h!==void 0&&((E=$.current)==null||E.revealLine(h))},[h],H),Xt(()=>{var E;(E=I.current)==null||E.editor.setTheme(d)},[d],H);let ge=v.useCallback(()=>{var E;if(!(!oe.current||!I.current)&&!W.current){qe.current(I.current);let Y=f||i,P=ir(I.current,s||l||"",r||c||"",Y||"");$.current=(E=I.current)==null?void 0:E.editor.create(oe.current,{model:P,automaticLayout:!0,...g},x),S&&$.current.restoreViewState(mu.get(Y)),I.current.editor.setTheme(d),h!==void 0&&$.current.revealLine(h),k(!0),W.current=!0}},[l,r,i,s,c,f,g,x,S,d,h]);v.useEffect(()=>{H&&ie.current($.current,I.current)},[H]),v.useEffect(()=>{!K&&!H&&ge()},[K,H,ge]),le.current=s,v.useEffect(()=>{var E,Y;H&&B&&((E=Ge.current)==null||E.dispose(),Ge.current=(Y=$.current)==null?void 0:Y.onDidChangeModelContent(P=>{re.current||B($.current.getValue(),P)}))},[H,B]),v.useEffect(()=>{if(H){let E=I.current.editor.onDidChangeMarkers(Y=>{var te;let P=(te=$.current.getModel())==null?void 0:te.uri;if(P&&Y.find(fe=>fe.path===P.path)){let fe=I.current.editor.getModelMarkers({resource:P});Q==null||Q(fe)}});return()=>{E==null||E.dispose()}}return()=>{}},[H,Q]);function Te(){var E,Y;(E=Ge.current)==null||E.dispose(),N?S&&mu.set(f,$.current.saveViewState()):(Y=$.current.getModel())==null||Y.dispose(),$.current.dispose()}return wt.createElement(xv,{width:R,height:_,isEditorReady:H,loading:y,_ref:oe,className:z,wrapperProps:O})}var xw=bw,Sw=v.memo(xw),wv=Sw;const dt=v.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:mt("rounded-lg border bg-card text-card-foreground shadow-sm",l),...r}));dt.displayName="Card";const Et=v.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:mt("flex flex-col space-y-1.5 p-6",l),...r}));Et.displayName="CardHeader";const Ut=v.forwardRef(({className:l,...r},i)=>p("h3",{ref:i,className:mt("text-2xl font-semibold leading-none tracking-tight",l),...r}));Ut.displayName="CardTitle";const ht=v.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:mt("p-6 pt-0",l),...r}));ht.displayName="CardContent";const sd=v.forwardRef(({className:l,type:r,...i},s)=>p("input",{type:r,className:mt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",l),ref:s,...i}));sd.displayName="Input";var Nw="Label",Ev=v.forwardRef((l,r)=>p(Zt.label,{...l,ref:r,onMouseDown:i=>{var c;i.target.closest("button, input, select, textarea")||((c=l.onMouseDown)==null||c.call(l,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));Ev.displayName=Nw;var Tv=Ev;const ww=rd("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oi=v.forwardRef(({className:l,...r},i)=>p(Tv,{ref:i,className:mt(ww(),l),...r}));Oi.displayName=Tv.displayName;var Li=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function Ew(l,r){return v.useReducer((i,s)=>r[i][s]??i,l)}var Rr=l=>{const{present:r,children:i}=l,s=Tw(r),c=typeof i=="function"?i({present:s.isPresent}):v.Children.only(i),f=Tn(s.ref,Cw(c));return typeof i=="function"||s.isPresent?v.cloneElement(c,{ref:f}):null};Rr.displayName="Presence";function Tw(l){const[r,i]=v.useState(),s=v.useRef(null),c=v.useRef(l),f=v.useRef("none"),d=l?"mounted":"unmounted",[h,y]=Ew(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=pu(s.current);f.current=h==="mounted"?g:"none"},[h]),Li(()=>{const g=s.current,x=c.current;if(x!==l){const N=f.current,R=pu(g);l?y("MOUNT"):R==="none"||(g==null?void 0:g.display)==="none"?y("UNMOUNT"):y(x&&N!==R?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,y]),Li(()=>{if(r){let g;const x=r.ownerDocument.defaultView??window,S=R=>{const z=pu(s.current).includes(CSS.escape(R.animationName));if(R.target===r&&z&&(y("ANIMATION_END"),!c.current)){const O=r.style.animationFillMode;r.style.animationFillMode="forwards",g=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=O)})}},N=R=>{R.target===r&&(f.current=pu(s.current))};return r.addEventListener("animationstart",N),r.addEventListener("animationcancel",S),r.addEventListener("animationend",S),()=>{x.clearTimeout(g),r.removeEventListener("animationstart",N),r.removeEventListener("animationcancel",S),r.removeEventListener("animationend",S)}}else y("ANIMATION_END")},[r,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(g=>{s.current=g?getComputedStyle(g):null,i(g)},[])}}function pu(l){return(l==null?void 0:l.animationName)||"none"}function Cw(l){var s,c;let r=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?l.ref:(r=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}function Lu(l,r=[]){let i=[];function s(f,d){const h=v.createContext(d),y=i.length;i=[...i,d];const g=S=>{var U;const{scope:N,children:R,..._}=S,z=((U=N==null?void 0:N[l])==null?void 0:U[y])||h,O=v.useMemo(()=>_,Object.values(_));return p(z.Provider,{value:O,children:R})};g.displayName=f+"Provider";function x(S,N){var z;const R=((z=N==null?void 0:N[l])==null?void 0:z[y])||h,_=v.useContext(R);if(_)return _;if(d!==void 0)return d;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[g,x]}const c=()=>{const f=i.map(d=>v.createContext(d));return function(h){const y=(h==null?void 0:h[l])||f;return v.useMemo(()=>({[`__scope${l}`]:{...h,[l]:y}}),[h,y])}};return c.scopeName=l,[s,Aw(c,...r)]}function Aw(...l){const r=l[0];if(l.length===1)return r;const i=()=>{const s=l.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=s.reduce((h,{useScope:y,scopeName:g})=>{const S=y(f)[`__scope${g}`];return{...h,...S}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return i.scopeName=r.scopeName,i}function Ol(l){const r=v.useRef(l);return v.useEffect(()=>{r.current=l}),v.useMemo(()=>(...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},[])}var Rw=v.createContext(void 0);function ud(l){const r=v.useContext(Rw);return l||r||"ltr"}function Ow(l,[r,i]){return Math.min(i,Math.max(r,l))}function gt(l,r,{checkForDefaultPrevented:i=!0}={}){return function(c){if(l==null||l(c),i===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function Mw(l,r){return v.useReducer((i,s)=>r[i][s]??i,l)}var od="ScrollArea",[Cv]=Lu(od),[zw,on]=Cv(od),Av=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,type:s="hover",dir:c,scrollHideDelay:f=600,...d}=l,[h,y]=v.useState(null),[g,x]=v.useState(null),[S,N]=v.useState(null),[R,_]=v.useState(null),[z,O]=v.useState(null),[U,V]=v.useState(0),[B,Q]=v.useState(0),[H,k]=v.useState(!1),[K,F]=v.useState(!1),I=Tn(r,oe=>y(oe)),$=ud(c);return p(zw,{scope:i,type:s,dir:$,scrollHideDelay:f,scrollArea:h,viewport:g,onViewportChange:x,content:S,onContentChange:N,scrollbarX:R,onScrollbarXChange:_,scrollbarXEnabled:H,onScrollbarXEnabledChange:k,scrollbarY:z,onScrollbarYChange:O,scrollbarYEnabled:K,onScrollbarYEnabledChange:F,onCornerWidthChange:V,onCornerHeightChange:Q,children:p(Zt.div,{dir:$,...d,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":U+"px","--radix-scroll-area-corner-height":B+"px",...l.style}})})});Av.displayName=od;var Rv="ScrollAreaViewport",Ov=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,children:s,nonce:c,...f}=l,d=on(Rv,i),h=v.useRef(null),y=Tn(r,h,d.onViewportChange);return w(sn,{children:[p("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:c}),p(Zt.div,{"data-radix-scroll-area-viewport":"",...f,ref:y,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...l.style},children:p("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});Ov.displayName=Rv;var Cn="ScrollAreaScrollbar",cd=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:d}=c,h=l.orientation==="horizontal";return v.useEffect(()=>(h?f(!0):d(!0),()=>{h?f(!1):d(!1)}),[h,f,d]),c.type==="hover"?p(Dw,{...s,ref:r,forceMount:i}):c.type==="scroll"?p(_w,{...s,ref:r,forceMount:i}):c.type==="auto"?p(Mv,{...s,ref:r,forceMount:i}):c.type==="always"?p(fd,{...s,ref:r}):null});cd.displayName=Cn;var Dw=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),[f,d]=v.useState(!1);return v.useEffect(()=>{const h=c.scrollArea;let y=0;if(h){const g=()=>{window.clearTimeout(y),d(!0)},x=()=>{y=window.setTimeout(()=>d(!1),c.scrollHideDelay)};return h.addEventListener("pointerenter",g),h.addEventListener("pointerleave",x),()=>{window.clearTimeout(y),h.removeEventListener("pointerenter",g),h.removeEventListener("pointerleave",x)}}},[c.scrollArea,c.scrollHideDelay]),p(Rr,{present:i||f,children:p(Mv,{"data-state":f?"visible":"hidden",...s,ref:r})})}),_w=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),f=l.orientation==="horizontal",d=ju(()=>y("SCROLL_END"),100),[h,y]=Mw("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(h==="idle"){const g=window.setTimeout(()=>y("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(g)}},[h,c.scrollHideDelay,y]),v.useEffect(()=>{const g=c.viewport,x=f?"scrollLeft":"scrollTop";if(g){let S=g[x];const N=()=>{const R=g[x];S!==R&&(y("SCROLL"),d()),S=R};return g.addEventListener("scroll",N),()=>g.removeEventListener("scroll",N)}},[c.viewport,f,y,d]),p(Rr,{present:i||h!=="hidden",children:p(fd,{"data-state":h==="hidden"?"hidden":"visible",...s,ref:r,onPointerEnter:gt(l.onPointerEnter,()=>y("POINTER_ENTER")),onPointerLeave:gt(l.onPointerLeave,()=>y("POINTER_LEAVE"))})})}),Mv=v.forwardRef((l,r)=>{const i=on(Cn,l.__scopeScrollArea),{forceMount:s,...c}=l,[f,d]=v.useState(!1),h=l.orientation==="horizontal",y=ju(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,x=i.viewport.offsetHeight<i.viewport.scrollHeight;d(h?g:x)}},10);return xr(i.viewport,y),xr(i.content,y),p(Rr,{present:s||f,children:p(fd,{"data-state":f?"visible":"hidden",...c,ref:r})})}),fd=v.forwardRef((l,r)=>{const{orientation:i="vertical",...s}=l,c=on(Cn,l.__scopeScrollArea),f=v.useRef(null),d=v.useRef(0),[h,y]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Lv(h.viewport,h.content),x={...s,sizes:h,onSizesChange:y,hasThumb:g>0&&g<1,onThumbChange:N=>f.current=N,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:N=>d.current=N};function S(N,R){return Bw(N,d.current,h,R)}return i==="horizontal"?p(Uw,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const N=c.viewport.scrollLeft,R=ly(N,h,c.dir);f.current.style.transform=`translate3d(${R}px, 0, 0)`}},onWheelScroll:N=>{c.viewport&&(c.viewport.scrollLeft=N)},onDragScroll:N=>{c.viewport&&(c.viewport.scrollLeft=S(N,c.dir))}}):i==="vertical"?p(Lw,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const N=c.viewport.scrollTop,R=ly(N,h);f.current.style.transform=`translate3d(0, ${R}px, 0)`}},onWheelScroll:N=>{c.viewport&&(c.viewport.scrollTop=N)},onDragScroll:N=>{c.viewport&&(c.viewport.scrollTop=S(N))}}):null}),Uw=v.forwardRef((l,r)=>{const{sizes:i,onSizesChange:s,...c}=l,f=on(Cn,l.__scopeScrollArea),[d,h]=v.useState(),y=v.useRef(null),g=Tn(r,y,f.onScrollbarXChange);return v.useEffect(()=>{y.current&&h(getComputedStyle(y.current))},[y]),p(Dv,{"data-orientation":"horizontal",...c,ref:g,sizes:i,style:{bottom:0,left:f.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:f.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":qu(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.x),onDragScroll:x=>l.onDragScroll(x.x),onWheelScroll:(x,S)=>{if(f.viewport){const N=f.viewport.scrollLeft+x.deltaX;l.onWheelScroll(N),jv(N,S)&&x.preventDefault()}},onResize:()=>{y.current&&f.viewport&&d&&s({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:y.current.clientWidth,paddingStart:Cu(d.paddingLeft),paddingEnd:Cu(d.paddingRight)}})}})}),Lw=v.forwardRef((l,r)=>{const{sizes:i,onSizesChange:s,...c}=l,f=on(Cn,l.__scopeScrollArea),[d,h]=v.useState(),y=v.useRef(null),g=Tn(r,y,f.onScrollbarYChange);return v.useEffect(()=>{y.current&&h(getComputedStyle(y.current))},[y]),p(Dv,{"data-orientation":"vertical",...c,ref:g,sizes:i,style:{top:0,right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":qu(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.y),onDragScroll:x=>l.onDragScroll(x.y),onWheelScroll:(x,S)=>{if(f.viewport){const N=f.viewport.scrollTop+x.deltaY;l.onWheelScroll(N),jv(N,S)&&x.preventDefault()}},onResize:()=>{y.current&&f.viewport&&d&&s({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:y.current.clientHeight,paddingStart:Cu(d.paddingTop),paddingEnd:Cu(d.paddingBottom)}})}})}),[qw,zv]=Cv(Cn),Dv=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,sizes:s,hasThumb:c,onThumbChange:f,onThumbPointerUp:d,onThumbPointerDown:h,onThumbPositionChange:y,onDragScroll:g,onWheelScroll:x,onResize:S,...N}=l,R=on(Cn,i),[_,z]=v.useState(null),O=Tn(r,I=>z(I)),U=v.useRef(null),V=v.useRef(""),B=R.viewport,Q=s.content-s.viewport,H=Ol(x),k=Ol(y),K=ju(S,10);function F(I){if(U.current){const $=I.clientX-U.current.left,oe=I.clientY-U.current.top;g({x:$,y:oe})}}return v.useEffect(()=>{const I=$=>{const oe=$.target;(_==null?void 0:_.contains(oe))&&H($,Q)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[B,_,Q,H]),v.useEffect(k,[s,k]),xr(_,K),xr(R.content,K),p(qw,{scope:i,scrollbar:_,hasThumb:c,onThumbChange:Ol(f),onThumbPointerUp:Ol(d),onThumbPositionChange:k,onThumbPointerDown:Ol(h),children:p(Zt.div,{...N,ref:O,style:{position:"absolute",...N.style},onPointerDown:gt(l.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),U.current=_.getBoundingClientRect(),V.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",R.viewport&&(R.viewport.style.scrollBehavior="auto"),F(I))}),onPointerMove:gt(l.onPointerMove,F),onPointerUp:gt(l.onPointerUp,I=>{const $=I.target;$.hasPointerCapture(I.pointerId)&&$.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=V.current,R.viewport&&(R.viewport.style.scrollBehavior=""),U.current=null})})})}),Tu="ScrollAreaThumb",_v=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=zv(Tu,l.__scopeScrollArea);return p(Rr,{present:i||c.hasThumb,children:p(jw,{ref:r,...s})})}),jw=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,style:s,...c}=l,f=on(Tu,i),d=zv(Tu,i),{onThumbPositionChange:h}=d,y=Tn(r,S=>d.onThumbChange(S)),g=v.useRef(void 0),x=ju(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const S=f.viewport;if(S){const N=()=>{if(x(),!g.current){const R=kw(S,h);g.current=R,h()}};return h(),S.addEventListener("scroll",N),()=>S.removeEventListener("scroll",N)}},[f.viewport,x,h]),p(Zt.div,{"data-state":d.hasThumb?"visible":"hidden",...c,ref:y,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:gt(l.onPointerDownCapture,S=>{const R=S.target.getBoundingClientRect(),_=S.clientX-R.left,z=S.clientY-R.top;d.onThumbPointerDown({x:_,y:z})}),onPointerUp:gt(l.onPointerUp,d.onThumbPointerUp)})});_v.displayName=Tu;var dd="ScrollAreaCorner",Uv=v.forwardRef((l,r)=>{const i=on(dd,l.__scopeScrollArea),s=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?p(Hw,{...l,ref:r}):null});Uv.displayName=dd;var Hw=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,...s}=l,c=on(dd,i),[f,d]=v.useState(0),[h,y]=v.useState(0),g=!!(f&&h);return xr(c.scrollbarX,()=>{var S;const x=((S=c.scrollbarX)==null?void 0:S.offsetHeight)||0;c.onCornerHeightChange(x),y(x)}),xr(c.scrollbarY,()=>{var S;const x=((S=c.scrollbarY)==null?void 0:S.offsetWidth)||0;c.onCornerWidthChange(x),d(x)}),g?p(Zt.div,{...s,ref:r,style:{width:f,height:h,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...l.style}}):null});function Cu(l){return l?parseInt(l,10):0}function Lv(l,r){const i=l/r;return isNaN(i)?0:i}function qu(l){const r=Lv(l.viewport,l.content),i=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,s=(l.scrollbar.size-i)*r;return Math.max(s,18)}function Bw(l,r,i,s="ltr"){const c=qu(i),f=c/2,d=r||f,h=c-d,y=i.scrollbar.paddingStart+d,g=i.scrollbar.size-i.scrollbar.paddingEnd-h,x=i.content-i.viewport,S=s==="ltr"?[0,x]:[x*-1,0];return qv([y,g],S)(l)}function ly(l,r,i="ltr"){const s=qu(r),c=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-c,d=r.content-r.viewport,h=f-s,y=i==="ltr"?[0,d]:[d*-1,0],g=Ow(l,y);return qv([0,d],[0,h])(g)}function qv(l,r){return i=>{if(l[0]===l[1]||r[0]===r[1])return r[0];const s=(r[1]-r[0])/(l[1]-l[0]);return r[0]+s*(i-l[0])}}function jv(l,r){return l>0&&l<r}var kw=(l,r=()=>{})=>{let i={left:l.scrollLeft,top:l.scrollTop},s=0;return(function c(){const f={left:l.scrollLeft,top:l.scrollTop},d=i.left!==f.left,h=i.top!==f.top;(d||h)&&r(),i=f,s=window.requestAnimationFrame(c)})(),()=>window.cancelAnimationFrame(s)};function ju(l,r){const i=Ol(l),s=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),v.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(i,r)},[i,r])}function xr(l,r){const i=Ol(r);Li(()=>{let s=0;if(l){const c=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(i)});return c.observe(l),()=>{window.cancelAnimationFrame(s),c.unobserve(l)}}},[l,i])}var Hv=Av,Qw=Ov,Gw=Uv;const Au=v.forwardRef(({className:l,children:r,...i},s)=>w(Hv,{ref:s,className:mt("relative overflow-hidden",l),...i,children:[p(Qw,{className:"h-full w-full rounded-[inherit]",children:r}),p(Bv,{}),p(Gw,{})]}));Au.displayName=Hv.displayName;const Bv=v.forwardRef(({className:l,orientation:r="vertical",...i},s)=>p(cd,{ref:s,orientation:r,className:mt("flex touch-none select-none transition-colors",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",l),...i,children:p(_v,{className:"relative flex-1 rounded-full bg-border"})}));Bv.displayName=cd.displayName;function Yw({sessionId:l}){const{data:r=[]}=nv({limit:50}),i=l?r.filter(d=>{var h;return((h=d.metadata)==null?void 0:h.sessionId)===l}):r,{traceId:s}=If(),c=v.useRef(null),f=v.useRef(i.length);return v.useEffect(()=>{i.length>f.current&&c.current&&(c.current.scrollTop=0),f.current=i.length},[i.length]),w("div",{className:"w-80 border-l border-border bg-muted/20 flex flex-col",children:[p("div",{className:"px-4 py-3 border-b border-border bg-muted/20",children:w("div",{className:"flex items-center justify-between",children:[p("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Traces"}),p(Xe,{variant:"secondary",className:"text-xs",children:i.length})]})}),p(Au,{className:"flex-1",ref:c,children:p("div",{className:"p-3 space-y-2",children:r.length===0?w("div",{className:"text-center py-12 text-muted-foreground",children:[p(Cr,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),p("p",{className:"text-sm",children:"Traces will appear here"}),p("p",{className:"text-xs mt-1",children:"after making API calls"})]}):i.map((d,h)=>w("div",{children:[p(zu,{to:`/traces/${d.id}`,children:p(Vw,{trace:d,isActive:d.id===s})}),h<i.length-1&&p(_u,{className:"my-2"})]},d.id))})})]})}function Vw({trace:l,isActive:r}){const i=d=>d?d>=200&&d<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",s=d=>d==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":d==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":d==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"",c=d=>d==null?"-":d<1?"< 1ms":d<1e3?`${Math.round(d)}ms`:`${(d/1e3).toFixed(2)}s`,f=d=>new Date(d).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return w("div",{className:`w-full text-left bg-background rounded-md p-2.5 border transition-all cursor-pointer ${r?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[w("div",{className:"flex items-center gap-1.5 mb-2",children:[p(Xe,{className:`text-[10px] font-mono px-1.5 py-0 ${s(l.method)}`,children:l.method}),p(Xe,{className:`text-[10px] font-mono px-1.5 py-0 ${i(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&w("span",{className:"text-[10px] text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),p("div",{className:"text-xs font-mono text-foreground truncate mb-2",children:l.path}),w("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[w("div",{className:"flex items-center gap-1",children:[p(Du,{className:"w-3 h-3"}),p("span",{children:f(l.timestamp)})]}),w("div",{className:"flex items-center gap-1",children:[p(Cr,{className:"w-3 h-3"}),p("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function Mi({data:l,title:r,height:i="400px"}){const[s,c]=v.useState(!1),f=()=>{navigator.clipboard.writeText(JSON.stringify(l,null,2)),c(!0),setTimeout(()=>c(!1),2e3)},d=JSON.stringify(l,null,2);return w("div",{className:"relative",children:[r&&w("div",{className:"flex items-center justify-between mb-2",children:[p("h3",{className:"text-sm font-medium",children:r}),p(Kt,{variant:"ghost",size:"sm",onClick:f,className:"text-xs",children:s?w(sn,{children:[p(o2,{className:"w-3 h-3 mr-1"}),"Copied"]}):w(sn,{children:[p(Py,{className:"w-3 h-3 mr-1"}),"Copy"]})})]}),p("div",{className:"border rounded-md overflow-hidden",children:p(wv,{height:i,language:"json",value:d,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,fontSize:14,glyphMargin:!1,folding:!0,lineDecorationsWidth:0,lineNumbersMinChars:0,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}})})]})}function kv({logs:l,title:r="Terminal Output"}){const i=f=>{switch(f==null?void 0:f.toLowerCase()){case"error":return"text-red-500 dark:text-red-400";case"warn":return"text-yellow-500 dark:text-yellow-400";case"info":return"text-blue-500 dark:text-blue-400";case"debug":return"text-purple-500 dark:text-purple-400";default:return"text-gray-500 dark:text-gray-400"}},s=f=>new Date(f).toISOString().split("T")[1].slice(0,-1),c=f=>{if(!f)return{cleanMessage:"",properties:null};const d=/(\w+)=(?:"([^"]*)"|([^\s]*))/g,h=[...f.matchAll(d)];if(h.length===0)return{cleanMessage:f,properties:null};let y=f;const g={};return h.forEach(x=>{const[S,N,R,_]=x,z=R??_;y=y.replace(S,"");try{g[N]=z.startsWith("{")||z.startsWith("[")?JSON.parse(z):z}catch{g[N]=z}}),{cleanMessage:y.replace(/\s+/g," ").trim(),properties:g}};return!l||l.length===0?null:w(dt,{className:"border-border bg-card/50",children:[p(Et,{className:"py-3 px-4 border-b border-border/50",children:w("div",{className:"flex items-center gap-2",children:[p(qf,{className:"w-4 h-4 text-muted-foreground"}),p(Ut,{className:"text-sm font-medium font-mono text-muted-foreground uppercase tracking-wider",children:r}),w("span",{className:"ml-auto text-xs text-muted-foreground font-mono",children:[l.length," entries"]})]})}),p(ht,{className:"p-0",children:p("div",{className:"font-mono text-[11px] md:text-xs overflow-x-auto max-h-[500px] overflow-y-auto p-4 space-y-0.5",children:l.map(f=>{const d=f.message.includes("starting request")||f.message.includes("request completed")||f.message.includes("request failed"),{cleanMessage:h,properties:y}=d?c(f.message):{cleanMessage:f.message,properties:null};return w("div",{className:"group flex items-start gap-3 hover:bg-muted/50 px-2 -mx-2 rounded transition-colors py-0.5",children:[p("span",{className:"shrink-0 text-muted-foreground select-none w-20 md:w-24 tabular-nums opacity-70 group-hover:opacity-100 transition-opacity",children:s(f.timestamp)}),p("span",{className:`shrink-0 w-10 md:w-12 font-bold uppercase tracking-wider text-[10px] md:text-[11px] py-px ${i(f.level)}`,children:f.level}),w("div",{className:"flex-1 min-w-0",children:[w("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[p("span",{className:"text-foreground break-words whitespace-pre-wrap leading-relaxed",children:h}),d&&w(sn,{children:[y&&Object.entries(y).map(([g,x])=>w("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-muted text-muted-foreground border border-border",children:[w("span",{className:"opacity-70 mr-1",children:[g,"="]}),p("span",{className:"font-medium text-foreground",children:String(x)})]},`meta-${g}`)),f.context&&Object.entries(f.context).map(([g,x])=>["request","response","sessionId","clientDuration"].includes(g)||y&&g in y?null:w("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-blue-50 dark:bg-blue-900/30 text-blue-600 dark:text-blue-300 border border-blue-100 dark:border-blue-800/50",children:[w("span",{className:"opacity-70 mr-1",children:[g,"="]}),p("span",{className:"font-medium",children:typeof x=="object"?JSON.stringify(x):String(x)})]},`ctx-${g}`))]})]}),f.stack&&w("details",{className:"mt-1",children:[p("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground select-none inline-flex items-center gap-1 transition-colors",children:p("span",{className:"text-[10px] uppercase tracking-wide",children:"Show Stack Trace"})}),p("div",{className:"mt-2 pl-3 border-l-2 border-border text-muted-foreground overflow-x-auto",children:p("pre",{className:"font-mono text-[10px] leading-relaxed whitespace-pre select-text",children:f.stack})})]})]})]},f.id)})})})]})}const Qv=v.createContext(null);function Xw({children:l}){const[r,i]=v.useState([]),s=v.useCallback((f,d="info",h)=>{const y=Math.random().toString(36).slice(2),g={id:y,message:f,type:d,duration:h};return i(x=>[...x,g]),y},[]),c=v.useCallback(f=>{i(d=>d.filter(h=>h.id!==f))},[]);return p(Qv.Provider,{value:{toasts:r,addToast:s,removeToast:c},children:l})}function hd(){const l=v.useContext(Qv);if(!l)throw new Error("useToast must be used within ToastProvider");return l}function Kw(){var i;if((i=window.VISION_CONFIG)!=null&&i.apiUrl)return window.VISION_CONFIG.apiUrl;const l=window.location.protocol,r=window.location.host||"localhost:4000";return`${l}//${r}`}function gu(){return Math.random().toString(36).slice(2)+Date.now().toString(36)}function Zw(){var B,Q,H;const{data:l=[]}=T2(),{addToast:r}=hd(),i=lv(),s=v.useMemo(()=>({id:gu(),title:"New tab",sessionId:gu(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null,executedAt:null}),[]),[c,f]=v.useState([s]),[d,h]=v.useState(s.id),[y,g]=v.useState(!1),x="vision.apiExplorer.tabs",S="vision.apiExplorer.activeTabId";v.useEffect(()=>{try{const k=localStorage.getItem(x),K=localStorage.getItem(S);if(k){const F=JSON.parse(k);Array.isArray(F)&&F.length>0&&(f(F),K&&F.some(I=>I.id===K)?h(K):h(F[0].id))}}catch{}},[]),v.useEffect(()=>{try{localStorage.setItem(x,JSON.stringify(c)),localStorage.setItem(S,d)}catch{}},[c,d]);const N=c.find(k=>k.id===d)||c[0],R=k=>{var F;const K=((F=k.requestBody)==null?void 0:F.template)||"";f(I=>I.map($=>$.id===d?{...$,route:k,title:k.path,response:null,requestTime:null,executedAt:null,urlParams:{},requestBody:K}:$))},_=async()=>{const k=N;if(!k.route)return;g(!0),f(F=>F.map(I=>I.id===d?{...I,response:null}:I));const K=Date.now();try{let F=k.route.path;Object.entries(k.urlParams).forEach(([D,W])=>{F=F.replace(`:${D}`,W)});const I=`${Kw()}${F}`,$={method:k.route.method,headers:{"Content-Type":"application/json","X-Vision-Session":k.sessionId}};if(["POST","PUT","PATCH"].includes(k.route.method)&&k.requestBody)try{const D=k.requestBody.split(`
221
+ `).map(W=>W.replace(/\/\/.*$/,"").trim()).filter(W=>W.length>0).join(`
222
+ `);$.body=JSON.stringify(JSON.parse(D))}catch{$.body=k.requestBody}const oe=await fetch(I,$),ie=await oe.json(),qe=Date.now()-K,Ge={};oe.headers.forEach((D,W)=>{Ge[W]=D}),f(D=>D.map(W=>W.id===d?{...W,response:{status:oe.status,data:ie,headers:Ge},requestTime:qe,executedAt:K}:W)),r(`API call completed in ${qe}ms`,"success");const le=oe.headers.get("X-Vision-Trace-Id");console.log("📊 Trace ID from header:",le,"Client duration:",qe),le&&i.mutate({traceId:le,clientDuration:qe})}catch(F){f(I=>I.map($=>$.id===d?{...$,response:{status:0,error:F instanceof Error?F.message:"Unknown error"},executedAt:K}:$)),r(F instanceof Error?F.message:"API call failed","error")}finally{g(!1)}},z=(k,K)=>{f(F=>F.map(I=>I.id===d?{...I,urlParams:{...I.urlParams,[k]:K}}:I))},O=k=>{f(K=>K.map(F=>F.id===d?{...F,requestBody:k}:F))},U=()=>{const k={id:gu(),title:"New tab",sessionId:gu(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null,executedAt:null};f(K=>[...K,k]),h(k.id)},V=k=>{f(K=>{if(K.length<=1)return K;const F=K.filter(I=>I.id!==k);if(d===k){const I=F[F.length-1];h(I.id)}return F})};return w("div",{className:"flex h-full bg-background",children:[p("div",{className:"w-64 border-r border-border bg-muted/20 overflow-y-auto flex-shrink-0",children:w("div",{className:"p-4",children:[p("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:"Endpoints"}),p("div",{className:"space-y-1",children:l.map((k,K)=>p("button",{onClick:()=>R(k),className:`w-full text-left p-2 rounded-md text-sm font-medium transition-colors
223
+ ${N.route===k?"bg-primary text-primary-foreground":"hover:bg-accent text-foreground"}`,children:w("div",{className:"flex items-center gap-2",children:[p(Xe,{className:`text-[10px] font-mono w-12 flex items-center justify-center border-0
224
+ ${k.method==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300":""}
225
+ ${k.method==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":""}
226
+ ${k.method==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":""}
227
+ ${k.method==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":""}
228
+ `,children:k.method}),p("span",{className:"font-mono text-xs truncate",children:k.path})]})},K))})]})}),w("div",{className:"flex-1 overflow-y-auto bg-background",children:[p("div",{className:"px-6 pt-3 border-b border-border bg-muted/20",children:w("div",{className:"flex items-center gap-1 overflow-x-auto whitespace-nowrap pb-0",children:[c.map(k=>w("button",{className:`relative flex-none inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-all ${k.id===d?"bg-background text-foreground rounded-t-md border-t border-x border-border":"text-muted-foreground hover:text-foreground hover:bg-background/50 rounded-t-md border-transparent border-t border-x"}`,onClick:()=>h(k.id),children:[p("span",{className:"font-mono text-sm truncate max-w-[200px]",children:k.title}),c.length>1&&p("button",{className:"ml-1 text-muted-foreground hover:text-foreground hover:bg-accent rounded-sm p-0.5 -mr-1",onClick:K=>{K.stopPropagation(),V(k.id)},children:p("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),k.id===d&&p("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]},k.id)),w(Kt,{variant:"ghost",size:"sm",className:"flex-none ml-2 text-sm font-medium text-muted-foreground hover:text-foreground",onClick:U,children:[p("svg",{className:"w-4 h-4 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New tab"]})]})}),p("div",{className:"p-6 max-w-4xl",children:N.route?w("div",{className:"space-y-4",children:[w(dt,{children:[p(Et,{children:p(Ut,{className:"text-base font-semibold",children:"API Caller"})}),w(ht,{className:"space-y-4",children:[w("div",{children:[p(Oi,{className:"text-sm font-medium mb-2 block",children:"Endpoint"}),w("div",{className:"flex gap-2",children:[w("div",{className:"flex-1 bg-muted rounded-md p-2 font-mono text-sm border",children:[p("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:N.route.method})," ",p("span",{className:"text-foreground",children:N.route.path})]}),p(Kt,{onClick:_,disabled:y,className:"bg-blue-600 dark:bg-blue-600 hover:bg-blue-700 dark:hover:bg-blue-700 text-white",children:y?w("span",{className:"flex items-center gap-2",children:[p("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),p("span",{className:"text-sm font-medium",children:"Calling..."})]}):w("span",{className:"flex items-center gap-2",children:[p(h2,{className:"w-4 h-4"}),p("span",{className:"text-sm font-medium",children:"Call API"})]})})]})]}),N.route.path.includes(":")&&w("div",{children:[p(Oi,{className:"text-sm font-medium mb-2 block",children:"URL Parameters"}),p("div",{className:"space-y-3",children:(B=N.route.path.match(/:[^/]+/g))==null?void 0:B.map(k=>{const K=k.slice(1);return w("div",{className:"grid grid-cols-4 gap-3 items-center",children:[p(Oi,{htmlFor:K,className:"text-sm text-muted-foreground",children:K}),p(sd,{id:K,type:"text",value:N.urlParams[K]||"",onChange:F=>z(K,F.target.value),placeholder:`Enter ${K}`,className:"col-span-3 text-sm"})]},K)})})]}),["POST","PUT","PATCH"].includes(N.route.method)&&w("div",{children:[p(Oi,{className:"text-sm font-medium mb-2 block",children:"Request Body (JSON)"}),p("div",{className:"border rounded-md overflow-hidden",children:p(wv,{height:"200px",language:"json",value:N.requestBody,onChange:k=>O(k||""),theme:"vs-dark",options:{readOnly:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,fontSize:14,glyphMargin:!1,folding:!0,lineDecorationsWidth:0,lineNumbersMinChars:3,renderLineHighlight:"all",tabSize:2,insertSpaces:!0,scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}})})]})]})]}),N.response&&w(dt,{children:[p(Et,{children:w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-3",children:[p(Ut,{className:"text-base font-semibold",children:"Response"}),p(Xe,{className:`text-xs font-mono
229
+ ${N.response.status>=200&&N.response.status<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":""}
230
+ ${N.response.status>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":""}
231
+ `,children:N.response.status||"ERROR"}),N.requestTime&&w("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[p(Du,{className:"w-3 h-3"}),N.requestTime,"ms"]})]}),p(Kt,{variant:"ghost",size:"sm",onClick:()=>navigator.clipboard.writeText(JSON.stringify(N.response.data,null,2)),children:p(Py,{className:"w-4 h-4"})})]})}),p(ht,{children:p(Mi,{data:N.response.data||N.response.error})})]}),N.response&&N.executedAt&&p(kv,{title:"Request Logs",logs:[{id:"req-start",timestamp:N.executedAt,level:"info",message:`INF starting request endpoint=${(Q=N.route)==null?void 0:Q.path} service=${(H=N.route)==null?void 0:H.handler}`},{id:"req-end",timestamp:N.executedAt+(N.requestTime||0),level:N.response.status===0||N.response.status>=500?"error":"info",message:N.response.status===0?`INF request failed error="${N.response.error}" duration=${N.requestTime}ms`:`INF request completed code=${N.response.status} duration=${N.requestTime}ms`}]})]}):p("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:p("p",{className:"text-sm",children:"Select an endpoint from the sidebar to get started"})})})]}),p(Yw,{sessionId:N.sessionId})]})}function Jw(l){const r=[...l].sort((c,f)=>c.startTime-f.startTime),i=new Map(r.map(c=>[c.id,{...c,children:[]}])),s=[];for(const c of r){const f=i.get(c.id);if(c.parentId){const d=i.get(c.parentId);d?d.children.push(f):s.push(f)}else s.push(f)}for(const[c,f]of i)f.children&&f.children.length>1&&f.children.sort((d,h)=>d.startTime-h.startTime);return s}function $w(l){return l.startsWith("http.")?{bg:"bg-gradient-to-r from-blue-500/90 to-blue-600/90",border:"border-blue-500/30",text:"text-blue-50"}:l.startsWith("db.")?{bg:"bg-gradient-to-r from-purple-500/90 to-purple-600/90",border:"border-purple-500/30",text:"text-purple-50"}:{bg:"bg-gradient-to-r from-emerald-500/90 to-emerald-600/90",border:"border-emerald-500/30",text:"text-emerald-50"}}function Fw(l){return l.startsWith("http.")?p(f2,{className:"w-3.5 h-3.5"}):l.startsWith("db.")?p(ld,{className:"w-3.5 h-3.5"}):p(Cr,{className:"w-3.5 h-3.5"})}function Gv({span:l,depth:r,totalDuration:i,t0:s,formatDuration:c}){var z;const[f,d]=v.useState(!0),h=(((z=l.children)==null?void 0:z.length)||0)>0,y=(l.startTime-s)/i*100,g=(l.duration||0)/i*100,x=l.attributes&&Object.keys(l.attributes).length>0,[S,N]=v.useState(!1),R=$w(l.name),_=Fw(l.name);return w(sn,{children:[p("div",{className:"group hover:bg-muted/50 transition-colors rounded-lg",children:w("div",{className:"flex items-start gap-3 p-3",children:[w("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",style:{paddingLeft:`${r*20}px`},children:[h?p("button",{onClick:()=>d(!f),className:"p-0.5 hover:bg-muted rounded transition-colors",children:f?p(Wy,{className:"w-3.5 h-3.5 text-muted-foreground"}):p(Iy,{className:"w-3.5 h-3.5 text-muted-foreground"})}):p("div",{className:"w-4"}),p("div",{className:`p-1.5 rounded-md ${R.bg.replace("/90","/20")} ${R.border} border`,children:_})]}),w("div",{className:"flex-1 min-w-0 space-y-2.5",children:[w("div",{className:"flex items-center justify-between gap-4",children:[w("div",{className:"flex items-center gap-3 min-w-0",children:[p("span",{className:"text-sm font-semibold font-mono truncate",children:l.name}),x&&w("button",{onClick:()=>N(!S),className:"text-xs px-2 py-0.5 rounded-full bg-muted hover:bg-muted/80 transition-colors font-medium",children:[Object.keys(l.attributes||{}).length," attrs"]})]}),p("div",{className:"flex items-center gap-2 flex-shrink-0",children:p("span",{className:"text-sm font-mono font-semibold tabular-nums",children:c(l.duration)})})]}),p("div",{className:"relative h-8 bg-muted/50 rounded-lg overflow-hidden border border-border/50",children:p("div",{className:`absolute h-full ${R.bg} ${R.border} border-2 flex items-center px-2.5 shadow-lg transition-all duration-200 group-hover:shadow-xl`,style:{left:`${y}%`,width:`${Math.max(g,.5)}%`},children:p("span",{className:`text-xs font-mono font-semibold ${R.text} truncate drop-shadow-sm`,children:l.name})})}),S&&x&&p("div",{className:"mt-2 p-3 bg-muted/30 rounded-lg border border-border/50 space-y-1.5",children:Object.entries(l.attributes||{}).map(([O,U])=>O==="http.request"||O==="http.response"?null:typeof U=="object"&&U!==null?w("div",{className:"font-mono text-xs flex items-start gap-2",children:[w("span",{className:"text-muted-foreground font-semibold",children:[O,":"]}),p("span",{className:"text-muted-foreground italic",children:"[object]"})]},O):w("div",{className:"font-mono text-xs flex items-start gap-2",children:[w("span",{className:"text-muted-foreground font-semibold min-w-[120px]",children:[O,":"]}),p("span",{className:"text-foreground break-all",children:String(U)})]},O))})]})]})}),f&&h&&p("div",{className:"space-y-1",children:l.children.map(O=>p(Gv,{span:O,depth:r+1,totalDuration:i,t0:s,formatDuration:c},O.id))})]})}function Ww({spans:l,formatDuration:r}){if(l.length===0)return p("div",{className:"text-center py-12 text-sm text-muted-foreground",children:"No spans recorded"});const i=Math.min(...l.map(d=>d.startTime)),c=Math.max(...l.map(d=>d.endTime||d.startTime))-i||1,f=Jw(l);return console.log("[SpansWaterfall] Tree:",f.map(d=>{var h;return{name:d.name,id:d.id.slice(0,8),parentId:(h=d.parentId)==null?void 0:h.slice(0,8),duration:d.duration}})),console.log("[SpansWaterfall] All spans:",l.map(d=>{var h;return{name:d.name,id:d.id.slice(0,8),parentId:(h=d.parentId)==null?void 0:h.slice(0,8),duration:d.duration}})),w("div",{className:"space-y-3",children:[w("div",{className:"flex justify-between items-center px-4 py-2 bg-muted/30 rounded-lg border border-border/50",children:[w("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs font-semibold text-muted-foreground",children:"Timeline"}),w("span",{className:"text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary font-mono font-semibold",children:[l.length," ",l.length===1?"span":"spans"]})]}),w("div",{className:"flex items-center gap-4 text-xs font-mono font-semibold tabular-nums",children:[p("span",{className:"text-muted-foreground",children:"0ms"}),p("div",{className:"w-px h-4 bg-border"}),p("span",{className:"text-foreground",children:r(c)})]})]}),p("div",{className:"space-y-1",children:f.map(d=>p(Gv,{span:d,depth:0,totalDuration:c,t0:i,formatDuration:r},d.id))})]})}function Iw({trace:l,formatDuration:r}){var d,h,y,g;const i=l.spans.find(x=>x.name==="http.request"),s=((d=l.metadata)==null?void 0:d.request)||((h=i==null?void 0:i.attributes)==null?void 0:h["http.request"]),c=((y=l.metadata)==null?void 0:y.response)||((g=i==null?void 0:i.attributes)==null?void 0:g["http.response"]),f=x=>x?x>=200&&x<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":x>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[w(dt,{children:[p(Et,{className:"bg-muted",children:p(Ut,{className:"text-base font-semibold",children:"Request"})}),p(ht,{className:"pt-4",children:w("div",{className:"space-y-3",children:[w("div",{className:"text-sm",children:[p(Xe,{className:"font-mono text-xs mr-2",children:l.method}),p("span",{className:"font-mono text-sm break-all",children:(s==null?void 0:s.url)||l.path})]}),(s==null?void 0:s.headers)&&w("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),p(Mi,{data:s.headers})]}),(s==null?void 0:s.body)!==void 0&&w("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),p(Mi,{data:s.body})]})]})})]}),w(dt,{children:[p(Et,{className:"bg-muted",children:p(Ut,{className:"text-base font-semibold",children:"Response"})}),p(ht,{className:"pt-4",children:w("div",{className:"space-y-3",children:[w("div",{className:"flex items-center gap-2 text-sm",children:[p(Xe,{className:`font-mono text-xs ${f(l.statusCode)}`,children:l.statusCode||(c==null?void 0:c.status)||"-"}),p("span",{className:"text-xs text-muted-foreground",children:r(l.duration)})]}),(c==null?void 0:c.headers)&&w("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),p(Mi,{data:c.headers})]}),(c==null?void 0:c.body)!==void 0&&w("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),p(Mi,{data:c.body})]})]})})]})]})}function Pw(){const{data:l=[]}=nv({limit:100}),r=S2(),i=N2(),{traceId:s}=If(),{addToast:c}=hd(),f=v.useRef(null),d=v.useRef(l.length);v.useEffect(()=>{l.length>d.current&&f.current&&(f.current.scrollTop=0),d.current=l.length},[l.length]);const h=async()=>{if(!(l.length===0||!window.confirm(`Remove ${l.length} trace${l.length===1?"":"s"}?`)))try{await r.mutateAsync()}catch(x){console.error("Failed to clear traces:",x),c("Failed to clear traces","error")}};return w("div",{className:"h-full flex bg-background",children:[w("div",{className:"w-1/3 flex flex-col border-r border-border bg-muted/20",children:[p("div",{className:"p-4 border-b border-border/50 bg-muted/20",children:w("div",{className:"flex items-center justify-between gap-3",children:[w("div",{children:[p("h1",{className:"text-lg font-semibold",children:"Traces"}),p("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Recent requests"})]}),w("div",{className:"flex gap-2",children:[w(Kt,{variant:"outline",size:"sm",onClick:async()=>{try{const g=await i.mutateAsync({format:"json"}),x=typeof g=="string"?g:JSON.stringify(g,null,2),S=new Blob([x],{type:"application/json"}),N=URL.createObjectURL(S),R=document.createElement("a");R.href=N;const _=new Date().toISOString().replace(/[:.]/g,"-");R.download=`vision-traces-${_}.json`,document.body.appendChild(R),R.click(),document.body.removeChild(R),URL.revokeObjectURL(N)}catch(g){console.error("Failed to export traces:",g),c("Failed to export traces","error")}},disabled:i.isPending||l.length===0,className:"text-sm",children:[p(c2,{className:"w-4 h-4 mr-1.5"}),"Export"]}),w(Kt,{variant:"outline",size:"sm",onClick:h,disabled:r.isPending||l.length===0,className:"text-sm",children:[p(tv,{className:"w-4 h-4 mr-1.5"}),"Clear"]})]})]})}),p("div",{className:"flex-1 min-h-0 overflow-y-auto",children:l.length===0?w("div",{className:"flex flex-col items-center justify-center py-20 px-6 text-muted-foreground",children:[p(Cr,{className:"w-12 h-12 mb-4 opacity-30"}),p("p",{className:"text-sm",children:"No traces yet"}),p("p",{className:"text-xs mt-1",children:"Make some API calls to see traces here"})]}):p("div",{className:"p-4 space-y-2",children:l.map((g,x)=>w("div",{children:[p(zu,{to:`/traces/${g.id}`,children:p(eE,{trace:g,isActive:g.id===s})}),x<l.length-1&&p(_u,{className:"my-2"})]},g.id))})})]}),p("div",{className:"w-2/3 flex flex-col min-h-0",children:p("div",{className:"flex-1 min-h-0 overflow-y-auto p-4",children:p(Vy,{})})})]})}function eE({trace:l,isActive:r}){var d;const i=h=>{switch(h){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},s=h=>h?h>=200&&h<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":h>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",c=h=>h==null?"-":h<1?"< 1ms":h<1e3?`${Math.round(h)}ms`:`${(h/1e3).toFixed(2)}s`,f=h=>new Date(h).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return w("div",{className:`w-full bg-background rounded-md border p-3 transition-all text-left cursor-pointer ${r?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[w("div",{className:"flex items-center gap-2 mb-2",children:[p(Xe,{className:`text-xs font-mono px-1.5 py-0 ${i(l.method)}`,children:l.method}),p(Xe,{className:`text-xs font-mono px-1.5 py-0 ${s(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&w("span",{className:"text-xs text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),p("div",{className:"font-mono text-sm text-foreground truncate mb-2",children:l.path}),((d=l.metadata)==null?void 0:d.sessionId)&&p("div",{className:"mb-2",children:w(Xe,{variant:"outline",className:"text-[10px] h-5 font-mono text-muted-foreground",children:["session: ",l.metadata.sessionId]})}),w("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[w("div",{className:"flex items-center gap-1",children:[p(Du,{className:"w-3 h-3"}),p("span",{children:f(l.timestamp)})]}),w("div",{className:"flex items-center gap-1",children:[p(Cr,{className:"w-3 h-3"}),p("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function tE({trace:l,onBack:r}){var y;const i=Gi(),s=lv(),c=async()=>{var g;try{const x=l.spans.find(Q=>{var H;return Q.name==="http.request"||!!((H=Q.attributes)!=null&&H["http.url"])}),S=((g=x==null?void 0:x.attributes)==null?void 0:g["http.url"])||l.path,N=Date.now();let R;try{new URL(S),R=S}catch{R=`http://localhost:3000${S.startsWith("/")?"":"/"}${S}`}const z=yt().on("trace.new",Q=>{Q.method===l.method&&Q.timestamp>=N&&(i(`/traces/${Q.id}`),z())}),O=Date.now(),U=await fetch(R,{method:l.method,headers:{"Content-Type":"application/json"}}),V=Date.now()-O,B=U.headers.get("X-Vision-Trace-Id");B&&s.mutate({traceId:B,clientDuration:V})}catch(x){console.error("Failed to replay request:",x)}},f=g=>g?g<1?"< 1ms":g<1e3?`${Math.round(g)}ms`:`${(g/1e3).toFixed(2)}s`:"-",d=g=>new Date(g).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1}),h=g=>g?g>=200&&g<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":g>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return w("div",{className:"w-full",children:[r&&p("div",{className:"flex items-center justify-between mb-6",children:w(Kt,{variant:"ghost",size:"sm",onClick:r,className:"text-sm font-medium",children:[p(i2,{className:"w-4 h-4 mr-2"}),"Back to Traces"]})}),w("div",{className:"space-y-4",children:[w(dt,{children:[w(Et,{className:"flex flex-row items-center justify-between",children:[p(Ut,{className:"text-base font-semibold",children:"Request Overview"}),p(Kt,{onClick:c,variant:"ghost",className:"text-sm font-medium",children:p(m2,{className:"w-4 h-4"})})]}),p(ht,{children:w("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Method"}),p("p",{className:"font-mono text-sm font-medium",children:l.method})]}),w("div",{className:"col-span-2",children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Path"}),p("p",{className:"font-mono text-sm font-medium truncate",children:l.path})]}),w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),p(Xe,{className:`text-xs font-mono ${h(l.statusCode)}`,children:l.statusCode||"Pending"})]}),w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Duration"}),(y=l.metadata)!=null&&y.clientDuration?w("div",{className:"space-y-1",children:[w("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs text-muted-foreground",children:"Server:"}),p("span",{className:"font-mono text-sm",children:f(l.duration)})]}),w("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs text-muted-foreground",children:"Total:"}),p("span",{className:"font-mono text-sm font-medium",children:f(l.metadata.clientDuration)})]}),w("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs text-muted-foreground",children:"Network:"}),p("span",{className:"font-mono text-sm text-blue-600 dark:text-blue-400",children:f(l.metadata.clientDuration-(l.duration||0))})]})]}):p("p",{className:`font-mono text-sm font-medium ${l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400":""}`,children:f(l.duration)})]}),w("div",{className:"col-span-2",children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Timestamp"}),p("p",{className:"font-mono text-sm",children:d(l.timestamp)})]}),w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Trace ID"}),p("p",{className:"font-mono text-xs text-muted-foreground",children:l.id})]})]})})]}),(()=>{const g=["request","response","sessionId","clientDuration"],x=Object.keys(l.metadata||{}).filter(S=>!g.includes(S));return x.length===0?null:w(dt,{children:[p(Et,{className:"py-4",children:p(Ut,{className:"text-base font-semibold",children:"Context"})}),p(ht,{children:p("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:x.map(S=>w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:S}),p("div",{className:"font-mono text-sm bg-muted/50 rounded px-2 py-1 inline-block break-all",children:typeof l.metadata[S]=="object"?JSON.stringify(l.metadata[S]):String(l.metadata[S])})]},S))})})]})})(),p(Iw,{trace:l,formatDuration:f}),l.logs&&l.logs.length>0&&p(kv,{logs:l.logs}),l.spans.length>0&&w(dt,{children:[p(Et,{children:w(Ut,{className:"text-base font-semibold",children:["Spans Timeline (",l.spans.length,")"]})}),p(ht,{children:p(Ww,{spans:l.spans,formatDuration:f})})]})]})]})}function rr(l,r,i){let s=i.initialDeps??[],c;function f(){var d,h,y,g;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const S=l();if(!(S.length!==s.length||S.some((_,z)=>s[z]!==_)))return c;s=S;let R;if(i.key&&((h=i.debug)!=null&&h.call(i))&&(R=Date.now()),c=r(...S),i.key&&((y=i.debug)!=null&&y.call(i))){const _=Math.round((Date.now()-x)*100)/100,z=Math.round((Date.now()-R)*100)/100,O=z/16,U=(V,B)=>{for(V=String(V);V.length<B;)V=" "+V;return V};console.info(`%c⏱ ${U(z,5)} /${U(_,5)} ms`,`
232
+ font-size: .6rem;
233
+ font-weight: bold;
234
+ color: hsl(${Math.max(0,Math.min(120-120*O,120))}deg 100% 31%);`,i==null?void 0:i.key)}return(g=i==null?void 0:i.onChange)==null||g.call(i,c),c}return f.updateDeps=d=>{s=d},f}function ay(l,r){if(l===void 0)throw new Error("Unexpected undefined");return l}const nE=(l,r)=>Math.abs(l-r)<1.01,lE=(l,r,i)=>{let s;return function(...c){l.clearTimeout(s),s=l.setTimeout(()=>r.apply(this,c),i)}},ry=l=>{const{offsetWidth:r,offsetHeight:i}=l;return{width:r,height:i}},aE=l=>l,rE=l=>{const r=Math.max(l.startIndex-l.overscan,0),i=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let c=r;c<=i;c++)s.push(c);return s},iE=(l,r)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;const c=d=>{const{width:h,height:y}=d;r({width:Math.round(h),height:Math.round(y)})};if(c(ry(i)),!s.ResizeObserver)return()=>{};const f=new s.ResizeObserver(d=>{const h=()=>{const y=d[0];if(y!=null&&y.borderBoxSize){const g=y.borderBoxSize[0];if(g){c({width:g.inlineSize,height:g.blockSize});return}}c(ry(i))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},iy={passive:!0},sy=typeof window>"u"?!0:"onscrollend"in window,sE=(l,r)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;let c=0;const f=l.options.useScrollendEvent&&sy?()=>{}:lE(s,()=>{r(c,!1)},l.options.isScrollingResetDelay),d=x=>()=>{const{horizontal:S,isRtl:N}=l.options;c=S?i.scrollLeft*(N&&-1||1):i.scrollTop,f(),r(c,x)},h=d(!0),y=d(!1);y(),i.addEventListener("scroll",h,iy);const g=l.options.useScrollendEvent&&sy;return g&&i.addEventListener("scrollend",y,iy),()=>{i.removeEventListener("scroll",h),g&&i.removeEventListener("scrollend",y)}},uE=(l,r,i)=>{if(r!=null&&r.borderBoxSize){const s=r.borderBoxSize[0];if(s)return Math.round(s[i.options.horizontal?"inlineSize":"blockSize"])}return l[i.options.horizontal?"offsetWidth":"offsetHeight"]},oE=(l,{adjustments:r=0,behavior:i},s)=>{var c,f;const d=l+r;(f=(c=s.scrollElement)==null?void 0:c.scrollTo)==null||f.call(c,{[s.options.horizontal?"left":"top"]:d,behavior:i})};class cE{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const s=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(c=>{c.forEach(f=>{const d=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var c;(c=s())==null||c.disconnect(),i=null},observe:c=>{var f;return(f=s())==null?void 0:f.observe(c,{box:"border-box"})},unobserve:c=>{var f;return(f=s())==null?void 0:f.unobserve(c)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([s,c])=>{typeof c>"u"&&delete i[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:aE,rangeExtractor:rE,onChange:()=>{},measureElement:uE,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var s,c;(c=(s=this.options).onChange)==null||c.call(s,this,i)},this.maybeNotify=rr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(c=>{this.observer.observe(c)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,c=>{this.scrollRect=c,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(c,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<c?"forward":"backward":null,this.scrollOffset=c,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,s)=>{const c=new Map,f=new Map;for(let d=s-1;d>=0;d--){const h=i[d];if(c.has(h.lane))continue;const y=f.get(h.lane);if(y==null||h.end>y.end?f.set(h.lane,h):h.end<y.end&&c.set(h.lane,!0),c.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((d,h)=>d.end===h.end?d.index-h.index:d.end-h.end)[0]:void 0},this.getMeasurementOptions=rr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,s,c,f,d)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:d}),{key:!1}),this.getMeasurements=rr(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:d},h)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(x=>{this.itemSizeCache.set(x.key,x.size)}));const y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const g=this.measurementsCache.slice(0,y);for(let x=y;x<i;x++){const S=f(x),N=this.options.lanes===1?g[x-1]:this.getFurthestMeasurement(g,x),R=N?N.end+this.options.gap:s+c,_=h.get(S),z=typeof _=="number"?_:this.options.estimateSize(x),O=R+z,U=N?N.lane:x%this.options.lanes;g[x]={index:x,start:R,size:z,end:O,key:S,lane:U}}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=rr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,s,c,f)=>this.range=i.length>0&&s>0?fE({measurements:i,outerSize:s,scrollOffset:c,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=rr(()=>{let i=null,s=null;const c=this.calculateRange();return c&&(i=c.startIndex,s=c.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,s]},(i,s,c,f,d)=>f===null||d===null?[]:i({startIndex:f,endIndex:d,overscan:s,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const s=this.options.indexAttribute,c=i.getAttribute(s);return c?parseInt(c,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(i,s)=>{const c=this.indexFromElement(i),f=this.measurementsCache[c];if(!f)return;const d=f.key,h=this.elementsCache.get(d);h!==i&&(h&&this.observer.unobserve(h),this.observer.observe(i),this.elementsCache.set(d,i)),i.isConnected&&this.resizeItem(c,this.options.measureElement(i,s,this))},this.resizeItem=(i,s)=>{const c=this.measurementsCache[i];if(!c)return;const f=this.itemSizeCache.get(c.key)??c.size,d=s-f;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(c,d,this):c.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(c.index),this.itemSizeCache=new Map(this.itemSizeCache.set(c.key,s)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,c)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(c))});return}this._measureElement(i,void 0)},this.getVirtualItems=rr(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,s)=>{const c=[];for(let f=0,d=i.length;f<d;f++){const h=i[f],y=s[h];c.push(y)}return c},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const s=this.getMeasurements();if(s.length!==0)return ay(s[Yv(0,s.length-1,c=>ay(s[c]).start,i)])},this.getOffsetForAlignment=(i,s,c=0)=>{const f=this.getSize(),d=this.getScrollOffset();s==="auto"&&(s=i>=d+f?"end":"start"),s==="center"?i+=(c-f)/2:s==="end"&&(i-=f);const h=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(h,i),0)},this.getOffsetForIndex=(i,s="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const c=this.measurementsCache[i];if(!c)return;const f=this.getSize(),d=this.getScrollOffset();if(s==="auto")if(c.end>=d+f-this.options.scrollPaddingEnd)s="end";else if(c.start<=d+this.options.scrollPaddingStart)s="start";else return[d,s];const h=s==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(h,s,c.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:s="start",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,s),{adjustments:void 0,behavior:c})},this.scrollToIndex=(i,{align:s="auto",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1));let f=0;const d=10,h=g=>{if(!this.targetWindow)return;const x=this.getOffsetForIndex(i,g);if(!x){console.warn("Failed to get offset for index:",i);return}const[S,N]=x;this._scrollToOffset(S,{adjustments:void 0,behavior:c}),this.targetWindow.requestAnimationFrame(()=>{const R=this.getScrollOffset(),_=this.getOffsetForIndex(i,N);if(!_){console.warn("Failed to get offset for index:",i);return}nE(_[0],R)||y(N)})},y=g=>{this.targetWindow&&(f++,f<d?this.targetWindow.requestAnimationFrame(()=>h(g)):console.warn(`Failed to scroll to index ${i} after ${d} attempts.`))};h(s)},this.scrollBy=(i,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var i;const s=this.getMeasurements();let c;if(s.length===0)c=this.options.paddingStart;else if(this.options.lanes===1)c=((i=s[s.length-1])==null?void 0:i.end)??0;else{const f=Array(this.options.lanes).fill(null);let d=s.length-1;for(;d>=0&&f.some(h=>h===null);){const h=s[d];f[h.lane]===null&&(f[h.lane]=h.end),d--}c=Math.max(...f.filter(h=>h!==null))}return Math.max(c-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:s,behavior:c})=>{this.options.scrollToFn(i,{behavior:c,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const Yv=(l,r,i,s)=>{for(;l<=r;){const c=(l+r)/2|0,f=i(c);if(f<s)l=c+1;else if(f>s)r=c-1;else return c}return l>0?l-1:0};function fE({measurements:l,outerSize:r,scrollOffset:i,lanes:s}){const c=l.length-1,f=y=>l[y].start;if(l.length<=s)return{startIndex:0,endIndex:c};let d=Yv(0,c,f,i),h=d;if(s===1)for(;h<c&&l[h].end<i+r;)h++;else if(s>1){const y=Array(s).fill(0);for(;h<c&&y.some(x=>x<i+r);){const x=l[h];y[x.lane]=x.end,h++}const g=Array(s).fill(i+r);for(;d>=0&&g.some(x=>x>=i);){const x=l[d];g[x.lane]=x.start,d--}d=Math.max(0,d-d%s),h=Math.min(c,h+(s-1-h%s))}return{startIndex:d,endIndex:h}}const uy=typeof document<"u"?v.useLayoutEffect:v.useEffect;function dE(l){const r=v.useReducer(()=>({}),{})[1],i={...l,onChange:(c,f)=>{var d;f?t2.flushSync(r):r(),(d=l.onChange)==null||d.call(l,c,f)}},[s]=v.useState(()=>new cE(i));return s.setOptions(i),uy(()=>s._didMount(),[]),uy(()=>s._willUpdate()),s}function hE(l){return dE({observeElementRect:iE,observeElementOffset:sE,scrollToFn:oE,...l})}function mE(){const[l,r]=v.useState("all"),[i,s]=v.useState(""),c=E2(),f=Gi(),{data:d=[]}=w2({limit:1e4,level:l==="all"?void 0:l,search:i||void 0}),h=v.useRef(null),y=hE({count:d.length,getScrollElement:()=>h.current,estimateSize:()=>28,overscan:20,measureElement:_=>_.getBoundingClientRect().height}),g=()=>{confirm("Clear all logs?")&&c.mutate()},x=_=>{var V;const O=(_.message||"").match(/traceId=([^\s]+)/);if(O)return O[1];const U=(V=_==null?void 0:_.args)==null?void 0:V.find(B=>B&&typeof B=="object"&&"traceId"in B);return U==null?void 0:U.traceId},S=_=>{if(!_)return{cleanMessage:"",properties:null};const z=/(\w+)=(?:"([^"]*)"|([^\s]*))/g,O=[..._.matchAll(z)];if(O.length===0)return{cleanMessage:_,properties:null};let U=_;const V={};return O.forEach(B=>{const[Q,H,k,K]=B,F=k??K;U=U.replace(Q,"");try{V[H]=F.startsWith("{")||F.startsWith("[")?JSON.parse(F):F}catch{V[H]=F}}),{cleanMessage:U.replace(/\s+/g," ").trim(),properties:V}},N=_=>{switch(_==null?void 0:_.toLowerCase()){case"error":return"text-red-500 dark:text-red-400";case"warn":return"text-yellow-500 dark:text-yellow-400";case"info":return"text-blue-500 dark:text-blue-400";case"debug":return"text-purple-500 dark:text-purple-400";default:return"text-gray-500 dark:text-gray-400"}},R=_=>new Date(_).toISOString().split("T")[1].slice(0,-1);return w("div",{className:"h-full flex flex-col bg-background",children:[w("div",{className:"border-b border-border px-6 py-4 bg-background/80 backdrop-blur-sm",children:[w("div",{className:"flex items-center justify-between mb-4",children:[w("div",{className:"flex items-center gap-2",children:[p(qf,{className:"w-5 h-5 text-muted-foreground"}),p("h1",{className:"text-lg font-semibold tracking-tight",children:"System Logs"})]}),p("div",{className:"flex gap-2",children:w(Kt,{variant:"outline",size:"sm",onClick:g,className:"text-xs font-mono h-8",children:[p(tv,{className:"w-3.5 h-3.5 mr-1.5"}),"clear_logs"]})})]}),w("div",{className:"flex flex-col md:flex-row gap-4",children:[p("div",{className:"flex gap-1 p-1 bg-muted rounded-lg self-start",children:["all","log","info","warn","error","debug"].map(_=>p("button",{onClick:()=>r(_),className:`px-3 py-1 text-[11px] font-medium font-mono uppercase tracking-wider rounded-md transition-all ${l===_?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground hover:bg-background/50"}`,children:_},_))}),w("div",{className:"flex-1 max-w-md relative group",children:[p(p2,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground group-focus-within:text-primary transition-colors"}),p(sd,{type:"text",placeholder:"grep logs...",value:i,onChange:_=>s(_.target.value),className:"pl-9 h-9 text-sm font-mono bg-muted/50 border-transparent focus:border-border focus:bg-background transition-all"})]}),p("div",{className:"flex items-center gap-2 ml-auto text-xs font-mono text-muted-foreground",children:w("span",{children:[d.length," entries"]})})]})]}),p("div",{ref:h,className:"flex-1 overflow-auto px-4 py-2 font-mono text-[11px] md:text-xs",children:d.length===0?w("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground opacity-50",children:[p(qf,{className:"w-12 h-12 mb-4 stroke-1"}),p("p",{className:"text-sm",children:"No logs output"}),p("p",{className:"text-xs mt-1 font-mono",children:"Waiting for system activity..."})]}):p("div",{style:{height:`${y.getTotalSize()}px`,width:"100%",position:"relative"},children:y.getVirtualItems().map(_=>{const z=d[_.index],O=x(z),U=z.message.includes("starting request")||z.message.includes("request completed")||z.message.includes("request failed"),{cleanMessage:V,properties:B}=U?S(z.message):{cleanMessage:z.message,properties:null};return w("div",{"data-index":_.index,ref:y.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${_.start}px)`},className:"group flex items-start gap-3 hover:bg-muted/40 px-2 -mx-2 rounded transition-colors py-0.5",children:[p("span",{className:"shrink-0 text-muted-foreground select-none w-20 md:w-24 tabular-nums opacity-60 group-hover:opacity-100 transition-opacity",children:R(z.timestamp)}),p("span",{className:`shrink-0 w-10 md:w-12 font-bold uppercase tracking-wider text-[10px] md:text-[11px] py-px ${N(z.level)}`,children:z.level}),w("div",{className:"flex-1 min-w-0",children:[w("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[p("span",{className:"text-foreground break-words whitespace-pre-wrap leading-relaxed",children:V}),U&&w(sn,{children:[B&&Object.entries(B).map(([Q,H])=>w("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-muted text-muted-foreground border border-border",children:[w("span",{className:"opacity-70 mr-1",children:[Q,"="]}),p("span",{className:"font-medium text-foreground",children:String(H)})]},`meta-${Q}`)),z.context&&Object.entries(z.context).map(([Q,H])=>["request","response","sessionId","clientDuration"].includes(Q)||B&&Q in B?null:w("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[10px] bg-blue-50 dark:bg-blue-900/30 text-blue-600 dark:text-blue-300 border border-blue-100 dark:border-blue-800/50",children:[w("span",{className:"opacity-70 mr-1",children:[Q,"="]}),p("span",{className:"font-medium",children:typeof H=="object"?JSON.stringify(H):String(H)})]},`ctx-${Q}`))]}),O&&w("button",{onClick:()=>f(`/traces/${O}`),className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline opacity-0 group-hover:opacity-100 transition-opacity ml-auto",children:[w("span",{children:["trace:",O.slice(0,7)]}),p(s2,{className:"w-3 h-3"})]})]}),z.stack&&w("details",{className:"mt-1",onToggle:Q=>{const H=Q.currentTarget.closest("[data-index]")||void 0;H&&y.measureElement(H)},children:[p("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground select-none inline-flex items-center gap-1 transition-colors",children:p("span",{className:"text-[10px] uppercase tracking-wide",children:"Show Stack Trace"})}),p("div",{className:"mt-2 pl-3 border-l-2 border-border text-muted-foreground overflow-x-auto",children:p("pre",{className:"font-mono text-[10px] leading-relaxed whitespace-pre select-text",children:z.stack})})]})]})]},_.key)})})})]})}function pE(l){const r=l+"CollectionProvider",[i,s]=Lu(r),[c,f]=i(r,{collectionRef:{current:null},itemMap:new Map}),d=z=>{const{scope:O,children:U}=z,V=wt.useRef(null),B=wt.useRef(new Map).current;return p(c,{scope:O,itemMap:B,collectionRef:V,children:U})};d.displayName=r;const h=l+"CollectionSlot",y=Hf(h),g=wt.forwardRef((z,O)=>{const{scope:U,children:V}=z,B=f(h,U),Q=Tn(O,B.collectionRef);return p(y,{ref:Q,children:V})});g.displayName=h;const x=l+"CollectionItemSlot",S="data-radix-collection-item",N=Hf(x),R=wt.forwardRef((z,O)=>{const{scope:U,children:V,...B}=z,Q=wt.useRef(null),H=Tn(O,Q),k=f(x,U);return wt.useEffect(()=>(k.itemMap.set(Q,{ref:Q,...B}),()=>void k.itemMap.delete(Q))),p(N,{[S]:"",ref:H,children:V})});R.displayName=x;function _(z){const O=f(l+"CollectionConsumer",z);return wt.useCallback(()=>{const V=O.collectionRef.current;if(!V)return[];const B=Array.from(V.querySelectorAll(`[${S}]`));return Array.from(O.itemMap.values()).sort((k,K)=>B.indexOf(k.ref.current)-B.indexOf(K.ref.current))},[O.collectionRef,O.itemMap])}return[{Provider:d,Slot:g,ItemSlot:R},_,s]}var gE=Sy[" useId ".trim().toString()]||(()=>{}),yE=0;function Vv(l){const[r,i]=v.useState(gE());return Li(()=>{i(s=>s??String(yE++))},[l]),r?`radix-${r}`:""}var vE=Sy[" useInsertionEffect ".trim().toString()]||Li;function Xv({prop:l,defaultProp:r,onChange:i=()=>{},caller:s}){const[c,f,d]=bE({defaultProp:r,onChange:i}),h=l!==void 0,y=h?l:c;{const x=v.useRef(l!==void 0);v.useEffect(()=>{const S=x.current;S!==h&&console.warn(`${s} is changing from ${S?"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,s])}const g=v.useCallback(x=>{var S;if(h){const N=xE(x)?x(l):x;N!==l&&((S=d.current)==null||S.call(d,N))}else f(x)},[h,l,f,d]);return[y,g]}function bE({defaultProp:l,onChange:r}){const[i,s]=v.useState(l),c=v.useRef(i),f=v.useRef(r);return vE(()=>{f.current=r},[r]),v.useEffect(()=>{var d;c.current!==i&&((d=f.current)==null||d.call(f,i),c.current=i)},[i,c]),[i,s,f]}function xE(l){return typeof l=="function"}var bf="rovingFocusGroup.onEntryFocus",SE={bubbles:!1,cancelable:!0},Xi="RovingFocusGroup",[Bf,Kv,NE]=pE(Xi),[wE,Zv]=Lu(Xi,[NE]),[EE,TE]=wE(Xi),Jv=v.forwardRef((l,r)=>p(Bf.Provider,{scope:l.__scopeRovingFocusGroup,children:p(Bf.Slot,{scope:l.__scopeRovingFocusGroup,children:p(CE,{...l,ref:r})})}));Jv.displayName=Xi;var CE=v.forwardRef((l,r)=>{const{__scopeRovingFocusGroup:i,orientation:s,loop:c=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...S}=l,N=v.useRef(null),R=Tn(r,N),_=ud(f),[z,O]=Xv({prop:d,defaultProp:h??null,onChange:y,caller:Xi}),[U,V]=v.useState(!1),B=Ol(g),Q=Kv(i),H=v.useRef(!1),[k,K]=v.useState(0);return v.useEffect(()=>{const F=N.current;if(F)return F.addEventListener(bf,B),()=>F.removeEventListener(bf,B)},[B]),p(EE,{scope:i,orientation:s,dir:_,loop:c,currentTabStopId:z,onItemFocus:v.useCallback(F=>O(F),[O]),onItemShiftTab:v.useCallback(()=>V(!0),[]),onFocusableItemAdd:v.useCallback(()=>K(F=>F+1),[]),onFocusableItemRemove:v.useCallback(()=>K(F=>F-1),[]),children:p(Zt.div,{tabIndex:U||k===0?-1:0,"data-orientation":s,...S,ref:R,style:{outline:"none",...l.style},onMouseDown:gt(l.onMouseDown,()=>{H.current=!0}),onFocus:gt(l.onFocus,F=>{const I=!H.current;if(F.target===F.currentTarget&&I&&!U){const $=new CustomEvent(bf,SE);if(F.currentTarget.dispatchEvent($),!$.defaultPrevented){const oe=Q().filter(D=>D.focusable),ie=oe.find(D=>D.active),qe=oe.find(D=>D.id===z),le=[ie,qe,...oe].filter(Boolean).map(D=>D.ref.current);Wv(le,x)}}H.current=!1}),onBlur:gt(l.onBlur,()=>V(!1))})})}),$v="RovingFocusGroupItem",Fv=v.forwardRef((l,r)=>{const{__scopeRovingFocusGroup:i,focusable:s=!0,active:c=!1,tabStopId:f,children:d,...h}=l,y=Vv(),g=f||y,x=TE($v,i),S=x.currentTabStopId===g,N=Kv(i),{onFocusableItemAdd:R,onFocusableItemRemove:_,currentTabStopId:z}=x;return v.useEffect(()=>{if(s)return R(),()=>_()},[s,R,_]),p(Bf.ItemSlot,{scope:i,id:g,focusable:s,active:c,children:p(Zt.span,{tabIndex:S?0:-1,"data-orientation":x.orientation,...h,ref:r,onMouseDown:gt(l.onMouseDown,O=>{s?x.onItemFocus(g):O.preventDefault()}),onFocus:gt(l.onFocus,()=>x.onItemFocus(g)),onKeyDown:gt(l.onKeyDown,O=>{if(O.key==="Tab"&&O.shiftKey){x.onItemShiftTab();return}if(O.target!==O.currentTarget)return;const U=OE(O,x.orientation,x.dir);if(U!==void 0){if(O.metaKey||O.ctrlKey||O.altKey||O.shiftKey)return;O.preventDefault();let B=N().filter(Q=>Q.focusable).map(Q=>Q.ref.current);if(U==="last")B.reverse();else if(U==="prev"||U==="next"){U==="prev"&&B.reverse();const Q=B.indexOf(O.currentTarget);B=x.loop?ME(B,Q+1):B.slice(Q+1)}setTimeout(()=>Wv(B))}}),children:typeof d=="function"?d({isCurrentTabStop:S,hasTabStop:z!=null}):d})})});Fv.displayName=$v;var AE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function RE(l,r){return r!=="rtl"?l:l==="ArrowLeft"?"ArrowRight":l==="ArrowRight"?"ArrowLeft":l}function OE(l,r,i){const s=RE(l.key,i);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return AE[s]}function Wv(l,r=!1){const i=document.activeElement;for(const s of l)if(s===i||(s.focus({preventScroll:r}),document.activeElement!==i))return}function ME(l,r){return l.map((i,s)=>l[(r+s)%l.length])}var zE=Jv,DE=Fv,Hu="Tabs",[_E]=Lu(Hu,[Zv]),Iv=Zv(),[UE,md]=_E(Hu),Pv=v.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,onValueChange:c,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:y="automatic",...g}=l,x=ud(h),[S,N]=Xv({prop:s,onChange:c,defaultProp:f??"",caller:Hu});return p(UE,{scope:i,baseId:Vv(),value:S,onValueChange:N,orientation:d,dir:x,activationMode:y,children:p(Zt.div,{dir:x,"data-orientation":d,...g,ref:r})})});Pv.displayName=Hu;var e0="TabsList",t0=v.forwardRef((l,r)=>{const{__scopeTabs:i,loop:s=!0,...c}=l,f=md(e0,i),d=Iv(i);return p(zE,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:s,children:p(Zt.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:r})})});t0.displayName=e0;var n0="TabsTrigger",l0=v.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,disabled:c=!1,...f}=l,d=md(n0,i),h=Iv(i),y=i0(d.baseId,s),g=s0(d.baseId,s),x=s===d.value;return p(DE,{asChild:!0,...h,focusable:!c,active:x,children:p(Zt.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":g,"data-state":x?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...f,ref:r,onMouseDown:gt(l.onMouseDown,S=>{!c&&S.button===0&&S.ctrlKey===!1?d.onValueChange(s):S.preventDefault()}),onKeyDown:gt(l.onKeyDown,S=>{[" ","Enter"].includes(S.key)&&d.onValueChange(s)}),onFocus:gt(l.onFocus,()=>{const S=d.activationMode!=="manual";!x&&!c&&S&&d.onValueChange(s)})})})});l0.displayName=n0;var a0="TabsContent",r0=v.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,forceMount:c,children:f,...d}=l,h=md(a0,i),y=i0(h.baseId,s),g=s0(h.baseId,s),x=s===h.value,S=v.useRef(x);return v.useEffect(()=>{const N=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(N)},[]),p(Rr,{present:c||x,children:({present:N})=>p(Zt.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!N,id:g,tabIndex:0,...d,ref:r,style:{...l.style,animationDuration:S.current?"0s":void 0},children:N&&f})})});r0.displayName=a0;function i0(l,r){return`${l}-trigger-${r}`}function s0(l,r){return`${l}-content-${r}`}var LE=Pv,u0=t0,o0=l0,c0=r0;const qE=LE,f0=v.forwardRef(({className:l,...r},i)=>p(u0,{ref:i,className:mt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",l),...r}));f0.displayName=u0.displayName;const kf=v.forwardRef(({className:l,...r},i)=>p(o0,{ref:i,className:mt("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 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",l),...r}));kf.displayName=o0.displayName;const Qf=v.forwardRef(({className:l,...r},i)=>p(c0,{ref:i,className:mt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",l),...r}));Qf.displayName=c0.displayName;function jE(){const{data:l=[],isLoading:r}=av(),{data:i=[],isLoading:s}=A2(),c=r||s,f=h=>h?new Date(h).toLocaleString():"Never",d=(h,y)=>h===0?0:Math.round((h-y)/h*100);return c?p("div",{className:"flex items-center justify-center h-96",children:w("div",{className:"text-center",children:[p("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),p("p",{className:"text-gray-600",children:"Loading events and cron jobs..."})]})}):w("div",{className:"flex flex-col h-full bg-background",children:[w("div",{className:"bg-background border-b px-6 py-4 flex-shrink-0",children:[p("h1",{className:"text-lg font-semibold",children:"Events & Cron Jobs"}),p("p",{className:"text-sm text-muted-foreground mt-1.5",children:"Monitor your event-driven architecture and scheduled tasks"})]}),p("div",{className:"bg-background px-6 py-4 flex-1 min-h-0",children:w(qE,{defaultValue:"events",className:"w-full h-full flex flex-col",children:[w(f0,{className:"grid w-full grid-cols-2",children:[w(kf,{value:"events",children:[p(Cr,{className:"w-4 h-4 mr-2"}),"Events (",l.length,")"]}),w(kf,{value:"crons",children:[p(Du,{className:"w-4 h-4 mr-2"}),"Cron Jobs (",i.length,")"]})]}),p(Qf,{value:"events",className:"flex-1 overflow-y-auto mt-4",children:l.length===0?p(dt,{children:p(ht,{className:"pt-4",children:p("p",{className:"text-gray-500 text-center",children:"No events registered yet"})})}):p("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:l.map(h=>w(dt,{className:"hover:shadow-md transition-shadow",children:[p(Et,{className:"pb-3",children:w("div",{className:"flex items-start justify-between",children:[w("div",{className:"flex items-start gap-3 flex-1",children:[p("div",{className:"text-xl mt-0.5",children:h.icon||"📡"}),w("div",{className:"flex-1",children:[p(Ut,{className:"text-base font-semibold",children:h.name}),h.description&&p("p",{className:"text-sm text-muted-foreground mt-1",children:h.description})]})]}),w("div",{className:"text-right",children:[p("div",{className:"text-xl font-semibold text-primary",children:h.totalCount}),p("p",{className:"text-xs text-gray-500",children:"total events"})]})]})}),w(ht,{className:"space-y-3",children:[w("div",{className:"grid grid-cols-2 gap-3",children:[w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Handlers"}),p("p",{className:"text-sm font-medium",children:h.handlers})]}),w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),w("div",{className:"flex items-center gap-2",children:[p("div",{className:"flex-1 bg-muted rounded-full h-2",children:p("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${d(h.totalCount,h.failedCount)}%`}})}),w("span",{className:"text-sm font-medium",children:[d(h.totalCount,h.failedCount),"%"]})]})]})]}),w("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Last Triggered"}),p("p",{className:"text-sm",children:f(h.lastTriggered)})]}),w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Events"}),p("div",{className:"flex items-center gap-2",children:h.failedCount>0?w(sn,{children:[p(wu,{className:"w-4 h-4 text-red-500"}),p("span",{className:"text-sm font-medium text-red-600",children:h.failedCount})]}):w(sn,{children:[p(Gg,{className:"w-4 h-4 text-green-500"}),p("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),h.tags&&h.tags.length>0&&w("div",{className:"pt-2 border-t",children:[p("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),p("div",{className:"flex flex-wrap gap-2",children:h.tags.map(y=>w(Xe,{variant:"secondary",className:"text-xs",children:[p(Vg,{className:"w-3 h-3 mr-1"}),y]},y))})]})]})]},h.name))})}),p(Qf,{value:"crons",className:"flex-1 overflow-y-auto mt-4",children:i.length===0?p(dt,{children:p(ht,{className:"pt-4",children:p("p",{className:"text-gray-500 text-center",children:"No cron jobs scheduled"})})}):p("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:i.map(h=>w(dt,{className:"hover:shadow-md transition-shadow",children:[p(Et,{className:"pb-3",children:w("div",{className:"flex items-start justify-between",children:[w("div",{className:"flex items-start gap-3 flex-1",children:[p("div",{className:"text-xl mt-0.5",children:h.icon||"⏰"}),w("div",{className:"flex-1",children:[p(Ut,{className:"text-base font-semibold",children:h.name}),h.description&&p("p",{className:"text-sm text-muted-foreground mt-1",children:h.description}),w("div",{className:"mt-2 flex items-center gap-2",children:[p(u2,{className:"w-4 h-4 text-gray-500"}),p("code",{className:"text-xs bg-muted px-2 py-1 rounded font-mono",children:h.schedule})]})]})]}),w("div",{className:"text-right",children:[p("div",{className:"text-xl font-semibold text-primary",children:h.totalRuns}),p("p",{className:"text-xs text-gray-500",children:"total runs"})]})]})}),w(ht,{className:"space-y-3",children:[w("div",{className:"grid grid-cols-2 gap-3",children:[w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),w("div",{className:"flex items-center gap-2",children:[p("div",{className:"flex-1 bg-muted rounded-full h-2",children:p("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${d(h.totalRuns,h.failedRuns)}%`}})}),w("span",{className:"text-sm font-medium",children:[d(h.totalRuns,h.failedRuns),"%"]})]})]}),w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Runs"}),p("div",{className:"flex items-center gap-2",children:h.failedRuns>0?w(sn,{children:[p(wu,{className:"w-4 h-4 text-red-500"}),p("span",{className:"text-sm font-medium text-red-600",children:h.failedRuns})]}):w(sn,{children:[p(Gg,{className:"w-4 h-4 text-green-500"}),p("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),w("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Last Run"}),p("p",{className:"text-sm",children:f(h.lastRun)})]}),w("div",{children:[p("p",{className:"text-xs text-gray-500 mb-1",children:"Next Run"}),p("p",{className:"text-sm",children:f(h.nextRun)})]})]}),h.tags&&h.tags.length>0&&w("div",{className:"pt-2 border-t",children:[p("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),p("div",{className:"flex flex-wrap gap-2",children:h.tags.map(y=>w(Xe,{variant:"secondary",className:"text-xs",children:[p(Vg,{className:"w-3 h-3 mr-1"}),y]},y))})]})]})]},h.name))})})]})})]})}function HE(){var V,B,Q;const{data:l}=ad(),{data:r=[]}=C2(),i=Gi(),[s,c]=v.useState(null),[f,d]=v.useState(new Set),h=(V=l==null?void 0:l.metadata)==null?void 0:V.integrations,y=H=>{const k=new Set(f);k.has(H)?k.delete(H):k.add(H),d(k)},g=(H,k,K)=>{c({service:H,method:k,path:K})},x=()=>{s&&i(`/api-explorer?method=${s.method}&path=${s.path}`)},S=r.reduce((H,k)=>H+k.routes.length,0),N=s?(B=r.find(H=>H.name===s.service))==null?void 0:B.routes.find(H=>H.method===s.method&&H.path===s.path):null,R=H=>{const k=H==null?void 0:H.match(/:(\w+)/g);return k?k.map(K=>K.slice(1)):[]},_=H=>{switch(H){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300";case"PATCH":return"bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},z=H=>H.includes("database")||H.includes("postgres")||H.includes("mysql")?p(ld,{className:"w-4 h-4"}):p(Yg,{className:"w-4 h-4"}),O=H=>{try{const k=new URL(H);return k.password&&(k.password="***"),k.toString()}catch{return H}},U=R(s==null?void 0:s.path);return w("div",{className:"h-full flex bg-background",children:[w("div",{className:"w-80 border-r border-border bg-muted/20 flex flex-col",children:[p("div",{className:"px-4 py-3 border-b border-border bg-muted/20",children:w("div",{className:"flex items-center justify-between",children:[p("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Services"}),p(Xe,{variant:"secondary",className:"text-xs",children:r.length})]})}),p(Au,{className:"flex-1",children:p("div",{className:"p-3",children:r.length===0?w("div",{className:"text-center text-sm text-muted-foreground py-12",children:[p(Yg,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),p("p",{className:"text-sm",children:"No services discovered yet"})]}):p("div",{className:"space-y-2",children:r.map(H=>w("div",{children:[w("button",{className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left hover:bg-gray-100 dark:hover:bg-primary dark:hover:text-primary-foreground rounded",onClick:()=>y(H.name),children:[f.has(H.name)?p(Wy,{className:"w-4 h-4 flex-shrink-0"}):p(Iy,{className:"w-4 h-4 flex-shrink-0"}),p("span",{className:"font-medium",children:H.name}),p("span",{className:"text-xs text-gray-500 ml-auto",children:H.routes.length})]}),f.has(H.name)&&p("div",{className:"ml-6 mt-1 space-y-0.5",children:H.routes.map((k,K)=>w("button",{className:`w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left rounded ${(s==null?void 0:s.service)===H.name&&(s==null?void 0:s.method)===k.method&&(s==null?void 0:s.path)===k.path?"bg-blue-50 text-blue-700":"hover:bg-gray-50 dark:hover:bg-primary dark:hover:text-primary-foreground"}`,onClick:()=>g(H.name,k.method,k.path),children:[p(Xe,{className:`text-[10px] font-mono w-12 flex items-center justify-center px-1.5 py-0 ${_(k.method)}`,children:k.method}),p("span",{className:"text-xs truncate",children:k.path})]},`${k.method}-${k.path}-${K}`))})]},H.name))})})})]}),p(Au,{className:"flex-1",children:w("div",{className:"p-6",children:[p("h1",{className:"text-lg font-semibold mb-6",children:"Service Catalog"}),w(dt,{className:"mb-6",children:[p(Et,{children:w(Ut,{className:"flex items-center gap-2 text-base font-semibold",children:[p(r2,{className:"w-5 h-5"}),(l==null?void 0:l.name)||"Unknown Service"]})}),w(ht,{children:[w("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Version"}),p("p",{className:"text-sm font-medium",children:(l==null?void 0:l.version)||"N/A"})]}),w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Framework"}),p("p",{className:"text-sm font-medium",children:((Q=l==null?void 0:l.metadata)==null?void 0:Q.framework)||"N/A"})]}),w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),p(Xe,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600":"",children:l!=null&&l.running?"Running":"Stopped"})]}),w("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Endpoints"}),p("p",{className:"text-sm font-medium",children:S})]})]}),(l==null?void 0:l.description)&&w("div",{className:"mt-4 pt-4 border-t",children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Description"}),p("p",{className:"text-sm",children:l.description})]})]})]}),h&&Object.keys(h).length>0&&w(dt,{className:"mb-6",children:[p(Et,{children:p(Ut,{className:"text-base font-semibold",children:"Integrations"})}),p(ht,{children:p("div",{className:"space-y-3",children:Object.entries(h).map(([H,k])=>w("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[p("div",{className:"mt-0.5",children:z(H)}),w("div",{className:"flex-1 min-w-0",children:[p("p",{className:"text-sm font-medium capitalize",children:H}),p("p",{className:"text-xs text-muted-foreground font-mono truncate",title:k,children:O(k)})]})]},H))})})]}),s&&w(dt,{children:[p(Et,{className:"border-b",children:w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-3",children:[p(Xe,{className:`text-xs font-mono ${_(s.method)}`,children:s.method}),w("div",{children:[p("div",{className:"font-mono text-md font-semibold",children:s.path}),w("div",{className:"text-sm text-muted-foreground mt-0.5",children:[s.service," service"]})]})]}),w(Kt,{onClick:x,className:"bg-blue-600 hover:bg-blue-700 text-white text-xs",size:"sm",children:[p(ev,{className:"w-4 h-4 mr-2"}),"Test in API Explorer"]})]})}),p(ht,{className:"pt-6",children:w("div",{className:"space-y-6",children:[U.length>0?w("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Path Parameters"}),p("div",{className:"space-y-2",children:U.map(H=>w("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[p("code",{className:"text-sm font-mono font-semibold text-primary",children:H}),p("span",{className:"text-xs text-muted-foreground mt-0.5",children:"string"})]},H))})]}):null,s.method==="GET"&&w("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Query Parameters"}),p("div",{className:"p-4 bg-muted rounded-lg border",children:p("p",{className:"text-sm text-muted-foreground",children:"Optional query parameters can be added in API Explorer"})})]}),["POST","PUT","PATCH"].includes(s.method)&&w("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Request Body Schema"}),N!=null&&N.requestBody?w("div",{className:"space-y-3",children:[p("div",{className:"space-y-2",children:N.requestBody.fields.map(H=>p("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:w("div",{className:"flex-1",children:[w("div",{className:"flex items-center gap-2",children:[p("code",{className:"text-sm font-mono font-semibold",children:H.name}),p(Xe,{variant:"outline",className:"text-xs",children:H.type}),H.required&&p(Xe,{variant:"destructive",className:"text-xs",children:"required"})]}),H.description&&p("p",{className:"text-xs text-muted-foreground mt-1",children:H.description})]})},H.name))}),p("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]}):p("div",{className:"p-4 bg-muted rounded-lg border",children:p("p",{className:"text-sm text-muted-foreground",children:"No schema defined. Configure request body in API Explorer"})})]}),(N==null?void 0:N.responseBody)&&w("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Response Body Schema"}),w("div",{className:"space-y-3",children:[p("div",{className:"space-y-2",children:N.responseBody.fields.map(H=>p("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:w("div",{className:"flex-1",children:[w("div",{className:"flex items-center gap-2",children:[p("code",{className:"text-sm font-mono font-semibold",children:H.name}),p(Xe,{variant:"outline",className:"text-xs",children:H.type}),H.required&&p(Xe,{variant:"secondary",className:"text-xs",children:"always present"})]}),H.description&&p("p",{className:"text-xs text-muted-foreground mt-1",children:H.description})]})},H.name))}),p("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]})]}),(N==null?void 0:N.handler)&&N.handler!=="anonymous"&&w("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Handler"}),p("code",{className:"text-sm bg-muted px-3 py-1.5 rounded border inline-block",children:N.handler})]})]})})]})]})})]})}const BE=rd("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d0=v.forwardRef(({className:l,variant:r,...i},s)=>p("div",{ref:s,role:"alert",className:mt(BE({variant:r}),l),...i}));d0.displayName="Alert";const kE=v.forwardRef(({className:l,...r},i)=>p("h5",{ref:i,className:mt("mb-1 font-medium leading-none tracking-tight",l),...r}));kE.displayName="AlertTitle";const h0=v.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:mt("text-sm [&_p]:leading-relaxed",l),...r}));h0.displayName="AlertDescription";function QE(){var s,c,f;const{data:l}=ad(),r=(s=l==null?void 0:l.metadata)==null?void 0:s.drizzle;if(!(r!=null&&r.detected))return p("div",{className:"h-full flex items-center justify-center bg-muted p-6",children:w(dt,{className:"max-w-lg",children:[p(Et,{children:w(Ut,{className:"flex items-center gap-2 text-base",children:[p(wu,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-500"}),"No Database Detected"]})}),w(ht,{className:"space-y-4",children:[p("p",{className:"text-sm text-muted-foreground",children:"Vision couldn't detect a Drizzle configuration file."}),w("div",{className:"space-y-3",children:[p("p",{className:"text-sm font-medium",children:"To enable database features:"}),w("ol",{className:"list-decimal list-inside space-y-2 text-sm text-muted-foreground",children:[w("li",{children:["Create ",p("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono border",children:"drizzle.config.ts"})]}),p("li",{children:"Enable auto-start in Vision config:"})]}),p("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`app.use('*', visionAdapter({
235
+ drizzle: {
236
+ autoStart: true, // Auto-start Drizzle Studio
237
+ port: 4983 // Optional, default: 4983
238
+ }
239
+ }))`})]})]})]})});const i=r.studioUrl;return w("div",{className:"h-full flex flex-col bg-background",children:[p("div",{className:"border-b px-6 py-4 bg-background",children:w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-3",children:[p(ld,{className:"w-5 h-5 text-blue-600 dark:text-blue-500"}),w("div",{className:"flex items-center gap-3",children:[p("h1",{className:"text-lg font-semibold",children:"Drizzle Studio"}),w("div",{className:"flex items-center gap-2 mt-1",children:[p(Xe,{variant:r.autoStarted?"default":"secondary",className:r.autoStarted?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700 text-xs":"text-xs",children:r.autoStarted?"Running":"Stopped"}),p("span",{className:"text-xs text-muted-foreground",children:r.autoStarted?"Auto-started":"Manual start required"})]})]})]}),p("div",{className:"flex items-center gap-2",children:i&&w(Kt,{variant:"outline",size:"sm",onClick:()=>window.open(i,"_blank"),children:[p(ev,{className:"w-4 h-4 mr-2"}),p("span",{className:"text-sm font-medium",children:"Open in New Tab"})]})})]})}),!r.autoStarted&&p("div",{className:"p-6",children:w(d0,{className:"border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-950",children:[p(wu,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-500"}),p(h0,{children:w("div",{className:"space-y-3",children:[p("p",{className:"text-sm font-medium",children:"Drizzle Studio is not running"}),p("p",{className:"text-sm text-muted-foreground",children:"Start Drizzle Studio manually or enable auto-start:"}),p("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`# Start manually:
240
+ npx drizzle-kit studio --port ${((f=(c=r.studioUrl)==null?void 0:c.match(/:(\d+)/))==null?void 0:f[1])||4983}
241
+
242
+ # Or enable auto-start:
243
+ drizzle: { autoStart: true }`})]})})]})}),i&&r.autoStarted&&p("div",{className:"flex-1 relative",children:p("iframe",{src:i,className:"absolute inset-0 w-full h-full border-0",title:"Drizzle Studio",allow:"cross-origin-isolated"})})]})}function GE({toasts:l,removeToast:r}){return p("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none",children:l.map(i=>p(YE,{toast:i,onClose:()=>r(i.id)},i.id))})}function YE({toast:l,onClose:r}){const[i,s]=v.useState(!1);v.useEffect(()=>{const f=l.duration??3e3,d=setTimeout(()=>{s(!0),setTimeout(r,300)},f);return()=>clearTimeout(d)},[l.duration,r]);const c={success:"bg-green-600",error:"bg-red-600",info:"bg-blue-600"}[l.type??"info"];return w("div",{className:`pointer-events-auto flex items-center gap-3 ${c} text-white px-4 py-3 rounded-lg shadow-lg min-w-[300px] max-w-[400px] transition-all duration-300 ${i?"opacity-0 translate-x-full":"opacity-100 translate-x-0"}`,children:[p("span",{className:"flex-1 text-sm",children:l.message}),p("button",{onClick:()=>{s(!0),setTimeout(r,300)},className:"text-white/80 hover:text-white transition-colors","aria-label":"Close",children:p(y2,{className:"w-4 h-4"})})]})}const VE=new v1;function XE({children:l}){const{connected:r,error:i}=b2();return i?p("div",{className:"flex items-center justify-center h-screen",children:w("div",{className:"text-center",children:[p("h1",{className:"text-2xl font-bold text-red-600 mb-2",children:"Connection Error"}),p("p",{className:"text-gray-600",children:i.message})]})}):r?p(sn,{children:l}):p("div",{className:"flex items-center justify-center h-screen",children:w("div",{className:"text-center",children:[p("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),p("p",{className:"text-gray-600",children:"Connecting to Vision Dashboard..."})]})})}function KE(){const{traceId:l}=If(),{data:r}=x2(l||"");return r?p(tE,{trace:r}):p("div",{className:"text-gray-500",children:"Loading trace..."})}function ZE(){return p(Xw,{children:p(JE,{})})}function JE(){const{toasts:l,removeToast:r}=hd();return w(sn,{children:[p(KS,{children:p(XE,{children:p(wS,{children:w(Sn,{path:"/",element:p(gN,{}),children:[p(Sn,{index:!0,element:p(SS,{to:"/api-explorer",replace:!0})}),p(Sn,{path:"api-explorer",element:p(Zw,{})}),p(Sn,{path:"traces",element:p(Pw,{}),children:p(Sn,{path:":traceId",element:p(KE,{})})}),p(Sn,{path:"logs",element:p(mE,{})}),p(Sn,{path:"events",element:p(jE,{})}),p(Sn,{path:"services",element:p(HE,{})}),p(Sn,{path:"database",element:p(QE,{})})]})})})}),p(GE,{toasts:l,removeToast:r})]})}$x.createRoot(document.getElementById("app")).render(p(wt.StrictMode,{children:p(b1,{client:VE,children:p(ZE,{})})}));