@getvision/core 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -14
- package/dist/server/websocket.d.ts +0 -6
- package/dist/server/websocket.d.ts.map +1 -1
- package/dist/server/websocket.js +3 -117
- package/package.json +20 -8
- package/dist/__tests__/core.test.d.ts +0 -2
- package/dist/__tests__/core.test.d.ts.map +0 -1
- package/dist/__tests__/core.test.js +0 -88
- package/dist/__tests__/tracing.test.d.ts +0 -2
- package/dist/__tests__/tracing.test.d.ts.map +0 -1
- package/dist/__tests__/tracing.test.js +0 -108
- package/dist/ui/assets/index-5t7c-m29.js +0 -243
- package/dist/ui/assets/index-9ueE5-_1.js +0 -228
- package/dist/ui/assets/index-B2zDhd4y.js +0 -228
- package/dist/ui/assets/index-B6PCTRWI.js +0 -228
- package/dist/ui/assets/index-BAqOyMpS.js +0 -228
- package/dist/ui/assets/index-BBPymjIY.css +0 -1
- package/dist/ui/assets/index-BFZ9LDLI.js +0 -228
- package/dist/ui/assets/index-BK3A49yO.js +0 -243
- package/dist/ui/assets/index-BVC9j-JL.css +0 -1
- package/dist/ui/assets/index-BWzGTXsJ.js +0 -228
- package/dist/ui/assets/index-BZaQlF2p.js +0 -228
- package/dist/ui/assets/index-BbYLBWtj.css +0 -1
- package/dist/ui/assets/index-Bgf_12ju.js +0 -243
- package/dist/ui/assets/index-Bhxve5KF.css +0 -1
- package/dist/ui/assets/index-Bj-CWu-L.js +0 -228
- package/dist/ui/assets/index-BlJwGFyg.js +0 -243
- package/dist/ui/assets/index-BnD39P39.js +0 -228
- package/dist/ui/assets/index-C9X3l8Qf.js +0 -228
- package/dist/ui/assets/index-C9wDB-pp.js +0 -228
- package/dist/ui/assets/index-CAONCZtM.js +0 -243
- package/dist/ui/assets/index-CCtH3nj-.js +0 -243
- package/dist/ui/assets/index-CKzeeZJS.js +0 -228
- package/dist/ui/assets/index-Cctg6X14.js +0 -243
- package/dist/ui/assets/index-Ch3Kvj5x.js +0 -228
- package/dist/ui/assets/index-CkV-qXIH.css +0 -1
- package/dist/ui/assets/index-Cl2VKig8.js +0 -228
- package/dist/ui/assets/index-CoKjAtkW.css +0 -1
- package/dist/ui/assets/index-D4C4VyHp.css +0 -1
- package/dist/ui/assets/index-DHQw82rB.js +0 -228
- package/dist/ui/assets/index-DIfw1ZVL.css +0 -1
- package/dist/ui/assets/index-DJJX2zqa.js +0 -228
- package/dist/ui/assets/index-D_D2XkaS.js +0 -228
- package/dist/ui/assets/index-De-GZ9-w.js +0 -228
- package/dist/ui/assets/index-DoWtvKFs.js +0 -228
- package/dist/ui/assets/index-Dyseuj-Z.js +0 -223
- package/dist/ui/assets/index-ErxJEkTC.js +0 -243
- package/dist/ui/assets/index-HIUv_thh.css +0 -1
- package/dist/ui/assets/index-HhqjfP8c.js +0 -228
- package/dist/ui/assets/index-eUFXMYOK.js +0 -221
- package/dist/ui/assets/index-jabSppNC.js +0 -228
- package/dist/ui/assets/index-t88G2D4Q.js +0 -228
- package/dist/ui/assets/index-tl7-KOr9.css +0 -1
- package/dist/ui/assets/index-uyOJY0cv.js +0 -228
- package/dist/ui/assets/index-wmKPAJzR.js +0 -243
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
var L1=Object.defineProperty;var gp=l=>{throw TypeError(l)};var j1=(l,r,i)=>r in l?L1(l,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):l[r]=i;var Xn=(l,r,i)=>j1(l,typeof r!="symbol"?r+"":r,i),af=(l,r,i)=>r.has(l)||gp("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)?gp("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 du=(l,r,i,s)=>({set _(c){ee(l,r,c,i)},get _(){return C(l,r,s)}});function q1(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 pp;function H1(){if(pp)return Ni;pp=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 m in c)m!=="key"&&(f[m]=c[m])}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 yp;function B1(){return yp||(yp=1,rf.exports=H1()),rf.exports}var Gf=B1();const Zt=Gf.Fragment,g=Gf.jsx,E=Gf.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 vp;function k1(){if(vp)return de;vp=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"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),N=Symbol.iterator;function O(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,R={};function L(w,V,I){this.props=w,this.context=V,this.refs=R,this.updater=I||Y}L.prototype.isReactComponent={},L.prototype.setState=function(w,V){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,V,"setState")},L.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function H(){}H.prototype=L.prototype;function j(w,V,I){this.props=w,this.context=V,this.refs=R,this.updater=I||Y}var Q=j.prototype=new H;Q.constructor=j,M(Q,L.prototype),Q.isPureReactComponent=!0;var B=Array.isArray;function k(){}var K={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function P(w,V,I){var te=I.ref;return{$$typeof:l,type:w,key:V,ref:te!==void 0?te:null,props:I}}function F(w,V){return P(w.type,V,w.props)}function oe(w){return typeof w=="object"&&w!==null&&w.$$typeof===l}function ie(w){var V={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return V[I]})}var qe=/\/+/g;function Ye(w,V){return typeof w=="object"&&w!==null&&w.key!=null?ie(""+w.key):V.toString(36)}function le(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(k,k):(w.status="pending",w.then(function(V){w.status==="pending"&&(w.status="fulfilled",w.value=V)},function(V){w.status==="pending"&&(w.status="rejected",w.reason=V)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function D(w,V,I,te,fe){var ve=typeof w;(ve==="undefined"||ve==="boolean")&&(w=null);var Oe=!1;if(w===null)Oe=!0;else switch(ve){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(w.$$typeof){case l:case r:Oe=!0;break;case x:return Oe=w._init,D(Oe(w._payload),V,I,te,fe)}}if(Oe)return fe=fe(w),Oe=te===""?"."+Ye(w,0):te,B(fe)?(I="",Oe!=null&&(I=Oe.replace(qe,"$&/")+"/"),D(fe,V,I,"",function(Or){return Or})):fe!=null&&(oe(fe)&&(fe=F(fe,I+(fe.key==null||w&&w.key===fe.key?"":(""+fe.key).replace(qe,"$&/")+"/")+Oe)),V.push(fe)),1;Oe=0;var vt=te===""?".":te+":";if(B(w))for(var Fe=0;Fe<w.length;Fe++)te=w[Fe],ve=vt+Ye(te,Fe),Oe+=D(te,V,I,ve,fe);else if(Fe=O(w),typeof Fe=="function")for(w=Fe.call(w),Fe=0;!(te=w.next()).done;)te=te.value,ve=vt+Ye(te,Fe++),Oe+=D(te,V,I,ve,fe);else if(ve==="object"){if(typeof w.then=="function")return D(le(w),V,I,te,fe);throw V=String(w),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function $(w,V,I){if(w==null)return w;var te=[],fe=0;return D(w,te,"","",function(ve){return V.call(I,ve,fe++)}),te}function re(w){if(w._status===-1){var V=w._result;V=V(),V.then(function(I){(w._status===0||w._status===-1)&&(w._status=1,w._result=I)},function(I){(w._status===0||w._status===-1)&&(w._status=2,w._result=I)}),w._status===-1&&(w._status=0,w._result=V)}if(w._status===1)return w._result.default;throw w._result}var pe=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Te={map:$,forEach:function(w,V,I){$(w,function(){V.apply(this,arguments)},I)},count:function(w){var V=0;return $(w,function(){V++}),V},toArray:function(w){return $(w,function(V){return V})||[]},only:function(w){if(!oe(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return de.Activity=S,de.Children=Te,de.Component=L,de.Fragment=i,de.Profiler=c,de.PureComponent=j,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(w){return K.H.useMemoCache(w)}},de.cache=function(w){return function(){return w.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(w,V,I){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var te=M({},w.props),fe=w.key;if(V!=null)for(ve in V.key!==void 0&&(fe=""+V.key),V)!W.call(V,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&V.ref===void 0||(te[ve]=V[ve]);var ve=arguments.length-2;if(ve===1)te.children=I;else if(1<ve){for(var Oe=Array(ve),vt=0;vt<ve;vt++)Oe[vt]=arguments[vt+2];te.children=Oe}return P(w.type,fe,te)},de.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},de.createElement=function(w,V,I){var te,fe={},ve=null;if(V!=null)for(te in V.key!==void 0&&(ve=""+V.key),V)W.call(V,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(fe[te]=V[te]);var Oe=arguments.length-2;if(Oe===1)fe.children=I;else if(1<Oe){for(var vt=Array(Oe),Fe=0;Fe<Oe;Fe++)vt[Fe]=arguments[Fe+2];fe.children=vt}if(w&&w.defaultProps)for(te in Oe=w.defaultProps,Oe)fe[te]===void 0&&(fe[te]=Oe[te]);return P(w,ve,fe)},de.createRef=function(){return{current:null}},de.forwardRef=function(w){return{$$typeof:m,render:w}},de.isValidElement=oe,de.lazy=function(w){return{$$typeof:x,_payload:{_status:-1,_result:w},_init:re}},de.memo=function(w,V){return{$$typeof:p,type:w,compare:V===void 0?null:V}},de.startTransition=function(w){var V=K.T,I={};K.T=I;try{var te=w(),fe=K.S;fe!==null&&fe(I,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(k,pe)}catch(ve){pe(ve)}finally{V!==null&&I.types!==null&&(V.types=I.types),K.T=V}},de.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},de.use=function(w){return K.H.use(w)},de.useActionState=function(w,V,I){return K.H.useActionState(w,V,I)},de.useCallback=function(w,V){return K.H.useCallback(w,V)},de.useContext=function(w){return K.H.useContext(w)},de.useDebugValue=function(){},de.useDeferredValue=function(w,V){return K.H.useDeferredValue(w,V)},de.useEffect=function(w,V){return K.H.useEffect(w,V)},de.useEffectEvent=function(w){return K.H.useEffectEvent(w)},de.useId=function(){return K.H.useId()},de.useImperativeHandle=function(w,V,I){return K.H.useImperativeHandle(w,V,I)},de.useInsertionEffect=function(w,V){return K.H.useInsertionEffect(w,V)},de.useLayoutEffect=function(w,V){return K.H.useLayoutEffect(w,V)},de.useMemo=function(w,V){return K.H.useMemo(w,V)},de.useOptimistic=function(w,V){return K.H.useOptimistic(w,V)},de.useReducer=function(w,V,I){return K.H.useReducer(w,V,I)},de.useRef=function(w){return K.H.useRef(w)},de.useState=function(w){return K.H.useState(w)},de.useSyncExternalStore=function(w,V,I){return K.H.useSyncExternalStore(w,V,I)},de.useTransition=function(){return K.H.useTransition()},de.version="19.2.0",de}var bp;function Yf(){return bp||(bp=1,sf.exports=k1()),sf.exports}var v=Yf();const wt=xy(v),Sy=q1({__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 xp;function Q1(){return xp||(xp=1,(function(l){function r(D,$){var re=D.length;D.push($);e:for(;0<re;){var pe=re-1>>>1,Te=D[pe];if(0<c(Te,$))D[pe]=$,D[re]=Te,re=pe;else break e}}function i(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var $=D[0],re=D.pop();if(re!==$){D[0]=re;e:for(var pe=0,Te=D.length,w=Te>>>1;pe<w;){var V=2*(pe+1)-1,I=D[V],te=V+1,fe=D[te];if(0>c(I,re))te<Te&&0>c(fe,I)?(D[pe]=fe,D[te]=re,pe=te):(D[pe]=I,D[V]=re,pe=V);else if(te<Te&&0>c(fe,re))D[pe]=fe,D[te]=re,pe=te;else break e}}return $}function c(D,$){var re=D.sortIndex-$.sortIndex;return re!==0?re:D.id-$.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,m=d.now();l.unstable_now=function(){return d.now()-m}}var y=[],p=[],x=1,S=null,N=3,O=!1,Y=!1,M=!1,R=!1,L=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var $=i(p);$!==null;){if($.callback===null)s(p);else if($.startTime<=D)s(p),$.sortIndex=$.expirationTime,r(y,$);else break;$=i(p)}}function B(D){if(M=!1,Q(D),!Y)if(i(y)!==null)Y=!0,k||(k=!0,ie());else{var $=i(p);$!==null&&le(B,$.startTime-D)}}var k=!1,K=-1,W=5,P=-1;function F(){return R?!0:!(l.unstable_now()-P<W)}function oe(){if(R=!1,k){var D=l.unstable_now();P=D;var $=!0;try{e:{Y=!1,M&&(M=!1,H(K),K=-1),O=!0;var re=N;try{t:{for(Q(D),S=i(y);S!==null&&!(S.expirationTime>D&&F());){var pe=S.callback;if(typeof pe=="function"){S.callback=null,N=S.priorityLevel;var Te=pe(S.expirationTime<=D);if(D=l.unstable_now(),typeof Te=="function"){S.callback=Te,Q(D),$=!0;break t}S===i(y)&&s(y),Q(D)}else s(y);S=i(y)}if(S!==null)$=!0;else{var w=i(p);w!==null&&le(B,w.startTime-D),$=!1}}break e}finally{S=null,N=re,O=!1}$=void 0}}finally{$?ie():k=!1}}}var ie;if(typeof j=="function")ie=function(){j(oe)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Ye=qe.port2;qe.port1.onmessage=oe,ie=function(){Ye.postMessage(null)}}else ie=function(){L(oe,0)};function le(D,$){K=L(function(){D(l.unstable_now())},$)}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"):W=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 $=3;break;default:$=N}var re=N;N=$;try{return D()}finally{N=re}},l.unstable_requestPaint=function(){R=!0},l.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=N;N=D;try{return $()}finally{N=re}},l.unstable_scheduleCallback=function(D,$,re){var pe=l.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?pe+re:pe):re=pe,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:$,priorityLevel:D,startTime:re,expirationTime:Te,sortIndex:-1},re>pe?(D.sortIndex=re,r(p,D),i(y)===null&&D===i(p)&&(M?(H(K),K=-1):M=!0,le(B,re-pe))):(D.sortIndex=Te,r(y,D),Y||O||(Y=!0,k||(k=!0,ie()))),D},l.unstable_shouldYield=F,l.unstable_wrapCallback=function(D){var $=N;return function(){var re=N;N=$;try{return D.apply(this,arguments)}finally{N=re}}}})(cf)),cf}var Sp;function G1(){return Sp||(Sp=1,of.exports=Q1()),of.exports}var ff={exports:{}},gt={};/**
|
|
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 Np;function Y1(){if(Np)return gt;Np=1;var l=Yf();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function 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,p,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:y,containerInfo:p,implementation:x}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,gt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(y,p,null,x)},gt.flushSync=function(y){var p=d.T,x=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=p,s.p=x,s.d.f()}},gt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},gt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},gt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,S=m(x,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,O=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:N,fetchPriority:O}):x==="script"&&s.d.X(y,{crossOrigin:S,integrity:N,fetchPriority:O,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},gt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},gt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,S=m(x,p.crossOrigin);s.d.L(y,x,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},gt.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=m(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},gt.requestFormReset=function(y){s.d.r(y)},gt.unstable_batchedUpdates=function(y,p){return y(p)},gt.useFormState=function(y,p,x){return d.H.useFormState(y,p,x)},gt.useFormStatus=function(){return d.H.useHostTransitionStatus()},gt.version="19.2.0",gt}var wp;function Ny(){if(wp)return ff.exports;wp=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=Y1(),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 Ep;function V1(){if(Ep)return wi;Ep=1;var l=G1(),r=Yf(),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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(s(188))}function p(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 h=!1,b=u.child;b;){if(b===n){h=!0,n=u,a=o;break}if(b===a){h=!0,a=u,n=o;break}b=b.sibling}if(!h){for(b=o.child;b;){if(b===n){h=!0,n=o,a=u;break}if(b===a){h=!0,a=o,n=u;break}b=b.sibling}if(!h)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"),O=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),j=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),F=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 Ye(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 M:return"Fragment";case L:return"Profiler";case R:return"StrictMode";case B:return"Suspense";case k:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case j:return e.displayName||"Context";case H: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:Ye(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var le=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},pe=[],Te=-1;function w(e){return{current:e}}function V(e){0>Te||(e.current=pe[Te],pe[Te]=null,Te--)}function I(e,t){Te++,pe[Te]=e.current,e.current=t}var te=w(null),fe=w(null),ve=w(null),Oe=w(null);function vt(e,t){switch(I(ve,t),I(fe,e),I(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hg(t),e=Bg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(te),I(te,e)}function Fe(){V(te),V(fe),V(ve)}function Or(e){e.memoizedState!==null&&I(Oe,e);var t=te.current,n=Bg(t,e.type);t!==n&&(I(fe,e),I(te,n))}function Ji(e){fe.current===e&&(V(te),V(fe)),Oe.current===e&&(V(Oe),vi._currentValue=re)}var Bu,md;function Yl(e){if(Bu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||"",md=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Bu+e+md}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 q=G}Reflect.construct(e,[],J)}else{try{J.call()}catch(G){q=G}e.call(J.prototype)}}else{try{throw Error()}catch(G){q=G}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(G){if(G&&q&&typeof G.stack=="string")return[G.stack,q.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(),h=o[0],b=o[1];if(h&&b){var T=h.split(`
|
|
44
|
-
`),U=b.split(`
|
|
45
|
-
`);for(u=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;u<U.length&&!U[u].includes("DetermineComponentFrameRoot");)u++;if(a===T.length||u===U.length)for(a=T.length-1,u=U.length-1;1<=a&&0<=u&&T[a]!==U[u];)u--;for(;1<=a&&0<=u;a--,u--)if(T[a]!==U[u]){if(a!==1||u!==1)do if(a--,u--,0>u||T[a]!==U[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 d0(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+=d0(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,h0=l.unstable_shouldYield,m0=l.unstable_requestPaint,jt=l.unstable_now,g0=l.unstable_getCurrentPriorityLevel,pd=l.unstable_ImmediatePriority,yd=l.unstable_UserBlockingPriority,Fi=l.unstable_NormalPriority,p0=l.unstable_LowPriority,vd=l.unstable_IdlePriority,y0=l.log,v0=l.unstable_setDisableYieldValue,Mr=null,qt=null;function tl(e){if(typeof y0=="function"&&v0(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(Mr,e)}catch{}}var Ht=Math.clz32?Math.clz32:S0,b0=Math.log,x0=Math.LN2;function S0(e){return e>>>=0,e===0?32:31-(b0(e)/x0|0)|0}var $i=256,Wi=262144,Pi=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 Ii(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,o=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~o,a!==0?u=Vl(a):(h&=b,h!==0?u=Vl(h):n||(n=b&~e,n!==0&&(u=Vl(n))))):(b=a&~o,b!==0?u=Vl(b):h!==0?u=Vl(h):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 N0(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 bd(){var e=Pi;return Pi<<=1,(Pi&62914560)===0&&(Pi=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 w0(e,t,n,a,u,o){var h=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,U=e.hiddenUpdates;for(n=h&~n;0<n;){var X=31-Ht(n),J=1<<X;b[X]=0,T[X]=-1;var q=U[X];if(q!==null)for(U[X]=null,X=0;X<q.length;X++){var G=q[X];G!==null&&(G.lane&=-536870913)}n&=~J}a!==0&&xd(e,a,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(h&~t))}function xd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Sd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ht(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function Nd(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 wd(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:up(e.type))}function Ed(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var nl=Math.random().toString(36).slice(2),st="__reactFiber$"+nl,Ct="__reactProps$"+nl,Sa="__reactContainer$"+nl,Ju="__reactEvents$"+nl,E0="__reactListeners$"+nl,T0="__reactHandles$"+nl,Td="__reactResources$"+nl,_r="__reactMarker$"+nl;function Fu(e){delete e[st],delete e[Ct],delete e[Ju],delete e[E0],delete e[T0]}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=Kg(e);e!==null;){if(n=e[st])return n;e=Kg(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[Td];return t||(t=e[Td]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[_r]=!0}var Cd=new Set,Ad={};function Xl(e,t){Ta(e,t),Ta(e+"Capture",t)}function Ta(e,t){for(Ad[e]=t,e=0;e<t.length;e++)Cd.add(t[e])}var C0=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]*$"),Rd={},Od={};function A0(e){return Gu.call(Od,e)?!0:Gu.call(Rd,e)?!1:C0.test(e)?Od[e]=!0:(Rd[e]=!0,!1)}function es(e,t,n){if(A0(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 ts(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 Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Md(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R0(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(h){n=""+h,o.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $u(e){if(!e._valueTracker){var t=Md(e)?"checked":"value";e._valueTracker=R0(e,t,""+e[t])}}function zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Md(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ns(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 O0=/[\n"\\]/g;function $t(e){return e.replace(O0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Wu(e,t,n,a,u,o,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Pu(e,h,Ft(t)):n!=null?Pu(e,h,Ft(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=""+Ft(b):e.removeAttribute("name")}function Dd(e,t,n,a,u,o,h,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)){$u(e);return}n=n!=null?""+Ft(n):"",t=t!=null?""+Ft(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,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),$u(e)}function Pu(e,t,n){t==="number"&&ns(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=""+Ft(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 _d(e,t,n){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ft(n):""}function Ud(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=Ft(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),$u(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 M0=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 Ld(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||M0.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&&Ld(e,u,a)}else for(var o in t)t.hasOwnProperty(o)&&Ld(e,o,t[o])}function Iu(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 z0=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"]]),D0=/^[\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 ls(e){return D0.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 qd(e){var t=wa(e);if(t&&(e=t.stateNode)){var n=e[Ct]||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[Ct]||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&&zd(a)}break e;case"textarea":_d(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ca(e,!!n.multiple,t,!1)}}}var no=!1;function Hd(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)&&(Vs(),Ra&&(t=Ra,e=Oa,Oa=Ra=null,qd(t),e)))for(t=0;t<e.length;t++)qd(e[t])}}function Lr(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Ct]||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 jr={};Object.defineProperty(jr,"passive",{get:function(){lo=!0}}),window.addEventListener("test",jr,jr),window.removeEventListener("test",jr,jr)}catch{lo=!1}var ll=null,ao=null,as=null;function Bd(){if(as)return as;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 h=n-e;for(a=1;a<=h&&t[n-a]===u[o-a];a++);return as=u.slice(e,1<a?1-a:void 0)}function rs(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 is(){return!0}function kd(){return!1}function At(e){function t(n,a,u,o,h){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=o,this.target=h,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)?is:kd,this.isPropagationStopped=kd,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=is)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=is)},persist:function(){},isPersistent:is}),t}var Kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ss=At(Kl),qr=S({},Kl,{view:0,detail:0}),_0=At(qr),ro,io,Hr,us=S({},qr,{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}}),Qd=At(us),U0=S({},us,{dataTransfer:0}),L0=At(U0),j0=S({},qr,{relatedTarget:0}),so=At(j0),q0=S({},Kl,{animationName:0,elapsedTime:0,pseudoElement:0}),H0=At(q0),B0=S({},Kl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),k0=At(B0),Q0=S({},Kl,{data:0}),Gd=At(Q0),G0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y0={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"},V0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=V0[e])?!!t[e]:!1}function uo(){return X0}var K0=S({},qr,{key:function(e){if(e.key){var t=G0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y0[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"?rs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Z0=At(K0),J0=S({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yd=At(J0),F0=S({},qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uo}),$0=At(F0),W0=S({},Kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),P0=At(W0),I0=S({},us,{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}),eb=At(I0),tb=S({},Kl,{newState:0,oldState:0}),nb=At(tb),lb=[9,13,27,32],oo=On&&"CompositionEvent"in window,Br=null;On&&"documentMode"in document&&(Br=document.documentMode);var ab=On&&"TextEvent"in window&&!Br,Vd=On&&(!oo||Br&&8<Br&&11>=Br),Xd=" ",Kd=!1;function Zd(e,t){switch(e){case"keyup":return lb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ma=!1;function rb(e,t){switch(e){case"compositionend":return Jd(t);case"keypress":return t.which!==32?null:(Kd=!0,Xd);case"textInput":return e=t.data,e===Xd&&Kd?null:e;default:return null}}function ib(e,t){if(Ma)return e==="compositionend"||!oo&&Zd(e,t)?(e=Bd(),as=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 Vd&&t.locale!=="ko"?null:t.data;default:return null}}var sb={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"?!!sb[e.type]:t==="textarea"}function $d(e,t,n,a){Ra?Oa?Oa.push(a):Oa=[a]:Ra=a,t=Ws(t,"onChange"),0<t.length&&(n=new ss("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var kr=null,Qr=null;function ub(e){Dg(e,0)}function os(e){var t=Ur(e);if(zd(t))return e}function Wd(e,t){if(e==="change")return t}var Pd=!1;if(On){var co;if(On){var fo="oninput"in document;if(!fo){var Id=document.createElement("div");Id.setAttribute("oninput","return;"),fo=typeof Id.oninput=="function"}co=fo}else co=!1;Pd=co&&(!document.documentMode||9<document.documentMode)}function eh(){kr&&(kr.detachEvent("onpropertychange",th),Qr=kr=null)}function th(e){if(e.propertyName==="value"&&os(Qr)){var t=[];$d(t,Qr,e,to(e)),Hd(ub,t)}}function ob(e,t,n){e==="focusin"?(eh(),kr=t,Qr=n,kr.attachEvent("onpropertychange",th)):e==="focusout"&&eh()}function cb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(Qr)}function fb(e,t){if(e==="click")return os(t)}function db(e,t){if(e==="input"||e==="change")return os(t)}function hb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:hb;function Gr(e,t){if(Bt(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)||!Bt(e[u],t[u]))return!1}return!0}function nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lh(e,t){var n=nh(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=nh(n)}}function ah(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ah(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ns(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=ns(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 mb=On&&"documentMode"in document&&11>=document.documentMode,za=null,mo=null,Yr=null,go=!1;function ih(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;go||za==null||za!==ns(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=Ws(mo,"onSelect"),0<a.length&&(t=new ss("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")},po={},sh={};On&&(sh=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(po[e])return po[e];if(!Da[e])return e;var t=Da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sh)return po[e]=t[n];return e}var uh=Jl("animationend"),oh=Jl("animationiteration"),ch=Jl("animationstart"),gb=Jl("transitionrun"),pb=Jl("transitionstart"),yb=Jl("transitioncancel"),fh=Jl("transitionend"),dh=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){dh.set(e,t),Xl(t,[e])}var cs=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)},Wt=[],_a=0,vo=0;function fs(){for(var e=_a,t=vo=_a=0;t<e;){var n=Wt[t];Wt[t++]=null;var a=Wt[t];Wt[t++]=null;var u=Wt[t];Wt[t++]=null;var o=Wt[t];if(Wt[t++]=null,a!==null&&u!==null){var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}o!==0&&hh(n,u,o)}}function ds(e,t,n,a){Wt[_a++]=e,Wt[_a++]=t,Wt[_a++]=n,Wt[_a++]=a,vo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function bo(e,t,n,a){return ds(e,t,n,a),hs(e)}function Fl(e,t){return ds(e,null,null,t),hs(e)}function hh(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-Ht(n),e=o.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),o):null}function hs(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 vb(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 kt(e,t,n,a){return new vb(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=kt(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 mh(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 ms(e,t,n,a,u,o){var h=0;if(a=e,typeof e=="function")xo(e)&&(h=1);else if(typeof e=="string")h=w1(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=kt(31,n,t,u),e.elementType=P,e.lanes=o,e;case M:return $l(n.children,u,o,t);case R:h=8,u|=24;break;case L:return e=kt(12,n,t,u|2),e.elementType=L,e.lanes=o,e;case B:return e=kt(13,n,t,u),e.elementType=B,e.lanes=o,e;case k:return e=kt(19,n,t,u),e.elementType=k,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:h=10;break e;case H:h=9;break e;case Q:h=11;break e;case K:h=14;break e;case W:h=16,a=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=kt(h,n,t,u),t.elementType=e,t.type=a,t.lanes=o,t}function $l(e,t,n,a){return e=kt(7,e,a,t),e.lanes=n,e}function So(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function gh(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function No(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ph=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var n=ph.get(e);return n!==void 0?n:(t={value:e,source:t,stack:gd(t)},ph.set(e,t),t)}return{value:e,source:t,stack:gd(t)}}var La=[],ja=0,gs=null,Vr=0,It=[],en=0,al=null,yn=1,vn="";function zn(e,t){La[ja++]=Vr,La[ja++]=gs,gs=e,Vr=t}function yh(e,t,n){It[en++]=yn,It[en++]=vn,It[en++]=al,al=e;var a=yn;e=vn;var u=32-Ht(a)-1;a&=~(1<<u),n+=1;var o=32-Ht(t)+u;if(30<o){var h=u-u%5;o=(a&(1<<h)-1).toString(32),a>>=h,u-=h,yn=1<<32-Ht(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),yh(e,1,0))}function Eo(e){for(;e===gs;)gs=La[--ja],La[ja]=null,Vr=La[--ja],La[ja]=null;for(;e===al;)al=It[--en],It[en]=null,vn=It[--en],It[en]=null,yn=It[--en],It[en]=null}function vh(e,t){It[en++]=yn,It[en++]=vn,It[en++]=al,yn=t.id,vn=t.overflow,al=e}var ut=null,ke=null,we=!1,rl=null,tn=!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(Pt(t,e)),To}function bh(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[st]=e,t[Ct]=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),Dd(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),Ud(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||jg(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 xh(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:ut=ut.return}}function qa(e){if(e!==ut)return!1;if(!we)return xh(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&&ke&&il(e),xh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ke=Xg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ke=Xg(e)}else t===27?(t=ke,xl(e.type)?(e=Jc,Jc=null,ke=e):ke=t):ke=ut?ln(e.stateNode.nextSibling):null;return!0}function Wl(){ke=ut=null,we=!1}function Co(){var e=rl;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),rl=null),e}function Xr(e){rl===null?rl=[e]:rl.push(e)}var Ao=w(null),Pl=null,Dn=null;function sl(e,t,n){I(Ao,t._currentValue),t._currentValue=n}function _n(e){e._currentValue=Ao.current,V(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 h=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||(h=null);break e}o=b.next}}else if(u.tag===18){if(h=u.return,h===null)throw Error(s(341));h.lanes|=n,o=h.alternate,o!==null&&(o.lanes|=n),Ro(h,n,e),h=null}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===e){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}}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 h=u.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var b=u.type;Bt(u.pendingProps.value,h.value)||(e!==null?e.push(b):e=[b])}}else if(u===Oe.current){if(h=u.alternate,h===null)throw Error(s(387));h.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 ps(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Il(e){Pl=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return Sh(Pl,e)}function ys(e,t){return Pl===null&&Il(e),Sh(e,t)}function Sh(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 bb=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()})}},xb=l.unstable_scheduleCallback,Sb=l.unstable_NormalPriority,Pe={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mo(){return{controller:new bb,data:new Map,refCount:0}}function Kr(e){e.refCount--,e.refCount===0&&xb(Sb,function(){e.controller.abort()})}var Zr=null,zo=0,Ba=0,ka=null;function Nb(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(Nh,Nh),t}function Nh(){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 wb(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 wh=D.S;D.S=function(e,t){ig=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nb(e,t),wh!==null&&wh(e,t)};var ea=w(null);function Do(){var e=ea.current;return e!==null?e:He.pooledCache}function vs(e,t){t===null?I(ea,ea.current):I(ea,t.pool)}function Eh(){var e=Do();return e===null?null:{parent:Pe._currentValue,pool:e}}var Qa=Error(s(460)),_o=Error(s(474)),bs=Error(s(542)),xs={then:function(){}};function Th(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ch(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,Rh(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=He,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,Rh(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 Ah(){if(na===null)throw Error(s(459));var e=na;return na=null,e}function Rh(e){if(e===Qa||e===bs)throw Error(s(483))}var Ga=null,Jr=0;function Ss(e){var t=Jr;return Jr+=1,Ga===null&&(Ga=[]),Ch(Ga,e,t)}function Fr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ns(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 Oh(e){function t(z,A){if(e){var _=z.deletions;_===null?(z.deletions=[A],z.flags|=16):_.push(A)}}function n(z,A){if(!e)return null;for(;A!==null;)t(z,A),A=A.sibling;return null}function a(z){for(var A=new Map;z!==null;)z.key!==null?A.set(z.key,z):A.set(z.index,z),z=z.sibling;return A}function u(z,A){return z=Mn(z,A),z.index=0,z.sibling=null,z}function o(z,A,_){return z.index=_,e?(_=z.alternate,_!==null?(_=_.index,_<A?(z.flags|=67108866,A):_):(z.flags|=67108866,A)):(z.flags|=1048576,A)}function h(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function b(z,A,_,Z){return A===null||A.tag!==6?(A=So(_,z.mode,Z),A.return=z,A):(A=u(A,_),A.return=z,A)}function T(z,A,_,Z){var ue=_.type;return ue===M?X(z,A,_.props.children,Z,_.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===W&&ta(ue)===A.type)?(A=u(A,_.props),Fr(A,_),A.return=z,A):(A=ms(_.type,_.key,_.props,null,z.mode,Z),Fr(A,_),A.return=z,A)}function U(z,A,_,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==_.containerInfo||A.stateNode.implementation!==_.implementation?(A=No(_,z.mode,Z),A.return=z,A):(A=u(A,_.children||[]),A.return=z,A)}function X(z,A,_,Z,ue){return A===null||A.tag!==7?(A=$l(_,z.mode,Z,ue),A.return=z,A):(A=u(A,_),A.return=z,A)}function J(z,A,_){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=So(""+A,z.mode,_),A.return=z,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case O:return _=ms(A.type,A.key,A.props,null,z.mode,_),Fr(_,A),_.return=z,_;case Y:return A=No(A,z.mode,_),A.return=z,A;case W:return A=ta(A),J(z,A,_)}if(le(A)||ie(A))return A=$l(A,z.mode,_,null),A.return=z,A;if(typeof A.then=="function")return J(z,Ss(A),_);if(A.$$typeof===j)return J(z,ys(z,A),_);Ns(z,A)}return null}function q(z,A,_,Z){var ue=A!==null?A.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ue!==null?null:b(z,A,""+_,Z);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case O:return _.key===ue?T(z,A,_,Z):null;case Y:return _.key===ue?U(z,A,_,Z):null;case W:return _=ta(_),q(z,A,_,Z)}if(le(_)||ie(_))return ue!==null?null:X(z,A,_,Z,null);if(typeof _.then=="function")return q(z,A,Ss(_),Z);if(_.$$typeof===j)return q(z,A,ys(z,_),Z);Ns(z,_)}return null}function G(z,A,_,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(_)||null,b(A,z,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:return z=z.get(Z.key===null?_:Z.key)||null,T(A,z,Z,ue);case Y:return z=z.get(Z.key===null?_:Z.key)||null,U(A,z,Z,ue);case W:return Z=ta(Z),G(z,A,_,Z,ue)}if(le(Z)||ie(Z))return z=z.get(_)||null,X(A,z,Z,ue,null);if(typeof Z.then=="function")return G(z,A,_,Ss(Z),ue);if(Z.$$typeof===j)return G(z,A,_,ys(A,Z),ue);Ns(A,Z)}return null}function ne(z,A,_,Z){for(var ue=null,Ce=null,ae=A,me=A=0,Ne=null;ae!==null&&me<_.length;me++){ae.index>me?(Ne=ae,ae=null):Ne=ae.sibling;var Ae=q(z,ae,_[me],Z);if(Ae===null){ae===null&&(ae=Ne);break}e&&ae&&Ae.alternate===null&&t(z,ae),A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae,ae=Ne}if(me===_.length)return n(z,ae),we&&zn(z,me),ue;if(ae===null){for(;me<_.length;me++)ae=J(z,_[me],Z),ae!==null&&(A=o(ae,A,me),Ce===null?ue=ae:Ce.sibling=ae,Ce=ae);return we&&zn(z,me),ue}for(ae=a(ae);me<_.length;me++)Ne=G(ae,z,me,_[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(z,Tl)}),we&&zn(z,me),ue}function ce(z,A,_,Z){if(_==null)throw Error(s(151));for(var ue=null,Ce=null,ae=A,me=A=0,Ne=null,Ae=_.next();ae!==null&&!Ae.done;me++,Ae=_.next()){ae.index>me?(Ne=ae,ae=null):Ne=ae.sibling;var Tl=q(z,ae,Ae.value,Z);if(Tl===null){ae===null&&(ae=Ne);break}e&&ae&&Tl.alternate===null&&t(z,ae),A=o(Tl,A,me),Ce===null?ue=Tl:Ce.sibling=Tl,Ce=Tl,ae=Ne}if(Ae.done)return n(z,ae),we&&zn(z,me),ue;if(ae===null){for(;!Ae.done;me++,Ae=_.next())Ae=J(z,Ae.value,Z),Ae!==null&&(A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return we&&zn(z,me),ue}for(ae=a(ae);!Ae.done;me++,Ae=_.next())Ae=G(ae,z,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(U1){return t(z,U1)}),we&&zn(z,me),ue}function je(z,A,_,Z){if(typeof _=="object"&&_!==null&&_.type===M&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case O:e:{for(var ue=_.key;A!==null;){if(A.key===ue){if(ue=_.type,ue===M){if(A.tag===7){n(z,A.sibling),Z=u(A,_.props.children),Z.return=z,z=Z;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===W&&ta(ue)===A.type){n(z,A.sibling),Z=u(A,_.props),Fr(Z,_),Z.return=z,z=Z;break e}n(z,A);break}else t(z,A);A=A.sibling}_.type===M?(Z=$l(_.props.children,z.mode,Z,_.key),Z.return=z,z=Z):(Z=ms(_.type,_.key,_.props,null,z.mode,Z),Fr(Z,_),Z.return=z,z=Z)}return h(z);case Y:e:{for(ue=_.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===_.containerInfo&&A.stateNode.implementation===_.implementation){n(z,A.sibling),Z=u(A,_.children||[]),Z.return=z,z=Z;break e}else{n(z,A);break}else t(z,A);A=A.sibling}Z=No(_,z.mode,Z),Z.return=z,z=Z}return h(z);case W:return _=ta(_),je(z,A,_,Z)}if(le(_))return ne(z,A,_,Z);if(ie(_)){if(ue=ie(_),typeof ue!="function")throw Error(s(150));return _=ue.call(_),ce(z,A,_,Z)}if(typeof _.then=="function")return je(z,A,Ss(_),Z);if(_.$$typeof===j)return je(z,A,ys(z,_),Z);Ns(z,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,A!==null&&A.tag===6?(n(z,A.sibling),Z=u(A,_),Z.return=z,z=Z):(n(z,A),Z=So(_,z.mode,Z),Z.return=z,z=Z),h(z)):n(z,A)}return function(z,A,_,Z){try{Jr=0;var ue=je(z,A,_,Z);return Ga=null,ue}catch(ae){if(ae===Qa||ae===bs)throw ae;var Ce=kt(29,ae,null,z.mode);return Ce.lanes=Z,Ce.return=z,Ce}finally{}}}var la=Oh(!0),Mh=Oh(!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=hs(e),hh(e,null,n),t}return ds(e,a,t,n),hs(e)}function $r(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,Sd(e,n)}}function jo(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 h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?u=o=h:o=o.next=h,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 qo=!1;function Wr(){if(qo){var e=ka;if(e!==null)throw e}}function Pr(e,t,n,a){qo=!1;var u=e.updateQueue;ul=!1;var o=u.firstBaseUpdate,h=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var T=b,U=T.next;T.next=null,h===null?o=U:h.next=U,h=T;var X=e.alternate;X!==null&&(X=X.updateQueue,b=X.lastBaseUpdate,b!==h&&(b===null?X.firstBaseUpdate=U:b.next=U,X.lastBaseUpdate=T))}if(o!==null){var J=u.baseState;h=0,X=U=T=null,b=o;do{var q=b.lane&-536870913,G=q!==b.lane;if(G?(Se&q)===q:(a&q)===q){q!==0&&q===Ba&&(qo=!0),X!==null&&(X=X.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,ce=b;q=t;var je=n;switch(ce.tag){case 1:if(ne=ce.payload,typeof ne=="function"){J=ne.call(je,J,q);break e}J=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ce.payload,q=typeof ne=="function"?ne.call(je,J,q):ne,q==null)break e;J=S({},J,q);break e;case 2:ul=!0}}q=b.callback,q!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[q]:G.push(q))}else G={lane:q,tag:b.tag,payload:b.payload,callback:b.callback,next:null},X===null?(U=X=G,T=J):X=X.next=G,h|=q;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=U,u.lastBaseUpdate=X,o===null&&(u.shared.lanes=0),gl|=h,e.lanes=h,e.memoizedState=J}}function zh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Dh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)zh(n[e],t)}var Ya=w(null),ws=w(0);function _h(e,t){e=Gn,I(ws,e),I(Ya,t),Gn=e|t.baseLanes}function Ho(){I(ws,Gn),I(Ya,Ya.current)}function Bo(){Gn=ws.current,V(Ya),V(ws)}var Qt=w(null),nn=null;function fl(e){var t=e.alternate;I($e,$e.current&1),I(Qt,e),nn===null&&(t===null||Ya.current!==null||t.memoizedState!==null)&&(nn=e)}function ko(e){I($e,$e.current),I(Qt,e),nn===null&&(nn=e)}function Uh(e){e.tag===22?(I($e,$e.current),I(Qt,e),nn===null&&(nn=e)):dl()}function dl(){I($e,$e.current),I(Qt,Qt.current)}function Gt(e){V(Qt),nn===e&&(nn=null),V($e)}var $e=w(0);function Es(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,Ue=null,Ie=null,Ts=!1,Va=!1,aa=!1,Cs=0,Ir=0,Xa=null,Eb=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(!Bt(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?ym:lc,aa=!1,o=n(a,u),aa=!1,Va&&(o=jh(t,n,a,u)),Lh(e),o}function Lh(e){D.H=ni;var t=Ue!==null&&Ue.next!==null;if(Un=0,Ie=Ue=he=null,Ts=!1,Ir=0,Xa=null,t)throw Error(s(300));e===null||et||(e=e.dependencies,e!==null&&ps(e)&&(et=!0))}function jh(e,t,n,a){he=e;var u=0;do{if(Va&&(Xa=null),Ir=0,Va=!1,25<=u)throw Error(s(301));if(u+=1,Ie=Ue=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=vm,o=t(n,a)}while(Va);return o}function Tb(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?ei(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(he.flags|=1024),t}function Yo(){var e=Cs!==0;return Cs=0,e}function Vo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Xo(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}Un=0,Ie=Ue=he=null,Va=!1,Ir=Cs=0,Xa=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?he.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function We(){if(Ue===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=Ie===null?he.memoizedState:Ie.next;if(t!==null)Ie=t,Ue=e;else{if(e===null)throw he.alternate===null?Error(s(467)):Error(s(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Ie===null?he.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function As(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ei(e){var t=Ir;return Ir+=1,Xa===null&&(Xa=[]),e=Ch(Xa,e,t),t=he,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?ym:lc),e}function Rs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ei(e);if(e.$$typeof===j)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=As(),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]=F;return t.index++,n}function Ln(e,t){return typeof t=="function"?t(e):t}function Os(e){var t=We();return Zo(t,Ue,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 h=u.next;u.next=o.next,o.next=h}t.baseQueue=u=o,a.pending=null}if(o=e.baseState,u===null)e.memoizedState=o;else{t=u.next;var b=h=null,T=null,U=t,X=!1;do{var J=U.lane&-536870913;if(J!==U.lane?(Se&J)===J:(Un&J)===J){var q=U.revertLane;if(q===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),J===Ba&&(X=!0);else if((Un&q)===q){U=U.next,q===Ba&&(X=!0);continue}else J={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},T===null?(b=T=J,h=o):T=T.next=J,he.lanes|=q,gl|=q;J=U.action,aa&&n(o,J),o=U.hasEagerState?U.eagerState:n(o,J)}else q={lane:J,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},T===null?(b=T=q,h=o):T=T.next=q,he.lanes|=J,gl|=J;U=U.next}while(U!==null&&U!==t);if(T===null?h=o:T.next=b,!Bt(o,e.memoizedState)&&(et=!0,X&&(n=ka,n!==null)))throw n;e.memoizedState=o,e.baseState=h,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 h=u=u.next;do o=e(o,h.action),h=h.next;while(h!==u);Bt(o,t.memoizedState)||(et=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function qh(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 h=!Bt((Ue||u).memoizedState,n);if(h&&(u.memoizedState=n,et=!0),u=u.queue,Wo(kh.bind(null,a,u,e),[e]),u.getSnapshot!==t||h||Ie!==null&&Ie.memoizedState.tag&1){if(a.flags|=2048,Ka(9,{destroy:void 0},Bh.bind(null,a,u,n,t),null),He===null)throw Error(s(349));o||(Un&127)!==0||Hh(a,t,n)}return n}function Hh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=As(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bh(e,t,n,a){t.value=n,t.getSnapshot=a,Qh(t)&&Gh(e)}function kh(e,t,n){return n(function(){Qh(t)&&Gh(e)})}function Qh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function Gh(e){var t=Fl(e,2);t!==null&&Dt(t,e,2)}function Fo(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 Yh(e,t,n,a){return e.baseState=n,Zo(e,Ue,typeof a=="function"?a:Ln)}function Cb(e,t,n,a,u){if(Ds(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(h){o.listeners.push(h)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Vh(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Vh(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var o=D.T,h={};D.T=h;try{var b=n(u,a),T=D.S;T!==null&&T(h,b),Xh(e,t,b)}catch(U){$o(e,t,U)}finally{o!==null&&h.types!==null&&(o.types=h.types),D.T=o}}else try{o=n(u,a),Xh(e,t,o)}catch(U){$o(e,t,U)}}function Xh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Kh(e,t,a)},function(a){return $o(e,t,a)}):Kh(e,t,n)}function Kh(e,t,n){t.status="fulfilled",t.value=n,Zh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Vh(e,n)))}function $o(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Zh(t),t=t.next;while(t!==a)}e.action=null}function Zh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jh(e,t){return t}function Fh(e,t){if(we){var n=He.formState;if(n!==null){e:{var a=he;if(we){if(ke){t:{for(var u=ke,o=tn;u.nodeType!==8;){if(!o){u=null;break t}if(u=ln(u.nextSibling),u===null){u=null;break t}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){ke=ln(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:Jh,lastRenderedState:t},n.queue=a,n=mm.bind(null,he,a),a.dispatch=n,a=Fo(!1),o=nc.bind(null,he,!1,a.queue),a=bt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Cb.bind(null,he,u,o,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function $h(e){var t=We();return Wh(t,Ue,e)}function Wh(e,t,n){if(t=Zo(e,t,Jh)[0],e=Os(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ei(t)}catch(h){throw h===Qa?bs:h}else a=t;t=We();var u=t.queue,o=u.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Ka(9,{destroy:void 0},Ab.bind(null,u,n),null)),[a,o,e]}function Ab(e,t){e.action=t}function Ph(e){var t=We(),n=Ue;if(n!==null)return Wh(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=As(),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 Ih(){return We().memoizedState}function Ms(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 zs(e,t,n,a){var u=We();a=a===void 0?null:a;var o=u.memoizedState.inst;Ue!==null&&a!==null&&Qo(a,Ue.memoizedState.deps)?u.memoizedState=Ka(t,o,n,a):(he.flags|=e,u.memoizedState=Ka(1|t,o,n,a))}function em(e,t){Ms(8390656,8,e,t)}function Wo(e,t){zs(2048,8,e,t)}function Rb(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=As(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function tm(e){var t=We().memoizedState;return Rb({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nm(e,t){return zs(4,2,e,t)}function lm(e,t){return zs(4,4,e,t)}function am(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 rm(e,t,n){n=n!=null?n.concat([e]):null,zs(4,4,am.bind(null,t,e),n)}function Po(){}function im(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 sm(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 Io(e,t,n){return n===void 0||(Un&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ug(),he.lanes|=e,gl|=e,n)}function um(e,t,n,a){return Bt(n,t)?n:Ya.current!==null?(e=Io(e,n,a),Bt(e,t)||(et=!0),e):(Un&42)===0||(Un&1073741824)!==0&&(Se&261930)===0?(et=!0,e.memoizedState=n):(e=ug(),he.lanes|=e,gl|=e,t)}function om(e,t,n,a,u){var o=$.p;$.p=o!==0&&8>o?o:8;var h=D.T,b={};D.T=b,nc(e,!1,t,n);try{var T=u(),U=D.S;if(U!==null&&U(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=wb(T,a);ti(e,t,X,Xt(e))}else ti(e,t,a,Xt(e))}catch(J){ti(e,t,{then:function(){},status:"rejected",reason:J},Xt())}finally{$.p=o,h!==null&&b.types!==null&&(h.types=b.types),D.T=h}}function Ob(){}function ec(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=cm(e).queue;om(e,u,t,re,n===null?Ob:function(){return fm(e),n(a)})}function cm(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 fm(e){var t=cm(e);t.next===null&&(t=e.alternate.memoizedState),ti(e,t.next.queue,{},Xt())}function tc(){return ot(vi)}function dm(){return We().memoizedState}function hm(){return We().memoizedState}function Mb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=ol(n);var a=cl(t,e,n);a!==null&&(Dt(a,t,n),$r(a,t,n)),t={cache:Mo()},e.payload=t;return}t=t.return}}function zb(e,t,n){var a=Xt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ds(e)?gm(t,n):(n=bo(e,t,n,a),n!==null&&(Dt(n,e,a),pm(n,t,a)))}function mm(e,t,n){var a=Xt();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(Ds(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 h=t.lastRenderedState,b=o(h,n);if(u.hasEagerState=!0,u.eagerState=b,Bt(b,h))return ds(e,t,u,0),He===null&&fs(),!1}catch{}finally{}if(n=bo(e,t,u,a),n!==null)return Dt(n,e,a),pm(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},Ds(e)){if(t)throw Error(s(479))}else t=bo(e,n,a,2),t!==null&&Dt(t,e,2)}function Ds(e){var t=e.alternate;return e===he||t!==null&&t===he}function gm(e,t){Va=Ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pm(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Sd(e,n)}}var ni={readContext:ot,use:Rs,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 ym={readContext:ot,use:Rs,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:em,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ms(4194308,4,am.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){Ms(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=zb.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Fo(e);var t=e.queue,n=mm.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Po,useDeferredValue:function(e,t){var n=bt();return Io(n,e,t)},useTransition:function(){var e=Fo(!1);return e=om.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(),He===null)throw Error(s(349));(Se&127)!==0||Hh(a,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,em(kh.bind(null,a,o,e),[e]),a.flags|=2048,Ka(9,{destroy:void 0},Bh.bind(null,a,o,n,t),null),n},useId:function(){var e=bt(),t=He.identifierPrefix;if(we){var n=vn,a=yn;n=(a&~(1<<32-Ht(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Cs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Eb++,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=Mb.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:Rs,useCallback:im,useContext:ot,useEffect:Wo,useImperativeHandle:rm,useInsertionEffect:nm,useLayoutEffect:lm,useMemo:sm,useReducer:Os,useRef:Ih,useState:function(){return Os(Ln)},useDebugValue:Po,useDeferredValue:function(e,t){var n=We();return um(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Os(Ln)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:qh,useId:dm,useHostTransitionStatus:tc,useFormState:$h,useActionState:$h,useOptimistic:function(e,t){var n=We();return Yh(n,Ue,e,t)},useMemoCache:Ko,useCacheRefresh:hm};lc.useEffectEvent=tm;var vm={readContext:ot,use:Rs,useCallback:im,useContext:ot,useEffect:Wo,useImperativeHandle:rm,useInsertionEffect:nm,useLayoutEffect:lm,useMemo:sm,useReducer:Jo,useRef:Ih,useState:function(){return Jo(Ln)},useDebugValue:Po,useDeferredValue:function(e,t){var n=We();return Ue===null?Io(n,e,t):um(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Jo(Ln)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:qh,useId:dm,useHostTransitionStatus:tc,useFormState:Ph,useActionState:Ph,useOptimistic:function(e,t){var n=We();return Ue!==null?Yh(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ko,useCacheRefresh:hm};vm.useEffectEvent=tm;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=Xt(),u=ol(a);u.payload=t,n!=null&&(u.callback=n),t=cl(e,u,a),t!==null&&(Dt(t,e,a),$r(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xt(),u=ol(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=cl(e,u,a),t!==null&&(Dt(t,e,a),$r(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),a=ol(n);a.tag=2,t!=null&&(a.callback=t),t=cl(e,a,n),t!==null&&(Dt(t,e,n),$r(t,e,n))}};function bm(e,t,n,a,u,o,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,h):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,a)||!Gr(u,o):!0}function xm(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 Sm(e){cs(e)}function Nm(e){console.error(e)}function wm(e){cs(e)}function _s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Em(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(){_s(e,t)},n}function Tm(e){return e=ol(e),e.tag=3,e}function Cm(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(){Em(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Em(t,n,a),typeof u!="function"&&(pl===null?pl=new Set([this]):pl.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function Db(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=Qt.current,n!==null){switch(n.tag){case 31:case 13:return nn===null?Xs():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===xs?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===xs?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),Xs(),!1}if(we)return t=Qt.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(Pt(e,n)))):(a!==To&&(t=Error(s(423),{cause:a}),Xr(Pt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Pt(a,n),u=ic(e.stateNode,a,u),jo(e,u),Ze!==4&&(Ze=2)),!1;var o=Error(s(520),{cause:a});if(o=Pt(o,n),ci===null?ci=[o]:ci.push(o),Ze!==4&&(Ze=2),t===null)return!0;a=Pt(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),jo(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"&&(pl===null||!pl.has(o))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Tm(u),Cm(u,e,n,a),jo(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?Mh(t,null,n,a):la(t,e.child,n,a)}function Am(e,t,n,a,u){n=n.render;var o=t.ref;if("ref"in a){var h={};for(var b in a)b!=="ref"&&(h[b]=a[b])}else h=a;return Il(t),a=Go(e,t,n,h,o,u),b=Yo(),e!==null&&!et?(Vo(e,t,u),jn(e,t,u)):(we&&b&&wo(t),t.flags|=1,ct(e,t,a,u),t.child)}function Rm(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,Om(e,t,o,a,u)):(e=ms(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!gc(e,u)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(h,a)&&e.ref===t.ref)return jn(e,t,u)}return t.flags|=1,e=Mn(o,a),e.ref=t.ref,e.return=t,t.child=e}function Om(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,gc(e,u))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,jn(e,t,u)}return uc(e,t,n,a,u)}function Mm(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 zm(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vs(t,o!==null?o.cachePool:null),o!==null?_h(t,o):Ho(),Uh(t);else return a=t.lanes=536870912,zm(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(vs(t,o.cachePool),_h(t,o),dl(),t.memoizedState=null):(e!==null&&vs(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 zm(e,t,n,a,u){var o=Do();return o=o===null?null:{parent:Pe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&vs(t,null),Ho(),Uh(t),e!==null&&Ha(e,t,a,!0),t.childLanes=u,null}function Us(e,t){return t=js({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dm(e,t,n){return la(t,e.child,null,n),e=Us(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function _b(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=Us(t,a),t.lanes=536870912,li(null,e);if(ko(t),(e=ke)?(e=Vg(e,tn),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,ke=null)):e=null,e===null)throw il(t);return t.lanes=536870912,null}return Us(t,a)}var o=e.memoizedState;if(o!==null){var h=o.dehydrated;if(ko(t),u)if(t.flags&256)t.flags&=-257,t=Dm(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=He,a!==null&&(h=Nd(a,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,Fl(e,h),Dt(a,e,h),sc;Xs(),t=Dm(e,t,n)}else e=o.treeContext,ke=ln(h.nextSibling),ut=t,we=!0,rl=null,tn=!1,e!==null&&vh(t,e),t=Us(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 Ls(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 Il(t),n=Go(e,t,n,a,void 0,u),a=Yo(),e!==null&&!et?(Vo(e,t,u),jn(e,t,u)):(we&&a&&wo(t),t.flags|=1,ct(e,t,n,u),t.child)}function _m(e,t,n,a,u,o){return Il(t),t.updateQueue=null,n=jh(t,a,n,u),Lh(e),a=Yo(),e!==null&&!et?(Vo(e,t,o),jn(e,t,o)):(we&&a&&wo(t),t.flags|=1,ct(e,t,n,o),t.child)}function Um(e,t,n,a,u){if(Il(t),t.stateNode===null){var o=Ua,h=n.contextType;typeof h=="object"&&h!==null&&(o=ot(h)),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),h=n.contextType,o.context=typeof h=="object"&&h!==null?ot(h):Ua,o.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(ac(t,n,h,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&rc.enqueueReplaceState(o,o.state,null),Pr(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 U=o.context,X=n.contextType;h=Ua,typeof X=="object"&&X!==null&&(h=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||U!==h)&&xm(t,o,a,h),ul=!1;var q=t.memoizedState;o.state=q,Pr(t,a,o,u),Wr(),U=t.memoizedState,b||q!==U||ul?(typeof J=="function"&&(ac(t,n,J,a),U=t.memoizedState),(T=ul||bm(t,n,T,a,q,U,h))?(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=U),o.props=a,o.state=U,o.context=h,a=T):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Lo(e,t),h=t.memoizedProps,X=ra(n,h),o.props=X,J=t.pendingProps,q=o.context,U=n.contextType,T=Ua,typeof U=="object"&&U!==null&&(T=ot(U)),b=n.getDerivedStateFromProps,(U=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==J||q!==T)&&xm(t,o,a,T),ul=!1,q=t.memoizedState,o.state=q,Pr(t,a,o,u),Wr();var G=t.memoizedState;h!==J||q!==G||ul||e!==null&&e.dependencies!==null&&ps(e.dependencies)?(typeof b=="function"&&(ac(t,n,b,a),G=t.memoizedState),(X=ul||bm(t,n,X,a,q,G,T)||e!==null&&e.dependencies!==null&&ps(e.dependencies))?(U||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"||h===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&q===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"||h===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Ls(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=jn(e,t,u),e}function Lm(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:Eh()}}function fc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vt),e}function jm(e,t,n){var a=t.pendingProps,u=!1,o=(t.flags&128)!==0,h;if((h=o)||(h=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),h&&(u=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(u?fl(t):dl(),(e=ke)?(e=Vg(e,tn),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,ke=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=js({mode:"hidden",children:b},u),a=$l(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,h,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=js({mode:"visible",children:a.children},u),b=$l(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,h,n),t.memoizedState=oc,t=li(null,a));else if(fl(t),Zc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var U=h.dgst;h=U,a=Error(s(419)),a.stack="",a.digest=h,Xr({value:a,source:null,stack:null}),t=hc(e,t,n)}else if(et||Ha(e,t,n,!1),h=(n&e.childLanes)!==0,et||h){if(h=He,h!==null&&(a=Nd(h,n),a!==0&&a!==T.retryLane))throw T.retryLane=a,Fl(e,a),Dt(h,e,a),sc;Kc(b)||Xs(),t=hc(e,t,n)}else Kc(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,ke=ln(b.nextSibling),ut=t,we=!0,rl=null,tn=!1,e!==null&&vh(t,e),t=dc(t,a.children),t.flags|=4096);return t}return u?(dl(),b=a.fallback,u=t.mode,T=e.child,U=T.sibling,a=Mn(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,U!==null?b=Mn(U,b):(b=$l(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=Pe._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=Eh(),b={baseLanes:b.baseLanes|n,cachePool:u}),a.memoizedState=b,a.childLanes=fc(e,h,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&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function dc(e,t){return t=js({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function js(e,t){return e=kt(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 qm(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 h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:o}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=u,h.treeForkCount=o)}function Hm(e,t,n){var a=t.pendingProps,u=a.revealOrder,o=a.tail;a=a.children;var h=$e.current,b=(h&2)!==0;if(b?(h=h&1|2,t.flags|=128):h&=1,I($e,h),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&&qm(e,n,t);else if(e.tag===19)qm(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&&Es(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&&Es(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 jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),gl|=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 gc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ps(e)))}function Ub(e,t,n){switch(t.tag){case 3:vt(t,t.stateNode.containerInfo),sl(t,Pe,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=jn(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 Hm(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),I($e,$e.current),a)break;return null;case 22:return t.lanes=0,Mm(e,t,n,t.pendingProps);case 24:sl(t,Pe,e.memoizedState.cache)}return jn(e,t,n)}function Bm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!gc(e,n)&&(t.flags&128)===0)return et=!1,Ub(e,t,n);et=(e.flags&131072)!==0}else et=!1,we&&(t.flags&1048576)!==0&&yh(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=Um(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=Am(null,t,e,a,n);break e}else if(u===K){t.tag=14,t=Rm(null,t,e,a,n);break e}}throw t=Ye(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),Um(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),Pr(t,a,null,n);var h=t.memoizedState;if(a=h.cache,sl(t,Pe,a),a!==o.cache&&Oo(t,[Pe],n,!0),Wr(),a=h.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Lm(e,t,a,n);break e}else if(a!==u){u=Pt(Error(s(424)),t),Xr(u),t=Lm(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(ke=ln(e.firstChild),ut=t,we=!0,rl=null,tn=!0,n=Mh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wl(),a===u){t=jn(e,t,n);break e}ct(e,t,a,n)}t=t.child}return t;case 26:return Ls(e,t),e===null?(n=$g(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,a=Ps(ve.current).createElement(n),a[st]=t,a[Ct]=e,ft(a,n,e),at(a),t.stateNode=a):t.memoizedState=$g(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Or(t),e===null&&we&&(a=t.stateNode=Zg(t.type,t.pendingProps,ve.current),ut=t,tn=!0,u=ke,xl(t.type)?(Jc=u,ke=ln(a.firstChild)):ke=u),ct(e,t,t.pendingProps.children,n),Ls(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((u=a=ke)&&(a=c1(a,t.type,t.pendingProps,tn),a!==null?(t.stateNode=a,ut=t,ke=ln(a.firstChild),tn=!1,u=!0):u=!1),u||il(t)),Or(t),u=t.type,o=t.pendingProps,h=e!==null?e.memoizedProps:null,a=o.children,Yc(u,o)?a=null:h!==null&&Yc(u,h)&&(t.flags|=32),t.memoizedState!==null&&(u=Go(e,t,Tb,null,null,n),vi._currentValue=u),Ls(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&we&&((e=n=ke)&&(n=f1(n,t.pendingProps,tn),n!==null?(t.stateNode=n,ut=t,ke=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 Am(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,Il(t),u=ot(u),a=a(u),t.flags|=1,ct(e,t,a,n),t.child;case 14:return Rm(e,t,t.type,t.pendingProps,n);case 15:return Om(e,t,t.type,t.pendingProps,n);case 19:return Hm(e,t,n);case 31:return _b(e,t,n);case 22:return Mm(e,t,n,t.pendingProps);case 24:return Il(t),a=ot(Pe),e===null?(u=Do(),u===null&&(u=He,o=Mo(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),t.memoizedState={parent:a,cache:u},Uo(t),sl(t,Pe,u)):((e.lanes&n)!==0&&(Lo(e,t),Pr(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,Pe,a)):(a=o.cache,sl(t,Pe,a),a!==u.cache&&Oo(t,[Pe],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function qn(e){e.flags|=4}function pc(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(dg())e.flags|=8192;else throw na=xs,_o}else e.flags&=-16777217}function km(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tp(t))if(dg())e.flags|=8192;else throw na=xs,_o}function qs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bd():536870912,e.lanes|=t,$a|=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 Qe(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 Lb(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 Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(Pe),Fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(qa(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Co())),Qe(t),null;case 26:var u=t.type,o=t.memoizedState;return e===null?(qn(t),o!==null?(Qe(t),km(t,o)):(Qe(t),pc(t,u,null,a,n))):o?o!==e.memoizedState?(qn(t),Qe(t),km(t,o)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&qn(t),Qe(t),pc(t,u,e,a,n)),null;case 27:if(Ji(t),n=ve.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}e=te.current,qa(t)?bh(t):(e=Zg(u,a,n),t.stateNode=e,qn(t))}return Qe(t),null;case 5:if(Ji(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}if(o=te.current,qa(t))bh(t);else{var h=Ps(ve.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?h.createElement(u,{is:a.is}):h.createElement(u)}}o[st]=t,o[Ct]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.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&&qn(t)}}return Qe(t),pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,qa(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||jg(e.nodeValue,n)),e||il(t,!0)}else e=Ps(e).createTextNode(a),e[st]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=qa(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;Qe(t),e=!1}else n=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=qa(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;Qe(t),u=!1}else u=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(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),qs(t,t.updateQueue),Qe(t),null);case 4:return Fe(),e===null&&Hc(t.stateNode.containerInfo),Qe(t),null;case 10:return _n(t.type),Qe(t),null;case 19:if(V($e),a=t.memoizedState,a===null)return Qe(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=Es(e),o!==null){for(t.flags|=128,ai(a,!1),e=o.updateQueue,t.updateQueue=e,qs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mh(n,e),n=n.sibling;return I($e,$e.current&1|2),we&&zn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&jt()>Gs&&(t.flags|=128,u=!0,ai(a,!1),t.lanes=4194304)}else{if(!u)if(e=Es(o),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,qs(t,e),ai(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!we)return Qe(t),null}else 2*jt()-a.renderingStartTime>Gs&&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=jt(),e.sibling=null,n=$e.current,I($e,u?n&1|2:n&1),we&&zn(t,a.treeForkCount),e):(Qe(t),null);case 22:case 23:return Gt(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&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&qs(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&&V(ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_n(Pe),Qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function jb(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(Pe),Fe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ji(t),null;case 31:if(t.memoizedState!==null){if(Gt(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(Gt(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 V($e),null;case 4:return Fe(),null;case 10:return _n(t.type),null;case 22:case 23:return Gt(t),Bo(),e!==null&&V(ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(Pe),null;case 25:return null;default:return null}}function Qm(e,t){switch(Eo(t),t.tag){case 3:_n(Pe),Fe();break;case 26:case 27:case 5:Ji(t);break;case 4:Fe();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:V($e);break;case 10:_n(t.type);break;case 22:case 23:Gt(t),Bo(),e!==null&&V(ea);break;case 24:_n(Pe)}}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,h=n.inst;a=o(),h.destroy=a}n=n.next}while(n!==u)}}catch(b){_e(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 h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,u=t;var T=n,U=b;try{U()}catch(X){_e(u,T,X)}}}a=a.next}while(a!==o)}}catch(X){_e(t,t.return,X)}}function Gm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Dh(t,n)}catch(a){_e(e,e.return,a)}}}function Ym(e,t,n){n.props=ra(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){_e(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){_e(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){_e(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){_e(e,t,u)}else n.current=null}function Vm(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){_e(e,e.return,u)}}function yc(e,t,n){try{var a=e.stateNode;a1(a,e.type,n,t),a[Ct]=t}catch(u){_e(e,e.return,u)}}function Xm(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||Xm(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 Hs(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(Hs(e,t,n),e=e.sibling;e!==null;)Hs(e,t,n),e=e.sibling}function Km(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[Ct]=n}catch(o){_e(e,e.return,o)}}var Hn=!1,tt=!1,xc=!1,Zm=typeof WeakSet=="function"?WeakSet:Set,rt=null;function qb(e,t){if(e=e.containerInfo,Qc=ru,e=rh(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 h=0,b=-1,T=-1,U=0,X=0,J=e,q=null;t:for(;;){for(var G;J!==n||u!==0&&J.nodeType!==3||(b=h+u),J!==o||a!==0&&J.nodeType!==3||(T=h+a),J.nodeType===3&&(h+=J.nodeValue.length),(G=J.firstChild)!==null;)q=J,J=G;for(;;){if(J===e)break t;if(q===n&&++U===u&&(b=h),q===o&&++X===a&&(T=h),(G=J.nextSibling)!==null)break;J=q,q=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},ru=!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){_e(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 Jm(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(h){_e(n,n.return,h)}else{var u=ra(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){_e(n,n.return,h)}}a&64&&Gm(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{Dh(e,t)}catch(h){_e(n,n.return,h)}}break;case 27:t===null&&a&4&&Km(n);case 26:case 5:kn(e,n),t===null&&a&4&&Vm(n),a&512&&ii(n,n.return);break;case 12:kn(e,n);break;case 31:kn(e,n),a&4&&Wm(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=Kb.bind(null,n),d1(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&&Fu(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 Ve=null,Rt=!1;function Bn(e,t,n){for(n=n.child;n!==null;)$m(e,t,n),n=n.sibling}function $m(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=Ve,u=Rt;xl(n.type)&&(Ve=n.stateNode,Rt=!1),Bn(e,t,n),gi(n.stateNode),Ve=a,Rt=u;break;case 5:tt||bn(n,t);case 6:if(a=Ve,u=Rt,Ve=null,Bn(e,t,n),Ve=a,Rt=u,Ve!==null)if(Rt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(o){_e(n,t,o)}else try{Ve.removeChild(n.stateNode)}catch(o){_e(n,t,o)}break;case 18:Ve!==null&&(Rt?(e=Ve,Gg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ar(e)):Gg(Ve,n.stateNode));break;case 4:a=Ve,u=Rt,Ve=n.stateNode.containerInfo,Rt=!0,Bn(e,t,n),Ve=a,Rt=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"&&Ym(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 Wm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ar(e)}catch(n){_e(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){_e(t,t.return,n)}}function Hb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zm),t;default:throw Error(s(435,e.tag))}}function Bs(e,t){var n=Hb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var u=Zb.bind(null,e,a);a.then(u,u)}})}function Ot(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],o=e,h=t,b=h;e:for(;b!==null;){switch(b.tag){case 27:if(xl(b.type)){Ve=b.stateNode,Rt=!1;break e}break;case 5:Ve=b.stateNode,Rt=!1;break e;case 3:case 4:Ve=b.stateNode.containerInfo,Rt=!0;break e}b=b.return}if(Ve===null)throw Error(s(160));$m(o,h,u),Ve=null,Rt=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Im(t,e),t=t.sibling}var fn=null;function Im(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Mt(e),a&4&&(hl(3,e,e.return),ri(3,e),hl(5,e,e.return));break;case 1:Ot(t,e),Mt(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(Ot(t,e),Mt(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 h=Ig("link","href",u).get(a+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(o=h[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)){h.splice(b,1);break t}}o=u.createElement(a),ft(o,a,n),u.head.appendChild(o);break;case"meta":if(h=Ig("meta","content",u).get(a+(n.content||""))){for(b=0;b<h.length;b++)if(o=h[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)){h.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 ep(u,e.type,e.stateNode);else e.stateNode=Pg(u,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?ep(u,e.type,e.stateNode):Pg(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&yc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ot(t,e),Mt(e),a&512&&(tt||n===null||bn(n,n.return)),n!==null&&a&4&&yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ot(t,e),Mt(e),a&512&&(tt||n===null||bn(n,n.return)),e.flags&32){u=e.stateNode;try{Aa(u,"")}catch(ne){_e(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(Ot(t,e),Mt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){_e(e,e.return,ne)}}break;case 3:if(tu=null,u=fn,fn=Is(t.containerInfo),Ot(t,e),fn=u,Mt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ar(t.containerInfo)}catch(ne){_e(e,e.return,ne)}xc&&(xc=!1,eg(e));break;case 4:a=fn,fn=Is(e.stateNode.containerInfo),Ot(t,e),Mt(e),fn=a;break;case 12:Ot(t,e),Mt(e);break;case 31:Ot(t,e),Mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bs(e,a)));break;case 13:Ot(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Qs=jt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bs(e,a)));break;case 22:u=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,U=Hn,X=tt;if(Hn=U||u,tt=X||T,Ot(t,e),tt=X,Hn=U,Mt(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)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var J=T.memoizedProps.style,q=J!=null&&J.hasOwnProperty("display")?J.display:null;b.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(ne){_e(T,T.return,ne)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(ne){_e(T,T.return,ne)}}}else if(t.tag===18){if(n===null){T=t;try{var G=T.stateNode;u?Yg(G,!0):Yg(T.stateNode,!1)}catch(ne){_e(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,Bs(e,n))));break;case 19:Ot(t,e),Mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bs(e,a)));break;case 30:break;case 21:break;default:Ot(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Xm(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);Hs(e,o,u);break;case 5:var h=n.stateNode;n.flags&32&&(Aa(h,""),n.flags&=-33);var b=vc(e);Hs(e,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,U=vc(e);bc(e,U,T);break;default:throw Error(s(161))}}catch(X){_e(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eg(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;)Jm(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"&&Ym(t,t.return,n),ia(t);break;case 27:gi(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,h=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(U){_e(a,a.return,U)}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++)zh(T[u],b)}catch(U){_e(a,a.return,U)}}n&&h&64&&Gm(o),ii(o,o.return);break;case 27:Km(o);case 26:case 5:Qn(u,o,n),n&&a===null&&h&4&&Vm(o),ii(o,o.return);break;case 12:Qn(u,o,n);break;case 31:Qn(u,o,n),n&&h&4&&Wm(u,o);break;case 13:Qn(u,o,n),n&&h&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;)tg(e,t,n,a),t=t.sibling}function tg(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,h=o.id,b=o.onPostCommit;typeof b=="function"&&b(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){_e(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,h=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(h,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,h=t,b=n,T=a,U=h.flags;switch(h.tag){case 0:case 11:case 15:Za(o,h,b,T,u),ri(8,h);break;case 23:break;case 22:var X=h.stateNode;h.memoizedState!==null?X._visibility&2?Za(o,h,b,T,u):si(o,h):(X._visibility|=2,Za(o,h,b,T,u)),u&&U&2048&&Sc(h.alternate,h);break;case 24:Za(o,h,b,T,u),u&&U&2048&&Nc(h.alternate,h);break;default:Za(o,h,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;)ng(e,t,n),e=e.sibling}function ng(e,t,n){switch(e.tag){case 26:Ja(e,t,n),e.flags&ui&&e.memoizedState!==null&&E1(n,fn,e.memoizedState,e.memoizedProps);break;case 5:Ja(e,t,n);break;case 3:case 4:var a=fn;fn=Is(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 lg(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,rg(a,e)}lg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ag(e),e=e.sibling}function ag(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,ks(e)):oi(e);break;default:oi(e)}}function ks(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,rg(a,e)}lg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hl(8,t,t.return),ks(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ks(t));break;default:ks(t)}e=e.sibling}}function rg(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 Bb={getCacheForType:function(e){var t=ot(Pe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot(Pe).controller.signal}},kb=typeof WeakMap=="function"?WeakMap:Map,Re=0,He=null,be=null,Se=0,De=0,Yt=null,ml=!1,Fa=!1,wc=!1,Gn=0,Ze=0,gl=0,sa=0,Ec=0,Vt=0,$a=0,ci=null,zt=null,Tc=!1,Qs=0,ig=0,Gs=1/0,Ys=null,pl=null,nt=0,yl=null,Wa=null,Yn=0,Cc=0,Ac=null,sg=null,fi=0,Rc=null;function Xt(){return(Re&2)!==0&&Se!==0?Se&-Se:D.T!==null?Uc():wd()}function ug(){if(Vt===0)if((Se&536870912)===0||we){var e=Wi;Wi<<=1,(Wi&3932160)===0&&(Wi=262144),Vt=e}else Vt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Vt}function Dt(e,t,n){(e===He&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Pa(e,0),vl(e,Se,Vt,!1)),Dr(e,n),((Re&2)===0||e!==He)&&(e===He&&((Re&2)===0&&(sa|=n),Ze===4&&vl(e,Se,Vt,!1)),xn(e))}function og(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?Yb(e,t):Mc(e,t,!0),o=a;do{if(u===0){Fa&&!a&&vl(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Qb(n)){u=Mc(e,t,!1),o=!1;continue}if(u===2){if(o=t,e.errorRecoveryDisabledLanes&o)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var b=e;u=ci;var T=b.current.memoizedState.isDehydrated;if(T&&(Pa(b,h).flags|=256),h=Mc(b,h,!1),h!==2){if(wc&&!T){b.errorRecoveryDisabledLanes|=o,sa|=o,u=4;break e}o=zt,zt=u,o!==null&&(zt===null?zt=o:zt.push.apply(zt,o))}u=h}if(o=!1,u!==2)continue}}if(u===1){Pa(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,Vt,!ml);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Qs+300-jt(),10<u)){if(vl(a,t,Vt,!ml),Ii(a,0,!0)!==0)break e;Yn=t,a.timeoutHandle=kg(cg.bind(null,a,n,zt,Ys,Tc,t,Vt,sa,$a,ml,o,"Throttled",-0,0),u);break e}cg(a,n,zt,Ys,Tc,t,Vt,sa,$a,ml,o,null,-0,0)}}break}while(!0);xn(e)}function cg(e,t,n,a,u,o,h,b,T,U,X,J,q,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},ng(t,o,J);var ne=(o&62914560)===o?Qs-jt():(o&4194048)===o?ig-jt():0;if(ne=T1(J,ne),ne!==null){Yn=o,e.cancelPendingCommit=ne(vg.bind(null,e,t,o,n,a,u,h,b,T,X,J,null,q,G)),vl(e,o,h,!U);return}}vg(e,t,o,n,a,u,h,b,T)}function Qb(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(!Bt(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-Ht(u),h=1<<o;a[o]=-1,u&=~h}n!==0&&xd(e,n,t)}function Vs(){return(Re&6)===0?(di(0),!1):!0}function Oc(){if(be!==null){if(De===0)var e=be.return;else e=be,Dn=Pl=null,Xo(e),Ga=null,Jr=0,e=be;for(;e!==null;)Qm(e.alternate,e),e=e.return;be=null}}function Pa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,s1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,Oc(),He=e,be=n=Mn(e.current,null),Se=t,De=0,Yt=null,ml=!1,Fa=zr(e,t),wc=!1,$a=Vt=Ec=sa=gl=Ze=0,zt=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-Ht(a),o=1<<u;t|=e[u],a&=~o}return Gn=t,fs(),n}function fg(e,t){he=null,D.H=ni,t===Qa||t===bs?(t=Ah(),De=3):t===_o?(t=Ah(),De=4):De=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,be===null&&(Ze=1,_s(e,Pt(t,e.current)))}function dg(){var e=Qt.current;return e===null?!0:(Se&4194048)===Se?nn===null:(Se&62914560)===Se||(Se&536870912)!==0?e===nn:!1}function hg(){var e=D.H;return D.H=ni,e===null?ni:e}function mg(){var e=D.A;return D.A=Bb,e}function Xs(){Ze=4,ml||(Se&4194048)!==Se&&Qt.current!==null||(Fa=!0),(gl&134217727)===0&&(sa&134217727)===0||He===null||vl(He,Se,Vt,!1)}function Mc(e,t,n){var a=Re;Re|=2;var u=hg(),o=mg();(He!==e||Se!==t)&&(Ys=null,Pa(e,t)),t=!1;var h=Ze;e:do try{if(De!==0&&be!==null){var b=be,T=Yt;switch(De){case 8:Oc(),h=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var U=De;if(De=0,Yt=null,Ia(e,b,T,U),n&&Fa){h=0;break e}break;default:U=De,De=0,Yt=null,Ia(e,b,T,U)}}Gb(),h=Ze;break}catch(X){fg(e,X)}while(!0);return t&&e.shellSuspendCounter++,Dn=Pl=null,Re=a,D.H=u,D.A=o,be===null&&(He=null,Se=0,fs()),h}function Gb(){for(;be!==null;)gg(be)}function Yb(e,t){var n=Re;Re|=2;var a=hg(),u=mg();He!==e||Se!==t?(Ys=null,Gs=jt()+500,Pa(e,t)):Fa=zr(e,t);e:do try{if(De!==0&&be!==null){t=be;var o=Yt;t:switch(De){case 1:De=0,Yt=null,Ia(e,t,o,1);break;case 2:case 9:if(Th(o)){De=0,Yt=null,pg(t);break}t=function(){De!==2&&De!==9||He!==e||(De=7),xn(e)},o.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Th(o)?(De=0,Yt=null,pg(t)):(De=0,Yt=null,Ia(e,t,o,7));break;case 5:var h=null;switch(be.tag){case 26:h=be.memoizedState;case 5:case 27:var b=be;if(h?tp(h):b.stateNode.complete){De=0,Yt=null;var T=b.sibling;if(T!==null)be=T;else{var U=b.return;U!==null?(be=U,Ks(U)):be=null}break t}}De=0,Yt=null,Ia(e,t,o,5);break;case 6:De=0,Yt=null,Ia(e,t,o,6);break;case 8:Oc(),Ze=6;break e;default:throw Error(s(462))}}Vb();break}catch(X){fg(e,X)}while(!0);return Dn=Pl=null,D.H=a,D.A=u,Re=n,be!==null?0:(He=null,Se=0,fs(),Ze)}function Vb(){for(;be!==null&&!h0();)gg(be)}function gg(e){var t=Bm(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?Ks(e):be=t}function pg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_m(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=_m(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Xo(t);default:Qm(n,t),t=be=mh(t,Gn),t=Bm(n,t,Gn)}e.memoizedProps=e.pendingProps,t===null?Ks(e):be=t}function Ia(e,t,n,a){Dn=Pl=null,Xo(t),Ga=null,Jr=0;var u=t.return;try{if(Db(e,u,t,n,Se)){Ze=1,_s(e,Pt(n,e.current)),be=null;return}}catch(o){if(u!==null)throw be=u,o;Ze=1,_s(e,Pt(n,e.current)),be=null;return}t.flags&32768?(we||a===1?e=!0:Fa||(Se&536870912)!==0?e=!1:(ml=e=!0,(a===2||a===9||a===3||a===6)&&(a=Qt.current,a!==null&&a.tag===13&&(a.flags|=16384))),yg(t,e)):Ks(t)}function Ks(e){var t=e;do{if((t.flags&32768)!==0){yg(t,ml);return}e=t.return;var n=Lb(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 yg(e,t){do{var n=jb(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 vg(e,t,n,a,u,o,h,b,T){e.cancelPendingCommit=null;do Zs();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,w0(e,n,o,h,b,T),e===He&&(be=He=null,Se=0),Wa=t,yl=e,Yn=n,Cc=o,Ac=u,sg=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jb(Fi,function(){return wg(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,u=$.p,$.p=2,h=Re,Re|=4;try{qb(e,t,n)}finally{Re=h,$.p=u,D.T=a}}nt=1,bg(),xg(),Sg()}}function bg(){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=$.p;$.p=2;var u=Re;Re|=4;try{Im(t,e);var o=Gc,h=rh(e.containerInfo),b=o.focusedElem,T=o.selectionRange;if(h!==b&&b&&b.ownerDocument&&ah(b.ownerDocument.documentElement,b)){if(T!==null&&ho(b)){var U=T.start,X=T.end;if(X===void 0&&(X=U),"selectionStart"in b)b.selectionStart=U,b.selectionEnd=Math.min(X,b.value.length);else{var J=b.ownerDocument||document,q=J&&J.defaultView||window;if(q.getSelection){var G=q.getSelection(),ne=b.textContent.length,ce=Math.min(T.start,ne),je=T.end===void 0?ce:Math.min(T.end,ne);!G.extend&&ce>je&&(h=je,je=ce,ce=h);var z=lh(b,ce),A=lh(b,je);if(z&&A&&(G.rangeCount!==1||G.anchorNode!==z.node||G.anchorOffset!==z.offset||G.focusNode!==A.node||G.focusOffset!==A.offset)){var _=J.createRange();_.setStart(z.node,z.offset),G.removeAllRanges(),ce>je?(G.addRange(_),G.extend(A.node,A.offset)):(_.setEnd(A.node,A.offset),G.addRange(_))}}}}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}}ru=!!Qc,Gc=Qc=null}finally{Re=u,$.p=a,D.T=n}}e.current=t,nt=2}}function xg(){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=$.p;$.p=2;var u=Re;Re|=4;try{Jm(e,t.alternate,t)}finally{Re=u,$.p=a,D.T=n}}nt=3}}function Sg(){if(nt===4||nt===3){nt=0,m0();var e=yl,t=Wa,n=Yn,a=sg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Wa=yl=null,Ng(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(pl=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=$.p,$.p=2,D.T=null;try{for(var o=e.onRecoverableError,h=0;h<a.length;h++){var b=a[h];o(b.value,{componentStack:b.stack})}}finally{D.T=t,$.p=u}}(Yn&3)!==0&&Zs(),xn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Rc?fi++:(fi=0,Rc=e):fi=0,di(0)}}function Ng(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kr(t)))}function Zs(){return bg(),xg(),Sg(),wg()}function wg(){if(nt!==5)return!1;var e=yl,t=Cc;Cc=0;var n=Zu(Yn),a=D.T,u=$.p;try{$.p=32>n?32:n,D.T=null,n=Ac,Ac=null;var o=yl,h=Yn;if(nt=0,Wa=yl=null,Yn=0,(Re&6)!==0)throw Error(s(331));var b=Re;if(Re|=4,ag(o.current),tg(o,o.current,h,n),Re=b,di(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Mr,o)}catch{}return!0}finally{$.p=u,D.T=a,Ng(e,t)}}function Eg(e,t,n){t=Pt(n,t),t=ic(e.stateNode,t,2),e=cl(e,t,2),e!==null&&(Dr(e,2),xn(e))}function _e(e,t,n){if(e.tag===3)Eg(e,e,n);else for(;t!==null;){if(t.tag===3){Eg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(pl===null||!pl.has(a))){e=Pt(n,e),n=Tm(2),a=cl(t,n,2),a!==null&&(Cm(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 kb;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=Xb.bind(null,e,t,n),t.then(e,e))}function Xb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,He===e&&(Se&n)===n&&(Ze===4||Ze===3&&(Se&62914560)===Se&&300>jt()-Qs?(Re&2)===0&&Pa(e,0):Ec|=n,$a===Se&&($a=0)),xn(e)}function Tg(e,t){t===0&&(t=bd()),e=Fl(e,t),e!==null&&(Dr(e,t),xn(e))}function Kb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tg(e,n)}function Zb(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),Tg(e,n)}function Jb(e,t){return Yu(e,t)}var Js=null,er=null,Dc=!1,Fs=!1,_c=!1,bl=0;function xn(e){e!==er&&e.next===null&&(er===null?Js=er=e:er=er.next=e),Fs=!0,Dc||(Dc=!0,$b())}function di(e,t){if(!_c&&Fs){_c=!0;do for(var n=!1,a=Js;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var o=0;else{var h=a.suspendedLanes,b=a.pingedLanes;o=(1<<31-Ht(42|e)+1)-1,o&=u&~(h&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Og(a,o))}else o=Se,o=Ii(a,a===He?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||zr(a,o)||(n=!0,Og(a,o));a=a.next}while(n);_c=!1}}function Fb(){Cg()}function Cg(){Fs=Dc=!1;var e=0;bl!==0&&i1()&&(e=bl);for(var t=jt(),n=null,a=Js;a!==null;){var u=a.next,o=Ag(a,t);o===0?(a.next=null,n===null?Js=u:n.next=u,u===null&&(er=n)):(n=a,(e!==0||(o&3)!==0)&&(Fs=!0)),a=u}nt!==0&&nt!==5||di(e),bl!==0&&(bl=0)}function Ag(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var h=31-Ht(o),b=1<<h,T=u[h];T===-1?((b&n)===0||(b&a)!==0)&&(u[h]=N0(b,t)):T<=t&&(e.expiredLanes|=b),o&=~b}if(t=He,n=Se,n=Ii(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(De===2||De===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=yd;break;case 32:n=Fi;break;case 268435456:n=vd;break;default:n=Fi}return a=Rg.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 Rg(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zs()&&e.callbackNode!==n)return null;var a=Se;return a=Ii(e,e===He?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(og(e,a,t),Ag(e,jt()),e.callbackNode!=null&&e.callbackNode===n?Rg.bind(null,e):null)}function Og(e,t){if(Zs())return null;og(e,t,!0)}function $b(){u1(function(){(Re&6)!==0?Yu(pd,Fb):Cg()})}function Uc(){if(bl===0){var e=Ba;e===0&&(e=$i,$i<<=1,($i&261888)===0&&($i=256)),bl=e}return bl}function Mg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ls(""+e)}function zg(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 Wb(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var o=Mg((u[Ct]||null).action),h=a.submitter;h&&(t=(t=h[Ct]||null)?Mg(t.formAction):h.getAttribute("formAction"),t!==null&&(o=t,h=null));var b=new ss("action","action",null,a,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(bl!==0){var T=h?zg(u,h):new FormData(u);ec(n,{pending:!0,data:T,method:u.method,action:o},null,T)}}else typeof o=="function"&&(b.preventDefault(),T=h?zg(u,h):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 jc=yo[Lc],Pb=jc.toLowerCase(),Ib=jc[0].toUpperCase()+jc.slice(1);cn(Pb,"on"+Ib)}cn(uh,"onAnimationEnd"),cn(oh,"onAnimationIteration"),cn(ch,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(gb,"onTransitionRun"),cn(pb,"onTransitionStart"),cn(yb,"onTransitionCancel"),cn(fh,"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(" "),e1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hi));function Dg(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 h=a.length-1;0<=h;h--){var b=a[h],T=b.instance,U=b.currentTarget;if(b=b.listener,T!==o&&u.isPropagationStopped())break e;o=b,u.currentTarget=U;try{o(u)}catch(X){cs(X)}u.currentTarget=null,o=T}else for(h=0;h<a.length;h++){if(b=a[h],T=b.instance,U=b.currentTarget,b=b.listener,T!==o&&u.isPropagationStopped())break e;o=b,u.currentTarget=U;try{o(u)}catch(X){cs(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)||(_g(t,e,2,!1),n.add(a))}function qc(e,t,n){var a=0;t&&(a|=4),_g(n,e,a,t)}var $s="_reactListening"+Math.random().toString(36).slice(2);function Hc(e){if(!e[$s]){e[$s]=!0,Cd.forEach(function(n){n!=="selectionchange"&&(e1.has(n)||qc(n,!1,e),qc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$s]||(t[$s]=!0,qc("selectionchange",!1,t))}}function _g(e,t,n,a){switch(up(t)){case 2:var u=R1;break;case 8:u=O1;break;default:u=Ic}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 h=a.tag;if(h===3||h===4){var b=a.stateNode.containerInfo;if(b===u)break;if(h===4)for(h=a.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===u)return;h=h.return}for(;b!==null;){if(h=Na(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){a=o=h;continue e}b=b.parentNode}}a=a.return}Hd(function(){var U=o,X=to(n),J=[];e:{var q=dh.get(e);if(q!==void 0){var G=ss,ne=e;switch(e){case"keypress":if(rs(n)===0)break e;case"keydown":case"keyup":G=Z0;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=Qd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=L0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=$0;break;case uh:case oh:case ch:G=H0;break;case fh:G=P0;break;case"scroll":case"scrollend":G=_0;break;case"wheel":G=eb;break;case"copy":case"cut":case"paste":G=k0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Yd;break;case"toggle":case"beforetoggle":G=nb}var ce=(t&4)!==0,je=!ce&&(e==="scroll"||e==="scrollend"),z=ce?q!==null?q+"Capture":null:q;ce=[];for(var A=U,_;A!==null;){var Z=A;if(_=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||_===null||z===null||(Z=Lr(A,z),Z!=null&&ce.push(mi(A,Z,_))),je)break;A=A.return}0<ce.length&&(q=new G(q,ne,null,n,X),J.push({event:q,listeners:ce}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",q&&n!==eo&&(ne=n.relatedTarget||n.fromElement)&&(Na(ne)||ne[Sa]))break e;if((G||q)&&(q=X.window===X?X:(q=X.ownerDocument)?q.defaultView||q.parentWindow:window,G?(ne=n.relatedTarget||n.toElement,G=U,ne=ne?Na(ne):null,ne!==null&&(je=f(ne),ce=ne.tag,ne!==je||ce!==5&&ce!==27&&ce!==6)&&(ne=null)):(G=null,ne=U),G!==ne)){if(ce=Qd,Z="onMouseLeave",z="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Yd,Z="onPointerLeave",z="onPointerEnter",A="pointer"),je=G==null?q:Ur(G),_=ne==null?q:Ur(ne),q=new ce(Z,A+"leave",G,n,X),q.target=je,q.relatedTarget=_,Z=null,Na(X)===U&&(ce=new ce(z,A+"enter",ne,n,X),ce.target=_,ce.relatedTarget=je,Z=ce),je=Z,G&&ne)t:{for(ce=t1,z=G,A=ne,_=0,Z=z;Z;Z=ce(Z))_++;Z=0;for(var ue=A;ue;ue=ce(ue))Z++;for(;0<_-Z;)z=ce(z),_--;for(;0<Z-_;)A=ce(A),Z--;for(;_--;){if(z===A||A!==null&&z===A.alternate){ce=z;break t}z=ce(z),A=ce(A)}ce=null}else ce=null;G!==null&&Ug(J,q,G,ce,!1),ne!==null&&je!==null&&Ug(J,je,ne,ce,!0)}}e:{if(q=U?Ur(U):window,G=q.nodeName&&q.nodeName.toLowerCase(),G==="select"||G==="input"&&q.type==="file")var Ce=Wd;else if(Fd(q))if(Pd)Ce=db;else{Ce=cb;var ae=ob}else G=q.nodeName,!G||G.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?U&&Iu(U.elementType)&&(Ce=Wd):Ce=fb;if(Ce&&(Ce=Ce(e,U))){$d(J,Ce,n,X);break e}ae&&ae(e,q,U),e==="focusout"&&U&&q.type==="number"&&U.memoizedProps.value!=null&&Pu(q,"number",q.value)}switch(ae=U?Ur(U):window,e){case"focusin":(Fd(ae)||ae.contentEditable==="true")&&(za=ae,mo=U,Yr=null);break;case"focusout":Yr=mo=za=null;break;case"mousedown":go=!0;break;case"contextmenu":case"mouseup":case"dragend":go=!1,ih(J,n,X);break;case"selectionchange":if(mb)break;case"keydown":case"keyup":ih(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?Zd(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(Vd&&n.locale!=="ko"&&(Ma||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Ma&&(me=Bd()):(ll=X,ao="value"in ll?ll.value:ll.textContent,Ma=!0)),ae=Ws(U,Ne),0<ae.length&&(Ne=new Gd(Ne,e,null,n,X),J.push({event:Ne,listeners:ae}),me?Ne.data=me:(me=Jd(n),me!==null&&(Ne.data=me)))),(me=ab?rb(e,n):ib(e,n))&&(Ne=Ws(U,"onBeforeInput"),0<Ne.length&&(ae=new Gd("onBeforeInput","beforeinput",null,n,X),J.push({event:ae,listeners:Ne}),ae.data=me)),Wb(J,e,U,n,X)}Dg(J,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ws(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 t1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ug(e,t,n,a,u){for(var o=t._reactName,h=[];n!==null&&n!==a;){var b=n,T=b.alternate,U=b.stateNode;if(b=b.tag,T!==null&&T===a)break;b!==5&&b!==26&&b!==27||U===null||(T=U,u?(U=Lr(n,o),U!=null&&h.unshift(mi(n,U,T))):u||(U=Lr(n,o),U!=null&&h.push(mi(n,U,T)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var n1=/\r\n?/g,l1=/\u0000|\uFFFD/g;function Lg(e){return(typeof e=="string"?e:""+e).replace(n1,`
|
|
49
|
-
`).replace(l1,"")}function jg(e,t){return t=Lg(t),Lg(e)===t}function Le(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":ts(e,"class",a);break;case"tabIndex":ts(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ts(e,n,a);break;case"style":jd(e,a,o);break;case"data":if(t!=="object"){ts(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=ls(""+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"&&Le(e,t,"name",u.name,u,null),Le(e,t,"formEncType",u.formEncType,u,null),Le(e,t,"formMethod",u.formMethod,u,null),Le(e,t,"formTarget",u.formTarget,u,null)):(Le(e,t,"encType",u.encType,u,null),Le(e,t,"method",u.method,u,null),Le(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ls(""+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=ls(""+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),es(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":es(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=z0.get(n)||n,es(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(!Ad.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[Ct]||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,""):es(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 h=n[o];if(h!=null)switch(o){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Le(e,t,o,h,n,null)}}u&&Le(e,t,"srcSet",n.srcSet,n,null),a&&Le(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var b=o=h=u=null,T=null,U=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":h=X;break;case"checked":T=X;break;case"defaultChecked":U=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:Le(e,t,a,X,n,null)}}Dd(e,o,b,T,U,h,u,!1);return;case"select":xe("invalid",e),a=h=o=null;for(u in n)if(n.hasOwnProperty(u)&&(b=n[u],b!=null))switch(u){case"value":o=b;break;case"defaultValue":h=b;break;case"multiple":a=b;default:Le(e,t,u,b,n,null)}t=o,n=h,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(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){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:Le(e,t,h,b,n,null)}Ud(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:Le(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(U in n)if(n.hasOwnProperty(U)&&(a=n[U],a!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Le(e,t,U,a,n,null)}return;default:if(Iu(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&&Le(e,t,b,a,n,null))}function a1(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,h=null,b=null,T=null,U=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)||Le(e,t,G,null,a,J)}}for(var q in a){var G=a[q];if(J=n[q],a.hasOwnProperty(q)&&(G!=null||J!=null))switch(q){case"type":o=G;break;case"name":u=G;break;case"checked":U=G;break;case"defaultChecked":X=G;break;case"value":h=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:G!==J&&Le(e,t,q,G,a,J)}}Wu(e,h,b,T,U,X,o,u);return;case"select":G=h=b=q=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)||Le(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":q=o;break;case"defaultValue":b=o;break;case"multiple":h=o;default:o!==T&&Le(e,t,u,o,a,T)}t=b,n=h,a=G,q!=null?Ca(e,!!n,q,!1):!!a!=!!n&&(t!=null?Ca(e,!!n,t,!0):Ca(e,!!n,n?[]:"",!1));return;case"textarea":G=q=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:Le(e,t,b,null,a,u)}for(h in a)if(u=a[h],o=n[h],a.hasOwnProperty(h)&&(u!=null||o!=null))switch(h){case"value":q=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==o&&Le(e,t,h,u,a,o)}_d(e,q,G);return;case"option":for(var ne in n)if(q=n[ne],n.hasOwnProperty(ne)&&q!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Le(e,t,ne,null,a,q)}for(T in a)if(q=a[T],G=n[T],a.hasOwnProperty(T)&&q!==G&&(q!=null||G!=null))switch(T){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:Le(e,t,T,q,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)q=n[ce],n.hasOwnProperty(ce)&&q!=null&&!a.hasOwnProperty(ce)&&Le(e,t,ce,null,a,q);for(U in a)if(q=a[U],G=n[U],a.hasOwnProperty(U)&&q!==G&&(q!=null||G!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:Le(e,t,U,q,a,G)}return;default:if(Iu(t)){for(var je in n)q=n[je],n.hasOwnProperty(je)&&q!==void 0&&!a.hasOwnProperty(je)&&kc(e,t,je,void 0,a,q);for(X in a)q=a[X],G=n[X],!a.hasOwnProperty(X)||q===G||q===void 0&&G===void 0||kc(e,t,X,q,a,G);return}}for(var z in n)q=n[z],n.hasOwnProperty(z)&&q!=null&&!a.hasOwnProperty(z)&&Le(e,t,z,null,a,q);for(J in a)q=a[J],G=n[J],!a.hasOwnProperty(J)||q===G||q==null&&G==null||Le(e,t,J,q,a,G)}function qg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function r1(){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,h=u.initiatorType,b=u.duration;if(o&&b&&qg(h)){for(h=0,b=u.responseEnd,a+=1;a<n.length;a++){var T=n[a],U=T.startTime;if(U>b)break;var X=T.transferSize,J=T.initiatorType;X&&qg(J)&&(T=T.responseEnd,h+=X*(T<b?1:(b-U)/(T-U)))}if(--a,t+=8*(o+h)/(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 Ps(e){return e.nodeType===9?e:e.ownerDocument}function Hg(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 Bg(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 i1(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var kg=typeof setTimeout=="function"?setTimeout:void 0,s1=typeof clearTimeout=="function"?clearTimeout:void 0,Qg=typeof Promise=="function"?Promise:void 0,u1=typeof queueMicrotask=="function"?queueMicrotask:typeof Qg<"u"?function(e){return Qg.resolve(null).then(e).catch(o1)}:kg;function o1(e){setTimeout(function(){throw e})}function xl(e){return e==="head"}function Gg(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")gi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,gi(n);for(var o=n.firstChild;o;){var h=o.nextSibling,b=o.nodeName;o[_r]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&gi(e.ownerDocument.body);n=u}while(n);ar(t)}function Yg(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),Fu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function c1(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=ln(e.nextSibling),e===null)break}return null}function f1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ln(e.nextSibling),e===null))return null;return e}function Vg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ln(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 d1(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 ln(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 Xg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ln(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Kg(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 Zg(e,t,n){switch(t=Ps(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 gi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fu(e)}var an=new Map,Jg=new Set;function Is(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=$.d;$.d={f:h1,r:m1,D:g1,C:p1,L:y1,m:v1,X:x1,S:b1,M:S1};function h1(){var e=Vn.f(),t=Vs();return e||t}function m1(e){var t=wa(e);t!==null&&t.tag===5&&t.type==="form"?fm(t):Vn.r(e)}var tr=typeof document>"u"?null:document;function Fg(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+'"]'),Jg.has(u)||(Jg.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 g1(e){Vn.D(e),Fg("dns-prefetch",e,null)}function p1(e,t){Vn.C(e,t),Fg("preconnect",e,t)}function y1(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)}an.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),an.set(o,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(pi(o))||t==="script"&&a.querySelector(yi(o))||(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function v1(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(!an.has(o)&&(e=S({rel:"modulepreload",href:e},t),an.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 b1(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 h=u.get(o);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(pi(o)))b.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=an.get(o))&&Fc(e,n);var T=h=a.createElement("link");at(T),ft(T,"link",e),T._p=new Promise(function(U,X){T.onload=U,T.onerror=X}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,eu(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},u.set(o,h)}}}function x1(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=an.get(u))&&$c(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 S1(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=an.get(u))&&$c(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 $g(e,t,n,a){var u=(u=ve.current)?Is(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,h=o.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,h),(o=u.querySelector(pi(e)))&&!o._p&&(h.instance=o,h.state.loading=5),an.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},an.set(e,n),o||N1(u,e,n,h.state))),t&&a===null)throw Error(s(528,""));return h}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 pi(e){return'link[rel="stylesheet"]['+e+"]"}function Wg(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function N1(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 Pg(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),eu(a,n.precedence,e),t.instance=a;case"stylesheet":u=nr(n.href);var o=e.querySelector(pi(u));if(o)return t.state.loading|=4,t.instance=o,at(o),o;a=Wg(n),(u=an.get(u))&&Fc(a,u),o=(e.ownerDocument||e).createElement("link"),at(o);var h=o;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ft(o,"link",a),t.state.loading|=4,eu(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=an.get(o))&&(a=S({},n),$c(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,eu(a,n.precedence,e));return t.instance}function eu(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,h=0;h<a.length;h++){var b=a[h];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 Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var tu=null;function Ig(e,t,n){if(tu===null){var a=new Map,u=tu=new Map;u.set(n,a)}else u=tu,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 h=o.getAttribute(t)||"";h=e+h;var b=a.get(h);b?b.push(o):a.set(h,[o])}}return a}function ep(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function w1(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 tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function E1(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(pi(u));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=nu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,a=Wg(a),(u=an.get(u))&&Fc(a,u),o=o.createElement("link"),at(o);var h=o;h._p=new Promise(function(b,T){h.onload=b,h.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=nu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wc=0;function T1(e,t){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Wc===0&&(Wc=62500*r1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(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 nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lu=null;function au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lu=new Map,t.forEach(C1,e),lu=null,nu.call(e))}function C1(e,t){if(!(t.state.loading&4)){var n=lu.get(e);if(n)var a=n.get(null);else{n=new Map,lu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<u.length;o++){var h=u[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}u=t.instance,h=u.getAttribute("data-precedence"),o=n.get(h)||a,o===a&&n.set(null,u),n.set(h,u),this.count++,a=nu.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:j,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function A1(e,t,n,a,u,o,h,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=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function np(e,t,n,a,u,o,h,b,T,U,X,J){return e=new A1(e,t,n,h,T,U,X,J,b),t=1,o===!0&&(t|=24),o=kt(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 lp(e){return e?(e=Ua,e):Ua}function ap(e,t,n,a,u,o){u=lp(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&&(Dt(n,e,t),$r(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pc(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ip(e){if(e.tag===13||e.tag===31){var t=Fl(e,67108864);t!==null&&Dt(t,e,67108864),Pc(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=Xt();t=Ku(t);var n=Fl(e,t);n!==null&&Dt(n,e,t),Pc(e,t)}}var ru=!0;function R1(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=2,Ic(e,t,n,a)}finally{$.p=o,D.T=u}}function O1(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=8,Ic(e,t,n,a)}finally{$.p=o,D.T=u}}function Ic(e,t,n,a){if(ru){var u=ef(a);if(u===null)Bc(e,t,a,iu,n),op(e,a);else if(z1(u,e,t,n,a))a.stopPropagation();else if(op(e,a),t&4&&-1<M1.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 h=Vl(o.pendingLanes);if(h!==0){var b=o;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-Ht(h);b.entanglements[1]|=T,h&=~T}xn(o),(Re&6)===0&&(Gs=jt()+500,di(0))}}break;case 31:case 13:b=Fl(o,2),b!==null&&Dt(b,o,2),Vs(),Pc(o,2)}if(o=ef(a),o===null&&Bc(e,t,a,iu,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 iu=null;function tf(e){if(iu=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=m(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 iu=e,null}function up(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(g0()){case pd:return 2;case yd:return 8;case Fi:case p0:return 32;case vd:return 268435456;default:return 32}default:return 32}}var nf=!1,Sl=null,Nl=null,wl=null,bi=new Map,xi=new Map,El=[],M1="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 op(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&&ip(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function z1(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 cp(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,Ed(e.priority,function(){sp(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Ed(e.priority,function(){sp(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 su(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&&ip(t),e.blockedOn=n,!1;t.shift()}return!0}function fp(e,t,n){su(e)&&n.delete(t)}function D1(){nf=!1,Sl!==null&&su(Sl)&&(Sl=null),Nl!==null&&su(Nl)&&(Nl=null),wl!==null&&su(wl)&&(wl=null),bi.forEach(fp),xi.forEach(fp)}function uu(e,t){e.blockedOn===t&&(e.blockedOn=null,nf||(nf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,D1)))}var ou=null;function dp(e){ou!==e&&(ou=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){ou===e&&(ou=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 uu(T,e)}Sl!==null&&uu(Sl,e),Nl!==null&&uu(Nl,e),wl!==null&&uu(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);)cp(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],h=u[Ct]||null;if(typeof o=="function")h||dp(n);else if(h){var b=null;if(o&&o.hasAttribute("formAction")){if(u=o,h=o[Ct]||null)b=h.formAction;else if(tf(u)!==null)continue}else b=h.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),dp(n)}}}function hp(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return u=h})},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}cu.prototype.render=lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Xt();ap(n,a,e,t,null,null)},cu.prototype.unmount=lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),Vs(),t[Sa]=null}};function cu(e){this._internalRoot=e}cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wd();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&&cp(e)}};var mp=r.version;if(mp!=="19.2.0")throw Error(s(527,mp,"19.2.0"));$.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=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var _1={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fu.isDisabled&&fu.supportsFiber)try{Mr=fu.inject(_1),qt=fu}catch{}}return wi.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",u=Sm,o=Nm,h=wm;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&&(h=t.onRecoverableError)),t=np(e,1,!1,null,null,n,a,null,u,o,h,hp),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=Sm,h=Nm,b=wm,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&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=np(e,1,!0,t,n??null,a,u,T,o,h,b,hp),t.context=lp(null),n=t.current,a=Xt(),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 cu(t)},wi.version="19.2.0",wi}var Tp;function X1(){if(Tp)return uf.exports;Tp=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=V1(),uf.exports}var K1=X1();const Z1=xy(K1);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(){}},J1={setTimeout:(l,r)=>setTimeout(l,r),clearTimeout:l=>clearTimeout(l),setInterval:(l,r)=>setInterval(l,r),clearInterval:l=>clearInterval(l)},Ml,Qf,oy,F1=(oy=class{constructor(){se(this,Ml,J1);se(this,Qf,!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,Qf=new WeakMap,oy),oa=new F1;function $1(l){setTimeout(l,0)}var ba=typeof window>"u"||"Deno"in globalThis;function Nt(){}function W1(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 sn(l,r){return typeof l=="function"?l(r):l}function Cp(l,r){const{type:i="all",exact:s,fetchStatus:c,predicate:f,queryKey:d,stale:m}=l;if(d){if(s){if(r.queryHash!==Vf(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 m=="boolean"&&r.isStale()!==m||c&&c!==r.state.fetchStatus||f&&!f(r))}function Ap(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 Vf(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 P1=Object.prototype.hasOwnProperty;function Ey(l,r){if(l===r)return l;const i=Rp(l)&&Rp(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,m=i?new Array(d):{};let y=0;for(let p=0;p<d;p++){const x=i?p:f[p],S=l[x],N=r[x];if(S===N){m[x]=S,(i?p<c:P1.call(l,x))&&y++;continue}if(S===null||N===null||typeof S!="object"||typeof N!="object"){m[x]=N;continue}const O=Ey(S,N);m[x]=O,O===S&&y++}return c===d&&y===c?l:m}function Nu(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 Rp(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Sf(l){if(!Op(l))return!1;const r=l.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!Op(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Op(l){return Object.prototype.toString.call(l)==="[object Object]"}function I1(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 ex(l,r,i=0){const s=[...l,r];return i&&s.length>i?s.slice(1):s}function tx(l,r,i=0){const s=[r,...l];return i&&s.length>i?s.slice(0,-1):s}var Xf=Symbol();function Ty(l,r){return!l.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!l.queryFn||l.queryFn===Xf?()=>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,nx=(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),Kf=new nx;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 lx=$1;function ax(){let l=[],r=0,i=m=>{m()},s=m=>{m()},c=lx;const f=m=>{r?l.push(m):c(()=>{i(m)})},d=()=>{const m=l;l=[],m.length&&c(()=>{s(()=>{m.forEach(y=>{i(y)})})})};return{batch:m=>{let y;r++;try{y=m()}finally{r--,r||d()}return y},batchCalls:m=>(...y)=>{f(()=>{m(...y)})},schedule:f,setNotifyFunction:m=>{i=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{c=m}}}var lt=ax(),or,Dl,cr,fy,rx=(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),wu=new rx;function ix(l){return Math.min(1e3*2**l,3e4)}function Ay(l){return(l??"online")==="online"?wu.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=M=>{var R;if(!f()){const L=new Ef(M);N(L),(R=l.onCancel)==null||R.call(l,L)}},m=()=>{r=!0},y=()=>{r=!1},p=()=>Kf.isFocused()&&(l.networkMode==="always"||wu.isOnline())&&l.canRun(),x=()=>Ay(l.networkMode)&&l.canRun(),S=M=>{f()||(s==null||s(),c.resolve(M))},N=M=>{f()||(s==null||s(),c.reject(M))},O=()=>new Promise(M=>{var R;s=L=>{(f()||p())&&M(L)},(R=l.onPause)==null||R.call(l)}).then(()=>{var M;s=void 0,f()||(M=l.onContinue)==null||M.call(l)}),Y=()=>{if(f())return;let M;const R=i===0?l.initialPromise:void 0;try{M=R??l.fn()}catch(L){M=Promise.reject(L)}Promise.resolve(M).then(S).catch(L=>{var k;if(f())return;const H=l.retry??(ba?0:3),j=l.retryDelay??ix,Q=typeof j=="function"?j(i,L):j,B=H===!0||typeof H=="number"&&i<H||typeof H=="function"&&H(i,L);if(r||!B){N(L);return}i++,(k=l.onFail)==null||k.call(l,i,L),I1(Q).then(()=>p()?void 0:O()).then(()=>{r?N(L):Y()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(s==null||s(),c),cancelRetry:m,continueRetry:y,canStart:x,start:()=>(x()?Y():O().then(Y),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,rn,ha,it,Hi,ma,hn,Zn,hy,sx=(hy=class extends Oy{constructor(r){super();se(this,hn);se(this,da);se(this,fr);se(this,rn);se(this,ha);se(this,it);se(this,Hi);se(this,ma);ee(this,ma,!1),ee(this,Hi,r.defaultOptions),this.setOptions(r.options),this.observers=[],ee(this,ha,r.client),ee(this,rn,C(this,ha).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ee(this,da,Mp(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,Hi),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Mp(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,rn).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=>sn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xf||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,rn).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,rn).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,p,x,S,N,O,Y,M,R,L,H,j;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(B=>B.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)},m=(()=>{const Q={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:C(this,ha),state:this.state,fetchFn:f};return c(Q),Q})();(p=this.options.behavior)==null||p.onFetch(m,this),ee(this,fr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&ye(this,hn,Zn).call(this,{type:"fetch",meta:(S=m.fetchOptions)==null?void 0:S.meta}),ee(this,it,Ry({initialPromise:i==null?void 0:i.initialPromise,fn:m.fetchFn,onCancel:Q=>{Q instanceof Ef&&Q.revert&&this.setState({...C(this,fr),fetchStatus:"idle"}),s.abort()},onFail:(Q,B)=>{ye(this,hn,Zn).call(this,{type:"failed",failureCount:Q,error:B})},onPause:()=>{ye(this,hn,Zn).call(this,{type:"pause"})},onContinue:()=>{ye(this,hn,Zn).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.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),(O=(N=C(this,rn).config).onSuccess)==null||O.call(N,Q,this),(M=(Y=C(this,rn).config).onSettled)==null||M.call(Y,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}),(L=(R=C(this,rn).config).onError)==null||L.call(R,Q,this),(j=(H=C(this,rn).config).onSettled)==null||j.call(H,this.state.data,Q,this),Q}finally{this.scheduleGc()}}},da=new WeakMap,fr=new WeakMap,rn=new WeakMap,ha=new WeakMap,it=new WeakMap,Hi=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,rn).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 Mp(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 _t,Ee,Bi,xt,ga,dr,Jn,_l,ki,hr,mr,pa,ya,Ul,gr,ze,Ai,Tf,Cf,Af,Rf,Of,Mf,zf,zy,my,ux=(my=class extends Sr{constructor(r,i){super();se(this,ze);se(this,_t);se(this,Ee);se(this,Bi);se(this,xt);se(this,ga);se(this,dr);se(this,Jn);se(this,_l);se(this,ki);se(this,hr);se(this,mr);se(this,pa);se(this,ya);se(this,Ul);se(this,gr,new Set);this.options=i,ee(this,_t,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),zp(C(this,Ee),this.options)?ye(this,ze,Ai).call(this):this.updateResult(),ye(this,ze,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,ze,Of).call(this),ye(this,ze,Mf).call(this),C(this,Ee).removeObserver(this)}setOptions(r){const i=this.options,s=C(this,Ee);if(this.options=C(this,_t).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sn(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,ze,zf).call(this),C(this,Ee).setOptions(this.options),i._defaulted&&!Nu(this.options,i)&&C(this,_t).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,Ee),observer:this});const c=this.hasListeners();c&&Dp(C(this,Ee),s,this.options,i)&&ye(this,ze,Ai).call(this),this.updateResult(),c&&(C(this,Ee)!==s||sn(this.options.enabled,C(this,Ee))!==sn(i.enabled,C(this,Ee))||Bl(this.options.staleTime,C(this,Ee))!==Bl(i.staleTime,C(this,Ee)))&&ye(this,ze,Tf).call(this);const f=ye(this,ze,Cf).call(this);c&&(C(this,Ee)!==s||sn(this.options.enabled,C(this,Ee))!==sn(i.enabled,C(this,Ee))||f!==C(this,Ul))&&ye(this,ze,Af).call(this,f)}getOptimisticResult(r){const i=C(this,_t).getQueryCache().build(C(this,_t),r),s=this.createResult(i,r);return cx(this,s)&&(ee(this,xt,s),ee(this,dr,this.options),ee(this,ga,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,gr).add(r)}getCurrentQuery(){return C(this,Ee)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=C(this,_t).defaultQueryOptions(r),s=C(this,_t).getQueryCache().build(C(this,_t),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(r){return ye(this,ze,Ai).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,xt)))}createResult(r,i){var P;const s=C(this,Ee),c=this.options,f=C(this,xt),d=C(this,ga),m=C(this,dr),p=r!==s?r.state:C(this,Bi),{state:x}=r;let S={...x},N=!1,O;if(i._optimisticResults){const F=this.hasListeners(),oe=!F&&zp(r,i),ie=F&&Dp(r,s,i,c);(oe||ie)&&(S={...S,...My(x.data,r.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:Y,errorUpdatedAt:M,status:R}=S;O=S.data;let L=!1;if(i.placeholderData!==void 0&&O===void 0&&R==="pending"){let F;f!=null&&f.isPlaceholderData&&i.placeholderData===(m==null?void 0:m.placeholderData)?(F=f.data,L=!0):F=typeof i.placeholderData=="function"?i.placeholderData((P=C(this,mr))==null?void 0:P.state.data,C(this,mr)):i.placeholderData,F!==void 0&&(R="success",O=Nf(f==null?void 0:f.data,F,i),N=!0)}if(i.select&&O!==void 0&&!L)if(f&&O===(d==null?void 0:d.data)&&i.select===C(this,ki))O=C(this,hr);else try{ee(this,ki,i.select),O=i.select(O),O=Nf(f==null?void 0:f.data,O,i),ee(this,hr,O),ee(this,_l,null)}catch(F){ee(this,_l,F)}C(this,_l)&&(Y=C(this,_l),O=C(this,hr),M=Date.now(),R="error");const H=S.fetchStatus==="fetching",j=R==="pending",Q=R==="error",B=j&&H,k=O!==void 0,W={status:R,fetchStatus:S.fetchStatus,isPending:j,isSuccess:R==="success",isError:Q,isInitialLoading:B,isLoading:B,data:O,dataUpdatedAt:S.dataUpdatedAt,error:Y,errorUpdatedAt:M,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>p.dataUpdateCount||S.errorUpdateCount>p.errorUpdateCount,isFetching:H,isRefetching:H&&!j,isLoadingError:Q&&!k,isPaused:S.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:Q&&k,isStale:Zf(r,i),refetch:this.refetch,promise:C(this,Jn),isEnabled:sn(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const F=qe=>{W.status==="error"?qe.reject(W.error):W.data!==void 0&&qe.resolve(W.data)},oe=()=>{const qe=ee(this,Jn,W.promise=wf());F(qe)},ie=C(this,Jn);switch(ie.status){case"pending":r.queryHash===s.queryHash&&F(ie);break;case"fulfilled":(W.status==="error"||W.data!==ie.value)&&oe();break;case"rejected":(W.status!=="error"||W.error!==ie.reason)&&oe();break}}return W}updateResult(){const r=C(this,xt),i=this.createResult(C(this,Ee),this.options);if(ee(this,ga,C(this,Ee).state),ee(this,dr,this.options),C(this,ga).data!==void 0&&ee(this,mr,C(this,Ee)),Nu(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,gr).size)return!0;const d=new Set(f??C(this,gr));return this.options.throwOnError&&d.add("error"),Object.keys(C(this,xt)).some(m=>{const y=m;return C(this,xt)[y]!==r[y]&&d.has(y)})};ye(this,ze,zy).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,ze,Rf).call(this)}},_t=new WeakMap,Ee=new WeakMap,Bi=new WeakMap,xt=new WeakMap,ga=new WeakMap,dr=new WeakMap,Jn=new WeakMap,_l=new WeakMap,ki=new WeakMap,hr=new WeakMap,mr=new WeakMap,pa=new WeakMap,ya=new WeakMap,Ul=new WeakMap,gr=new WeakMap,ze=new WeakSet,Ai=function(r){ye(this,ze,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,ze,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,pa,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,ze,Mf).call(this),ee(this,Ul,r),!(ba||sn(this.options.enabled,C(this,Ee))===!1||!xf(C(this,Ul))||C(this,Ul)===0)&&ee(this,ya,oa.setInterval(()=>{(this.options.refetchIntervalInBackground||Kf.isFocused())&&ye(this,ze,Ai).call(this)},C(this,Ul)))},Rf=function(){ye(this,ze,Tf).call(this),ye(this,ze,Af).call(this,ye(this,ze,Cf).call(this))},Of=function(){C(this,pa)&&(oa.clearTimeout(C(this,pa)),ee(this,pa,void 0))},Mf=function(){C(this,ya)&&(oa.clearInterval(C(this,ya)),ee(this,ya,void 0))},zf=function(){const r=C(this,_t).getQueryCache().build(C(this,_t),this.options);if(r===C(this,Ee))return;const i=C(this,Ee);ee(this,Ee,r),ee(this,Bi,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,_t).getQueryCache().notify({query:C(this,Ee),type:"observerResultsUpdated"})})},my);function ox(l,r){return sn(r.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&r.retryOnMount===!1)}function zp(l,r){return ox(l,r)||l.state.data!==void 0&&Df(l,r,r.refetchOnMount)}function Df(l,r,i){if(sn(r.enabled,l)!==!1&&Bl(r.staleTime,l)!=="static"){const s=typeof i=="function"?i(l):i;return s==="always"||s!==!1&&Zf(l,r)}return!1}function Dp(l,r,i,s){return(l!==r||sn(s.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Zf(l,i)}function Zf(l,r){return sn(r.enabled,l)!==!1&&l.isStaleByTime(Bl(r.staleTime,l))}function cx(l,r){return!Nu(l.getCurrentResult(),r)}function _p(l){return{onFetch:(r,i)=>{var x,S,N,O,Y;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=((O=r.state.data)==null?void 0:O.pages)||[],d=((Y=r.state.data)==null?void 0:Y.pageParams)||[];let m={pages:[],pageParams:[]},y=0;const p=async()=>{let M=!1;const R=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(r.signal.aborted?M=!0:r.signal.addEventListener("abort",()=>{M=!0}),r.signal)})},L=Ty(r.options,r.fetchOptions),H=async(j,Q,B)=>{if(M)return Promise.reject();if(Q==null&&j.pages.length)return Promise.resolve(j);const K=(()=>{const oe={client:r.client,queryKey:r.queryKey,pageParam:Q,direction:B?"backward":"forward",meta:r.options.meta};return R(oe),oe})(),W=await L(K),{maxPages:P}=r.options,F=B?tx:ex;return{pages:F(j.pages,W,P),pageParams:F(j.pageParams,Q,P)}};if(c&&f.length){const j=c==="backward",Q=j?fx:Up,B={pages:f,pageParams:d},k=Q(s,B);m=await H(B,k,j)}else{const j=l??f.length;do{const Q=y===0?d[0]??s.initialPageParam:Up(s,m);if(y>0&&Q==null)break;m=await H(m,Q),y++}while(y<j)}return m};r.options.persister?r.fetchFn=()=>{var M,R;return(R=(M=r.options).persister)==null?void 0:R.call(M,p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=p}}}function Up(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 fx(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 Qi,Nn,St,va,wn,Rl,gy,dx=(gy=class extends Oy{constructor(r){super();se(this,wn);se(this,Qi);se(this,Nn);se(this,St);se(this,va);ee(this,Qi,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,m,y,p,x,S,N,O,Y,M,R,L,H,j,Q,B,k,K,W,P;const i=()=>{ye(this,wn,Rl).call(this,{type:"continue"})},s={client:C(this,Qi),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:(F,oe)=>{ye(this,wn,Rl).call(this,{type:"failed",failureCount:F,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((m=(d=C(this,St).config).onMutate)==null?void 0:m.call(d,r,this,s));const oe=await((p=(y=this.options).onMutate)==null?void 0:p.call(y,r,s));oe!==this.state.context&&ye(this,wn,Rl).call(this,{type:"pending",context:oe,variables:r,isPaused:f})}const F=await C(this,va).start();return await((S=(x=C(this,St).config).onSuccess)==null?void 0:S.call(x,F,r,this.state.context,this,s)),await((O=(N=this.options).onSuccess)==null?void 0:O.call(N,F,r,this.state.context,s)),await((M=(Y=C(this,St).config).onSettled)==null?void 0:M.call(Y,F,null,this.state.variables,this.state.context,this,s)),await((L=(R=this.options).onSettled)==null?void 0:L.call(R,F,null,r,this.state.context,s)),ye(this,wn,Rl).call(this,{type:"success",data:F}),F}catch(F){try{throw await((j=(H=C(this,St).config).onError)==null?void 0:j.call(H,F,r,this.state.context,this,s)),await((B=(Q=this.options).onError)==null?void 0:B.call(Q,F,r,this.state.context,s)),await((K=(k=C(this,St).config).onSettled)==null?void 0:K.call(k,void 0,F,this.state.variables,this.state.context,this,s)),await((P=(W=this.options).onSettled)==null?void 0:P.call(W,void 0,F,r,this.state.context,s)),F}finally{ye(this,wn,Rl).call(this,{type:"error",error:F})}}finally{C(this,St).runNext(this)}}},Qi=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})})},gy);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 Fn,mn,Gi,py,hx=(py=class extends Sr{constructor(r={}){super();se(this,Fn);se(this,mn);se(this,Gi);this.config=r,ee(this,Fn,new Set),ee(this,mn,new Map),ee(this,Gi,0)}build(r,i,s){const c=new dx({client:r,mutationCache:this,mutationId:++du(this,Gi)._,options:r.defaultMutationOptions(i),state:s});return this.add(c),c}add(r){C(this,Fn).add(r);const i=hu(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,Fn).delete(r)){const i=hu(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=hu(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=hu(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,Fn).forEach(r=>{this.notify({type:"removed",mutation:r})}),C(this,Fn).clear(),C(this,mn).clear()})}getAll(){return Array.from(C(this,Fn))}find(r){const i={exact:!0,...r};return this.getAll().find(s=>Ap(i,s))}findAll(r={}){return this.getAll().filter(i=>Ap(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))))}},Fn=new WeakMap,mn=new WeakMap,Gi=new WeakMap,py);function hu(l){var r;return(r=l.options.scope)==null?void 0:r.id}var $n,Ll,Ut,Wn,In,bu,_f,yy,mx=(yy=class extends Sr{constructor(i,s){super();se(this,In);se(this,$n);se(this,Ll);se(this,Ut);se(this,Wn);ee(this,$n,i),this.setOptions(s),this.bindMethods(),ye(this,In,bu).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,$n).defaultMutationOptions(i),Nu(this.options,s)||C(this,$n).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Ut),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&xa(s.mutationKey)!==xa(this.options.mutationKey)?this.reset():((c=C(this,Ut))==null?void 0:c.state.status)==="pending"&&C(this,Ut).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=C(this,Ut))==null||i.removeObserver(this)}onMutationUpdate(i){ye(this,In,bu).call(this),ye(this,In,_f).call(this,i)}getCurrentResult(){return C(this,Ll)}reset(){var i;(i=C(this,Ut))==null||i.removeObserver(this),ee(this,Ut,void 0),ye(this,In,bu).call(this),ye(this,In,_f).call(this)}mutate(i,s){var c;return ee(this,Wn,s),(c=C(this,Ut))==null||c.removeObserver(this),ee(this,Ut,C(this,$n).getMutationCache().build(C(this,$n),this.options)),C(this,Ut).addObserver(this),C(this,Ut).execute(i)}},$n=new WeakMap,Ll=new WeakMap,Ut=new WeakMap,Wn=new WeakMap,In=new WeakSet,bu=function(){var s;const i=((s=C(this,Ut))==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,m,y,p,x;if(C(this,Wn)&&this.hasListeners()){const S=C(this,Ll).variables,N=C(this,Ll).context,O={client:C(this,$n),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,O),(d=(f=C(this,Wn)).onSettled)==null||d.call(f,i.data,null,S,N,O)):(i==null?void 0:i.type)==="error"&&((y=(m=C(this,Wn)).onError)==null||y.call(m,i.error,S,N,O),(x=(p=C(this,Wn)).onSettled)==null||x.call(p,void 0,i.error,S,N,O))}this.listeners.forEach(S=>{S(C(this,Ll))})})},yy),En,vy,gx=(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??Vf(c,i);let d=this.get(f);return d||(d=new sx({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=>Cp(i,s))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(s=>Cp(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,jl,ql,pr,yr,Hl,vr,br,by,px=(by=class{constructor(l={}){se(this,Je);se(this,jl);se(this,ql);se(this,pr);se(this,yr);se(this,Hl);se(this,vr);se(this,br);ee(this,Je,l.queryCache||new gx),ee(this,jl,l.mutationCache||new hx),ee(this,ql,l.defaultOptions||{}),ee(this,pr,new Map),ee(this,yr,new Map),ee(this,Hl,0)}mount(){du(this,Hl)._++,C(this,Hl)===1&&(ee(this,vr,Kf.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Je).onFocus())})),ee(this,br,wu.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Je).onOnline())})))}unmount(){var l,r;du(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,jl).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=W1(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=_p(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(Nt).catch(Nt)}ensureInfiniteQueryData(l){return l.behavior=_p(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return wu.isOnline()?C(this,jl).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Je)}getMutationCache(){return C(this,jl)}getDefaultOptions(){return C(this,ql)}setDefaultOptions(l){ee(this,ql,l)}setQueryDefaults(l,r){C(this,pr).set(xa(l),{queryKey:l,defaultOptions:r})}getQueryDefaults(l){const r=[...C(this,pr).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,ql).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return r.queryHash||(r.queryHash=Vf(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===Xf&&(r.enabled=!1),r}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...C(this,ql).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){C(this,Je).clear(),C(this,jl).clear()}},Je=new WeakMap,jl=new WeakMap,ql=new WeakMap,pr=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},yx=({client:l,children:r})=>(v.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),g(_y.Provider,{value:l,children:r})),Uy=v.createContext(!1),vx=()=>v.useContext(Uy);Uy.Provider;function bx(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var xx=v.createContext(bx()),Sx=()=>v.useContext(xx),Nx=(l,r)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(r.isReset()||(l.retryOnMount=!1))},wx=l=>{v.useEffect(()=>{l.clearReset()},[l])},Ex=({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])),Tx=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))}},Cx=(l,r)=>l.isLoading&&l.isFetching&&!r,Ax=(l,r)=>(l==null?void 0:l.suspense)&&r.isPending,Lp=(l,r,i)=>r.fetchOptimistic(l).catch(()=>{i.clearReset()});function Rx(l,r,i){var S,N,O,Y,M;const s=vx(),c=Sx(),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",Tx(d),Nx(d,c),wx(c);const m=!f.getQueryCache().get(d.queryHash),[y]=v.useState(()=>new r(f,d)),p=y.getOptimisticResult(d),x=!s&&l.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(R=>{const L=x?y.subscribe(lt.batchCalls(R)):Nt;return y.updateResult(),L},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),v.useEffect(()=>{y.setOptions(d)},[d,y]),Ax(d,p))throw Lp(d,y,c);if(Ex({result:p,errorResetBoundary:c,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw p.error;if((Y=(O=f.getDefaultOptions().queries)==null?void 0:O._experimental_afterQuery)==null||Y.call(O,d,p),d.experimental_prefetchInRender&&!ba&&Cx(p,s)){const R=m?Lp(d,y,c):(M=f.getQueryCache().get(d.queryHash))==null?void 0:M.promise;R==null||R.catch(Nt).finally(()=>{y.updateResult()})}return d.notifyOnChangeProps?p:y.trackResult(p)}function Ql(l,r){return Rx(l,ux)}function Ru(l,r){const i=Nr(),[s]=v.useState(()=>new mx(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,m)=>{s.mutate(d,m).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 jp="popstate";function Ox(l={}){function r(s,c){let{pathname:f,search:d,hash:m}=s.location;return Uf("",{pathname:f,search:d,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function i(s,c){return typeof c=="string"?c:_i(c)}return zx(r,i,null,l)}function Xe(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function gn(l,r){if(!l){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Mx(){return Math.random().toString(36).substring(2,10)}function qp(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||Mx()}}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 zx(l,r,i,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,m="POP",y=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function S(){m="POP";let R=x(),L=R==null?null:R-p;p=R,y&&y({action:m,location:M.location,delta:L})}function N(R,L){m="PUSH";let H=Uf(M.location,R,L);p=x()+1;let j=qp(H,p),Q=M.createHref(H);try{d.pushState(j,"",Q)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;c.location.assign(Q)}f&&y&&y({action:m,location:M.location,delta:1})}function O(R,L){m="REPLACE";let H=Uf(M.location,R,L);p=x();let j=qp(H,p),Q=M.createHref(H);d.replaceState(j,"",Q),f&&y&&y({action:m,location:M.location,delta:0})}function Y(R){return Dx(R)}let M={get action(){return m},get location(){return l(c,d)},listen(R){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(jp,S),y=R,()=>{c.removeEventListener(jp,S),y=null}},createHref(R){return r(c,R)},createURL:Y,encodeLocation(R){let L=Y(R);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:N,replace:O,go(R){return d.go(R)}};return M}function Dx(l,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(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 _x(l,r,i,!1)}function _x(l,r,i,s){let c=typeof r=="string"?wr(r):r,f=el(c.pathname||"/",i);if(f==null)return null;let d=jy(l);Ux(d);let m=null;for(let y=0;m==null&&y<d.length;++y){let p=Xx(f);m=Yx(d[y],p,s)}return m}function jy(l,r=[],i=[],s="",c=!1){let f=(d,m,y=c,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&y)return;Xe(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=Pn([s,x.relativePath]),N=i.concat(x);d.children&&d.children.length>0&&(Xe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),jy(d.children,r,N,S,y)),!(d.path==null&&!d.index)&&r.push({path:S,score:Qx(S,d.index),routesMeta:N})};return l.forEach((d,m)=>{var y;if(d.path===""||!((y=d.path)!=null&&y.includes("?")))f(d,m);else for(let p of qy(d.path))f(d,m,!0,p)}),r}function qy(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=qy(s.join("/")),m=[];return m.push(...d.map(y=>y===""?f:[f,y].join("/"))),c&&m.push(...d),m.map(y=>l.startsWith("/")&&y===""?"/":y)}function Ux(l){l.sort((r,i)=>r.score!==i.score?i.score-r.score:Gx(r.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var Lx=/^:[\w-]+$/,jx=3,qx=2,Hx=1,Bx=10,kx=-2,Hp=l=>l==="*";function Qx(l,r){let i=l.split("/"),s=i.length;return i.some(Hp)&&(s+=kx),r&&(s+=qx),i.filter(c=>!Hp(c)).reduce((c,f)=>c+(Lx.test(f)?jx:f===""?Hx:Bx),s)}function Gx(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 Yx(l,r,i=!1){let{routesMeta:s}=l,c={},f="/",d=[];for(let m=0;m<s.length;++m){let y=s[m],p=m===s.length-1,x=f==="/"?r:r.slice(f.length)||"/",S=Eu({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),N=y.route;if(!S&&p&&i&&!s[s.length-1].route.index&&(S=Eu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!S)return null;Object.assign(c,S.params),d.push({params:c,pathname:Pn([f,S.pathname]),pathnameBase:Fx(Pn([f,S.pathnameBase])),route:N}),S.pathnameBase!=="/"&&(f=Pn([f,S.pathnameBase]))}return d}function Eu(l,r){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,s]=Vx(l.path,l.caseSensitive,l.end),c=r.match(i);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:s.reduce((p,{paramName:x,isOptional:S},N)=>{if(x==="*"){let Y=m[N]||"";d=f.slice(0,f.length-Y.length).replace(/(.)\/+$/,"$1")}const O=m[N];return S&&!O?p[x]=void 0:p[x]=(O||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:l}}function Vx(l,r=!1,i=!0){gn(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,m,y)=>(s.push({paramName:m,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 Xx(l){try{return l.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return gn(!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 Kx(l,r="/"){let{pathname:i,search:s="",hash:c=""}=typeof l=="string"?wr(l):l;return{pathname:i?i.startsWith("/")?i:Zx(i,r):r,search:$x(s),hash:Wx(c)}}function Zx(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 Jx(l){return l.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Jf(l){let r=Jx(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},Xe(!c.pathname||!c.pathname.includes("?"),df("?","pathname","search",c)),Xe(!c.pathname||!c.pathname.includes("#"),df("#","pathname","hash",c)),Xe(!c.search||!c.search.includes("#"),df("#","search","hash",c)));let f=l===""||c.pathname==="",d=f?"/":c.pathname,m;if(d==null)m=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("/")}m=S>=0?r[S]:"/"}let y=Kx(c,m),p=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&i.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Pn=l=>l.join("/").replace(/\/\/+/g,"/"),Fx=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),$x=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Wx=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function Px(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 Ix=["GET",...Hy];new Set(Ix);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 eS=v.createContext(new Map);eS.displayName="Fetchers";var tS=v.createContext(null);tS.displayName="Await";var pn=v.createContext(null);pn.displayName="Navigation";var Yi=v.createContext(null);Yi.displayName="Location";var un=v.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var $f=v.createContext(null);$f.displayName="RouteError";function nS(l,{relative:r}={}){Xe(Tr(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=v.useContext(pn),{hash:c,pathname:f,search:d}=Xi(l,{relative:r}),m=f;return i!=="/"&&(m=f==="/"?i:Pn([i,f])),s.createHref({pathname:m,search:d,hash:c})}function Tr(){return v.useContext(Yi)!=null}function Gl(){return Xe(Tr(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Yi).location}var ky="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qy(l){v.useContext(pn).static||v.useLayoutEffect(l)}function Vi(){let{isDataRoute:l}=v.useContext(un);return l?yS():lS()}function lS(){Xe(Tr(),"useNavigate() may be used only in the context of a <Router> component.");let l=v.useContext(Er),{basename:r,navigator:i}=v.useContext(pn),{matches:s}=v.useContext(un),{pathname:c}=Gl(),f=JSON.stringify(Jf(s)),d=v.useRef(!1);return Qy(()=>{d.current=!0}),v.useCallback((y,p={})=>{if(gn(d.current,ky),!d.current)return;if(typeof y=="number"){i.go(y);return}let x=Ff(y,JSON.parse(f),c,p.relative==="path");l==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Pn([r,x.pathname])),(p.replace?i.replace:i.push)(x,p.state,p)},[r,i,f,c,l])}var aS=v.createContext(null);function rS(l){let r=v.useContext(un).outlet;return v.useMemo(()=>r&&v.createElement(aS.Provider,{value:l},r),[r,l])}function Wf(){let{matches:l}=v.useContext(un),r=l[l.length-1];return r?r.params:{}}function Xi(l,{relative:r}={}){let{matches:i}=v.useContext(un),{pathname:s}=Gl(),c=JSON.stringify(Jf(i));return v.useMemo(()=>Ff(l,JSON.parse(c),s,r==="path"),[l,c,s,r])}function iS(l,r){return Gy(l,r)}function Gy(l,r,i,s,c){var H;Xe(Tr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=v.useContext(pn),{matches:d}=v.useContext(un),m=d[d.length-1],y=m?m.params:{},p=m?m.pathname:"/",x=m?m.pathnameBase:"/",S=m&&m.route;{let j=S&&S.path||"";Yy(p,!S||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let N=Gl(),O;if(r){let j=typeof r=="string"?wr(r):r;Xe(x==="/"||((H=j.pathname)==null?void 0:H.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 "${j.pathname}" was given in the \`location\` prop.`),O=j}else O=N;let Y=O.pathname||"/",M=Y;if(x!=="/"){let j=x.replace(/^\//,"").split("/");M="/"+Y.replace(/^\//,"").split("/").slice(j.length).join("/")}let R=Ly(l,{pathname:M});gn(S||R!=null,`No routes matched location "${O.pathname}${O.search}${O.hash}" `),gn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${O.pathname}${O.search}${O.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 L=fS(R&&R.map(j=>Object.assign({},j,{params:Object.assign({},y,j.params),pathname:Pn([x,f.encodeLocation?f.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?x:Pn([x,f.encodeLocation?f.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),d,i,s,c);return r&&L?v.createElement(Yi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...O},navigationType:"POP"}},L):L}function sS(){let l=pS(),r=Px(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 uS=v.createElement(sS,null),oS=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($f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function cS({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 fS(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 p=f.findIndex(x=>x.route.id&&(d==null?void 0:d[x.route.id])!==void 0);Xe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,p+1))}let m=!1,y=-1;if(i)for(let p=0;p<f.length;p++){let x=f[p];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(y=p),x.route.id){let{loaderData:S,errors:N}=i,O=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!N||N[x.route.id]===void 0);if(x.route.lazy||O){m=!0,y>=0?f=f.slice(0,y+1):f=[f[0]];break}}}return f.reduceRight((p,x,S)=>{let N,O=!1,Y=null,M=null;i&&(N=d&&x.route.id?d[x.route.id]:void 0,Y=x.route.errorElement||uS,m&&(y<0&&S===0?(Yy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,M=null):y===S&&(O=!0,M=x.route.hydrateFallbackElement||null)));let R=r.concat(f.slice(0,S+1)),L=()=>{let H;return N?H=Y:O?H=M:x.route.Component?H=v.createElement(x.route.Component,null):x.route.element?H=x.route.element:H=p,v.createElement(cS,{match:x,routeContext:{outlet:p,matches:R,isDataRoute:i!=null},children:H})};return i&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?v.createElement(oS,{location:i.location,revalidation:i.revalidation,component:Y,error:N,children:L(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:s}):L()},null)}function Pf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dS(l){let r=v.useContext(Er);return Xe(r,Pf(l)),r}function hS(l){let r=v.useContext(Ou);return Xe(r,Pf(l)),r}function mS(l){let r=v.useContext(un);return Xe(r,Pf(l)),r}function If(l){let r=mS(l),i=r.matches[r.matches.length-1];return Xe(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function gS(){return If("useRouteId")}function pS(){var s;let l=v.useContext($f),r=hS("useRouteError"),i=If("useRouteError");return l!==void 0?l:(s=r.errors)==null?void 0:s[i]}function yS(){let{router:l}=dS("useNavigate"),r=If("useNavigate"),i=v.useRef(!1);return Qy(()=>{i.current=!0}),v.useCallback(async(c,f={})=>{gn(i.current,ky),i.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:r,...f}))},[l,r])}var Bp={};function Yy(l,r,i){!r&&!Bp[l]&&(Bp[l]=!0,gn(!1,i))}v.memo(vS);function vS({routes:l,future:r,state:i,unstable_onError:s}){return Gy(l,void 0,i,s,r)}function bS({to:l,replace:r,state:i,relative:s}){Xe(Tr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(pn);gn(!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(),m=Vi(),y=Ff(l,Jf(f),d,s==="path"),p=JSON.stringify(y);return v.useEffect(()=>{m(JSON.parse(p),{replace:r,state:i,relative:s})},[m,p,s,r,i]),null}function Vy(l){return rS(l.context)}function Sn(l){Xe(!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 xS({basename:l="/",children:r=null,location:i,navigationType:s="POP",navigator:c,static:f=!1}){Xe(!Tr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:d,navigator:c,static:f,future:{}}),[d,c,f]);typeof i=="string"&&(i=wr(i));let{pathname:y="/",search:p="",hash:x="",state:S=null,key:N="default"}=i,O=v.useMemo(()=>{let Y=el(y,d);return Y==null?null:{location:{pathname:Y,search:p,hash:x,state:S,key:N},navigationType:s}},[d,y,p,x,S,N,s]);return gn(O!=null,`<Router basename="${d}"> is not able to match the URL "${y}${p}${x}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:v.createElement(pn.Provider,{value:m},v.createElement(Yi.Provider,{children:r,value:O}))}function SS({children:l,location:r}){return iS(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}Xe(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>`),Xe(!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 xu="get",Su="application/x-www-form-urlencoded";function Mu(l){return l!=null&&typeof l.tagName=="string"}function NS(l){return Mu(l)&&l.tagName.toLowerCase()==="button"}function wS(l){return Mu(l)&&l.tagName.toLowerCase()==="form"}function ES(l){return Mu(l)&&l.tagName.toLowerCase()==="input"}function TS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function CS(l,r){return l.button===0&&(!r||r==="_self")&&!TS(l)}var mu=null;function AS(){if(mu===null)try{new FormData(document.createElement("form"),0),mu=!1}catch{mu=!0}return mu}var RS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hf(l){return l!=null&&!RS.has(l)?(gn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Su}"`),null):l}function OS(l,r){let i,s,c,f,d;if(wS(l)){let m=l.getAttribute("action");s=m?el(m,r):null,i=l.getAttribute("method")||xu,c=hf(l.getAttribute("enctype"))||Su,f=new FormData(l)}else if(NS(l)||ES(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=l.getAttribute("formaction")||m.getAttribute("action");if(s=y?el(y,r):null,i=l.getAttribute("formmethod")||m.getAttribute("method")||xu,c=hf(l.getAttribute("formenctype"))||hf(m.getAttribute("enctype"))||Su,f=new FormData(m,l),!AS()){let{name:p,type:x,value:S}=l;if(x==="image"){let N=p?`${p}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else p&&f.append(p,S)}}else{if(Mu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=xu,s=null,c=Su,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 ed(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function MS(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 zS(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 DS(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 _S(l,r,i){let s=await Promise.all(l.map(async c=>{let f=r.routes[c.route.id];if(f){let d=await zS(f,i);return d.links?d.links():[]}return[]}));return qS(s.flat(1).filter(DS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function kp(l,r,i,s,c,f){let d=(y,p)=>i[p]?y.route.id!==i[p].route.id:!0,m=(y,p)=>{var x;return i[p].pathname!==y.pathname||((x=i[p].route.path)==null?void 0:x.endsWith("*"))&&i[p].params["*"]!==y.params["*"]};return f==="assets"?r.filter((y,p)=>d(y,p)||m(y,p)):f==="data"?r.filter((y,p)=>{var S;let x=s.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(d(y,p)||m(y,p))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 US(l,r,{includeHydrateFallback:i}={}){return LS(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 LS(l){return[...new Set(l)]}function jS(l){let r={},i=Object.keys(l).sort();for(let s of i)r[s]=l[s];return r}function qS(l,r){let i=new Set;return new Set(r),l.reduce((s,c)=>{let f=JSON.stringify(jS(c));return i.has(f)||(i.add(f),s.push({key:f,link:c})),s},[])}function Xy(){let l=v.useContext(Er);return ed(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function HS(){let l=v.useContext(Ou);return ed(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var td=v.createContext(void 0);td.displayName="FrameworkContext";function Ky(){let l=v.useContext(td);return ed(l,"You must render this element inside a <HydratedRouter> element"),l}function BS(l,r){let i=v.useContext(td),[s,c]=v.useState(!1),[f,d]=v.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:x,onTouchStart:S}=r,N=v.useRef(null);v.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let M=L=>{L.forEach(H=>{d(H.isIntersecting)})},R=new IntersectionObserver(M,{threshold:.5});return N.current&&R.observe(N.current),()=>{R.disconnect()}}},[l]),v.useEffect(()=>{if(s){let M=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(M)}}},[s]);let O=()=>{c(!0)},Y=()=>{c(!1),d(!1)};return i?l!=="intent"?[f,N,{}]:[f,N,{onFocus:Ei(m,O),onBlur:Ei(y,Y),onMouseEnter:Ei(p,O),onMouseLeave:Ei(x,Y),onTouchStart:Ei(S,O)}]:[!1,N,{}]}function Ei(l,r){return i=>{l&&l(i),i.defaultPrevented||r(i)}}function kS({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(GS,{page:l,matches:s,...r}):null}function QS(l){let{manifest:r,routeModules:i}=Ky(),[s,c]=v.useState([]);return v.useEffect(()=>{let f=!1;return _S(l,r,i).then(d=>{f||c(d)}),()=>{f=!0}},[l,r,i]),s}function GS({page:l,matches:r,...i}){let s=Gl(),{manifest:c,routeModules:f}=Ky(),{basename:d}=Xy(),{loaderData:m,matches:y}=HS(),p=v.useMemo(()=>kp(l,r,y,c,s,"data"),[l,r,y,c,s]),x=v.useMemo(()=>kp(l,r,y,c,s,"assets"),[l,r,y,c,s]),S=v.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let Y=new Set,M=!1;if(r.forEach(L=>{var j;let H=c.routes[L.route.id];!H||!H.hasLoader||(!p.some(Q=>Q.route.id===L.route.id)&&L.route.id in m&&((j=f[L.route.id])!=null&&j.shouldRevalidate)||H.hasClientLoader?M=!0:Y.add(L.route.id))}),Y.size===0)return[];let R=MS(l,d,"data");return M&&Y.size>0&&R.searchParams.set("_routes",r.filter(L=>Y.has(L.route.id)).map(L=>L.route.id).join(",")),[R.pathname+R.search]},[d,m,s,c,p,r,l,f]),N=v.useMemo(()=>US(x,c),[x,c]),O=QS(x);return v.createElement(v.Fragment,null,S.map(Y=>v.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...i})),N.map(Y=>v.createElement("link",{key:Y,rel:"modulepreload",href:Y,...i})),O.map(({key:Y,link:M})=>v.createElement("link",{key:Y,nonce:i.nonce,...M})))}function YS(...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 VS({basename:l,children:r,window:i}){let s=v.useRef();s.current==null&&(s.current=Ox({window:i,v5Compat:!0}));let c=s.current,[f,d]=v.useState({action:c.action,location:c.location}),m=v.useCallback(y=>{v.startTransition(()=>d(y))},[d]);return v.useLayoutEffect(()=>c.listen(m),[c,m]),v.createElement(xS,{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:m,target:y,to:p,preventScrollReset:x,viewTransition:S,...N},O){let{basename:Y}=v.useContext(pn),M=typeof p=="string"&&Jy.test(p),R,L=!1;if(typeof p=="string"&&M&&(R=p,Zy))try{let P=new URL(window.location.href),F=p.startsWith("//")?new URL(P.protocol+p):new URL(p),oe=el(F.pathname,Y);F.origin===P.origin&&oe!=null?p=oe+F.search+F.hash:L=!0}catch{gn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let H=nS(p,{relative:c}),[j,Q,B]=BS(s,N),k=ZS(p,{replace:d,state:m,target:y,preventScrollReset:x,relative:c,viewTransition:S});function K(P){r&&r(P),P.defaultPrevented||k(P)}let W=v.createElement("a",{...N,...B,href:R||H,onClick:L||f?r:K,ref:YS(O,Q),target:y,"data-discover":!M&&i==="render"?"true":void 0});return j&&!M?v.createElement(v.Fragment,null,W,v.createElement(kS,{page:H})):W});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:m,children:y,...p},x){let S=Xi(d,{relative:p.relative}),N=Gl(),O=v.useContext(Ou),{navigator:Y,basename:M}=v.useContext(pn),R=O!=null&&PS(S)&&m===!0,L=Y.encodeLocation?Y.encodeLocation(S).pathname:S.pathname,H=N.pathname,j=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;i||(H=H.toLowerCase(),j=j?j.toLowerCase():null,L=L.toLowerCase()),j&&M&&(j=el(j,M)||j);const Q=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let B=H===L||!c&&H.startsWith(L)&&H.charAt(Q)==="/",k=j!=null&&(j===L||!c&&j.startsWith(L)&&j.charAt(L.length)==="/"),K={isActive:B,isPending:k,isTransitioning:R},W=B?r:void 0,P;typeof s=="function"?P=s(K):P=[s,B?"active":null,k?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let F=typeof f=="function"?f(K):f;return v.createElement(zu,{...p,"aria-current":W,className:P,ref:x,style:F,to:d,viewTransition:m},typeof y=="function"?y(K):y)});ua.displayName="NavLink";var XS=v.forwardRef(({discover:l="render",fetcherKey:r,navigate:i,reloadDocument:s,replace:c,state:f,method:d=xu,action:m,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:S,...N},O)=>{let Y=$S(),M=WS(m,{relative:p}),R=d.toLowerCase()==="get"?"get":"post",L=typeof m=="string"&&Jy.test(m),H=j=>{if(y&&y(j),j.defaultPrevented)return;j.preventDefault();let Q=j.nativeEvent.submitter,B=(Q==null?void 0:Q.getAttribute("formmethod"))||d;Y(Q||j.currentTarget,{fetcherKey:r,method:B,navigate:i,replace:c,state:f,relative:p,preventScrollReset:x,viewTransition:S})};return v.createElement("form",{ref:O,method:R,action:M,onSubmit:s?y:H,...N,"data-discover":!L&&l==="render"?"true":void 0})});XS.displayName="Form";function KS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fy(l){let r=v.useContext(Er);return Xe(r,KS(l)),r}function ZS(l,{target:r,replace:i,state:s,preventScrollReset:c,relative:f,viewTransition:d}={}){let m=Vi(),y=Gl(),p=Xi(l,{relative:f});return v.useCallback(x=>{if(CS(x,r)){x.preventDefault();let S=i!==void 0?i:_i(y)===_i(p);m(l,{replace:S,state:s,preventScrollReset:c,relative:f,viewTransition:d})}},[y,m,p,i,s,r,l,c,f,d])}var JS=0,FS=()=>`__${String(++JS)}__`;function $S(){let{router:l}=Fy("useSubmit"),{basename:r}=v.useContext(pn),i=gS();return v.useCallback(async(s,c={})=>{let{action:f,method:d,encType:m,formData:y,body:p}=OS(s,r);if(c.navigate===!1){let x=c.fetcherKey||FS();await l.fetch(x,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:p,formMethod:c.method||d,formEncType:c.encType||m,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:p,formMethod:c.method||d,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,r,i])}function WS(l,{relative:r}={}){let{basename:i}=v.useContext(pn),s=v.useContext(un);Xe(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Xi(l||".",{relative:r})},d=Gl();if(l==null){f.search=d.search;let m=new URLSearchParams(f.search),y=m.getAll("index");if(y.some(x=>x==="")){m.delete("index"),y.filter(S=>S).forEach(S=>m.append("index",S));let x=m.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:Pn([i,f.pathname])),_i(f)}function PS(l,{relative:r}={}){let i=v.useContext(By);Xe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fy("useViewTransitionState"),c=Xi(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 Eu(c.pathname,d)!=null||Eu(c.pathname,f)!=null}var IS=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 e2=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$y=(...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 t2={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 n2=v.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...m},y)=>v.createElement("svg",{ref:y,...t2,width:r,height:r,stroke:l,strokeWidth:s?Number(i)*24/Number(r):i,className:$y("lucide",c),...m},[...d.map(([p,x])=>v.createElement(p,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 Be=(l,r)=>{const i=v.forwardRef(({className:s,...c},f)=>v.createElement(n2,{ref:f,iconNode:r,className:$y(`lucide-${e2(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 l2=Be("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 a2=Be("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 r2=Be("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/**
|
|
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 i2=Be("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 s2=Be("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=Be("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 Py=Be("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 Ui=Be("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 Qp=Be("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=Be("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 Iy=Be("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 nd=Be("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 u2=Be("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=Be("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 o2=Be("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 Gp=Be("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 c2=Be("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 f2=Be("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
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 d2=Be("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 Yp=Be("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 h2=Be("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 Vp=Be("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 tv=Be("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"}]]);/**
|
|
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 m2=Be("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
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 g2=Be("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=Be("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 p2{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 p2),mf}function y2(){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 ld(){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 v2(l){return Ql({queryKey:["trace",l],queryFn:async()=>l?await yt().call("traces/get",{traceId:l}):null,enabled:!!l})}function b2(){const l=Nr();return Ru({mutationFn:async()=>await yt().call("traces/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]}),l.invalidateQueries({queryKey:["trace"]})}})}function x2(){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 S2(l){const[r,i]=v.useState([]);v.useEffect(()=>{const c=yt(),f=d=>{i(m=>[d,...m].slice(0,(l==null?void 0:l.limit)||100))};return c.on("log.entry",f),()=>{var m;const d=(m=c.eventHandlers)==null?void 0:m.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 N2(){const l=Nr();return Ru({mutationFn:async()=>await yt().call("logs/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["logs"]})}})}function w2(){return Ql({queryKey:["routes"],queryFn:async()=>await yt().call("routes/list")})}function E2(){return Ql({queryKey:["services"],queryFn:async()=>await yt().call("services/list")})}function T2(){return Ql({queryKey:["events"],queryFn:async()=>await yt().call("events/list"),refetchInterval:5e3})}function C2(){return Ql({queryKey:["crons"],queryFn:async()=>await yt().call("cron/list"),refetchInterval:5e3})}function av(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=av(l[r]))&&(s&&(s+=" "),s+=i)}else for(i in l)l[i]&&(s&&(s+=" "),s+=i);return s}function rv(){for(var l,r,i=0,s="",c=arguments.length;i<c;i++)(l=arguments[i])&&(r=av(l))&&(s&&(s+=" "),s+=r);return s}const Xp=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Kp=rv,ad=(l,r)=>i=>{var s;if((r==null?void 0:r.variants)==null)return Kp(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(p=>{const x=i==null?void 0:i[p],S=f==null?void 0:f[p];if(x===null)return null;const N=Xp(x)||Xp(S);return c[p][N]}),m=i&&Object.entries(i).reduce((p,x)=>{let[S,N]=x;return N===void 0||(p[S]=N),p},{}),y=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((p,x)=>{let{class:S,className:N,...O}=x;return Object.entries(O).every(Y=>{let[M,R]=Y;return Array.isArray(R)?R.includes({...f,...m}[M]):{...f,...m}[M]===R})?[...p,S,N]:p},[]);return Kp(l,d,y,i==null?void 0:i.class,i==null?void 0:i.className)},rd="-",A2=l=>{const r=O2(l),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=l;return{getClassGroupId:d=>{const m=d.split(rd);return m[0]===""&&m.length!==1&&m.shift(),iv(m,r)||R2(d)},getConflictingClassGroupIds:(d,m)=>{const y=i[d]||[];return m&&s[d]?[...y,...s[d]]:y}}},iv=(l,r)=>{var d;if(l.length===0)return r.classGroupId;const i=l[0],s=r.nextPart.get(i),c=s?iv(l.slice(1),s):void 0;if(c)return c;if(r.validators.length===0)return;const f=l.join(rd);return(d=r.validators.find(({validator:m})=>m(f)))==null?void 0:d.classGroupId},Zp=/^\[(.+)\]$/,R2=l=>{if(Zp.test(l)){const r=Zp.exec(l)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},O2=l=>{const{theme:r,prefix:i}=l,s={nextPart:new Map,validators:[]};return z2(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:Jp(r,c);f.classGroupId=i;return}if(typeof c=="function"){if(M2(c)){jf(c(s),r,i,s);return}r.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,d])=>{jf(d,Jp(r,f),i,s)})})},Jp=(l,r)=>{let i=l;return r.split(rd).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},M2=l=>l.isThemeGetter,z2=(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,m])=>[r+d,m])):f);return[i,c]}):l,D2=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)}}},sv="!",_2=l=>{const{separator:r,experimentalParseClassName:i}=l,s=r.length===1,c=r[0],f=r.length,d=m=>{const y=[];let p=0,x=0,S;for(let R=0;R<m.length;R++){let L=m[R];if(p===0){if(L===c&&(s||m.slice(R,R+f)===r)){y.push(m.slice(x,R)),x=R+f;continue}if(L==="/"){S=R;continue}}L==="["?p++:L==="]"&&p--}const N=y.length===0?m:m.substring(x),O=N.startsWith(sv),Y=O?N.substring(1):N,M=S&&S>x?S-x:void 0;return{modifiers:y,hasImportantModifier:O,baseClassName:Y,maybePostfixModifierPosition:M}};return i?m=>i({className:m,parseClassName:d}):d},U2=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},L2=l=>({cache:D2(l.cacheSize),parseClassName:_2(l),...A2(l)}),j2=/\s+/,q2=(l,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:c}=r,f=[],d=l.trim().split(j2);let m="";for(let y=d.length-1;y>=0;y-=1){const p=d[y],{modifiers:x,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:O}=i(p);let Y=!!O,M=s(Y?N.substring(0,O):N);if(!M){if(!Y){m=p+(m.length>0?" "+m:m);continue}if(M=s(N),!M){m=p+(m.length>0?" "+m:m);continue}Y=!1}const R=U2(x).join(":"),L=S?R+sv:R,H=L+M;if(f.includes(H))continue;f.push(H);const j=c(M,Y);for(let Q=0;Q<j.length;++Q){const B=j[Q];f.push(L+B)}m=p+(m.length>0?" "+m:m)}return m};function H2(){let l=0,r,i,s="";for(;l<arguments.length;)(r=arguments[l++])&&(i=uv(r))&&(s&&(s+=" "),s+=i);return s}const uv=l=>{if(typeof l=="string")return l;let r,i="";for(let s=0;s<l.length;s++)l[s]&&(r=uv(l[s]))&&(i&&(i+=" "),i+=r);return i};function B2(l,...r){let i,s,c,f=d;function d(y){const p=r.reduce((x,S)=>S(x),l());return i=L2(p),s=i.cache.get,c=i.cache.set,f=m,m(y)}function m(y){const p=s(y);if(p)return p;const x=q2(y,i);return c(y,x),x}return function(){return f(H2.apply(null,arguments))}}const Ge=l=>{const r=i=>i[l]||[];return r.isThemeGetter=!0,r},ov=/^\[(?:([a-z-]+):)?(.+)\]$/i,k2=/^\d+\/\d+$/,Q2=new Set(["px","full","screen"]),G2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y2=/\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$/,V2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,X2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=l=>sr(l)||Q2.has(l)||k2.test(l),Cl=l=>Ar(l,"length",eN),sr=l=>!!l&&!Number.isNaN(Number(l)),gf=l=>Ar(l,"number",sr),Ti=l=>!!l&&Number.isInteger(Number(l)),Z2=l=>l.endsWith("%")&&sr(l.slice(0,-1)),ge=l=>ov.test(l),Al=l=>G2.test(l),J2=new Set(["length","size","percentage"]),F2=l=>Ar(l,J2,cv),$2=l=>Ar(l,"position",cv),W2=new Set(["image","url"]),P2=l=>Ar(l,W2,nN),I2=l=>Ar(l,"",tN),Ci=()=>!0,Ar=(l,r,i)=>{const s=ov.exec(l);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):i(s[2]):!1},eN=l=>Y2.test(l)&&!V2.test(l),cv=()=>!1,tN=l=>X2.test(l),nN=l=>K2.test(l),lN=()=>{const l=Ge("colors"),r=Ge("spacing"),i=Ge("blur"),s=Ge("brightness"),c=Ge("borderColor"),f=Ge("borderRadius"),d=Ge("borderSpacing"),m=Ge("borderWidth"),y=Ge("contrast"),p=Ge("grayscale"),x=Ge("hueRotate"),S=Ge("invert"),N=Ge("gap"),O=Ge("gradientColorStops"),Y=Ge("gradientColorStopPositions"),M=Ge("inset"),R=Ge("margin"),L=Ge("opacity"),H=Ge("padding"),j=Ge("saturate"),Q=Ge("scale"),B=Ge("sepia"),k=Ge("skew"),K=Ge("space"),W=Ge("translate"),P=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",ge,r],ie=()=>[ge,r],qe=()=>["",Kn,Cl],Ye=()=>["auto",sr,ge],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],$=()=>["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"],pe=()=>["","0",ge],Te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[sr,ge];return{cacheSize:500,separator:":",theme:{colors:[Ci],spacing:[Kn,Cl],blur:["none","",Al,ge],brightness:w(),borderColor:[l],borderRadius:["none","","full",Al,ge],borderSpacing:ie(),borderWidth:qe(),contrast:w(),grayscale:pe(),hueRotate:w(),invert:pe(),gap:ie(),gradientColorStops:[l],gradientColorStopPositions:[Z2,Cl],inset:oe(),margin:oe(),opacity:w(),padding:ie(),saturate:w(),scale:w(),sepia:pe(),skew:w(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],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(),ge]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ti,ge]}],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",ge]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",Ti,ge]}],"grid-cols":[{"grid-cols":[Ci]}],"col-start-end":[{col:["auto",{span:["full",Ti,ge]},ge]}],"col-start":[{"col-start":Ye()}],"col-end":[{"col-end":Ye()}],"grid-rows":[{"grid-rows":[Ci]}],"row-start-end":[{row:["auto",{span:[Ti,ge]},ge]}],"row-start":[{"row-start":Ye()}],"row-end":[{"row-end":Ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],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:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"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",ge,r]}],"min-w":[{"min-w":[ge,r,"min","max","fit"]}],"max-w":[{"max-w":[ge,r,"none","full","min","max","fit","prose",{screen:[Al]},Al]}],h:[{h:[ge,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,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",gf]}],"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",ge]}],"line-clamp":[{"line-clamp":["none",sr,gf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kn,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[l]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[L]}],"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,ge]}],"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",ge]}],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",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),$2]}],"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:[Y]}],"gradient-via-pos":[{via:[Y]}],"gradient-to-pos":[{to:[Y]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],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:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"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,ge]}],"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":[L]}],"ring-offset-w":[{"ring-offset":[Kn,Cl]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",Al,I2]}],"shadow-color":[{shadow:[Ci]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[s]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",Al,ge]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[S]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"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",ge]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Q]}],"scale-x":[{"scale-x":[Q]}],"scale-y":[{"scale-y":[Q]}],rotate:[{rotate:[Ti,ge]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"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",ge]}],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",ge]}],"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",ge]}],fill:[{fill:[l,"none"]}],"stroke-w":[{stroke:[Kn,Cl,gf]}],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"]}}},aN=B2(lN);function mt(...l){return aN(rv(l))}const rN=ad("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 Me({className:l,variant:r,...i}){return g("div",{className:mt(rN({variant:r}),l),...i})}const Et=v.forwardRef(({className:l,variant:r="default",size:i="default",...s},c)=>g("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}));Et.displayName="Button";function Fp(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function fv(...l){return r=>{let i=!1;const s=l.map(c=>{const f=Fp(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():Fp(l[c],null)}}}}function Tn(...l){return v.useCallback(fv(...l),l)}function qf(l){const r=iN(l),i=v.forwardRef((s,c)=>{const{children:f,...d}=s,m=v.Children.toArray(f),y=m.find(uN);if(y){const p=y.props.children,x=m.map(S=>S===y?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:S);return g(r,{...d,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return g(r,{...d,ref:c,children:f})});return i.displayName=`${l}.Slot`,i}function iN(l){const r=v.forwardRef((i,s)=>{const{children:c,...f}=i;if(v.isValidElement(c)){const d=cN(c),m=oN(f,c.props);return c.type!==v.Fragment&&(m.ref=s?fv(s,d):d),v.cloneElement(c,m)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var sN=Symbol("radix.slottable");function uN(l){return v.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===sN}function oN(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]=(...m)=>{const y=f(...m);return c(...m),y}:c&&(i[s]=c):s==="style"?i[s]={...c,...f}:s==="className"&&(i[s]=[c,f].filter(Boolean).join(" "))}return{...l,...i}}function cN(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 fN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Jt=fN.reduce((l,r)=>{const i=qf(`Primitive.${r}`),s=v.forwardRef((c,f)=>{const{asChild:d,...m}=c,y=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g(y,{...m,ref:f})});return s.displayName=`Primitive.${r}`,{...l,[r]:s}},{}),dN="Separator",$p="horizontal",hN=["horizontal","vertical"],dv=v.forwardRef((l,r)=>{const{decorative:i,orientation:s=$p,...c}=l,f=mN(s)?s:$p,m=i?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return g(Jt.div,{"data-orientation":f,...m,...c,ref:r})});dv.displayName=dN;function mN(l){return hN.includes(l)}var hv=dv;const _u=v.forwardRef(({className:l,orientation:r="horizontal",decorative:i=!0,...s},c)=>g(hv,{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=hv.displayName;function gN(){var s,c;const{data:l}=ld(),[r,i]=v.useState(()=>localStorage.getItem("vision.theme")||"light");return v.useEffect(()=>{const f=document.documentElement;r==="dark"?f.classList.add("dark"):f.classList.remove("dark"),localStorage.setItem("vision.theme",r)},[r]),E("div",{className:"h-screen flex flex-col bg-background text-foreground",children:[E("nav",{className:"bg-black dark:bg-black text-white px-6 py-3 flex items-center justify-between border-b border-border",children:[E("div",{className:"flex items-center gap-6",children:[E("div",{className:"flex items-center gap-3",children:[g("span",{className:"text-base font-semibold",children:(l==null?void 0:l.name)||"Vision Dashboard"}),g(Me,{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"})]}),g(_u,{orientation:"vertical",className:"h-6 bg-border"}),E("div",{className:"flex gap-1",children:[g(ua,{to:"/api-explorer",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"API Explorer"}),g(ua,{to:"/traces",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Traces"}),g(ua,{to:"/logs",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Logs"}),g(ua,{to:"/events",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Events"}),g(ua,{to:"/services",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Services"}),((c=(s=l==null?void 0:l.metadata)==null?void 0:s.drizzle)==null?void 0:c.detected)&&g(ua,{to:"/database",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Database"})]})]}),E(Et,{variant:"ghost",size:"sm",onClick:()=>i(r==="dark"?"light":"dark"),className:"text-gray-400 hover:text-white hover:bg-gray-800 dark:hover:bg-gray-800",children:[r==="dark"?g(h2,{className:"w-4 h-4"}):g(c2,{className:"w-4 h-4"}),g("span",{className:"ml-2 text-sm font-medium hidden sm:inline",children:r==="dark"?"Light":"Dark"})]})]}),g("main",{className:"flex-1 overflow-hidden",children:g(Vy,{})})]})}function pN(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Wp(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 Pp(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Wp(Object(i),!0).forEach(function(s){pN(l,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Wp(Object(i)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))})}return l}function yN(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 vN(l,r){if(l==null)return{};var i=yN(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 bN(l,r){return xN(l)||SN(l,r)||NN(l,r)||wN()}function xN(l){if(Array.isArray(l))return l}function SN(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](),m;!(s=(m=d.next()).done)&&(i.push(m.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 NN(l,r){if(l){if(typeof l=="string")return Ip(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 Ip(l,r)}}function Ip(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 wN(){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 EN(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){EN(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 TN(){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,m=new Array(d),y=0;y<d;y++)m[y]=arguments[y];return r.apply(i,[].concat(c,m))}}}function Tu(l){return{}.toString.call(l).includes("Object")}function CN(l){return!Object.keys(l).length}function Li(l){return typeof l=="function"}function AN(l,r){return Object.prototype.hasOwnProperty.call(l,r)}function RN(l,r){return Tu(r)||kl("changeType"),Object.keys(r).some(function(i){return!AN(l,i)})&&kl("changeField"),r}function ON(l){Li(l)||kl("selectorType")}function MN(l){Li(l)||Tu(l)||kl("handlerType"),Tu(l)&&Object.values(l).some(function(r){return!Li(r)})&&kl("handlersType")}function zN(l){l||kl("initialIsRequired"),Tu(l)||kl("initialType"),CN(l)&&kl("initialContent")}function DN(l,r){throw new Error(l[r]||l.default)}var _N={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(DN)(_N),gu={changes:RN,selector:ON,handler:MN,initial:zN};function UN(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gu.initial(l),gu.handler(r);var i={current:l},s=Ri(qN)(i,r),c=Ri(jN)(i),f=Ri(gu.changes)(l),d=Ri(LN)(i);function m(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(x){return x};return gu.selector(p),p(i.current)}function y(p){TN(s,c,f,d)(p)}return[m,y]}function LN(l,r){return Li(r)?r(l.current):r}function jN(l,r){return l.current=ty(ty({},l.current),r),r}function qN(l,r,i){return Li(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 HN={create:UN},BN={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function kN(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,m=new Array(d),y=0;y<d;y++)m[y]=arguments[y];return r.apply(i,[].concat(c,m))}}}function QN(l){return{}.toString.call(l).includes("Object")}function GN(l){return l||ny("configIsRequired"),QN(l)||ny("configType"),l.urls?(YN(),{paths:{vs:l.urls.monacoBase}}):l}function YN(){console.warn(mv.deprecation)}function VN(l,r){throw new Error(l[r]||l.default)}var mv={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=kN(VN)(mv),XN={config:GN},KN=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]))}),Pp(Pp({},l),r)}var ZN={type:"cancelation",msg:"operation is manually canceled"};function pf(l){var r=!1,i=new Promise(function(s,c){l.then(function(f){return r?c(ZN):s(f)}),l.catch(c)});return i.cancel=function(){return r=!0},i}var JN=HN.create({config:BN,isInitialized:!1,resolve:null,reject:null,monaco:null}),pv=bN(JN,2),Ki=pv[0],Uu=pv[1];function FN(l){var r=XN.config(l),i=r.monaco,s=vN(r,["monaco"]);Uu(function(c){return{config:gv(c.config,s),monaco:i}})}function $N(){var l=Ki(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),pf(yf);if(window.monaco&&window.monaco.editor)return yv(window.monaco),l.resolve(window.monaco),pf(yf);KN(WN,IN)(ew)}return pf(yf)}function WN(l){return document.body.appendChild(l)}function PN(l){var r=document.createElement("script");return l&&(r.src=l),r}function IN(l){var r=Ki(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 ew(){var l=Ki(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){yv(i),l.resolve(i)},function(i){l.reject(i)})}function yv(l){Ki().monaco||Uu({monaco:l})}function tw(){return Ki(function(l){var r=l.monaco;return r})}var yf=new Promise(function(l,r){return Uu({resolve:l,reject:r})}),vv={config:FN,init:$N,__getMonacoInstance:tw},nw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},vf=nw,lw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},aw=lw;function rw({children:l}){return wt.createElement("div",{style:aw.container},l)}var iw=rw,sw=iw;function uw({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(sw,null,s),wt.createElement("div",{ref:c,style:{...vf.fullWidth,...!i&&vf.hide},className:f}))}var ow=uw,bv=v.memo(ow);function cw(l){v.useEffect(l,[])}var xv=cw;function fw(l,r,i=!0){let s=v.useRef(!0);v.useEffect(s.current||!i?()=>{s.current=!1}:l,r)}var Kt=fw;function zi(){}function ir(l,r,i,s){return dw(l,s)||hw(l,r,i,s)}function dw(l,r){return l.editor.getModel(Sv(l,r))}function hw(l,r,i,s){return l.editor.createModel(r,i,s?Sv(l,s):void 0)}function Sv(l,r){return l.Uri.parse(r)}function mw({original:l,modified:r,language:i,originalLanguage:s,modifiedLanguage:c,originalModelPath:f,modifiedModelPath:d,keepCurrentOriginalModel:m=!1,keepCurrentModifiedModel:y=!1,theme:p="light",loading:x="Loading...",options:S={},height:N="100%",width:O="100%",className:Y,wrapperProps:M={},beforeMount:R=zi,onMount:L=zi}){let[H,j]=v.useState(!1),[Q,B]=v.useState(!0),k=v.useRef(null),K=v.useRef(null),W=v.useRef(null),P=v.useRef(L),F=v.useRef(R),oe=v.useRef(!1);xv(()=>{let le=vv.init();return le.then(D=>(K.current=D)&&B(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>k.current?Ye():le.cancel()}),Kt(()=>{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],H),Kt(()=>{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],H),Kt(()=>{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],H),Kt(()=>{var le,D;(D=(le=k.current)==null?void 0:le.getModel())==null||D.original.setValue(l||"")},[l],H),Kt(()=>{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],H),Kt(()=>{var le;(le=K.current)==null||le.editor.setTheme(p)},[p],H),Kt(()=>{var le;(le=k.current)==null||le.updateOptions(S)},[S],H);let ie=v.useCallback(()=>{var $;if(!K.current)return;F.current(K.current);let le=ir(K.current,l||"",s||i||"text",f||""),D=ir(K.current,r||"",c||i||"text",d||"");($=k.current)==null||$.setModel({original:le,modified:D})},[i,r,c,l,s,f,d]),qe=v.useCallback(()=>{var le;!oe.current&&W.current&&(k.current=K.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...S}),ie(),(le=K.current)==null||le.editor.setTheme(p),j(!0),oe.current=!0)},[S,p,ie]);v.useEffect(()=>{H&&P.current(k.current,K.current)},[H]),v.useEffect(()=>{!Q&&!H&&qe()},[Q,H,qe]);function Ye(){var D,$,re,pe;let le=(D=k.current)==null?void 0:D.getModel();m||(($=le==null?void 0:le.original)==null||$.dispose()),y||((re=le==null?void 0:le.modified)==null||re.dispose()),(pe=k.current)==null||pe.dispose()}return wt.createElement(bv,{width:O,height:N,isEditorReady:H,loading:x,_ref:W,className:Y,wrapperProps:M})}var gw=mw;v.memo(gw);function pw(l){let r=v.useRef();return v.useEffect(()=>{r.current=l},[l]),r.current}var yw=pw,pu=new Map;function vw({defaultValue:l,defaultLanguage:r,defaultPath:i,value:s,language:c,path:f,theme:d="light",line:m,loading:y="Loading...",options:p={},overrideServices:x={},saveViewState:S=!0,keepCurrentModel:N=!1,width:O="100%",height:Y="100%",className:M,wrapperProps:R={},beforeMount:L=zi,onMount:H=zi,onChange:j,onValidate:Q=zi}){let[B,k]=v.useState(!1),[K,W]=v.useState(!0),P=v.useRef(null),F=v.useRef(null),oe=v.useRef(null),ie=v.useRef(H),qe=v.useRef(L),Ye=v.useRef(),le=v.useRef(s),D=yw(f),$=v.useRef(!1),re=v.useRef(!1);xv(()=>{let w=vv.init();return w.then(V=>(P.current=V)&&W(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>F.current?Te():w.cancel()}),Kt(()=>{var V,I,te,fe;let w=ir(P.current,l||s||"",r||c||"",f||i||"");w!==((V=F.current)==null?void 0:V.getModel())&&(S&&pu.set(D,(I=F.current)==null?void 0:I.saveViewState()),(te=F.current)==null||te.setModel(w),S&&((fe=F.current)==null||fe.restoreViewState(pu.get(f))))},[f],B),Kt(()=>{var w;(w=F.current)==null||w.updateOptions(p)},[p],B),Kt(()=>{!F.current||s===void 0||(F.current.getOption(P.current.editor.EditorOption.readOnly)?F.current.setValue(s):s!==F.current.getValue()&&(re.current=!0,F.current.executeEdits("",[{range:F.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),F.current.pushUndoStop(),re.current=!1))},[s],B),Kt(()=>{var V,I;let w=(V=F.current)==null?void 0:V.getModel();w&&c&&((I=P.current)==null||I.editor.setModelLanguage(w,c))},[c],B),Kt(()=>{var w;m!==void 0&&((w=F.current)==null||w.revealLine(m))},[m],B),Kt(()=>{var w;(w=P.current)==null||w.editor.setTheme(d)},[d],B);let pe=v.useCallback(()=>{var w;if(!(!oe.current||!P.current)&&!$.current){qe.current(P.current);let V=f||i,I=ir(P.current,s||l||"",r||c||"",V||"");F.current=(w=P.current)==null?void 0:w.editor.create(oe.current,{model:I,automaticLayout:!0,...p},x),S&&F.current.restoreViewState(pu.get(V)),P.current.editor.setTheme(d),m!==void 0&&F.current.revealLine(m),k(!0),$.current=!0}},[l,r,i,s,c,f,p,x,S,d,m]);v.useEffect(()=>{B&&ie.current(F.current,P.current)},[B]),v.useEffect(()=>{!K&&!B&&pe()},[K,B,pe]),le.current=s,v.useEffect(()=>{var w,V;B&&j&&((w=Ye.current)==null||w.dispose(),Ye.current=(V=F.current)==null?void 0:V.onDidChangeModelContent(I=>{re.current||j(F.current.getValue(),I)}))},[B,j]),v.useEffect(()=>{if(B){let w=P.current.editor.onDidChangeMarkers(V=>{var te;let I=(te=F.current.getModel())==null?void 0:te.uri;if(I&&V.find(fe=>fe.path===I.path)){let fe=P.current.editor.getModelMarkers({resource:I});Q==null||Q(fe)}});return()=>{w==null||w.dispose()}}return()=>{}},[B,Q]);function Te(){var w,V;(w=Ye.current)==null||w.dispose(),N?S&&pu.set(f,F.current.saveViewState()):(V=F.current.getModel())==null||V.dispose(),F.current.dispose()}return wt.createElement(bv,{width:O,height:Y,isEditorReady:B,loading:y,_ref:oe,className:M,wrapperProps:R})}var bw=vw,xw=v.memo(bw),Nv=xw;const dt=v.forwardRef(({className:l,...r},i)=>g("div",{ref:i,className:mt("rounded-lg border bg-card text-card-foreground shadow-sm",l),...r}));dt.displayName="Card";const Tt=v.forwardRef(({className:l,...r},i)=>g("div",{ref:i,className:mt("flex flex-col space-y-1.5 p-6",l),...r}));Tt.displayName="CardHeader";const Lt=v.forwardRef(({className:l,...r},i)=>g("h3",{ref:i,className:mt("text-2xl font-semibold leading-none tracking-tight",l),...r}));Lt.displayName="CardTitle";const ht=v.forwardRef(({className:l,...r},i)=>g("div",{ref:i,className:mt("p-6 pt-0",l),...r}));ht.displayName="CardContent";const id=v.forwardRef(({className:l,type:r,...i},s)=>g("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}));id.displayName="Input";var Sw="Label",wv=v.forwardRef((l,r)=>g(Jt.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())}}));wv.displayName=Sw;var Ev=wv;const Nw=ad("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oi=v.forwardRef(({className:l,...r},i)=>g(Ev,{ref:i,className:mt(Nw(),l),...r}));Oi.displayName=Ev.displayName;var ji=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function ww(l,r){return v.useReducer((i,s)=>r[i][s]??i,l)}var Rr=l=>{const{present:r,children:i}=l,s=Ew(r),c=typeof i=="function"?i({present:s.isPresent}):v.Children.only(i),f=Tn(s.ref,Tw(c));return typeof i=="function"||s.isPresent?v.cloneElement(c,{ref:f}):null};Rr.displayName="Presence";function Ew(l){const[r,i]=v.useState(),s=v.useRef(null),c=v.useRef(l),f=v.useRef("none"),d=l?"mounted":"unmounted",[m,y]=ww(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=yu(s.current);f.current=m==="mounted"?p:"none"},[m]),ji(()=>{const p=s.current,x=c.current;if(x!==l){const N=f.current,O=yu(p);l?y("MOUNT"):O==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&N!==O?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,y]),ji(()=>{if(r){let p;const x=r.ownerDocument.defaultView??window,S=O=>{const M=yu(s.current).includes(CSS.escape(O.animationName));if(O.target===r&&M&&(y("ANIMATION_END"),!c.current)){const R=r.style.animationFillMode;r.style.animationFillMode="forwards",p=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=R)})}},N=O=>{O.target===r&&(f.current=yu(s.current))};return r.addEventListener("animationstart",N),r.addEventListener("animationcancel",S),r.addEventListener("animationend",S),()=>{x.clearTimeout(p),r.removeEventListener("animationstart",N),r.removeEventListener("animationcancel",S),r.removeEventListener("animationend",S)}}else y("ANIMATION_END")},[r,y]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(p=>{s.current=p?getComputedStyle(p):null,i(p)},[])}}function yu(l){return(l==null?void 0:l.animationName)||"none"}function Tw(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 m=v.createContext(d),y=i.length;i=[...i,d];const p=S=>{var L;const{scope:N,children:O,...Y}=S,M=((L=N==null?void 0:N[l])==null?void 0:L[y])||m,R=v.useMemo(()=>Y,Object.values(Y));return g(M.Provider,{value:R,children:O})};p.displayName=f+"Provider";function x(S,N){var M;const O=((M=N==null?void 0:N[l])==null?void 0:M[y])||m,Y=v.useContext(O);if(Y)return Y;if(d!==void 0)return d;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[p,x]}const c=()=>{const f=i.map(d=>v.createContext(d));return function(m){const y=(m==null?void 0:m[l])||f;return v.useMemo(()=>({[`__scope${l}`]:{...m,[l]:y}}),[m,y])}};return c.scopeName=l,[s,Cw(c,...r)]}function Cw(...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((m,{useScope:y,scopeName:p})=>{const S=y(f)[`__scope${p}`];return{...m,...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 Aw=v.createContext(void 0);function sd(l){const r=v.useContext(Aw);return l||r||"ltr"}function Rw(l,[r,i]){return Math.min(i,Math.max(r,l))}function pt(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 Ow(l,r){return v.useReducer((i,s)=>r[i][s]??i,l)}var ud="ScrollArea",[Tv]=Lu(ud),[Mw,on]=Tv(ud),Cv=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,type:s="hover",dir:c,scrollHideDelay:f=600,...d}=l,[m,y]=v.useState(null),[p,x]=v.useState(null),[S,N]=v.useState(null),[O,Y]=v.useState(null),[M,R]=v.useState(null),[L,H]=v.useState(0),[j,Q]=v.useState(0),[B,k]=v.useState(!1),[K,W]=v.useState(!1),P=Tn(r,oe=>y(oe)),F=sd(c);return g(Mw,{scope:i,type:s,dir:F,scrollHideDelay:f,scrollArea:m,viewport:p,onViewportChange:x,content:S,onContentChange:N,scrollbarX:O,onScrollbarXChange:Y,scrollbarXEnabled:B,onScrollbarXEnabledChange:k,scrollbarY:M,onScrollbarYChange:R,scrollbarYEnabled:K,onScrollbarYEnabledChange:W,onCornerWidthChange:H,onCornerHeightChange:Q,children:g(Jt.div,{dir:F,...d,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":L+"px","--radix-scroll-area-corner-height":j+"px",...l.style}})})});Cv.displayName=ud;var Av="ScrollAreaViewport",Rv=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,children:s,nonce:c,...f}=l,d=on(Av,i),m=v.useRef(null),y=Tn(r,m,d.onViewportChange);return E(Zt,{children:[g("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}),g(Jt.div,{"data-radix-scroll-area-viewport":"",...f,ref:y,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...l.style},children:g("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});Rv.displayName=Av;var Cn="ScrollAreaScrollbar",od=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:d}=c,m=l.orientation==="horizontal";return v.useEffect(()=>(m?f(!0):d(!0),()=>{m?f(!1):d(!1)}),[m,f,d]),c.type==="hover"?g(zw,{...s,ref:r,forceMount:i}):c.type==="scroll"?g(Dw,{...s,ref:r,forceMount:i}):c.type==="auto"?g(Ov,{...s,ref:r,forceMount:i}):c.type==="always"?g(cd,{...s,ref:r}):null});od.displayName=Cn;var zw=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),[f,d]=v.useState(!1);return v.useEffect(()=>{const m=c.scrollArea;let y=0;if(m){const p=()=>{window.clearTimeout(y),d(!0)},x=()=>{y=window.setTimeout(()=>d(!1),c.scrollHideDelay)};return m.addEventListener("pointerenter",p),m.addEventListener("pointerleave",x),()=>{window.clearTimeout(y),m.removeEventListener("pointerenter",p),m.removeEventListener("pointerleave",x)}}},[c.scrollArea,c.scrollHideDelay]),g(Rr,{present:i||f,children:g(Ov,{"data-state":f?"visible":"hidden",...s,ref:r})})}),Dw=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),f=l.orientation==="horizontal",d=qu(()=>y("SCROLL_END"),100),[m,y]=Ow("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(m==="idle"){const p=window.setTimeout(()=>y("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(p)}},[m,c.scrollHideDelay,y]),v.useEffect(()=>{const p=c.viewport,x=f?"scrollLeft":"scrollTop";if(p){let S=p[x];const N=()=>{const O=p[x];S!==O&&(y("SCROLL"),d()),S=O};return p.addEventListener("scroll",N),()=>p.removeEventListener("scroll",N)}},[c.viewport,f,y,d]),g(Rr,{present:i||m!=="hidden",children:g(cd,{"data-state":m==="hidden"?"hidden":"visible",...s,ref:r,onPointerEnter:pt(l.onPointerEnter,()=>y("POINTER_ENTER")),onPointerLeave:pt(l.onPointerLeave,()=>y("POINTER_LEAVE"))})})}),Ov=v.forwardRef((l,r)=>{const i=on(Cn,l.__scopeScrollArea),{forceMount:s,...c}=l,[f,d]=v.useState(!1),m=l.orientation==="horizontal",y=qu(()=>{if(i.viewport){const p=i.viewport.offsetWidth<i.viewport.scrollWidth,x=i.viewport.offsetHeight<i.viewport.scrollHeight;d(m?p:x)}},10);return xr(i.viewport,y),xr(i.content,y),g(Rr,{present:s||f,children:g(cd,{"data-state":f?"visible":"hidden",...c,ref:r})})}),cd=v.forwardRef((l,r)=>{const{orientation:i="vertical",...s}=l,c=on(Cn,l.__scopeScrollArea),f=v.useRef(null),d=v.useRef(0),[m,y]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=Uv(m.viewport,m.content),x={...s,sizes:m,onSizesChange:y,hasThumb:p>0&&p<1,onThumbChange:N=>f.current=N,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:N=>d.current=N};function S(N,O){return Hw(N,d.current,m,O)}return i==="horizontal"?g(_w,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const N=c.viewport.scrollLeft,O=ly(N,m,c.dir);f.current.style.transform=`translate3d(${O}px, 0, 0)`}},onWheelScroll:N=>{c.viewport&&(c.viewport.scrollLeft=N)},onDragScroll:N=>{c.viewport&&(c.viewport.scrollLeft=S(N,c.dir))}}):i==="vertical"?g(Uw,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const N=c.viewport.scrollTop,O=ly(N,m);f.current.style.transform=`translate3d(0, ${O}px, 0)`}},onWheelScroll:N=>{c.viewport&&(c.viewport.scrollTop=N)},onDragScroll:N=>{c.viewport&&(c.viewport.scrollTop=S(N))}}):null}),_w=v.forwardRef((l,r)=>{const{sizes:i,onSizesChange:s,...c}=l,f=on(Cn,l.__scopeScrollArea),[d,m]=v.useState(),y=v.useRef(null),p=Tn(r,y,f.onScrollbarXChange);return v.useEffect(()=>{y.current&&m(getComputedStyle(y.current))},[y]),g(zv,{"data-orientation":"horizontal",...c,ref:p,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":ju(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:Au(d.paddingLeft),paddingEnd:Au(d.paddingRight)}})}})}),Uw=v.forwardRef((l,r)=>{const{sizes:i,onSizesChange:s,...c}=l,f=on(Cn,l.__scopeScrollArea),[d,m]=v.useState(),y=v.useRef(null),p=Tn(r,y,f.onScrollbarYChange);return v.useEffect(()=>{y.current&&m(getComputedStyle(y.current))},[y]),g(zv,{"data-orientation":"vertical",...c,ref:p,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":ju(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:Au(d.paddingTop),paddingEnd:Au(d.paddingBottom)}})}})}),[Lw,Mv]=Tv(Cn),zv=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,sizes:s,hasThumb:c,onThumbChange:f,onThumbPointerUp:d,onThumbPointerDown:m,onThumbPositionChange:y,onDragScroll:p,onWheelScroll:x,onResize:S,...N}=l,O=on(Cn,i),[Y,M]=v.useState(null),R=Tn(r,P=>M(P)),L=v.useRef(null),H=v.useRef(""),j=O.viewport,Q=s.content-s.viewport,B=Ol(x),k=Ol(y),K=qu(S,10);function W(P){if(L.current){const F=P.clientX-L.current.left,oe=P.clientY-L.current.top;p({x:F,y:oe})}}return v.useEffect(()=>{const P=F=>{const oe=F.target;(Y==null?void 0:Y.contains(oe))&&B(F,Q)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[j,Y,Q,B]),v.useEffect(k,[s,k]),xr(Y,K),xr(O.content,K),g(Lw,{scope:i,scrollbar:Y,hasThumb:c,onThumbChange:Ol(f),onThumbPointerUp:Ol(d),onThumbPositionChange:k,onThumbPointerDown:Ol(m),children:g(Jt.div,{...N,ref:R,style:{position:"absolute",...N.style},onPointerDown:pt(l.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),L.current=Y.getBoundingClientRect(),H.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",O.viewport&&(O.viewport.style.scrollBehavior="auto"),W(P))}),onPointerMove:pt(l.onPointerMove,W),onPointerUp:pt(l.onPointerUp,P=>{const F=P.target;F.hasPointerCapture(P.pointerId)&&F.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=H.current,O.viewport&&(O.viewport.style.scrollBehavior=""),L.current=null})})})}),Cu="ScrollAreaThumb",Dv=v.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=Mv(Cu,l.__scopeScrollArea);return g(Rr,{present:i||c.hasThumb,children:g(jw,{ref:r,...s})})}),jw=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,style:s,...c}=l,f=on(Cu,i),d=Mv(Cu,i),{onThumbPositionChange:m}=d,y=Tn(r,S=>d.onThumbChange(S)),p=v.useRef(void 0),x=qu(()=>{p.current&&(p.current(),p.current=void 0)},100);return v.useEffect(()=>{const S=f.viewport;if(S){const N=()=>{if(x(),!p.current){const O=Bw(S,m);p.current=O,m()}};return m(),S.addEventListener("scroll",N),()=>S.removeEventListener("scroll",N)}},[f.viewport,x,m]),g(Jt.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:pt(l.onPointerDownCapture,S=>{const O=S.target.getBoundingClientRect(),Y=S.clientX-O.left,M=S.clientY-O.top;d.onThumbPointerDown({x:Y,y:M})}),onPointerUp:pt(l.onPointerUp,d.onThumbPointerUp)})});Dv.displayName=Cu;var fd="ScrollAreaCorner",_v=v.forwardRef((l,r)=>{const i=on(fd,l.__scopeScrollArea),s=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?g(qw,{...l,ref:r}):null});_v.displayName=fd;var qw=v.forwardRef((l,r)=>{const{__scopeScrollArea:i,...s}=l,c=on(fd,i),[f,d]=v.useState(0),[m,y]=v.useState(0),p=!!(f&&m);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)}),p?g(Jt.div,{...s,ref:r,style:{width:f,height:m,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...l.style}}):null});function Au(l){return l?parseInt(l,10):0}function Uv(l,r){const i=l/r;return isNaN(i)?0:i}function ju(l){const r=Uv(l.viewport,l.content),i=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,s=(l.scrollbar.size-i)*r;return Math.max(s,18)}function Hw(l,r,i,s="ltr"){const c=ju(i),f=c/2,d=r||f,m=c-d,y=i.scrollbar.paddingStart+d,p=i.scrollbar.size-i.scrollbar.paddingEnd-m,x=i.content-i.viewport,S=s==="ltr"?[0,x]:[x*-1,0];return Lv([y,p],S)(l)}function ly(l,r,i="ltr"){const s=ju(r),c=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-c,d=r.content-r.viewport,m=f-s,y=i==="ltr"?[0,d]:[d*-1,0],p=Rw(l,y);return Lv([0,d],[0,m])(p)}function Lv(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 Bw=(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,m=i.top!==f.top;(d||m)&&r(),i=f,s=window.requestAnimationFrame(c)})(),()=>window.cancelAnimationFrame(s)};function qu(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);ji(()=>{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 qv=Cv,kw=Rv,Qw=_v;const qi=v.forwardRef(({className:l,children:r,...i},s)=>E(qv,{ref:s,className:mt("relative overflow-hidden",l),...i,children:[g(kw,{className:"h-full w-full rounded-[inherit]",children:r}),g(Hv,{}),g(Qw,{})]}));qi.displayName=qv.displayName;const Hv=v.forwardRef(({className:l,orientation:r="vertical",...i},s)=>g(od,{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:g(Dv,{className:"relative flex-1 rounded-full bg-border"})}));Hv.displayName=od.displayName;function Gw({sessionId:l}){const{data:r=[]}=nv({limit:50}),i=l?r.filter(d=>{var m;return((m=d.metadata)==null?void 0:m.sessionId)===l}):r,{traceId:s}=Wf(),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]),E("div",{className:"w-80 border-l bg-muted flex flex-col",children:[g("div",{className:"px-4 py-3 border-b bg-background",children:E("div",{className:"flex items-center justify-between",children:[g("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Traces"}),g(Me,{variant:"secondary",className:"text-xs",children:i.length})]})}),g(qi,{className:"flex-1",ref:c,children:g("div",{className:"p-3 space-y-2",children:r.length===0?E("div",{className:"text-center py-12 text-muted-foreground",children:[g(Cr,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),g("p",{className:"text-sm",children:"Traces will appear here"}),g("p",{className:"text-xs mt-1",children:"after making API calls"})]}):i.map((d,m)=>E("div",{children:[g(zu,{to:`/traces/${d.id}`,children:g(Yw,{trace:d,isActive:d.id===s})}),m<i.length-1&&g(_u,{className:"my-2"})]},d.id))})})]})}function Yw({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 E("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:[E("div",{className:"flex items-center gap-1.5 mb-2",children:[g(Me,{className:`text-[10px] font-mono px-1.5 py-0 ${s(l.method)}`,children:l.method}),g(Me,{className:`text-[10px] font-mono px-1.5 py-0 ${i(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&E("span",{className:"text-[10px] text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),g("div",{className:"text-xs font-mono text-foreground truncate mb-2",children:l.path}),E("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[E("div",{className:"flex items-center gap-1",children:[g(Du,{className:"w-3 h-3"}),g("span",{children:f(l.timestamp)})]}),E("div",{className:"flex items-center gap-1",children:[g(Cr,{className:"w-3 h-3"}),g("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 E("div",{className:"relative",children:[r&&E("div",{className:"flex items-center justify-between mb-2",children:[g("h3",{className:"text-sm font-medium",children:r}),g(Et,{variant:"ghost",size:"sm",onClick:f,className:"text-xs",children:s?E(Zt,{children:[g(s2,{className:"w-3 h-3 mr-1"}),"Copied"]}):E(Zt,{children:[g(Iy,{className:"w-3 h-3 mr-1"}),"Copy"]})})]}),g("div",{className:"border rounded-md overflow-hidden",children:g(Nv,{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}}})})]})}const Bv=v.createContext(null);function Vw({children:l}){const[r,i]=v.useState([]),s=v.useCallback((f,d="info",m)=>{const y=Math.random().toString(36).slice(2),p={id:y,message:f,type:d,duration:m};return i(x=>[...x,p]),y},[]),c=v.useCallback(f=>{i(d=>d.filter(m=>m.id!==f))},[]);return g(Bv.Provider,{value:{toasts:r,addToast:s,removeToast:c},children:l})}function dd(){const l=v.useContext(Bv);if(!l)throw new Error("useToast must be used within ToastProvider");return l}function vu(){return Math.random().toString(36).slice(2)+Date.now().toString(36)}function Xw(){var j,Q,B;const{data:l=[]}=w2(),{addToast:r}=dd(),i=lv(),s=v.useMemo(()=>({id:vu(),title:"New tab",sessionId:vu(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null}),[]),[c,f]=v.useState([s]),[d,m]=v.useState(s.id),[y,p]=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 W=JSON.parse(k);Array.isArray(W)&&W.length>0&&(f(W),K&&W.some(P=>P.id===K)?m(K):m(W[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],O=k=>{var W;const K=((W=k.requestBody)==null?void 0:W.template)||"";f(P=>P.map(F=>F.id===d?{...F,route:k,title:k.path,response:null,requestTime:null,urlParams:{},requestBody:K}:F))},Y=async()=>{const k=N;if(!k.route)return;p(!0),f(W=>W.map(P=>P.id===d?{...P,response:null}:P));const K=Date.now();try{let W=k.route.path;Object.entries(k.urlParams).forEach(([D,$])=>{W=W.replace(`:${D}`,$)});const P=`http://localhost:3000${W}`,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($=>$.replace(/\/\/.*$/,"").trim()).filter($=>$.length>0).join(`
|
|
222
|
-
`);F.body=JSON.stringify(JSON.parse(D))}catch{F.body=k.requestBody}const oe=await fetch(P,F),ie=await oe.json(),qe=Date.now()-K,Ye={};oe.headers.forEach((D,$)=>{Ye[$]=D}),f(D=>D.map($=>$.id===d?{...$,response:{status:oe.status,data:ie,headers:Ye},requestTime:qe}:$)),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(W){f(P=>P.map(F=>F.id===d?{...F,response:{status:0,error:W instanceof Error?W.message:"Unknown error"}}:F)),r(W instanceof Error?W.message:"API call failed","error")}finally{p(!1)}},M=(k,K)=>{f(W=>W.map(P=>P.id===d?{...P,urlParams:{...P.urlParams,[k]:K}}:P))},R=k=>{f(K=>K.map(W=>W.id===d?{...W,requestBody:k}:W))},L=()=>{const k={id:vu(),title:"New tab",sessionId:vu(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null};f(K=>[...K,k]),m(k.id)},H=k=>{f(K=>{if(K.length<=1)return K;const W=K.filter(P=>P.id!==k);if(d===k){const P=W[W.length-1];m(P.id)}return W})};return E("div",{className:"flex h-full",children:[g("div",{className:"w-64 border-r bg-muted overflow-y-auto flex-shrink-0",children:E("div",{className:"p-4",children:[g("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:"Endpoints"}),g("div",{className:"space-y-1",children:l.map((k,K)=>g("button",{onClick:()=>O(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:E("div",{className:"flex items-center gap-2",children:[g(Me,{className:`text-[10px] font-mono w-12 flex items-center justify-center
|
|
224
|
-
${k.method==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":""}
|
|
225
|
-
${k.method==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":""}
|
|
226
|
-
${k.method==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":""}
|
|
227
|
-
${k.method==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":""}
|
|
228
|
-
`,children:k.method}),g("span",{className:"font-mono text-xs truncate",children:k.path})]})},K))})]})}),E("div",{className:"flex-1 overflow-y-auto",children:[g("div",{className:"px-6 pt-3 border-b bg-muted",children:E("div",{className:"flex items-center gap-1 overflow-x-auto whitespace-nowrap pb-0",children:[c.map(k=>E("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-accent/50 rounded-t-md"}`,onClick:()=>m(k.id),children:[g("span",{className:"font-mono text-sm truncate max-w-[200px]",children:k.title}),c.length>1&&g("button",{className:"ml-1 text-muted-foreground hover:text-foreground hover:bg-accent rounded-sm p-0.5 -mr-1",onClick:K=>{K.stopPropagation(),H(k.id)},children:g("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),k.id===d&&g("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]},k.id)),E(Et,{variant:"ghost",size:"sm",className:"flex-none ml-2 text-sm font-medium text-muted-foreground hover:text-foreground",onClick:L,children:[g("svg",{className:"w-4 h-4 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New tab"]})]})}),g("div",{className:"p-6 max-w-4xl",children:N.route?E("div",{className:"space-y-4",children:[E(dt,{children:[g(Tt,{children:g(Lt,{className:"text-base font-semibold",children:"API Caller"})}),E(ht,{className:"space-y-4",children:[E("div",{children:[g(Oi,{className:"text-sm font-medium mb-2 block",children:"Endpoint"}),E("div",{className:"flex gap-2",children:[E("div",{className:"flex-1 bg-muted rounded-md p-3 font-mono text-sm border",children:[g("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:N.route.method})," ",g("span",{className:"text-foreground",children:N.route.path})]}),g(Et,{onClick:Y,disabled:y,className:"bg-blue-600 dark:bg-blue-600 hover:bg-blue-700 dark:hover:bg-blue-700 text-white",children:y?E("span",{className:"flex items-center gap-2",children:[g("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),g("span",{className:"text-sm font-medium",children:"Calling..."})]}):E("span",{className:"flex items-center gap-2",children:[g(f2,{className:"w-4 h-4"}),g("span",{className:"text-sm font-medium",children:"Call API"})]})})]})]}),N.route.path.includes(":")&&E("div",{children:[g(Oi,{className:"text-sm font-medium mb-2 block",children:"URL Parameters"}),g("div",{className:"space-y-3",children:(j=N.route.path.match(/:[^/]+/g))==null?void 0:j.map(k=>{const K=k.slice(1);return E("div",{className:"grid grid-cols-4 gap-3 items-center",children:[g(Oi,{htmlFor:K,className:"text-sm text-muted-foreground",children:K}),g(id,{id:K,type:"text",value:N.urlParams[K]||"",onChange:W=>M(K,W.target.value),placeholder:`Enter ${K}`,className:"col-span-3 text-sm"})]},K)})})]}),["POST","PUT","PATCH"].includes(N.route.method)&&E("div",{children:[g(Oi,{className:"text-sm font-medium mb-2 block",children:"Request Body (JSON)"}),g("div",{className:"border rounded-md overflow-hidden",children:g(Nv,{height:"200px",language:"json",value:N.requestBody,onChange:k=>R(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&&E(dt,{children:[g(Tt,{children:E("div",{className:"flex items-center justify-between",children:[E("div",{className:"flex items-center gap-3",children:[g(Lt,{className:"text-base font-semibold",children:"Response"}),g(Me,{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&&E("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g(Du,{className:"w-3 h-3"}),N.requestTime,"ms"]})]}),g(Et,{variant:"ghost",size:"sm",onClick:()=>navigator.clipboard.writeText(JSON.stringify(N.response.data,null,2)),children:g(Iy,{className:"w-4 h-4"})})]})}),g(ht,{children:g(Mi,{data:N.response.data||N.response.error})})]}),N.response&&E(dt,{children:[g(Tt,{children:g(Lt,{className:"text-base font-semibold",children:"Request Logs"})}),g(ht,{children:E("div",{className:"bg-gray-900 dark:bg-gray-950 rounded-md p-4 font-mono text-xs space-y-1 border",children:[E("div",{className:"text-blue-400 dark:text-blue-300",children:["INF starting request endpoint=",(Q=N.route)==null?void 0:Q.path," service=",(B=N.route)==null?void 0:B.handler]}),E("div",{className:"text-green-400 dark:text-green-300",children:["INF request completed code=",N.response.status," duration=",N.requestTime,"ms"]})]})})]})]}):g("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:g("p",{className:"text-sm",children:"Select an endpoint from the sidebar to get started"})})})]}),g(Gw,{sessionId:N.sessionId})]})}function Kw(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,m)=>d.startTime-m.startTime);return s}function Zw(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 Jw(l){return l.startsWith("http.")?g(o2,{className:"w-3.5 h-3.5"}):l.startsWith("db.")?g(nd,{className:"w-3.5 h-3.5"}):g(Cr,{className:"w-3.5 h-3.5"})}function kv({span:l,depth:r,totalDuration:i,t0:s,formatDuration:c}){var M;const[f,d]=v.useState(!0),m=(((M=l.children)==null?void 0:M.length)||0)>0,y=(l.startTime-s)/i*100,p=(l.duration||0)/i*100,x=l.attributes&&Object.keys(l.attributes).length>0,[S,N]=v.useState(!1),O=Zw(l.name),Y=Jw(l.name);return E(Zt,{children:[g("div",{className:"group hover:bg-muted/50 transition-colors rounded-lg",children:E("div",{className:"flex items-start gap-3 p-3",children:[E("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",style:{paddingLeft:`${r*20}px`},children:[m?g("button",{onClick:()=>d(!f),className:"p-0.5 hover:bg-muted rounded transition-colors",children:f?g(Wy,{className:"w-3.5 h-3.5 text-muted-foreground"}):g(Py,{className:"w-3.5 h-3.5 text-muted-foreground"})}):g("div",{className:"w-4"}),g("div",{className:`p-1.5 rounded-md ${O.bg.replace("/90","/20")} ${O.border} border`,children:Y})]}),E("div",{className:"flex-1 min-w-0 space-y-2.5",children:[E("div",{className:"flex items-center justify-between gap-4",children:[E("div",{className:"flex items-center gap-3 min-w-0",children:[g("span",{className:"text-sm font-semibold font-mono truncate",children:l.name}),x&&E("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"]})]}),g("div",{className:"flex items-center gap-2 flex-shrink-0",children:g("span",{className:"text-sm font-mono font-semibold tabular-nums",children:c(l.duration)})})]}),g("div",{className:"relative h-8 bg-muted/50 rounded-lg overflow-hidden border border-border/50",children:g("div",{className:`absolute h-full ${O.bg} ${O.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(p,.5)}%`},children:g("span",{className:`text-xs font-mono font-semibold ${O.text} truncate drop-shadow-sm`,children:l.name})})}),S&&x&&g("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(([R,L])=>R==="http.request"||R==="http.response"?null:typeof L=="object"&&L!==null?E("div",{className:"font-mono text-xs flex items-start gap-2",children:[E("span",{className:"text-muted-foreground font-semibold",children:[R,":"]}),g("span",{className:"text-muted-foreground italic",children:"[object]"})]},R):E("div",{className:"font-mono text-xs flex items-start gap-2",children:[E("span",{className:"text-muted-foreground font-semibold min-w-[120px]",children:[R,":"]}),g("span",{className:"text-foreground break-all",children:String(L)})]},R))})]})]})}),f&&m&&g("div",{className:"space-y-1",children:l.children.map(R=>g(kv,{span:R,depth:r+1,totalDuration:i,t0:s,formatDuration:c},R.id))})]})}function Fw({spans:l,formatDuration:r}){if(l.length===0)return g("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=Kw(l);return console.log("[SpansWaterfall] Tree:",f.map(d=>{var m;return{name:d.name,id:d.id.slice(0,8),parentId:(m=d.parentId)==null?void 0:m.slice(0,8),duration:d.duration}})),console.log("[SpansWaterfall] All spans:",l.map(d=>{var m;return{name:d.name,id:d.id.slice(0,8),parentId:(m=d.parentId)==null?void 0:m.slice(0,8),duration:d.duration}})),E("div",{className:"space-y-3",children:[E("div",{className:"flex justify-between items-center px-4 py-2 bg-muted/30 rounded-lg border border-border/50",children:[E("div",{className:"flex items-center gap-2",children:[g("span",{className:"text-xs font-semibold text-muted-foreground",children:"Timeline"}),E("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"]})]}),E("div",{className:"flex items-center gap-4 text-xs font-mono font-semibold tabular-nums",children:[g("span",{className:"text-muted-foreground",children:"0ms"}),g("div",{className:"w-px h-4 bg-border"}),g("span",{className:"text-foreground",children:r(c)})]})]}),g("div",{className:"space-y-1",children:f.map(d=>g(kv,{span:d,depth:0,totalDuration:c,t0:i,formatDuration:r},d.id))})]})}function $w({trace:l,formatDuration:r}){var d,m,y,p;const i=l.spans.find(x=>x.name==="http.request"),s=((d=l.metadata)==null?void 0:d.request)||((m=i==null?void 0:i.attributes)==null?void 0:m["http.request"]),c=((y=l.metadata)==null?void 0:y.response)||((p=i==null?void 0:i.attributes)==null?void 0:p["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 E("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[E(dt,{children:[g(Tt,{className:"bg-muted",children:g(Lt,{className:"text-base font-semibold",children:"Request"})}),g(ht,{className:"pt-4",children:E("div",{className:"space-y-3",children:[E("div",{className:"text-sm",children:[g(Me,{className:"font-mono text-xs mr-2",children:l.method}),g("span",{className:"font-mono text-sm break-all",children:(s==null?void 0:s.url)||l.path})]}),(s==null?void 0:s.headers)&&E("div",{children:[g("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),g(Mi,{data:s.headers})]}),(s==null?void 0:s.body)!==void 0&&E("div",{children:[g("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),g(Mi,{data:s.body})]})]})})]}),E(dt,{children:[g(Tt,{className:"bg-muted",children:g(Lt,{className:"text-base font-semibold",children:"Response"})}),g(ht,{className:"pt-4",children:E("div",{className:"space-y-3",children:[E("div",{className:"flex items-center gap-2 text-sm",children:[g(Me,{className:`font-mono text-xs ${f(l.statusCode)}`,children:l.statusCode||(c==null?void 0:c.status)||"-"}),g("span",{className:"text-xs text-muted-foreground",children:r(l.duration)})]}),(c==null?void 0:c.headers)&&E("div",{children:[g("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),g(Mi,{data:c.headers})]}),(c==null?void 0:c.body)!==void 0&&E("div",{children:[g("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),g(Mi,{data:c.body})]})]})})]})]})}function Ww(){const{data:l=[]}=nv({limit:100}),r=b2(),i=x2(),{traceId:s}=Wf(),{addToast:c}=dd(),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 m=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 E("div",{className:"h-full grid grid-cols-12 gap-0",children:[E("div",{className:"col-span-4 border-r bg-muted h-full flex flex-col",children:[g("div",{className:"px-6 py-4 border-b bg-background",children:E("div",{className:"flex items-center justify-between gap-3",children:[E("div",{children:[g("h1",{className:"text-lg font-semibold",children:"Traces"}),g("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Recent requests"})]}),E("div",{className:"flex gap-2",children:[E(Et,{variant:"outline",size:"sm",onClick:async()=>{try{const p=await i.mutateAsync({format:"json"}),x=typeof p=="string"?p:JSON.stringify(p,null,2),S=new Blob([x],{type:"application/json"}),N=URL.createObjectURL(S),O=document.createElement("a");O.href=N;const Y=new Date().toISOString().replace(/[:.]/g,"-");O.download=`vision-traces-${Y}.json`,document.body.appendChild(O),O.click(),document.body.removeChild(O),URL.revokeObjectURL(N)}catch(p){console.error("Failed to export traces:",p),c("Failed to export traces","error")}},disabled:i.isPending||l.length===0,className:"text-sm",children:[g(u2,{className:"w-4 h-4 mr-1.5"}),"Export"]}),E(Et,{variant:"outline",size:"sm",onClick:m,disabled:r.isPending||l.length===0,className:"text-sm",children:[g(tv,{className:"w-4 h-4 mr-1.5"}),"Clear"]})]})]})}),g(qi,{className:"flex-1",ref:f,children:l.length===0?E("div",{className:"flex flex-col items-center justify-center py-20 px-6 text-muted-foreground",children:[g(Cr,{className:"w-12 h-12 mb-4 opacity-30"}),g("p",{className:"text-sm",children:"No traces yet"}),g("p",{className:"text-xs mt-1",children:"Make some API calls to see traces here"})]}):g("div",{className:"p-4 space-y-2",children:l.map((p,x)=>E("div",{children:[g(zu,{to:`/traces/${p.id}`,children:g(Pw,{trace:p,isActive:p.id===s})}),x<l.length-1&&g(_u,{className:"my-2"})]},p.id))})})]}),g("div",{className:"col-span-8 h-full overflow-y-auto p-6",children:g(Vy,{})})]})}function Pw({trace:l,isActive:r}){const i=d=>{switch(d){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=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",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",fractionalSecondDigits:3});return E("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:[E("div",{className:"flex items-center gap-2 mb-2",children:[g(Me,{className:`text-xs font-mono px-1.5 py-0 ${i(l.method)}`,children:l.method}),g(Me,{className:`text-xs font-mono px-1.5 py-0 ${s(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&E("span",{className:"text-xs text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),g("div",{className:"font-mono text-sm text-foreground truncate mb-2",children:l.path}),E("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[E("div",{className:"flex items-center gap-1",children:[g(Du,{className:"w-3 h-3"}),g("span",{children:f(l.timestamp)})]}),E("div",{className:"flex items-center gap-1",children:[g(Cr,{className:"w-3 h-3"}),g("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function Iw({trace:l,onBack:r}){var y;const i=Vi(),s=lv(),c=async()=>{var p;try{const x=l.spans.find(Q=>{var B;return Q.name==="http.request"||!!((B=Q.attributes)!=null&&B["http.url"])}),S=((p=x==null?void 0:x.attributes)==null?void 0:p["http.url"])||l.path,N=Date.now();let O;try{new URL(S),O=S}catch{O=`http://localhost:3000${S.startsWith("/")?"":"/"}${S}`}const M=yt().on("trace.new",Q=>{Q.method===l.method&&Q.timestamp>=N&&(i(`/traces/${Q.id}`),M())}),R=Date.now(),L=await fetch(O,{method:l.method,headers:{"Content-Type":"application/json"}}),H=Date.now()-R,j=L.headers.get("X-Vision-Trace-Id");j&&s.mutate({traceId:j,clientDuration:H})}catch(x){console.error("Failed to replay request:",x)}},f=p=>p?p<1?"< 1ms":p<1e3?`${Math.round(p)}ms`:`${(p/1e3).toFixed(2)}s`:"-",d=p=>new Date(p).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1}),m=p=>p?p>=200&&p<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":p>=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 E("div",{className:"max-w-5xl",children:[E("div",{className:"flex items-center justify-between mb-6",children:[r&&E(Et,{variant:"ghost",size:"sm",onClick:r,className:"text-sm font-medium",children:[g(a2,{className:"w-4 h-4 mr-2"}),"Back to Traces"]}),g(Et,{onClick:c,size:"sm",className:"text-sm font-medium",children:"Replay Request"})]}),E("div",{className:"space-y-4",children:[E(dt,{children:[g(Tt,{children:g(Lt,{className:"text-base font-semibold",children:"Request Overview"})}),g(ht,{children:E("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Method"}),g("p",{className:"font-mono text-sm font-medium",children:l.method})]}),E("div",{className:"col-span-2",children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Path"}),g("p",{className:"font-mono text-sm font-medium truncate",children:l.path})]}),E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),g(Me,{className:`text-xs font-mono ${m(l.statusCode)}`,children:l.statusCode||"Pending"})]}),E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Duration"}),(y=l.metadata)!=null&&y.clientDuration?E("div",{className:"space-y-1",children:[E("div",{className:"flex items-center gap-2",children:[g("span",{className:"text-xs text-muted-foreground",children:"Server:"}),g("span",{className:"font-mono text-sm",children:f(l.duration)})]}),E("div",{className:"flex items-center gap-2",children:[g("span",{className:"text-xs text-muted-foreground",children:"Total:"}),g("span",{className:"font-mono text-sm font-medium",children:f(l.metadata.clientDuration)})]}),E("div",{className:"flex items-center gap-2",children:[g("span",{className:"text-xs text-muted-foreground",children:"Network:"}),g("span",{className:"font-mono text-sm text-blue-600 dark:text-blue-400",children:f(l.metadata.clientDuration-(l.duration||0))})]})]}):g("p",{className:`font-mono text-sm font-medium ${l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400":""}`,children:f(l.duration)})]}),E("div",{className:"col-span-2",children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Timestamp"}),g("p",{className:"font-mono text-sm",children:d(l.timestamp)})]}),E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Trace ID"}),g("p",{className:"font-mono text-xs text-muted-foreground",children:l.id})]})]})})]}),g($w,{trace:l,formatDuration:f}),l.spans.length>0&&E(dt,{children:[g(Tt,{children:E(Lt,{className:"text-base font-semibold",children:["Spans Timeline (",l.spans.length,")"]})}),g(ht,{children:g(Fw,{spans:l.spans,formatDuration:f})})]})]})]})}function rr(l,r,i){let s=i.initialDeps??[],c;function f(){var d,m,y,p;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const S=l();if(!(S.length!==s.length||S.some((Y,M)=>s[M]!==Y)))return c;s=S;let O;if(i.key&&((m=i.debug)!=null&&m.call(i))&&(O=Date.now()),c=r(...S),i.key&&((y=i.debug)!=null&&y.call(i))){const Y=Math.round((Date.now()-x)*100)/100,M=Math.round((Date.now()-O)*100)/100,R=M/16,L=(H,j)=>{for(H=String(H);H.length<j;)H=" "+H;return H};console.info(`%c⏱ ${L(M,5)} /${L(Y,5)} ms`,`
|
|
232
|
-
font-size: .6rem;
|
|
233
|
-
font-weight: bold;
|
|
234
|
-
color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,i==null?void 0:i.key)}return(p=i==null?void 0:i.onChange)==null||p.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 eE=(l,r)=>Math.abs(l-r)<1.01,tE=(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}},nE=l=>l,lE=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},aE=(l,r)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;const c=d=>{const{width:m,height:y}=d;r({width:Math.round(m),height:Math.round(y)})};if(c(ry(i)),!s.ResizeObserver)return()=>{};const f=new s.ResizeObserver(d=>{const m=()=>{const y=d[0];if(y!=null&&y.borderBoxSize){const p=y.borderBoxSize[0];if(p){c({width:p.inlineSize,height:p.blockSize});return}}c(ry(i))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(m):m()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},iy={passive:!0},sy=typeof window>"u"?!0:"onscrollend"in window,rE=(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?()=>{}:tE(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)},m=d(!0),y=d(!1);y(),i.addEventListener("scroll",m,iy);const p=l.options.useScrollendEvent&&sy;return p&&i.addEventListener("scrollend",y,iy),()=>{i.removeEventListener("scroll",m),p&&i.removeEventListener("scrollend",y)}},iE=(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"]},sE=(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 uE{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:nE,rangeExtractor:lE,onChange:()=>{},measureElement:iE,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 m=i[d];if(c.has(m.lane))continue;const y=f.get(m.lane);if(y==null||m.end>y.end?f.set(m.lane,m):m.end<y.end&&c.set(m.lane,!0),c.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((d,m)=>d.end===m.end?d.index-m.index:d.end-m.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},m)=>{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 p=this.measurementsCache.slice(0,y);for(let x=y;x<i;x++){const S=f(x),N=this.options.lanes===1?p[x-1]:this.getFurthestMeasurement(p,x),O=N?N.end+this.options.gap:s+c,Y=m.get(S),M=typeof Y=="number"?Y:this.options.estimateSize(x),R=O+M,L=N?N.lane:x%this.options.lanes;p[x]={index:x,start:O,size:M,end:R,key:S,lane:L}}return this.measurementsCache=p,p},{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?oE({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,m=this.elementsCache.get(d);m!==i&&(m&&this.observer.unobserve(m),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 m=i[f],y=s[m];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[Qv(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 m=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(m,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 m=s==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(m,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,m=p=>{if(!this.targetWindow)return;const x=this.getOffsetForIndex(i,p);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 O=this.getScrollOffset(),Y=this.getOffsetForIndex(i,N);if(!Y){console.warn("Failed to get offset for index:",i);return}eE(Y[0],O)||y(N)})},y=p=>{this.targetWindow&&(f++,f<d?this.targetWindow.requestAnimationFrame(()=>m(p)):console.warn(`Failed to scroll to index ${i} after ${d} attempts.`))};m(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(m=>m===null);){const m=s[d];f[m.lane]===null&&(f[m.lane]=m.end),d--}c=Math.max(...f.filter(m=>m!==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 Qv=(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 oE({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=Qv(0,c,f,i),m=d;if(s===1)for(;m<c&&l[m].end<i+r;)m++;else if(s>1){const y=Array(s).fill(0);for(;m<c&&y.some(x=>x<i+r);){const x=l[m];y[x.lane]=x.end,m++}const p=Array(s).fill(i+r);for(;d>=0&&p.some(x=>x>=i);){const x=l[d];p[x.lane]=x.start,d--}d=Math.max(0,d-d%s),m=Math.min(c,m+(s-1-m%s))}return{startIndex:d,endIndex:m}}const uy=typeof document<"u"?v.useLayoutEffect:v.useEffect;function cE(l){const r=v.useReducer(()=>({}),{})[1],i={...l,onChange:(c,f)=>{var d;f?IS.flushSync(r):r(),(d=l.onChange)==null||d.call(l,c,f)}},[s]=v.useState(()=>new uE(i));return s.setOptions(i),uy(()=>s._didMount(),[]),uy(()=>s._willUpdate()),s}function fE(l){return cE({observeElementRect:aE,observeElementOffset:rE,scrollToFn:sE,...l})}function dE(){const[l,r]=v.useState("all"),[i,s]=v.useState(""),c=N2(),f=Vi(),{data:d=[]}=S2({limit:1e4,level:l==="all"?void 0:l,search:i||void 0}),m=v.useRef(null),y=fE({count:d.length,getScrollElement:()=>m.current,estimateSize:()=>72,overscan:8,measureElement:M=>M.getBoundingClientRect().height}),p=()=>{confirm("Clear all logs?")&&c.mutate()},x=M=>{var j;const L=(M.message||"").match(/traceId=([^\s]+)/);if(L)return L[1];const H=(j=M==null?void 0:M.args)==null?void 0:j.find(Q=>Q&&typeof Q=="object"&&"traceId"in Q);return H==null?void 0:H.traceId},S=M=>{const R=M.message||"",L=/(\w+)=([^\s]+)/g,H=[...R.matchAll(L)];if(H.length===0)return;const j={};return H.forEach(([,Q,B])=>{if(B.startsWith("{")||B.startsWith("["))try{j[Q]=JSON.parse(B)}catch{j[Q]=B}else j[Q]=B}),Object.keys(j).length?j:void 0},N=M=>{switch(M){case"error":return g(Ui,{className:"w-4 h-4 text-red-500"});case"warn":return g(m2,{className:"w-4 h-4 text-yellow-500"});case"info":return g(Gp,{className:"w-4 h-4 text-blue-500"});case"debug":return g(r2,{className:"w-4 h-4 text-gray-500"});default:return g(Gp,{className:"w-4 h-4 text-gray-400"})}},O=M=>{switch(M){case"error":return"bg-red-50 dark:bg-red-950 border-red-200 dark:border-red-800";case"warn":return"bg-yellow-50 dark:bg-yellow-950 border-yellow-200 dark:border-yellow-800";case"info":return"bg-blue-50 dark:bg-blue-950 border-blue-200 dark:border-blue-800";case"debug":return"bg-gray-50 dark:bg-gray-900 border-gray-200 dark:border-gray-800";default:return"bg-background border-border"}},Y=M=>new Date(M).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return E("div",{className:"h-full flex flex-col",children:[E("div",{className:"bg-background border-b px-6 py-4",children:[E("div",{className:"flex items-center justify-between mb-4",children:[g("h1",{className:"text-lg font-semibold",children:"Logs"}),g("div",{className:"flex gap-2",children:E(Et,{variant:"outline",size:"sm",onClick:p,className:"text-sm font-medium",children:[g(tv,{className:"w-4 h-4 mr-1.5"}),"Clear All"]})})]}),E("div",{className:"flex gap-4",children:[g("div",{className:"flex gap-1",children:["all","log","info","warn","error","debug"].map(M=>g(Et,{variant:l===M?"default":"outline",size:"sm",onClick:()=>r(M),className:"text-sm font-medium",children:M.charAt(0).toUpperCase()+M.slice(1)},M))}),E("div",{className:"flex-1 max-w-md relative",children:[g(d2,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),g(id,{type:"text",placeholder:"Search logs...",value:i,onChange:M=>s(M.target.value),className:"pl-10 text-sm"})]}),E(Me,{variant:"secondary",className:"text-sm",children:[d.length.toLocaleString()," entries"]})]})]}),g("div",{ref:m,className:"flex-1 overflow-auto bg-muted px-6 py-4",children:d.length===0?E(dt,{children:[g(Tt,{children:g(Lt,{children:"No logs yet"})}),g(ht,{children:g("p",{className:"text-sm text-gray-600",children:"Logs will appear here as your application runs. Try making some API calls or use console.log() in your code."})})]}):g("div",{style:{height:`${y.getTotalSize()}px`,width:"100%",position:"relative"},children:y.getVirtualItems().map(M=>{const R=d[M.index],L=x(R),H=S(R);return g("div",{"data-index":M.index,ref:y.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${M.start}px)`},children:g("div",{className:`mb-2 p-3 border rounded-lg ${O(R.level)}`,children:E("div",{className:"flex items-start gap-3",children:[g("div",{className:"mt-0.5",children:N(R.level)}),g("div",{className:"text-xs font-mono text-muted-foreground w-24 flex-shrink-0 mt-0.5",children:Y(R.timestamp)}),E("div",{className:"flex-1 min-w-0",children:[E("div",{className:"flex items-start gap-2",children:[g("div",{className:"flex-1",children:E("div",{className:"flex items-center gap-2 flex-wrap",children:[g("span",{className:"text-sm font-mono",children:R.message}),H&&E(Zt,{children:[H.method&&g(Me,{className:"font-mono text-xs",children:H.method}),H.endpoint&&g(Me,{variant:"secondary",className:"font-mono text-xs",children:H.endpoint}),H.code!==void 0&&E(Me,{variant:"secondary",className:"font-mono text-xs",children:["code=",H.code]}),H.duration&&E(Me,{variant:"secondary",className:"font-mono text-xs",children:["duration=",H.duration]}),H.sessionId&&E(Me,{variant:"outline",className:"font-mono text-xs",children:["session=",H.sessionId]}),H.params&&typeof H.params=="object"&&g(Zt,{children:Object.entries(H.params).map(([j,Q])=>E(Me,{variant:"outline",className:"font-mono text-xs",children:[j,"=",String(Q)]},j))}),H.query&&typeof H.query=="object"&&g(Zt,{children:Object.entries(H.query).map(([j,Q])=>E(Me,{variant:"outline",className:"font-mono text-xs",children:[j,"=",String(Q)]},j))})]})]})}),L&&g(Et,{variant:"outline",size:"sm",onClick:()=>f(`/traces/${L}`),className:"text-xs font-medium",children:"Go to trace"})]}),R.stack&&E("details",{className:"mt-2",onToggle:j=>{const Q=j.currentTarget.closest("[data-index]")||void 0;Q&&y.measureElement(Q)},children:[g("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"Stack trace"}),g("pre",{className:"mt-2 text-xs bg-background p-2 rounded border overflow-auto whitespace-pre-wrap select-text",children:R.stack})]})]})]})})},M.key)})})})]})}function hE(l){const r=l+"CollectionProvider",[i,s]=Lu(r),[c,f]=i(r,{collectionRef:{current:null},itemMap:new Map}),d=M=>{const{scope:R,children:L}=M,H=wt.useRef(null),j=wt.useRef(new Map).current;return g(c,{scope:R,itemMap:j,collectionRef:H,children:L})};d.displayName=r;const m=l+"CollectionSlot",y=qf(m),p=wt.forwardRef((M,R)=>{const{scope:L,children:H}=M,j=f(m,L),Q=Tn(R,j.collectionRef);return g(y,{ref:Q,children:H})});p.displayName=m;const x=l+"CollectionItemSlot",S="data-radix-collection-item",N=qf(x),O=wt.forwardRef((M,R)=>{const{scope:L,children:H,...j}=M,Q=wt.useRef(null),B=Tn(R,Q),k=f(x,L);return wt.useEffect(()=>(k.itemMap.set(Q,{ref:Q,...j}),()=>void k.itemMap.delete(Q))),g(N,{[S]:"",ref:B,children:H})});O.displayName=x;function Y(M){const R=f(l+"CollectionConsumer",M);return wt.useCallback(()=>{const H=R.collectionRef.current;if(!H)return[];const j=Array.from(H.querySelectorAll(`[${S}]`));return Array.from(R.itemMap.values()).sort((k,K)=>j.indexOf(k.ref.current)-j.indexOf(K.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:d,Slot:p,ItemSlot:O},Y,s]}var mE=Sy[" useId ".trim().toString()]||(()=>{}),gE=0;function Gv(l){const[r,i]=v.useState(mE());return ji(()=>{i(s=>s??String(gE++))},[l]),r?`radix-${r}`:""}var pE=Sy[" useInsertionEffect ".trim().toString()]||ji;function Yv({prop:l,defaultProp:r,onChange:i=()=>{},caller:s}){const[c,f,d]=yE({defaultProp:r,onChange:i}),m=l!==void 0,y=m?l:c;{const x=v.useRef(l!==void 0);v.useEffect(()=>{const S=x.current;S!==m&&console.warn(`${s} is changing from ${S?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,s])}const p=v.useCallback(x=>{var S;if(m){const N=vE(x)?x(l):x;N!==l&&((S=d.current)==null||S.call(d,N))}else f(x)},[m,l,f,d]);return[y,p]}function yE({defaultProp:l,onChange:r}){const[i,s]=v.useState(l),c=v.useRef(i),f=v.useRef(r);return pE(()=>{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 vE(l){return typeof l=="function"}var bf="rovingFocusGroup.onEntryFocus",bE={bubbles:!1,cancelable:!0},Zi="RovingFocusGroup",[Hf,Vv,xE]=hE(Zi),[SE,Xv]=Lu(Zi,[xE]),[NE,wE]=SE(Zi),Kv=v.forwardRef((l,r)=>g(Hf.Provider,{scope:l.__scopeRovingFocusGroup,children:g(Hf.Slot,{scope:l.__scopeRovingFocusGroup,children:g(EE,{...l,ref:r})})}));Kv.displayName=Zi;var EE=v.forwardRef((l,r)=>{const{__scopeRovingFocusGroup:i,orientation:s,loop:c=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...S}=l,N=v.useRef(null),O=Tn(r,N),Y=sd(f),[M,R]=Yv({prop:d,defaultProp:m??null,onChange:y,caller:Zi}),[L,H]=v.useState(!1),j=Ol(p),Q=Vv(i),B=v.useRef(!1),[k,K]=v.useState(0);return v.useEffect(()=>{const W=N.current;if(W)return W.addEventListener(bf,j),()=>W.removeEventListener(bf,j)},[j]),g(NE,{scope:i,orientation:s,dir:Y,loop:c,currentTabStopId:M,onItemFocus:v.useCallback(W=>R(W),[R]),onItemShiftTab:v.useCallback(()=>H(!0),[]),onFocusableItemAdd:v.useCallback(()=>K(W=>W+1),[]),onFocusableItemRemove:v.useCallback(()=>K(W=>W-1),[]),children:g(Jt.div,{tabIndex:L||k===0?-1:0,"data-orientation":s,...S,ref:O,style:{outline:"none",...l.style},onMouseDown:pt(l.onMouseDown,()=>{B.current=!0}),onFocus:pt(l.onFocus,W=>{const P=!B.current;if(W.target===W.currentTarget&&P&&!L){const F=new CustomEvent(bf,bE);if(W.currentTarget.dispatchEvent(F),!F.defaultPrevented){const oe=Q().filter(D=>D.focusable),ie=oe.find(D=>D.active),qe=oe.find(D=>D.id===M),le=[ie,qe,...oe].filter(Boolean).map(D=>D.ref.current);Fv(le,x)}}B.current=!1}),onBlur:pt(l.onBlur,()=>H(!1))})})}),Zv="RovingFocusGroupItem",Jv=v.forwardRef((l,r)=>{const{__scopeRovingFocusGroup:i,focusable:s=!0,active:c=!1,tabStopId:f,children:d,...m}=l,y=Gv(),p=f||y,x=wE(Zv,i),S=x.currentTabStopId===p,N=Vv(i),{onFocusableItemAdd:O,onFocusableItemRemove:Y,currentTabStopId:M}=x;return v.useEffect(()=>{if(s)return O(),()=>Y()},[s,O,Y]),g(Hf.ItemSlot,{scope:i,id:p,focusable:s,active:c,children:g(Jt.span,{tabIndex:S?0:-1,"data-orientation":x.orientation,...m,ref:r,onMouseDown:pt(l.onMouseDown,R=>{s?x.onItemFocus(p):R.preventDefault()}),onFocus:pt(l.onFocus,()=>x.onItemFocus(p)),onKeyDown:pt(l.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){x.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const L=AE(R,x.orientation,x.dir);if(L!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let j=N().filter(Q=>Q.focusable).map(Q=>Q.ref.current);if(L==="last")j.reverse();else if(L==="prev"||L==="next"){L==="prev"&&j.reverse();const Q=j.indexOf(R.currentTarget);j=x.loop?RE(j,Q+1):j.slice(Q+1)}setTimeout(()=>Fv(j))}}),children:typeof d=="function"?d({isCurrentTabStop:S,hasTabStop:M!=null}):d})})});Jv.displayName=Zv;var TE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CE(l,r){return r!=="rtl"?l:l==="ArrowLeft"?"ArrowRight":l==="ArrowRight"?"ArrowLeft":l}function AE(l,r,i){const s=CE(l.key,i);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return TE[s]}function Fv(l,r=!1){const i=document.activeElement;for(const s of l)if(s===i||(s.focus({preventScroll:r}),document.activeElement!==i))return}function RE(l,r){return l.map((i,s)=>l[(r+s)%l.length])}var OE=Kv,ME=Jv,Hu="Tabs",[zE]=Lu(Hu,[Xv]),$v=Xv(),[DE,hd]=zE(Hu),Wv=v.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,onValueChange:c,defaultValue:f,orientation:d="horizontal",dir:m,activationMode:y="automatic",...p}=l,x=sd(m),[S,N]=Yv({prop:s,onChange:c,defaultProp:f??"",caller:Hu});return g(DE,{scope:i,baseId:Gv(),value:S,onValueChange:N,orientation:d,dir:x,activationMode:y,children:g(Jt.div,{dir:x,"data-orientation":d,...p,ref:r})})});Wv.displayName=Hu;var Pv="TabsList",Iv=v.forwardRef((l,r)=>{const{__scopeTabs:i,loop:s=!0,...c}=l,f=hd(Pv,i),d=$v(i);return g(OE,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:s,children:g(Jt.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:r})})});Iv.displayName=Pv;var e0="TabsTrigger",t0=v.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,disabled:c=!1,...f}=l,d=hd(e0,i),m=$v(i),y=a0(d.baseId,s),p=r0(d.baseId,s),x=s===d.value;return g(ME,{asChild:!0,...m,focusable:!c,active:x,children:g(Jt.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...f,ref:r,onMouseDown:pt(l.onMouseDown,S=>{!c&&S.button===0&&S.ctrlKey===!1?d.onValueChange(s):S.preventDefault()}),onKeyDown:pt(l.onKeyDown,S=>{[" ","Enter"].includes(S.key)&&d.onValueChange(s)}),onFocus:pt(l.onFocus,()=>{const S=d.activationMode!=="manual";!x&&!c&&S&&d.onValueChange(s)})})})});t0.displayName=e0;var n0="TabsContent",l0=v.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,forceMount:c,children:f,...d}=l,m=hd(n0,i),y=a0(m.baseId,s),p=r0(m.baseId,s),x=s===m.value,S=v.useRef(x);return v.useEffect(()=>{const N=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(N)},[]),g(Rr,{present:c||x,children:({present:N})=>g(Jt.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":y,hidden:!N,id:p,tabIndex:0,...d,ref:r,style:{...l.style,animationDuration:S.current?"0s":void 0},children:N&&f})})});l0.displayName=n0;function a0(l,r){return`${l}-trigger-${r}`}function r0(l,r){return`${l}-content-${r}`}var _E=Wv,i0=Iv,s0=t0,u0=l0;const UE=_E,o0=v.forwardRef(({className:l,...r},i)=>g(i0,{ref:i,className:mt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",l),...r}));o0.displayName=i0.displayName;const Bf=v.forwardRef(({className:l,...r},i)=>g(s0,{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}));Bf.displayName=s0.displayName;const kf=v.forwardRef(({className:l,...r},i)=>g(u0,{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}));kf.displayName=u0.displayName;function LE(){const{data:l=[],isLoading:r}=T2(),{data:i=[],isLoading:s}=C2(),c=r||s,f=m=>m?new Date(m).toLocaleString():"Never",d=(m,y)=>m===0?0:Math.round((m-y)/m*100);return c?g("div",{className:"flex items-center justify-center h-96",children:E("div",{className:"text-center",children:[g("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),g("p",{className:"text-gray-600",children:"Loading events and cron jobs..."})]})}):E("div",{className:"space-y-6",children:[E("div",{children:[g("h1",{className:"text-3xl font-bold text-gray-900",children:"Events & Cron Jobs"}),g("p",{className:"text-gray-600 mt-2",children:"Monitor your event-driven architecture and scheduled tasks"})]}),E(UE,{defaultValue:"events",className:"w-full",children:[E(o0,{className:"grid w-full grid-cols-2",children:[E(Bf,{value:"events",children:[g(Cr,{className:"w-4 h-4 mr-2"}),"Events (",l.length,")"]}),E(Bf,{value:"crons",children:[g(Du,{className:"w-4 h-4 mr-2"}),"Cron Jobs (",i.length,")"]})]}),g(kf,{value:"events",className:"space-y-4",children:l.length===0?g(dt,{children:g(ht,{className:"pt-6",children:g("p",{className:"text-gray-500 text-center",children:"No events registered yet"})})}):l.map(m=>E(dt,{className:"hover:shadow-md transition-shadow",children:[g(Tt,{className:"pb-3",children:E("div",{className:"flex items-start justify-between",children:[E("div",{className:"flex items-start gap-3 flex-1",children:[g("div",{className:"text-2xl mt-1",children:m.icon||"📡"}),E("div",{className:"flex-1",children:[g(Lt,{className:"text-lg",children:m.name}),m.description&&g("p",{className:"text-sm text-gray-600 mt-1",children:m.description})]})]}),E("div",{className:"text-right",children:[g("div",{className:"text-2xl font-bold text-primary",children:m.totalCount}),g("p",{className:"text-xs text-gray-500",children:"total events"})]})]})}),E(ht,{className:"space-y-3",children:[E("div",{className:"grid grid-cols-2 gap-4",children:[E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Handlers"}),g("p",{className:"text-lg font-semibold",children:m.handlers})]}),E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),E("div",{className:"flex items-center gap-2",children:[g("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:g("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${d(m.totalCount,m.failedCount)}%`}})}),E("span",{className:"text-lg font-semibold",children:[d(m.totalCount,m.failedCount),"%"]})]})]})]}),E("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Last Triggered"}),g("p",{className:"text-sm",children:f(m.lastTriggered)})]}),E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Events"}),g("div",{className:"flex items-center gap-2",children:m.failedCount>0?E(Zt,{children:[g(Ui,{className:"w-4 h-4 text-red-500"}),g("span",{className:"text-sm font-semibold text-red-600",children:m.failedCount})]}):E(Zt,{children:[g(Qp,{className:"w-4 h-4 text-green-500"}),g("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),m.tags&&m.tags.length>0&&E("div",{className:"pt-2 border-t",children:[g("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),g("div",{className:"flex flex-wrap gap-2",children:m.tags.map(y=>E(Me,{variant:"secondary",className:"text-xs",children:[g(Vp,{className:"w-3 h-3 mr-1"}),y]},y))})]})]})]},m.name))}),g(kf,{value:"crons",className:"space-y-4",children:i.length===0?g(dt,{children:g(ht,{className:"pt-6",children:g("p",{className:"text-gray-500 text-center",children:"No cron jobs scheduled"})})}):i.map(m=>E(dt,{className:"hover:shadow-md transition-shadow",children:[g(Tt,{className:"pb-3",children:E("div",{className:"flex items-start justify-between",children:[E("div",{className:"flex items-start gap-3 flex-1",children:[g("div",{className:"text-2xl mt-1",children:m.icon||"⏰"}),E("div",{className:"flex-1",children:[g(Lt,{className:"text-lg",children:m.name}),m.description&&g("p",{className:"text-sm text-gray-600 mt-1",children:m.description}),E("div",{className:"mt-2 flex items-center gap-2",children:[g(i2,{className:"w-4 h-4 text-gray-500"}),g("code",{className:"text-xs bg-gray-100 px-2 py-1 rounded font-mono",children:m.schedule})]})]})]}),E("div",{className:"text-right",children:[g("div",{className:"text-2xl font-bold text-primary",children:m.totalRuns}),g("p",{className:"text-xs text-gray-500",children:"total runs"})]})]})}),E(ht,{className:"space-y-3",children:[E("div",{className:"grid grid-cols-2 gap-4",children:[E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),E("div",{className:"flex items-center gap-2",children:[g("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:g("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${d(m.totalRuns,m.failedRuns)}%`}})}),E("span",{className:"text-lg font-semibold",children:[d(m.totalRuns,m.failedRuns),"%"]})]})]}),E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Runs"}),g("div",{className:"flex items-center gap-2",children:m.failedRuns>0?E(Zt,{children:[g(Ui,{className:"w-4 h-4 text-red-500"}),g("span",{className:"text-sm font-semibold text-red-600",children:m.failedRuns})]}):E(Zt,{children:[g(Qp,{className:"w-4 h-4 text-green-500"}),g("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),E("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Last Run"}),g("p",{className:"text-sm",children:f(m.lastRun)})]}),E("div",{children:[g("p",{className:"text-xs text-gray-500 mb-1",children:"Next Run"}),g("p",{className:"text-sm",children:f(m.nextRun)})]})]}),m.tags&&m.tags.length>0&&E("div",{className:"pt-2 border-t",children:[g("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),g("div",{className:"flex flex-wrap gap-2",children:m.tags.map(y=>E(Me,{variant:"secondary",className:"text-xs",children:[g(Vp,{className:"w-3 h-3 mr-1"}),y]},y))})]})]})]},m.name))})]})]})}function jE(){var H,j,Q;const{data:l}=ld(),{data:r=[]}=E2(),i=Vi(),[s,c]=v.useState(null),[f,d]=v.useState(new Set),m=(H=l==null?void 0:l.metadata)==null?void 0:H.integrations,y=B=>{const k=new Set(f);k.has(B)?k.delete(B):k.add(B),d(k)},p=(B,k,K)=>{c({service:B,method:k,path:K})},x=()=>{s&&i(`/api-explorer?method=${s.method}&path=${s.path}`)},S=r.reduce((B,k)=>B+k.routes.length,0),N=s?(j=r.find(B=>B.name===s.service))==null?void 0:j.routes.find(B=>B.method===s.method&&B.path===s.path):null,O=B=>{const k=B==null?void 0:B.match(/:(\w+)/g);return k?k.map(K=>K.slice(1)):[]},Y=B=>{switch(B){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"}},M=B=>B.includes("database")||B.includes("postgres")||B.includes("mysql")?g(nd,{className:"w-4 h-4"}):g(Yp,{className:"w-4 h-4"}),R=B=>{try{const k=new URL(B);return k.password&&(k.password="***"),k.toString()}catch{return B}},L=O(s==null?void 0:s.path);return E("div",{className:"h-full flex bg-background",children:[E("div",{className:"w-80 border-r bg-muted flex flex-col",children:[g("div",{className:"px-4 py-3 border-b bg-background",children:E("div",{className:"flex items-center justify-between",children:[g("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Services"}),g(Me,{variant:"secondary",className:"text-xs",children:r.length})]})}),g(qi,{className:"flex-1",children:g("div",{className:"p-3",children:r.length===0?E("div",{className:"text-center text-sm text-muted-foreground py-12",children:[g(Yp,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),g("p",{className:"text-sm",children:"No services discovered yet"})]}):g("div",{className:"space-y-2",children:r.map(B=>E("div",{children:[E("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(B.name),children:[f.has(B.name)?g(Wy,{className:"w-4 h-4 flex-shrink-0"}):g(Py,{className:"w-4 h-4 flex-shrink-0"}),g("span",{className:"font-medium",children:B.name}),g("span",{className:"text-xs text-gray-500 ml-auto",children:B.routes.length})]}),f.has(B.name)&&g("div",{className:"ml-6 mt-1 space-y-0.5",children:B.routes.map((k,K)=>E("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)===B.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:()=>p(B.name,k.method,k.path),children:[g(Me,{className:`text-[10px] font-mono w-12 flex items-center justify-center px-1.5 py-0 ${Y(k.method)}`,children:k.method}),g("span",{className:"font-mono text-xs truncate",children:k.path})]},`${k.method}-${k.path}-${K}`))})]},B.name))})})})]}),g(qi,{className:"flex-1",children:E("div",{className:"p-6",children:[g("h1",{className:"text-lg font-semibold mb-6",children:"Service Catalog"}),E(dt,{className:"mb-6",children:[g(Tt,{children:E(Lt,{className:"flex items-center gap-2 text-base font-semibold",children:[g(l2,{className:"w-5 h-5"}),(l==null?void 0:l.name)||"Unknown Service"]})}),E(ht,{children:[E("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Version"}),g("p",{className:"text-sm font-medium",children:(l==null?void 0:l.version)||"N/A"})]}),E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Framework"}),g("p",{className:"text-sm font-medium",children:((Q=l==null?void 0:l.metadata)==null?void 0:Q.framework)||"N/A"})]}),E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),g(Me,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600":"",children:l!=null&&l.running?"Running":"Stopped"})]}),E("div",{children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Endpoints"}),g("p",{className:"text-sm font-medium",children:S})]})]}),(l==null?void 0:l.description)&&E("div",{className:"mt-4 pt-4 border-t",children:[g("p",{className:"text-xs text-muted-foreground mb-1",children:"Description"}),g("p",{className:"text-sm",children:l.description})]})]})]}),m&&Object.keys(m).length>0&&E(dt,{className:"mb-6",children:[g(Tt,{children:g(Lt,{className:"text-base font-semibold",children:"Integrations"})}),g(ht,{children:g("div",{className:"space-y-3",children:Object.entries(m).map(([B,k])=>E("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[g("div",{className:"mt-0.5",children:M(B)}),E("div",{className:"flex-1 min-w-0",children:[g("p",{className:"text-sm font-medium capitalize",children:B}),g("p",{className:"text-xs text-muted-foreground font-mono truncate",title:k,children:R(k)})]})]},B))})})]}),s&&E(dt,{children:[g(Tt,{className:"border-b",children:E("div",{className:"flex items-center justify-between",children:[E("div",{className:"flex items-center gap-3",children:[g(Me,{className:`text-xs font-mono ${Y(s.method)}`,children:s.method}),E("div",{children:[g("div",{className:"font-mono text-lg font-semibold",children:s.path}),E("div",{className:"text-sm text-muted-foreground mt-0.5",children:[s.service," service"]})]})]}),E(Et,{onClick:x,className:"bg-blue-600 hover:bg-blue-700 text-white text-xs",size:"sm",children:[g(ev,{className:"w-4 h-4 mr-2"}),"Test in API Explorer"]})]})}),g(ht,{className:"pt-6",children:E("div",{className:"space-y-6",children:[L.length>0?E("div",{children:[g("h3",{className:"text-sm font-semibold mb-3",children:"Path Parameters"}),g("div",{className:"space-y-2",children:L.map(B=>E("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[g("code",{className:"text-sm font-mono font-semibold text-primary",children:B}),g("span",{className:"text-xs text-muted-foreground mt-0.5",children:"string"})]},B))})]}):null,s.method==="GET"&&E("div",{children:[g("h3",{className:"text-sm font-semibold mb-3",children:"Query Parameters"}),g("div",{className:"p-4 bg-muted rounded-lg border",children:g("p",{className:"text-sm text-muted-foreground",children:"Optional query parameters can be added in API Explorer"})})]}),["POST","PUT","PATCH"].includes(s.method)&&E("div",{children:[g("h3",{className:"text-sm font-semibold mb-3",children:"Request Body Schema"}),N!=null&&N.requestBody?E("div",{className:"space-y-3",children:[g("div",{className:"space-y-2",children:N.requestBody.fields.map(B=>g("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:E("div",{className:"flex-1",children:[E("div",{className:"flex items-center gap-2",children:[g("code",{className:"text-sm font-mono font-semibold",children:B.name}),g(Me,{variant:"outline",className:"text-xs",children:B.type}),B.required&&g(Me,{variant:"destructive",className:"text-xs",children:"required"})]}),B.description&&g("p",{className:"text-xs text-muted-foreground mt-1",children:B.description})]})},B.name))}),g("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]}):g("div",{className:"p-4 bg-muted rounded-lg border",children:g("p",{className:"text-sm text-muted-foreground",children:"No schema defined. Configure request body in API Explorer"})})]}),(N==null?void 0:N.responseBody)&&E("div",{children:[g("h3",{className:"text-sm font-semibold mb-3",children:"Response Body Schema"}),E("div",{className:"space-y-3",children:[g("div",{className:"space-y-2",children:N.responseBody.fields.map(B=>g("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:E("div",{className:"flex-1",children:[E("div",{className:"flex items-center gap-2",children:[g("code",{className:"text-sm font-mono font-semibold",children:B.name}),g(Me,{variant:"outline",className:"text-xs",children:B.type}),B.required&&g(Me,{variant:"secondary",className:"text-xs",children:"always present"})]}),B.description&&g("p",{className:"text-xs text-muted-foreground mt-1",children:B.description})]})},B.name))}),g("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]})]}),(N==null?void 0:N.handler)&&N.handler!=="anonymous"&&E("div",{children:[g("h3",{className:"text-sm font-semibold mb-3",children:"Handler"}),g("code",{className:"text-sm bg-muted px-3 py-1.5 rounded border inline-block",children:N.handler})]})]})})]})]})})]})}const qE=ad("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"}}),c0=v.forwardRef(({className:l,variant:r,...i},s)=>g("div",{ref:s,role:"alert",className:mt(qE({variant:r}),l),...i}));c0.displayName="Alert";const HE=v.forwardRef(({className:l,...r},i)=>g("h5",{ref:i,className:mt("mb-1 font-medium leading-none tracking-tight",l),...r}));HE.displayName="AlertTitle";const f0=v.forwardRef(({className:l,...r},i)=>g("div",{ref:i,className:mt("text-sm [&_p]:leading-relaxed",l),...r}));f0.displayName="AlertDescription";function BE(){var s,c,f;const{data:l}=ld(),r=(s=l==null?void 0:l.metadata)==null?void 0:s.drizzle;if(!(r!=null&&r.detected))return g("div",{className:"h-full flex items-center justify-center bg-muted p-6",children:E(dt,{className:"max-w-lg",children:[g(Tt,{children:E(Lt,{className:"flex items-center gap-2 text-base",children:[g(Ui,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-500"}),"No Database Detected"]})}),E(ht,{className:"space-y-4",children:[g("p",{className:"text-sm text-muted-foreground",children:"Vision couldn't detect a Drizzle configuration file."}),E("div",{className:"space-y-3",children:[g("p",{className:"text-sm font-medium",children:"To enable database features:"}),E("ol",{className:"list-decimal list-inside space-y-2 text-sm text-muted-foreground",children:[E("li",{children:["Create ",g("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono border",children:"drizzle.config.ts"})]}),g("li",{children:"Enable auto-start in Vision config:"})]}),g("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 E("div",{className:"h-full flex flex-col bg-background",children:[g("div",{className:"border-b px-6 py-4 bg-muted",children:E("div",{className:"flex items-center justify-between",children:[E("div",{className:"flex items-center gap-3",children:[g(nd,{className:"w-5 h-5 text-blue-600 dark:text-blue-500"}),E("div",{className:"flex items-center gap-3",children:[g("h1",{className:"text-lg font-semibold",children:"Drizzle Studio"}),E("div",{className:"flex items-center gap-2 mt-1",children:[g(Me,{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"}),g("span",{className:"text-xs text-muted-foreground",children:r.autoStarted?"Auto-started":"Manual start required"})]})]})]}),g("div",{className:"flex items-center gap-2",children:i&&E(Et,{variant:"outline",size:"sm",onClick:()=>window.open(i,"_blank"),children:[g(ev,{className:"w-4 h-4 mr-2"}),g("span",{className:"text-sm font-medium",children:"Open in New Tab"})]})})]})}),!r.autoStarted&&g("div",{className:"p-6",children:E(c0,{className:"border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-950",children:[g(Ui,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-500"}),g(f0,{children:E("div",{className:"space-y-3",children:[g("p",{className:"text-sm font-medium",children:"Drizzle Studio is not running"}),g("p",{className:"text-sm text-muted-foreground",children:"Start Drizzle Studio manually or enable auto-start:"}),g("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&&g("div",{className:"flex-1 relative",children:g("iframe",{src:i,className:"absolute inset-0 w-full h-full border-0",title:"Drizzle Studio",allow:"cross-origin-isolated"})})]})}function kE({toasts:l,removeToast:r}){return g("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none",children:l.map(i=>g(QE,{toast:i,onClose:()=>r(i.id)},i.id))})}function QE({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 E("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:[g("span",{className:"flex-1 text-sm",children:l.message}),g("button",{onClick:()=>{s(!0),setTimeout(r,300)},className:"text-white/80 hover:text-white transition-colors","aria-label":"Close",children:g(g2,{className:"w-4 h-4"})})]})}const GE=new px;function YE({children:l}){const{connected:r,error:i}=y2();return i?g("div",{className:"flex items-center justify-center h-screen",children:E("div",{className:"text-center",children:[g("h1",{className:"text-2xl font-bold text-red-600 mb-2",children:"Connection Error"}),g("p",{className:"text-gray-600",children:i.message})]})}):r?g(Zt,{children:l}):g("div",{className:"flex items-center justify-center h-screen",children:E("div",{className:"text-center",children:[g("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),g("p",{className:"text-gray-600",children:"Connecting to Vision Dashboard..."})]})})}function VE(){const{traceId:l}=Wf(),{data:r}=v2(l||"");return r?g(Iw,{trace:r}):g("div",{className:"text-gray-500",children:"Loading trace..."})}function XE(){return g(Vw,{children:g(KE,{})})}function KE(){const{toasts:l,removeToast:r}=dd();return E(Zt,{children:[g(VS,{children:g(YE,{children:g(SS,{children:E(Sn,{path:"/",element:g(gN,{}),children:[g(Sn,{index:!0,element:g(bS,{to:"/api-explorer",replace:!0})}),g(Sn,{path:"api-explorer",element:g(Xw,{})}),g(Sn,{path:"traces",element:g(Ww,{}),children:g(Sn,{path:":traceId",element:g(VE,{})})}),g(Sn,{path:"logs",element:g(dE,{})}),g(Sn,{path:"events",element:g(LE,{})}),g(Sn,{path:"services",element:g(jE,{})}),g(Sn,{path:"database",element:g(BE,{})})]})})})}),g(kE,{toasts:l,removeToast:r})]})}Z1.createRoot(document.getElementById("app")).render(g(wt.StrictMode,{children:g(yx,{client:GE,children:g(XE,{})})}));
|