lens-engine 0.1.0
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/cli.js +4411 -0
- package/daemon.js +36037 -0
- package/dashboard/assets/index-DBbhNVGs.css +1 -0
- package/dashboard/assets/index-OZDKUmhI.js +232 -0
- package/dashboard/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dashboard/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dashboard/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dashboard/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dashboard/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dashboard/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dashboard/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dashboard/index.html +13 -0
- package/package.json +22 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
var kg=a=>{throw TypeError(a)};var Cf=(a,s,i)=>s.has(a)||kg("Cannot "+i);var w=(a,s,i)=>(Cf(a,s,"read from private field"),i?i.call(a):s.get(a)),ue=(a,s,i)=>s.has(a)?kg("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,i),ne=(a,s,i,r)=>(Cf(a,s,"write to private field"),r?r.call(a,i):s.set(a,i),i),_e=(a,s,i)=>(Cf(a,s,"access private method"),i);var zo=(a,s,i,r)=>({set _(u){ne(a,s,u,i)},get _(){return w(a,s,r)}});function z0(a,s){for(var i=0;i<s.length;i++){const r=s[i];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in a)){const f=Object.getOwnPropertyDescriptor(r,u);f&&Object.defineProperty(a,u,f.get?f:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();function D0(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ef={exports:{}},Qi={};/**
|
|
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 Ug;function L0(){if(Ug)return Qi;Ug=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(r,u,f){var m=null;if(f!==void 0&&(m=""+f),u.key!==void 0&&(m=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:a,type:r,key:m,ref:u!==void 0?u:null,props:f}}return Qi.Fragment=s,Qi.jsx=i,Qi.jsxs=i,Qi}var Bg;function k0(){return Bg||(Bg=1,Ef.exports=L0()),Ef.exports}var d=k0(),Tf={exports:{}},be={};/**
|
|
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 qg;function U0(){if(qg)return be;qg=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function _(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,M={};function z(C,X,$){this.props=C,this.context=X,this.refs=M,this.updater=$||R}z.prototype.isReactComponent={},z.prototype.setState=function(C,X){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,X,"setState")},z.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function B(){}B.prototype=z.prototype;function P(C,X,$){this.props=C,this.context=X,this.refs=M,this.updater=$||R}var T=P.prototype=new B;T.constructor=P,j(T,z.prototype),T.isPureReactComponent=!0;var J=Array.isArray;function te(){}var V={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function W(C,X,$){var ee=$.ref;return{$$typeof:a,type:C,key:X,ref:ee!==void 0?ee:null,props:$}}function G(C,X){return W(C.type,X,C.props)}function I(C){return typeof C=="object"&&C!==null&&C.$$typeof===a}function oe(C){var X={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function($){return X[$]})}var pe=/\/+/g;function ge(C,X){return typeof C=="object"&&C!==null&&C.key!=null?oe(""+C.key):X.toString(36)}function ie(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(te,te):(C.status="pending",C.then(function(X){C.status==="pending"&&(C.status="fulfilled",C.value=X)},function(X){C.status==="pending"&&(C.status="rejected",C.reason=X)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function A(C,X,$,ee,he){var ve=typeof C;(ve==="undefined"||ve==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(ve){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case a:case s:ce=!0;break;case v:return ce=C._init,A(ce(C._payload),X,$,ee,he)}}if(ce)return he=he(C),ce=ee===""?"."+ge(C,0):ee,J(he)?($="",ce!=null&&($=ce.replace(pe,"$&/")+"/"),A(he,X,$,"",function(_t){return _t})):he!=null&&(I(he)&&(he=G(he,$+(he.key==null||C&&C.key===he.key?"":(""+he.key).replace(pe,"$&/")+"/")+ce)),X.push(he)),1;ce=0;var Ze=ee===""?".":ee+":";if(J(C))for(var ze=0;ze<C.length;ze++)ee=C[ze],ve=Ze+ge(ee,ze),ce+=A(ee,X,$,ve,he);else if(ze=_(C),typeof ze=="function")for(C=ze.call(C),ze=0;!(ee=C.next()).done;)ee=ee.value,ve=Ze+ge(ee,ze++),ce+=A(ee,X,$,ve,he);else if(ve==="object"){if(typeof C.then=="function")return A(ie(C),X,$,ee,he);throw X=String(C),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ce}function F(C,X,$){if(C==null)return C;var ee=[],he=0;return A(C,ee,"","",function(ve){return X.call($,ve,he++)}),ee}function Y(C){if(C._status===-1){var X=C._result;X=X(),X.then(function($){(C._status===0||C._status===-1)&&(C._status=1,C._result=$)},function($){(C._status===0||C._status===-1)&&(C._status=2,C._result=$)}),C._status===-1&&(C._status=0,C._result=X)}if(C._status===1)return C._result.default;throw C._result}var me=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},ye={map:F,forEach:function(C,X,$){F(C,function(){X.apply(this,arguments)},$)},count:function(C){var X=0;return F(C,function(){X++}),X},toArray:function(C){return F(C,function(X){return X})||[]},only:function(C){if(!I(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return be.Activity=b,be.Children=ye,be.Component=z,be.Fragment=i,be.Profiler=u,be.PureComponent=P,be.StrictMode=r,be.Suspense=g,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,be.__COMPILER_RUNTIME={__proto__:null,c:function(C){return V.H.useMemoCache(C)}},be.cache=function(C){return function(){return C.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(C,X,$){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ee=j({},C.props),he=C.key;if(X!=null)for(ve in X.key!==void 0&&(he=""+X.key),X)!H.call(X,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&X.ref===void 0||(ee[ve]=X[ve]);var ve=arguments.length-2;if(ve===1)ee.children=$;else if(1<ve){for(var ce=Array(ve),Ze=0;Ze<ve;Ze++)ce[Ze]=arguments[Ze+2];ee.children=ce}return W(C.type,he,ee)},be.createContext=function(C){return C={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:f,_context:C},C},be.createElement=function(C,X,$){var ee,he={},ve=null;if(X!=null)for(ee in X.key!==void 0&&(ve=""+X.key),X)H.call(X,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(he[ee]=X[ee]);var ce=arguments.length-2;if(ce===1)he.children=$;else if(1<ce){for(var Ze=Array(ce),ze=0;ze<ce;ze++)Ze[ze]=arguments[ze+2];he.children=Ze}if(C&&C.defaultProps)for(ee in ce=C.defaultProps,ce)he[ee]===void 0&&(he[ee]=ce[ee]);return W(C,ve,he)},be.createRef=function(){return{current:null}},be.forwardRef=function(C){return{$$typeof:p,render:C}},be.isValidElement=I,be.lazy=function(C){return{$$typeof:v,_payload:{_status:-1,_result:C},_init:Y}},be.memo=function(C,X){return{$$typeof:y,type:C,compare:X===void 0?null:X}},be.startTransition=function(C){var X=V.T,$={};V.T=$;try{var ee=C(),he=V.S;he!==null&&he($,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(te,me)}catch(ve){me(ve)}finally{X!==null&&$.types!==null&&(X.types=$.types),V.T=X}},be.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},be.use=function(C){return V.H.use(C)},be.useActionState=function(C,X,$){return V.H.useActionState(C,X,$)},be.useCallback=function(C,X){return V.H.useCallback(C,X)},be.useContext=function(C){return V.H.useContext(C)},be.useDebugValue=function(){},be.useDeferredValue=function(C,X){return V.H.useDeferredValue(C,X)},be.useEffect=function(C,X){return V.H.useEffect(C,X)},be.useEffectEvent=function(C){return V.H.useEffectEvent(C)},be.useId=function(){return V.H.useId()},be.useImperativeHandle=function(C,X,$){return V.H.useImperativeHandle(C,X,$)},be.useInsertionEffect=function(C,X){return V.H.useInsertionEffect(C,X)},be.useLayoutEffect=function(C,X){return V.H.useLayoutEffect(C,X)},be.useMemo=function(C,X){return V.H.useMemo(C,X)},be.useOptimistic=function(C,X){return V.H.useOptimistic(C,X)},be.useReducer=function(C,X,$){return V.H.useReducer(C,X,$)},be.useRef=function(C){return V.H.useRef(C)},be.useState=function(C){return V.H.useState(C)},be.useSyncExternalStore=function(C,X,$){return V.H.useSyncExternalStore(C,X,$)},be.useTransition=function(){return V.H.useTransition()},be.version="19.2.4",be}var Hg;function dr(){return Hg||(Hg=1,Tf.exports=U0()),Tf.exports}var U=dr();const Hs=D0(U),B0=z0({__proto__:null,default:Hs},[U]);var Mf={exports:{}},Gi={},Af={exports:{}},Of={};/**
|
|
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 Qg;function q0(){return Qg||(Qg=1,(function(a){function s(A,F){var Y=A.length;A.push(F);e:for(;0<Y;){var me=Y-1>>>1,ye=A[me];if(0<u(ye,F))A[me]=F,A[Y]=ye,Y=me;else break e}}function i(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var F=A[0],Y=A.pop();if(Y!==F){A[0]=Y;e:for(var me=0,ye=A.length,C=ye>>>1;me<C;){var X=2*(me+1)-1,$=A[X],ee=X+1,he=A[ee];if(0>u($,Y))ee<ye&&0>u(he,$)?(A[me]=he,A[ee]=Y,me=ee):(A[me]=$,A[X]=Y,me=X);else if(ee<ye&&0>u(he,Y))A[me]=he,A[ee]=Y,me=ee;else break e}}return F}function u(A,F){var Y=A.sortIndex-F.sortIndex;return Y!==0?Y:A.id-F.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();a.unstable_now=function(){return m.now()-p}}var g=[],y=[],v=1,b=null,S=3,_=!1,R=!1,j=!1,M=!1,z=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function T(A){for(var F=i(y);F!==null;){if(F.callback===null)r(y);else if(F.startTime<=A)r(y),F.sortIndex=F.expirationTime,s(g,F);else break;F=i(y)}}function J(A){if(j=!1,T(A),!R)if(i(g)!==null)R=!0,te||(te=!0,oe());else{var F=i(y);F!==null&&ie(J,F.startTime-A)}}var te=!1,V=-1,H=5,W=-1;function G(){return M?!0:!(a.unstable_now()-W<H)}function I(){if(M=!1,te){var A=a.unstable_now();W=A;var F=!0;try{e:{R=!1,j&&(j=!1,B(V),V=-1),_=!0;var Y=S;try{t:{for(T(A),b=i(g);b!==null&&!(b.expirationTime>A&&G());){var me=b.callback;if(typeof me=="function"){b.callback=null,S=b.priorityLevel;var ye=me(b.expirationTime<=A);if(A=a.unstable_now(),typeof ye=="function"){b.callback=ye,T(A),F=!0;break t}b===i(g)&&r(g),T(A)}else r(g);b=i(g)}if(b!==null)F=!0;else{var C=i(y);C!==null&&ie(J,C.startTime-A),F=!1}}break e}finally{b=null,S=Y,_=!1}F=void 0}}finally{F?oe():te=!1}}}var oe;if(typeof P=="function")oe=function(){P(I)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ge=pe.port2;pe.port1.onmessage=I,oe=function(){ge.postMessage(null)}}else oe=function(){z(I,0)};function ie(A,F){V=z(function(){A(a.unstable_now())},F)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(A){A.callback=null},a.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<A?Math.floor(1e3/A):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(A){switch(S){case 1:case 2:case 3:var F=3;break;default:F=S}var Y=S;S=F;try{return A()}finally{S=Y}},a.unstable_requestPaint=function(){M=!0},a.unstable_runWithPriority=function(A,F){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Y=S;S=A;try{return F()}finally{S=Y}},a.unstable_scheduleCallback=function(A,F,Y){var me=a.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?me+Y:me):Y=me,A){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=Y+ye,A={id:v++,callback:F,priorityLevel:A,startTime:Y,expirationTime:ye,sortIndex:-1},Y>me?(A.sortIndex=Y,s(y,A),i(g)===null&&A===i(y)&&(j?(B(V),V=-1):j=!0,ie(J,Y-me))):(A.sortIndex=ye,s(g,A),R||_||(R=!0,te||(te=!0,oe()))),A},a.unstable_shouldYield=G,a.unstable_wrapCallback=function(A){var F=S;return function(){var Y=S;S=F;try{return A.apply(this,arguments)}finally{S=Y}}}})(Of)),Of}var Gg;function H0(){return Gg||(Gg=1,Af.exports=q0()),Af.exports}var zf={exports:{}},vt={};/**
|
|
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 Vg;function Q0(){if(Vg)return vt;Vg=1;var a=dr();function s(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(s(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,y,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:g,containerInfo:y,implementation:v}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vt.createPortal=function(g,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(s(299));return f(g,y,null,v)},vt.flushSync=function(g){var y=m.T,v=r.p;try{if(m.T=null,r.p=2,g)return g()}finally{m.T=y,r.p=v,r.d.f()}},vt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(g,y))},vt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},vt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var v=y.as,b=p(v,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,_=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?r.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:_}):v==="script"&&r.d.X(g,{crossOrigin:b,integrity:S,fetchPriority:_,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},vt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=p(y.as,y.crossOrigin);r.d.M(g,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(g)},vt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,b=p(v,y.crossOrigin);r.d.L(g,v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},vt.preloadModule=function(g,y){if(typeof g=="string")if(y){var v=p(y.as,y.crossOrigin);r.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(g)},vt.requestFormReset=function(g){r.d.r(g)},vt.unstable_batchedUpdates=function(g,y){return g(y)},vt.useFormState=function(g,y,v){return m.H.useFormState(g,y,v)},vt.useFormStatus=function(){return m.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var Yg;function eb(){if(Yg)return zf.exports;Yg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),zf.exports=Q0(),zf.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 Kg;function G0(){if(Kg)return Gi;Kg=1;var a=H0(),s=dr(),i=eb();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(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 p(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 g(e){if(f(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===l)return g(o),t;c=c.sibling}throw Error(r(188))}if(n.return!==l.return)n=o,l=c;else{for(var h=!1,x=o.child;x;){if(x===n){h=!0,n=o,l=c;break}if(x===l){h=!0,l=o,n=c;break}x=x.sibling}if(!h){for(x=c.child;x;){if(x===n){h=!0,n=c,l=o;break}if(x===l){h=!0,l=c,n=o;break}x=x.sibling}if(!h)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=I&&e[I]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case z:return"Profiler";case M:return"StrictMode";case J:return"Suspense";case te:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case P:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case T:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var ie=Array.isArray,A=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},me=[],ye=-1;function C(e){return{current:e}}function X(e){0>ye||(e.current=me[ye],me[ye]=null,ye--)}function $(e,t){ye++,me[ye]=e.current,e.current=t}var ee=C(null),he=C(null),ve=C(null),ce=C(null);function Ze(e,t){switch($(ve,t),$(he,e),$(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sg(t),e=ig(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(ee),$(ee,e)}function ze(){X(ee),X(he),X(ve)}function _t(e){e.memoizedState!==null&&$(ce,e);var t=ee.current,n=ig(t,e.type);t!==n&&($(he,e),$(ee,n))}function kt(e){he.current===e&&(X(ee),X(he)),ce.current===e&&(X(ce),Ui._currentValue=Y)}var dn,Xs;function Cn(e){if(dn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);dn=t&&t[1]||"",Xs=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+dn+e+Xs}var kl=!1;function Ul(e,t){if(!e||kl)return"";kl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(q){var k=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){k=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){k=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&k&&typeof q.stack=="string")return[q.stack,k.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),h=c[0],x=c[1];if(h&&x){var N=h.split(`
|
|
44
|
+
`),L=x.split(`
|
|
45
|
+
`);for(o=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(l===N.length||o===L.length)for(l=N.length-1,o=L.length-1;1<=l&&0<=o&&N[l]!==L[o];)o--;for(;1<=l&&0<=o;l--,o--)if(N[l]!==L[o]){if(l!==1||o!==1)do if(l--,o--,0>o||N[l]!==L[o]){var Q=`
|
|
46
|
+
`+N[l].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=l&&0<=o);break}}}finally{kl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Cn(n):""}function sa(e,t){switch(e.tag){case 26:case 27:case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return e.child!==t&&t!==null?Cn("Suspense Fallback"):Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 15:return Ul(e.type,!1);case 11:return Ul(e.type.render,!1);case 1:return Ul(e.type,!0);case 31:return Cn("Activity");default:return""}}function Bl(e){try{var t="",n=null;do t+=sa(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var hn=Object.prototype.hasOwnProperty,Ps=a.unstable_scheduleCallback,Zs=a.unstable_cancelCallback,mr=a.unstable_shouldYield,dc=a.unstable_requestPaint,jt=a.unstable_now,hc=a.unstable_getCurrentPriorityLevel,Qe=a.unstable_ImmediatePriority,ft=a.unstable_UserBlockingPriority,bt=a.unstable_NormalPriority,pr=a.unstable_LowPriority,qd=a.unstable_IdlePriority,pv=a.log,gv=a.unstable_setDisableYieldValue,Fs=null,Ut=null;function ia(e){if(typeof pv=="function"&&gv(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(Fs,e)}catch{}}var Bt=Math.clz32?Math.clz32:vv,yv=Math.log,bv=Math.LN2;function vv(e){return e>>>=0,e===0?32:31-(yv(e)/bv|0)|0}var gr=256,yr=262144,br=4194304;function $a(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 vr(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=$a(l):(h&=x,h!==0?o=$a(h):n||(n=x&~e,n!==0&&(o=$a(n))))):(x=l&~c,x!==0?o=$a(x):h!==0?o=$a(h):n||(n=l&~e,n!==0&&(o=$a(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Js(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xv(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 Hd(){var e=br;return br<<=1,(br&62914560)===0&&(br=4194304),e}function mc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $s(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Sv(e,t,n,l,o,c){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 x=e.entanglements,N=e.expirationTimes,L=e.hiddenUpdates;for(n=h&~n;0<n;){var Q=31-Bt(n),Z=1<<Q;x[Q]=0,N[Q]=-1;var k=L[Q];if(k!==null)for(L[Q]=null,Q=0;Q<k.length;Q++){var q=k[Q];q!==null&&(q.lane&=-536870913)}n&=~Z}l!==0&&Qd(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Qd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Bt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Gd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Bt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Vd(e,t){var n=t&-t;return n=(n&42)!==0?1:pc(n),(n&(e.suspendedLanes|t))!==0?0:n}function pc(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 gc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yd(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Tg(e.type))}function Kd(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var ra=Math.random().toString(36).slice(2),dt="__reactFiber$"+ra,Ct="__reactProps$"+ra,ql="__reactContainer$"+ra,yc="__reactEvents$"+ra,_v="__reactListeners$"+ra,jv="__reactHandles$"+ra,Xd="__reactResources$"+ra,Ws="__reactMarker$"+ra;function bc(e){delete e[dt],delete e[Ct],delete e[yc],delete e[_v],delete e[jv]}function Hl(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ql]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hg(e);e!==null;){if(n=e[dt])return n;e=hg(e)}return t}e=n,n=e.parentNode}return null}function Ql(e){if(e=e[dt]||e[ql]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Is(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Gl(e){var t=e[Xd];return t||(t=e[Xd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[Ws]=!0}var Pd=new Set,Zd={};function Wa(e,t){Vl(e,t),Vl(e+"Capture",t)}function Vl(e,t){for(Zd[e]=t,e=0;e<t.length;e++)Pd.add(t[e])}var Nv=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]*$"),Fd={},Jd={};function Rv(e){return hn.call(Jd,e)?!0:hn.call(Fd,e)?!1:Nv.test(e)?Jd[e]=!0:(Fd[e]=!0,!1)}function xr(e,t,n){if(Rv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Sr(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 En(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wv(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vc(e){if(!e._valueTracker){var t=$d(e)?"checked":"value";e._valueTracker=wv(e,t,""+e[t])}}function Wd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=$d(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function _r(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 Cv=/[\n"\\]/g;function Jt(e){return e.replace(Cv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xc(e,t,n,l,o,c,h,x){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?Sc(e,h,Ft(t)):n!=null?Sc(e,h,Ft(n)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Ft(x):e.removeAttribute("name")}function Id(e,t,n,l,o,c,h,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){vc(e);return}n=n!=null?""+Ft(n):"",t=t!=null?""+Ft(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),vc(e)}function Sc(e,t,n){t==="number"&&_r(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Yl(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function eh(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 th(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(ie(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Ft(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),vc(e)}function Kl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ev=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 nh(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Ev.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ah(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&nh(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&nh(e,c,t[c])}function _c(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 Tv=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"]]),Mv=/^[\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 jr(e){return Mv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tn(){}var jc=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,Pl=null;function lh(e){var t=Ql(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(xc(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="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[Ct]||null;if(!o)throw Error(r(90));xc(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Wd(l)}break e;case"textarea":eh(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Yl(e,!!n.multiple,t,!1)}}}var Rc=!1;function sh(e,t,n){if(Rc)return e(t,n);Rc=!0;try{var l=e(t);return l}finally{if(Rc=!1,(Xl!==null||Pl!==null)&&(uo(),Xl&&(t=Xl,e=Pl,Pl=Xl=null,lh(t),e)))for(t=0;t<e.length;t++)lh(e[t])}}function ei(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Ct]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wc=!1;if(Mn)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){wc=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{wc=!1}var oa=null,Cc=null,Nr=null;function ih(){if(Nr)return Nr;var e,t=Cc,n=t.length,l,o="value"in oa?oa.value:oa.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(l=1;l<=h&&t[n-l]===o[c-l];l++);return Nr=o.slice(e,1<l?1-l:void 0)}function Rr(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 wr(){return!0}function rh(){return!1}function Et(e){function t(n,l,o,c,h){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?wr:rh,this.isPropagationStopped=rh,this}return b(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=wr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wr)},persist:function(){},isPersistent:wr}),t}var Ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cr=Et(Ia),ni=b({},Ia,{view:0,detail:0}),Av=Et(ni),Ec,Tc,ai,Er=b({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ai&&(ai&&e.type==="mousemove"?(Ec=e.screenX-ai.screenX,Tc=e.screenY-ai.screenY):Tc=Ec=0,ai=e),Ec)},movementY:function(e){return"movementY"in e?e.movementY:Tc}}),oh=Et(Er),Ov=b({},Er,{dataTransfer:0}),zv=Et(Ov),Dv=b({},ni,{relatedTarget:0}),Mc=Et(Dv),Lv=b({},Ia,{animationName:0,elapsedTime:0,pseudoElement:0}),kv=Et(Lv),Uv=b({},Ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bv=Et(Uv),qv=b({},Ia,{data:0}),ch=Et(qv),Hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gv[e])?!!t[e]:!1}function Ac(){return Vv}var Yv=b({},ni,{key:function(e){if(e.key){var t=Hv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(e){return e.type==="keypress"?Rr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kv=Et(Yv),Xv=b({},Er,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uh=Et(Xv),Pv=b({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),Zv=Et(Pv),Fv=b({},Ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jv=Et(Fv),$v=b({},Er,{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}),Wv=Et($v),Iv=b({},Ia,{newState:0,oldState:0}),ex=Et(Iv),tx=[9,13,27,32],Oc=Mn&&"CompositionEvent"in window,li=null;Mn&&"documentMode"in document&&(li=document.documentMode);var nx=Mn&&"TextEvent"in window&&!li,fh=Mn&&(!Oc||li&&8<li&&11>=li),dh=" ",hh=!1;function mh(e,t){switch(e){case"keyup":return tx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ph(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zl=!1;function ax(e,t){switch(e){case"compositionend":return ph(t);case"keypress":return t.which!==32?null:(hh=!0,dh);case"textInput":return e=t.data,e===dh&&hh?null:e;default:return null}}function lx(e,t){if(Zl)return e==="compositionend"||!Oc&&mh(e,t)?(e=ih(),Nr=Cc=oa=null,Zl=!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 fh&&t.locale!=="ko"?null:t.data;default:return null}}var sx={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 gh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sx[e.type]:t==="textarea"}function yh(e,t,n,l){Xl?Pl?Pl.push(l):Pl=[l]:Xl=l,t=bo(t,"onChange"),0<t.length&&(n=new Cr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var si=null,ii=null;function ix(e){Ip(e,0)}function Tr(e){var t=Is(e);if(Wd(t))return e}function bh(e,t){if(e==="change")return t}var vh=!1;if(Mn){var zc;if(Mn){var Dc="oninput"in document;if(!Dc){var xh=document.createElement("div");xh.setAttribute("oninput","return;"),Dc=typeof xh.oninput=="function"}zc=Dc}else zc=!1;vh=zc&&(!document.documentMode||9<document.documentMode)}function Sh(){si&&(si.detachEvent("onpropertychange",_h),ii=si=null)}function _h(e){if(e.propertyName==="value"&&Tr(ii)){var t=[];yh(t,ii,e,Nc(e)),sh(ix,t)}}function rx(e,t,n){e==="focusin"?(Sh(),si=t,ii=n,si.attachEvent("onpropertychange",_h)):e==="focusout"&&Sh()}function ox(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tr(ii)}function cx(e,t){if(e==="click")return Tr(t)}function ux(e,t){if(e==="input"||e==="change")return Tr(t)}function fx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:fx;function ri(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!hn.call(t,o)||!qt(e[o],t[o]))return!1}return!0}function jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nh(e,t){var n=jh(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jh(n)}}function Rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_r(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=_r(e.document)}return t}function Lc(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 dx=Mn&&"documentMode"in document&&11>=document.documentMode,Fl=null,kc=null,oi=null,Uc=!1;function Ch(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uc||Fl==null||Fl!==_r(l)||(l=Fl,"selectionStart"in l&&Lc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),oi&&ri(oi,l)||(oi=l,l=bo(kc,"onSelect"),0<l.length&&(t=new Cr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Fl)))}function el(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jl={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionrun:el("Transition","TransitionRun"),transitionstart:el("Transition","TransitionStart"),transitioncancel:el("Transition","TransitionCancel"),transitionend:el("Transition","TransitionEnd")},Bc={},Eh={};Mn&&(Eh=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function tl(e){if(Bc[e])return Bc[e];if(!Jl[e])return e;var t=Jl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Eh)return Bc[e]=t[n];return e}var Th=tl("animationend"),Mh=tl("animationiteration"),Ah=tl("animationstart"),hx=tl("transitionrun"),mx=tl("transitionstart"),px=tl("transitioncancel"),Oh=tl("transitionend"),zh=new Map,qc="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(" ");qc.push("scrollEnd");function mn(e,t){zh.set(e,t),Wa(t,[e])}var Mr=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)},$t=[],$l=0,Hc=0;function Ar(){for(var e=$l,t=Hc=$l=0;t<e;){var n=$t[t];$t[t++]=null;var l=$t[t];$t[t++]=null;var o=$t[t];$t[t++]=null;var c=$t[t];if($t[t++]=null,l!==null&&o!==null){var h=l.pending;h===null?o.next=o:(o.next=h.next,h.next=o),l.pending=o}c!==0&&Dh(n,o,c)}}function Or(e,t,n,l){$t[$l++]=e,$t[$l++]=t,$t[$l++]=n,$t[$l++]=l,Hc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Qc(e,t,n,l){return Or(e,t,n,l),zr(e)}function nl(e,t){return Or(e,null,null,t),zr(e)}function Dh(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Bt(n),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),c):null}function zr(e){if(50<Mi)throw Mi=0,Ju=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wl={};function gx(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,l){return new gx(e,t,n,l)}function Gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var n=e.alternate;return n===null?(n=Ht(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 Lh(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 Dr(e,t,n,l,o,c){var h=0;if(l=e,typeof e=="function")Gc(e)&&(h=1);else if(typeof e=="string")h=S0(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Ht(31,n,t,o),e.elementType=W,e.lanes=c,e;case j:return al(n.children,o,c,t);case M:h=8,o|=24;break;case z:return e=Ht(12,n,t,o|2),e.elementType=z,e.lanes=c,e;case J:return e=Ht(13,n,t,o),e.elementType=J,e.lanes=c,e;case te:return e=Ht(19,n,t,o),e.elementType=te,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:h=10;break e;case B:h=9;break e;case T:h=11;break e;case V:h=14;break e;case H:h=16,l=null;break e}h=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Ht(h,n,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function al(e,t,n,l){return e=Ht(7,e,l,t),e.lanes=n,e}function Vc(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function kh(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function Yc(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uh=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var n=Uh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Bl(t)},Uh.set(e,t),t)}return{value:e,source:t,stack:Bl(t)}}var Il=[],es=0,Lr=null,ci=0,It=[],en=0,ca=null,vn=1,xn="";function On(e,t){Il[es++]=ci,Il[es++]=Lr,Lr=e,ci=t}function Bh(e,t,n){It[en++]=vn,It[en++]=xn,It[en++]=ca,ca=e;var l=vn;e=xn;var o=32-Bt(l)-1;l&=~(1<<o),n+=1;var c=32-Bt(t)+o;if(30<c){var h=o-o%5;c=(l&(1<<h)-1).toString(32),l>>=h,o-=h,vn=1<<32-Bt(t)+o|n<<o|l,xn=c+e}else vn=1<<c|n<<o|l,xn=e}function Kc(e){e.return!==null&&(On(e,1),Bh(e,1,0))}function Xc(e){for(;e===Lr;)Lr=Il[--es],Il[es]=null,ci=Il[--es],Il[es]=null;for(;e===ca;)ca=It[--en],It[en]=null,xn=It[--en],It[en]=null,vn=It[--en],It[en]=null}function qh(e,t){It[en++]=vn,It[en++]=xn,It[en++]=ca,vn=t.id,xn=t.overflow,ca=e}var ht=null,Ke=null,Ee=!1,ua=null,tn=!1,Pc=Error(r(519));function fa(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ui(Wt(t,e)),Pc}function Hh(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[dt]=e,t[Ct]=l,n){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(n=0;n<Oi.length;n++)Re(Oi[n],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),Id(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),th(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||ag(t.textContent,n)?(l.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),l.onScroll!=null&&Re("scroll",t),l.onScrollEnd!=null&&Re("scrollend",t),l.onClick!=null&&(t.onclick=Tn),t=!0):t=!1,t||fa(e,!0)}function Qh(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:ht=ht.return}}function ts(e){if(e!==ht)return!1;if(!Ee)return Qh(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||df(e.type,e.memoizedProps)),n=!n),n&&Ke&&fa(e),Qh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ke=dg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ke=dg(e)}else t===27?(t=Ke,Ra(e.type)?(e=yf,yf=null,Ke=e):Ke=t):Ke=ht?an(e.stateNode.nextSibling):null;return!0}function ll(){Ke=ht=null,Ee=!1}function Zc(){var e=ua;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),ua=null),e}function ui(e){ua===null?ua=[e]:ua.push(e)}var Fc=C(null),sl=null,zn=null;function da(e,t,n){$(Fc,t._currentValue),t._currentValue=n}function Dn(e){e._currentValue=Fc.current,X(Fc)}function Jc(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function $c(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=o;for(var N=0;N<t.length;N++)if(x.context===t[N]){c.lanes|=n,x=c.alternate,x!==null&&(x.lanes|=n),Jc(c.return,n,e),l||(h=null);break e}c=x.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(r(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Jc(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function ns(e,t,n,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(r(387));if(h=h.memoizedProps,h!==null){var x=o.type;qt(o.pendingProps.value,h.value)||(e!==null?e.push(x):e=[x])}}else if(o===ce.current){if(h=o.alternate,h===null)throw Error(r(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ui):e=[Ui])}o=o.return}e!==null&&$c(t,e,n,l),t.flags|=262144}function kr(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function il(e){sl=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Gh(sl,e)}function Ur(e,t){return sl===null&&il(e),Gh(e,t)}function Gh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zn===null){if(e===null)throw Error(r(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return n}var yx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},bx=a.unstable_scheduleCallback,vx=a.unstable_NormalPriority,tt={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wc(){return{controller:new yx,data:new Map,refCount:0}}function fi(e){e.refCount--,e.refCount===0&&bx(vx,function(){e.controller.abort()})}var di=null,Ic=0,as=0,ls=null;function xx(e,t){if(di===null){var n=di=[];Ic=0,as=nf(),ls={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Ic++,t.then(Vh,Vh),t}function Vh(){if(--Ic===0&&di!==null){ls!==null&&(ls.status="fulfilled");var e=di;di=null,as=0,ls=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sx(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var Yh=A.S;A.S=function(e,t){Cp=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&xx(e,t),Yh!==null&&Yh(e,t)};var rl=C(null);function eu(){var e=rl.current;return e!==null?e:Ge.pooledCache}function Br(e,t){t===null?$(rl,rl.current):$(rl,t.pool)}function Kh(){var e=eu();return e===null?null:{parent:tt._currentValue,pool:e}}var ss=Error(r(460)),tu=Error(r(474)),qr=Error(r(542)),Hr={then:function(){}};function Xh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ph(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Tn,Tn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fh(e),e;default:if(typeof t.status=="string")t.then(Tn,Tn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fh(e),e}throw cl=t,ss}}function ol(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(cl=n,ss):n}}var cl=null;function Zh(){if(cl===null)throw Error(r(459));var e=cl;return cl=null,e}function Fh(e){if(e===ss||e===qr)throw Error(r(483))}var is=null,hi=0;function Qr(e){var t=hi;return hi+=1,is===null&&(is=[]),Ph(is,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gr(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jh(e){function t(O,E){if(e){var D=O.deletions;D===null?(O.deletions=[E],O.flags|=16):D.push(E)}}function n(O,E){if(!e)return null;for(;E!==null;)t(O,E),E=E.sibling;return null}function l(O){for(var E=new Map;O!==null;)O.key!==null?E.set(O.key,O):E.set(O.index,O),O=O.sibling;return E}function o(O,E){return O=An(O,E),O.index=0,O.sibling=null,O}function c(O,E,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<E?(O.flags|=67108866,E):D):(O.flags|=67108866,E)):(O.flags|=1048576,E)}function h(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function x(O,E,D,K){return E===null||E.tag!==6?(E=Vc(D,O.mode,K),E.return=O,E):(E=o(E,D),E.return=O,E)}function N(O,E,D,K){var fe=D.type;return fe===j?Q(O,E,D.props.children,K,D.key):E!==null&&(E.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===H&&ol(fe)===E.type)?(E=o(E,D.props),mi(E,D),E.return=O,E):(E=Dr(D.type,D.key,D.props,null,O.mode,K),mi(E,D),E.return=O,E)}function L(O,E,D,K){return E===null||E.tag!==4||E.stateNode.containerInfo!==D.containerInfo||E.stateNode.implementation!==D.implementation?(E=Yc(D,O.mode,K),E.return=O,E):(E=o(E,D.children||[]),E.return=O,E)}function Q(O,E,D,K,fe){return E===null||E.tag!==7?(E=al(D,O.mode,K,fe),E.return=O,E):(E=o(E,D),E.return=O,E)}function Z(O,E,D){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Vc(""+E,O.mode,D),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _:return D=Dr(E.type,E.key,E.props,null,O.mode,D),mi(D,E),D.return=O,D;case R:return E=Yc(E,O.mode,D),E.return=O,E;case H:return E=ol(E),Z(O,E,D)}if(ie(E)||oe(E))return E=al(E,O.mode,D,null),E.return=O,E;if(typeof E.then=="function")return Z(O,Qr(E),D);if(E.$$typeof===P)return Z(O,Ur(O,E),D);Gr(O,E)}return null}function k(O,E,D,K){var fe=E!==null?E.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return fe!==null?null:x(O,E,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case _:return D.key===fe?N(O,E,D,K):null;case R:return D.key===fe?L(O,E,D,K):null;case H:return D=ol(D),k(O,E,D,K)}if(ie(D)||oe(D))return fe!==null?null:Q(O,E,D,K,null);if(typeof D.then=="function")return k(O,E,Qr(D),K);if(D.$$typeof===P)return k(O,E,Ur(O,D),K);Gr(O,D)}return null}function q(O,E,D,K,fe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return O=O.get(D)||null,x(E,O,""+K,fe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case _:return O=O.get(K.key===null?D:K.key)||null,N(E,O,K,fe);case R:return O=O.get(K.key===null?D:K.key)||null,L(E,O,K,fe);case H:return K=ol(K),q(O,E,D,K,fe)}if(ie(K)||oe(K))return O=O.get(D)||null,Q(E,O,K,fe,null);if(typeof K.then=="function")return q(O,E,D,Qr(K),fe);if(K.$$typeof===P)return q(O,E,D,Ur(E,K),fe);Gr(E,K)}return null}function ae(O,E,D,K){for(var fe=null,Me=null,re=E,Se=E=0,Ce=null;re!==null&&Se<D.length;Se++){re.index>Se?(Ce=re,re=null):Ce=re.sibling;var Ae=k(O,re,D[Se],K);if(Ae===null){re===null&&(re=Ce);break}e&&re&&Ae.alternate===null&&t(O,re),E=c(Ae,E,Se),Me===null?fe=Ae:Me.sibling=Ae,Me=Ae,re=Ce}if(Se===D.length)return n(O,re),Ee&&On(O,Se),fe;if(re===null){for(;Se<D.length;Se++)re=Z(O,D[Se],K),re!==null&&(E=c(re,E,Se),Me===null?fe=re:Me.sibling=re,Me=re);return Ee&&On(O,Se),fe}for(re=l(re);Se<D.length;Se++)Ce=q(re,O,Se,D[Se],K),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?Se:Ce.key),E=c(Ce,E,Se),Me===null?fe=Ce:Me.sibling=Ce,Me=Ce);return e&&re.forEach(function(Ma){return t(O,Ma)}),Ee&&On(O,Se),fe}function de(O,E,D,K){if(D==null)throw Error(r(151));for(var fe=null,Me=null,re=E,Se=E=0,Ce=null,Ae=D.next();re!==null&&!Ae.done;Se++,Ae=D.next()){re.index>Se?(Ce=re,re=null):Ce=re.sibling;var Ma=k(O,re,Ae.value,K);if(Ma===null){re===null&&(re=Ce);break}e&&re&&Ma.alternate===null&&t(O,re),E=c(Ma,E,Se),Me===null?fe=Ma:Me.sibling=Ma,Me=Ma,re=Ce}if(Ae.done)return n(O,re),Ee&&On(O,Se),fe;if(re===null){for(;!Ae.done;Se++,Ae=D.next())Ae=Z(O,Ae.value,K),Ae!==null&&(E=c(Ae,E,Se),Me===null?fe=Ae:Me.sibling=Ae,Me=Ae);return Ee&&On(O,Se),fe}for(re=l(re);!Ae.done;Se++,Ae=D.next())Ae=q(re,O,Se,Ae.value,K),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?Se:Ae.key),E=c(Ae,E,Se),Me===null?fe=Ae:Me.sibling=Ae,Me=Ae);return e&&re.forEach(function(O0){return t(O,O0)}),Ee&&On(O,Se),fe}function He(O,E,D,K){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case _:e:{for(var fe=D.key;E!==null;){if(E.key===fe){if(fe=D.type,fe===j){if(E.tag===7){n(O,E.sibling),K=o(E,D.props.children),K.return=O,O=K;break e}}else if(E.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===H&&ol(fe)===E.type){n(O,E.sibling),K=o(E,D.props),mi(K,D),K.return=O,O=K;break e}n(O,E);break}else t(O,E);E=E.sibling}D.type===j?(K=al(D.props.children,O.mode,K,D.key),K.return=O,O=K):(K=Dr(D.type,D.key,D.props,null,O.mode,K),mi(K,D),K.return=O,O=K)}return h(O);case R:e:{for(fe=D.key;E!==null;){if(E.key===fe)if(E.tag===4&&E.stateNode.containerInfo===D.containerInfo&&E.stateNode.implementation===D.implementation){n(O,E.sibling),K=o(E,D.children||[]),K.return=O,O=K;break e}else{n(O,E);break}else t(O,E);E=E.sibling}K=Yc(D,O.mode,K),K.return=O,O=K}return h(O);case H:return D=ol(D),He(O,E,D,K)}if(ie(D))return ae(O,E,D,K);if(oe(D)){if(fe=oe(D),typeof fe!="function")throw Error(r(150));return D=fe.call(D),de(O,E,D,K)}if(typeof D.then=="function")return He(O,E,Qr(D),K);if(D.$$typeof===P)return He(O,E,Ur(O,D),K);Gr(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,E!==null&&E.tag===6?(n(O,E.sibling),K=o(E,D),K.return=O,O=K):(n(O,E),K=Vc(D,O.mode,K),K.return=O,O=K),h(O)):n(O,E)}return function(O,E,D,K){try{hi=0;var fe=He(O,E,D,K);return is=null,fe}catch(re){if(re===ss||re===qr)throw re;var Me=Ht(29,re,null,O.mode);return Me.lanes=K,Me.return=O,Me}finally{}}}var ul=Jh(!0),$h=Jh(!1),ha=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(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 ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pa(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Oe&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=zr(e),Dh(e,null,n),t}return Or(e,l,t,n),zr(e)}function pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Gd(e,n)}}function lu(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var su=!1;function gi(){if(su){var e=ls;if(e!==null)throw e}}function yi(e,t,n,l){su=!1;var o=e.updateQueue;ha=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var N=x,L=N.next;N.next=null,h===null?c=L:h.next=L,h=N;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==h&&(x===null?Q.firstBaseUpdate=L:x.next=L,Q.lastBaseUpdate=N))}if(c!==null){var Z=o.baseState;h=0,Q=L=N=null,x=c;do{var k=x.lane&-536870913,q=k!==x.lane;if(q?(we&k)===k:(l&k)===k){k!==0&&k===as&&(su=!0),Q!==null&&(Q=Q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ae=e,de=x;k=t;var He=n;switch(de.tag){case 1:if(ae=de.payload,typeof ae=="function"){Z=ae.call(He,Z,k);break e}Z=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=de.payload,k=typeof ae=="function"?ae.call(He,Z,k):ae,k==null)break e;Z=b({},Z,k);break e;case 2:ha=!0}}k=x.callback,k!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[k]:q.push(k))}else q={lane:k,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(L=Q=q,N=Z):Q=Q.next=q,h|=k;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;q=x,x=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);Q===null&&(N=Z),o.baseState=N,o.firstBaseUpdate=L,o.lastBaseUpdate=Q,c===null&&(o.shared.lanes=0),xa|=h,e.lanes=h,e.memoizedState=Z}}function Wh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ih(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wh(n[e],t)}var rs=C(null),Vr=C(0);function em(e,t){e=Vn,$(Vr,e),$(rs,t),Vn=e|t.baseLanes}function iu(){$(Vr,Vn),$(rs,rs.current)}function ru(){Vn=Vr.current,X(rs),X(Vr)}var Qt=C(null),nn=null;function ga(e){var t=e.alternate;$(We,We.current&1),$(Qt,e),nn===null&&(t===null||rs.current!==null||t.memoizedState!==null)&&(nn=e)}function ou(e){$(We,We.current),$(Qt,e),nn===null&&(nn=e)}function tm(e){e.tag===22?($(We,We.current),$(Qt,e),nn===null&&(nn=e)):ya()}function ya(){$(We,We.current),$(Qt,Qt.current)}function Gt(e){X(Qt),nn===e&&(nn=null),X(We)}var We=C(0);function Yr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||gf(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 Ln=0,xe=null,Be=null,nt=null,Kr=!1,os=!1,fl=!1,Xr=0,bi=0,cs=null,_x=0;function Fe(){throw Error(r(321))}function cu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function uu(e,t,n,l,o,c){return Ln=c,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Bm:Ru,fl=!1,c=n(l,o),fl=!1,os&&(c=am(t,n,l,o)),nm(e),c}function nm(e){A.H=Si;var t=Be!==null&&Be.next!==null;if(Ln=0,nt=Be=xe=null,Kr=!1,bi=0,cs=null,t)throw Error(r(300));e===null||at||(e=e.dependencies,e!==null&&kr(e)&&(at=!0))}function am(e,t,n,l){xe=e;var o=0;do{if(os&&(cs=null),bi=0,os=!1,25<=o)throw Error(r(301));if(o+=1,nt=Be=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}A.H=qm,c=t(n,l)}while(os);return c}function jx(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(xe.flags|=1024),t}function fu(){var e=Xr!==0;return Xr=0,e}function du(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function hu(e){if(Kr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kr=!1}Ln=0,nt=Be=xe=null,os=!1,bi=Xr=0,cs=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?xe.memoizedState=nt=e:nt=nt.next=e,nt}function Ie(){if(Be===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=nt===null?xe.memoizedState:nt.next;if(t!==null)nt=t,Be=e;else{if(e===null)throw xe.alternate===null?Error(r(467)):Error(r(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},nt===null?xe.memoizedState=nt=e:nt=nt.next=e}return nt}function Pr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=bi;return bi+=1,cs===null&&(cs=[]),e=Ph(cs,e,t),t=xe,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Bm:Ru),e}function Zr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===P)return mt(e)}throw Error(r(438,String(e)))}function mu(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=xe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Pr(),xe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=G;return t.index++,n}function kn(e,t){return typeof t=="function"?t(e):t}function Fr(e){var t=Ie();return pu(t,Be,e)}function pu(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var x=h=null,N=null,L=t,Q=!1;do{var Z=L.lane&-536870913;if(Z!==L.lane?(we&Z)===Z:(Ln&Z)===Z){var k=L.revertLane;if(k===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Z===as&&(Q=!0);else if((Ln&k)===k){L=L.next,k===as&&(Q=!0);continue}else Z={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(x=N=Z,h=c):N=N.next=Z,xe.lanes|=k,xa|=k;Z=L.action,fl&&n(c,Z),c=L.hasEagerState?L.eagerState:n(c,Z)}else k={lane:Z,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(x=N=k,h=c):N=N.next=k,xe.lanes|=Z,xa|=Z;L=L.next}while(L!==null&&L!==t);if(N===null?h=c:N.next=x,!qt(c,e.memoizedState)&&(at=!0,Q&&(n=ls,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=N,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function gu(e){var t=Ie(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);qt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function lm(e,t,n){var l=xe,o=Ie(),c=Ee;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var h=!qt((Be||o).memoizedState,n);if(h&&(o.memoizedState=n,at=!0),o=o.queue,vu(rm.bind(null,l,o,e),[e]),o.getSnapshot!==t||h||nt!==null&&nt.memoizedState.tag&1){if(l.flags|=2048,us(9,{destroy:void 0},im.bind(null,l,o,n,t),null),Ge===null)throw Error(r(349));c||(Ln&127)!==0||sm(l,t,n)}return n}function sm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Pr(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function im(e,t,n,l){t.value=n,t.getSnapshot=l,om(t)&&cm(e)}function rm(e,t,n){return n(function(){om(t)&&cm(e)})}function om(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function cm(e){var t=nl(e,2);t!==null&&zt(t,e,2)}function yu(e){var t=Nt();if(typeof e=="function"){var n=e;if(e=n(),fl){ia(!0);try{n()}finally{ia(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:e},t}function um(e,t,n,l){return e.baseState=n,pu(e,Be,typeof l=="function"?l:kn)}function Nx(e,t,n,l,o){if(Wr(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};A.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,fm(t,c)):(c.next=n.next,t.pending=n.next=c)}}function fm(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=A.T,h={};A.T=h;try{var x=n(o,l),N=A.S;N!==null&&N(h,x),dm(e,t,x)}catch(L){bu(e,t,L)}finally{c!==null&&h.types!==null&&(c.types=h.types),A.T=c}}else try{c=n(o,l),dm(e,t,c)}catch(L){bu(e,t,L)}}function dm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){hm(e,t,l)},function(l){return bu(e,t,l)}):hm(e,t,n)}function hm(e,t,n){t.status="fulfilled",t.value=n,mm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,fm(e,n)))}function bu(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,mm(t),t=t.next;while(t!==l)}e.action=null}function mm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pm(e,t){return t}function gm(e,t){if(Ee){var n=Ge.formState;if(n!==null){e:{var l=xe;if(Ee){if(Ke){t:{for(var o=Ke,c=tn;o.nodeType!==8;){if(!c){o=null;break t}if(o=an(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ke=an(o.nextSibling),l=o.data==="F!";break e}}fa(l)}l=!1}l&&(t=n[0])}}return n=Nt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pm,lastRenderedState:t},n.queue=l,n=Lm.bind(null,xe,l),l.dispatch=n,l=yu(!1),c=Nu.bind(null,xe,!1,l.queue),l=Nt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=Nx.bind(null,xe,o,c,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function ym(e){var t=Ie();return bm(t,Be,e)}function bm(e,t,n){if(t=pu(e,t,pm)[0],e=Fr(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=vi(t)}catch(h){throw h===ss?qr:h}else l=t;t=Ie();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,us(9,{destroy:void 0},Rx.bind(null,o,n),null)),[l,c,e]}function Rx(e,t){e.action=t}function vm(e){var t=Ie(),n=Be;if(n!==null)return bm(t,n,e);Ie(),t=t.memoizedState,n=Ie();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function us(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Pr(),xe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function xm(){return Ie().memoizedState}function Jr(e,t,n,l){var o=Nt();xe.flags|=e,o.memoizedState=us(1|t,{destroy:void 0},n,l===void 0?null:l)}function $r(e,t,n,l){var o=Ie();l=l===void 0?null:l;var c=o.memoizedState.inst;Be!==null&&l!==null&&cu(l,Be.memoizedState.deps)?o.memoizedState=us(t,c,n,l):(xe.flags|=e,o.memoizedState=us(1|t,c,n,l))}function Sm(e,t){Jr(8390656,8,e,t)}function vu(e,t){$r(2048,8,e,t)}function wx(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Pr(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _m(e){var t=Ie().memoizedState;return wx({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function jm(e,t){return $r(4,2,e,t)}function Nm(e,t){return $r(4,4,e,t)}function Rm(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wm(e,t,n){n=n!=null?n.concat([e]):null,$r(4,4,Rm.bind(null,t,e),n)}function xu(){}function Cm(e,t){var n=Ie();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&cu(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Em(e,t){var n=Ie();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&cu(t,l[1]))return l[0];if(l=e(),fl){ia(!0);try{e()}finally{ia(!1)}}return n.memoizedState=[l,t],l}function Su(e,t,n){return n===void 0||(Ln&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Tp(),xe.lanes|=e,xa|=e,n)}function Tm(e,t,n,l){return qt(n,t)?n:rs.current!==null?(e=Su(e,n,l),qt(e,t)||(at=!0),e):(Ln&42)===0||(Ln&1073741824)!==0&&(we&261930)===0?(at=!0,e.memoizedState=n):(e=Tp(),xe.lanes|=e,xa|=e,t)}function Mm(e,t,n,l,o){var c=F.p;F.p=c!==0&&8>c?c:8;var h=A.T,x={};A.T=x,Nu(e,!1,t,n);try{var N=o(),L=A.S;if(L!==null&&L(x,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Q=Sx(N,l);xi(e,t,Q,Kt(e))}else xi(e,t,l,Kt(e))}catch(Z){xi(e,t,{then:function(){},status:"rejected",reason:Z},Kt())}finally{F.p=c,h!==null&&x.types!==null&&(h.types=x.types),A.T=h}}function Cx(){}function _u(e,t,n,l){if(e.tag!==5)throw Error(r(476));var o=Am(e).queue;Mm(e,o,t,Y,n===null?Cx:function(){return Om(e),n(l)})}function Am(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:Y},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Om(e){var t=Am(e);t.next===null&&(t=e.alternate.memoizedState),xi(e,t.next.queue,{},Kt())}function ju(){return mt(Ui)}function zm(){return Ie().memoizedState}function Dm(){return Ie().memoizedState}function Ex(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=ma(n);var l=pa(t,e,n);l!==null&&(zt(l,t,n),pi(l,t,n)),t={cache:Wc()},e.payload=t;return}t=t.return}}function Tx(e,t,n){var l=Kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wr(e)?km(t,n):(n=Qc(e,t,n,l),n!==null&&(zt(n,e,l),Um(n,t,l)))}function Lm(e,t,n){var l=Kt();xi(e,t,n,l)}function xi(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wr(e))km(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,x=c(h,n);if(o.hasEagerState=!0,o.eagerState=x,qt(x,h))return Or(e,t,o,0),Ge===null&&Ar(),!1}catch{}finally{}if(n=Qc(e,t,o,l),n!==null)return zt(n,e,l),Um(n,t,l),!0}return!1}function Nu(e,t,n,l){if(l={lane:2,revertLane:nf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Wr(e)){if(t)throw Error(r(479))}else t=Qc(e,n,l,2),t!==null&&zt(t,e,2)}function Wr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function km(e,t){os=Kr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Um(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Gd(e,n)}}var Si={readContext:mt,use:Zr,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Si.useEffectEvent=Fe;var Bm={readContext:mt,use:Zr,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Sm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Jr(4194308,4,Rm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jr(4194308,4,e,t)},useInsertionEffect:function(e,t){Jr(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var l=e();if(fl){ia(!0);try{e()}finally{ia(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Nt();if(n!==void 0){var o=n(t);if(fl){ia(!0);try{n(t)}finally{ia(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=Tx.bind(null,xe,e),[l.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=yu(e);var t=e.queue,n=Lm.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:xu,useDeferredValue:function(e,t){var n=Nt();return Su(n,e,t)},useTransition:function(){var e=yu(!1);return e=Mm.bind(null,xe,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=xe,o=Nt();if(Ee){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ge===null)throw Error(r(349));(we&127)!==0||sm(l,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Sm(rm.bind(null,l,c,e),[e]),l.flags|=2048,us(9,{destroy:void 0},im.bind(null,l,c,n,t),null),n},useId:function(){var e=Nt(),t=Ge.identifierPrefix;if(Ee){var n=xn,l=vn;n=(l&~(1<<32-Bt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=_x++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ju,useFormState:gm,useActionState:gm,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Nu.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:mu,useCacheRefresh:function(){return Nt().memoizedState=Ex.bind(null,xe)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Ru={readContext:mt,use:Zr,useCallback:Cm,useContext:mt,useEffect:vu,useImperativeHandle:wm,useInsertionEffect:jm,useLayoutEffect:Nm,useMemo:Em,useReducer:Fr,useRef:xm,useState:function(){return Fr(kn)},useDebugValue:xu,useDeferredValue:function(e,t){var n=Ie();return Tm(n,Be.memoizedState,e,t)},useTransition:function(){var e=Fr(kn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:lm,useId:zm,useHostTransitionStatus:ju,useFormState:ym,useActionState:ym,useOptimistic:function(e,t){var n=Ie();return um(n,Be,e,t)},useMemoCache:mu,useCacheRefresh:Dm};Ru.useEffectEvent=_m;var qm={readContext:mt,use:Zr,useCallback:Cm,useContext:mt,useEffect:vu,useImperativeHandle:wm,useInsertionEffect:jm,useLayoutEffect:Nm,useMemo:Em,useReducer:gu,useRef:xm,useState:function(){return gu(kn)},useDebugValue:xu,useDeferredValue:function(e,t){var n=Ie();return Be===null?Su(n,e,t):Tm(n,Be.memoizedState,e,t)},useTransition:function(){var e=gu(kn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:lm,useId:zm,useHostTransitionStatus:ju,useFormState:vm,useActionState:vm,useOptimistic:function(e,t){var n=Ie();return Be!==null?um(n,Be,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:mu,useCacheRefresh:Dm};qm.useEffectEvent=_m;function wu(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cu={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Kt(),o=ma(l);o.payload=t,n!=null&&(o.callback=n),t=pa(e,o,l),t!==null&&(zt(t,e,l),pi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Kt(),o=ma(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pa(e,o,l),t!==null&&(zt(t,e,l),pi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),l=ma(n);l.tag=2,t!=null&&(l.callback=t),t=pa(e,l,n),t!==null&&(zt(t,e,n),pi(t,e,n))}};function Hm(e,t,n,l,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,h):t.prototype&&t.prototype.isPureReactComponent?!ri(n,l)||!ri(o,c):!0}function Qm(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Cu.enqueueReplaceState(t,t.state,null)}function dl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Gm(e){Mr(e)}function Vm(e){console.error(e)}function Ym(e){Mr(e)}function Ir(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Km(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Eu(e,t,n){return n=ma(n),n.tag=3,n.payload={element:null},n.callback=function(){Ir(e,t)},n}function Xm(e){return e=ma(e),e.tag=3,e}function Pm(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){Km(t,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Km(t,n,l),typeof o!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function Mx(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ns(t,n,o,!0),n=Qt.current,n!==null){switch(n.tag){case 31:case 13:return nn===null?fo():n.alternate===null&&Je===0&&(Je=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===Hr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Iu(e,l,o)),!1;case 22:return n.flags|=65536,l===Hr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Iu(e,l,o)),!1}throw Error(r(435,n.tag))}return Iu(e,l,o),fo(),!1}if(Ee)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Pc&&(e=Error(r(422),{cause:l}),ui(Wt(e,n)))):(l!==Pc&&(t=Error(r(423),{cause:l}),ui(Wt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Wt(l,n),o=Eu(e.stateNode,l,o),lu(e,o),Je!==4&&(Je=2)),!1;var c=Error(r(520),{cause:l});if(c=Wt(c,n),Ti===null?Ti=[c]:Ti.push(c),Je!==4&&(Je=2),t===null)return!0;l=Wt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Eu(n.stateNode,l,e),lu(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Sa===null||!Sa.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Xm(o),Pm(o,e,n,l),lu(n,o),!1}n=n.return}while(n!==null);return!1}var Tu=Error(r(461)),at=!1;function pt(e,t,n,l){t.child=e===null?$h(t,null,n,l):ul(t,e.child,n,l)}function Zm(e,t,n,l,o){n=n.render;var c=t.ref;if("ref"in l){var h={};for(var x in l)x!=="ref"&&(h[x]=l[x])}else h=l;return il(t),l=uu(e,t,n,h,c,o),x=fu(),e!==null&&!at?(du(e,t,o),Un(e,t,o)):(Ee&&x&&Kc(t),t.flags|=1,pt(e,t,l,o),t.child)}function Fm(e,t,n,l,o){if(e===null){var c=n.type;return typeof c=="function"&&!Gc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Jm(e,t,c,l,o)):(e=Dr(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Uu(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:ri,n(h,l)&&e.ref===t.ref)return Un(e,t,o)}return t.flags|=1,e=An(c,l),e.ref=t.ref,e.return=t,t.child=e}function Jm(e,t,n,l,o){if(e!==null){var c=e.memoizedProps;if(ri(c,l)&&e.ref===t.ref)if(at=!1,t.pendingProps=l=c,Uu(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Un(e,t,o)}return Mu(e,t,n,l,o)}function $m(e,t,n,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return Wm(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Br(t,c!==null?c.cachePool:null),c!==null?em(t,c):iu(),tm(t);else return l=t.lanes=536870912,Wm(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(Br(t,c.cachePool),em(t,c),ya(),t.memoizedState=null):(e!==null&&Br(t,null),iu(),ya());return pt(e,t,o,n),t.child}function _i(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wm(e,t,n,l,o){var c=eu();return c=c===null?null:{parent:tt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Br(t,null),iu(),tm(t),e!==null&&ns(e,t,l,!0),t.childLanes=o,null}function eo(e,t){return t=no({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Im(e,t,n){return ul(t,e.child,null,n),e=eo(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function Ax(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(l.mode==="hidden")return e=eo(t,l),t.lanes=536870912,_i(null,e);if(ou(t),(e=Ke)?(e=fg(e,tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ca!==null?{id:vn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=kh(e),n.return=t,t.child=n,ht=t,Ke=null)):e=null,e===null)throw fa(t);return t.lanes=536870912,null}return eo(t,l)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(ou(t),o)if(t.flags&256)t.flags&=-257,t=Im(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(at||ns(e,t,n,!1),o=(n&e.childLanes)!==0,at||o){if(l=Ge,l!==null&&(h=Vd(l,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,nl(e,h),zt(l,e,h),Tu;fo(),t=Im(e,t,n)}else e=c.treeContext,Ke=an(h.nextSibling),ht=t,Ee=!0,ua=null,tn=!1,e!==null&&qh(t,e),t=eo(t,l),t.flags|=4096;return t}return e=An(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function to(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(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Mu(e,t,n,l,o){return il(t),n=uu(e,t,n,l,void 0,o),l=fu(),e!==null&&!at?(du(e,t,o),Un(e,t,o)):(Ee&&l&&Kc(t),t.flags|=1,pt(e,t,n,o),t.child)}function ep(e,t,n,l,o,c){return il(t),t.updateQueue=null,n=am(t,l,n,o),nm(e),l=fu(),e!==null&&!at?(du(e,t,c),Un(e,t,c)):(Ee&&l&&Kc(t),t.flags|=1,pt(e,t,n,c),t.child)}function tp(e,t,n,l,o){if(il(t),t.stateNode===null){var c=Wl,h=n.contextType;typeof h=="object"&&h!==null&&(c=mt(h)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Cu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},nu(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?mt(h):Wl,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(wu(t,n,h,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Cu.enqueueReplaceState(c,c.state,null),yi(t,l,c,o),gi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,N=dl(n,x);c.props=N;var L=c.context,Q=n.contextType;h=Wl,typeof Q=="object"&&Q!==null&&(h=mt(Q));var Z=n.getDerivedStateFromProps;Q=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||L!==h)&&Qm(t,c,l,h),ha=!1;var k=t.memoizedState;c.state=k,yi(t,l,c,o),gi(),L=t.memoizedState,x||k!==L||ha?(typeof Z=="function"&&(wu(t,n,Z,l),L=t.memoizedState),(N=ha||Hm(t,n,N,l,k,L,h))?(Q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),c.props=l,c.state=L,c.context=h,l=N):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,au(e,t),h=t.memoizedProps,Q=dl(n,h),c.props=Q,Z=t.pendingProps,k=c.context,L=n.contextType,N=Wl,typeof L=="object"&&L!==null&&(N=mt(L)),x=n.getDerivedStateFromProps,(L=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==Z||k!==N)&&Qm(t,c,l,N),ha=!1,k=t.memoizedState,c.state=k,yi(t,l,c,o),gi();var q=t.memoizedState;h!==Z||k!==q||ha||e!==null&&e.dependencies!==null&&kr(e.dependencies)?(typeof x=="function"&&(wu(t,n,x,l),q=t.memoizedState),(Q=ha||Hm(t,n,Q,l,k,q,N)||e!==null&&e.dependencies!==null&&kr(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,q,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,q,N)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),c.props=l,c.state=q,c.context=N,l=Q):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,to(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=ul(t,e.child,null,o),t.child=ul(t,null,n,o)):pt(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Un(e,t,o),e}function np(e,t,n,l){return ll(),t.flags|=256,pt(e,t,n,l),t.child}var Au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ou(e){return{baseLanes:e,cachePool:Kh()}}function zu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Yt),e}function ap(e,t,n){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(o?ga(t):ya(),(e=Ke)?(e=fg(e,tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ca!==null?{id:vn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=kh(e),n.return=t,t.child=n,ht=t,Ke=null)):e=null,e===null)throw fa(t);return gf(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(ya(),o=t.mode,x=no({mode:"hidden",children:x},o),l=al(l,o,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=Ou(n),l.childLanes=zu(e,h,n),t.memoizedState=Au,_i(null,l)):(ga(t),Du(t,x))}var N=e.memoizedState;if(N!==null&&(x=N.dehydrated,x!==null)){if(c)t.flags&256?(ga(t),t.flags&=-257,t=Lu(e,t,n)):t.memoizedState!==null?(ya(),t.child=e.child,t.flags|=128,t=null):(ya(),x=l.fallback,o=t.mode,l=no({mode:"visible",children:l.children},o),x=al(x,o,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,ul(t,e.child,null,n),l=t.child,l.memoizedState=Ou(n),l.childLanes=zu(e,h,n),t.memoizedState=Au,t=_i(null,l));else if(ga(t),gf(x)){if(h=x.nextSibling&&x.nextSibling.dataset,h)var L=h.dgst;h=L,l=Error(r(419)),l.stack="",l.digest=h,ui({value:l,source:null,stack:null}),t=Lu(e,t,n)}else if(at||ns(e,t,n,!1),h=(n&e.childLanes)!==0,at||h){if(h=Ge,h!==null&&(l=Vd(h,n),l!==0&&l!==N.retryLane))throw N.retryLane=l,nl(e,l),zt(h,e,l),Tu;pf(x)||fo(),t=Lu(e,t,n)}else pf(x)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ke=an(x.nextSibling),ht=t,Ee=!0,ua=null,tn=!1,e!==null&&qh(t,e),t=Du(t,l.children),t.flags|=4096);return t}return o?(ya(),x=l.fallback,o=t.mode,N=e.child,L=N.sibling,l=An(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,L!==null?x=An(L,x):(x=al(x,o,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,_i(null,l),l=t.child,x=e.child.memoizedState,x===null?x=Ou(n):(o=x.cachePool,o!==null?(N=tt._currentValue,o=o.parent!==N?{parent:N,pool:N}:o):o=Kh(),x={baseLanes:x.baseLanes|n,cachePool:o}),l.memoizedState=x,l.childLanes=zu(e,h,n),t.memoizedState=Au,_i(e.child,l)):(ga(t),n=e.child,e=n.sibling,n=An(n,{mode:"visible",children:l.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 Du(e,t){return t=no({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function no(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function Lu(e,t,n){return ul(t,e.child,null,n),e=Du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lp(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Jc(e.return,t,n)}function ku(e,t,n,l,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function sp(e,t,n){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var h=We.current,x=(h&2)!==0;if(x?(h=h&1|2,t.flags|=128):h&=1,$(We,h),pt(e,t,l,n),l=Ee?ci:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lp(e,n,t);else if(e.tag===19)lp(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(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Yr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ku(t,!1,o,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Yr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ku(t,!0,n,null,c,l);break;case"together":ku(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ns(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=An(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=An(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Uu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&kr(e)))}function Ox(e,t,n){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),da(t,tt,e.memoizedState.cache),ll();break;case 27:case 5:_t(t);break;case 4:Ze(t,t.stateNode.containerInfo);break;case 10:da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ou(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ga(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ap(e,t,n):(ga(t),e=Un(e,t,n),e!==null?e.sibling:null);ga(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ns(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return sp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$(We,We.current),l)break;return null;case 22:return t.lanes=0,$m(e,t,n,t.pendingProps);case 24:da(t,tt,e.memoizedState.cache)}return Un(e,t,n)}function ip(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Uu(e,n)&&(t.flags&128)===0)return at=!1,Ox(e,t,n);at=(e.flags&131072)!==0}else at=!1,Ee&&(t.flags&1048576)!==0&&Bh(t,ci,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ol(t.elementType),t.type=e,typeof e=="function")Gc(e)?(l=dl(e,l),t.tag=1,t=tp(null,t,e,l,n)):(t.tag=0,t=Mu(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===T){t.tag=11,t=Zm(null,t,e,l,n);break e}else if(o===V){t.tag=14,t=Fm(null,t,e,l,n);break e}}throw t=ge(e)||e,Error(r(306,t,""))}}return t;case 0:return Mu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=dl(l,t.pendingProps),tp(e,t,l,o,n);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,au(e,t),yi(t,l,null,n);var h=t.memoizedState;if(l=h.cache,da(t,tt,l),l!==c.cache&&$c(t,[tt],n,!0),gi(),l=h.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=np(e,t,l,n);break e}else if(l!==o){o=Wt(Error(r(424)),t),ui(o),t=np(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=an(e.firstChild),ht=t,Ee=!0,ua=null,tn=!0,n=$h(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ll(),l===o){t=Un(e,t,n);break e}pt(e,t,l,n)}t=t.child}return t;case 26:return to(e,t),e===null?(n=yg(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,l=vo(ve.current).createElement(n),l[dt]=t,l[Ct]=e,gt(l,n,e),ot(l),t.stateNode=l):t.memoizedState=yg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _t(t),e===null&&Ee&&(l=t.stateNode=mg(t.type,t.pendingProps,ve.current),ht=t,tn=!0,o=Ke,Ra(t.type)?(yf=o,Ke=an(l.firstChild)):Ke=o),pt(e,t,t.pendingProps.children,n),to(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((o=l=Ke)&&(l=o0(l,t.type,t.pendingProps,tn),l!==null?(t.stateNode=l,ht=t,Ke=an(l.firstChild),tn=!1,o=!0):o=!1),o||fa(t)),_t(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,l=c.children,df(o,c)?l=null:h!==null&&df(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=uu(e,t,jx,null,null,n),Ui._currentValue=o),to(e,t),pt(e,t,l,n),t.child;case 6:return e===null&&Ee&&((e=n=Ke)&&(n=c0(n,t.pendingProps,tn),n!==null?(t.stateNode=n,ht=t,Ke=null,e=!0):e=!1),e||fa(t)),null;case 13:return ap(e,t,n);case 4:return Ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ul(t,null,l,n):pt(e,t,l,n),t.child;case 11:return Zm(e,t,t.type,t.pendingProps,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,da(t,t.type,l.value),pt(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,il(t),o=mt(o),l=l(o),t.flags|=1,pt(e,t,l,n),t.child;case 14:return Fm(e,t,t.type,t.pendingProps,n);case 15:return Jm(e,t,t.type,t.pendingProps,n);case 19:return sp(e,t,n);case 31:return Ax(e,t,n);case 22:return $m(e,t,n,t.pendingProps);case 24:return il(t),l=mt(tt),e===null?(o=eu(),o===null&&(o=Ge,c=Wc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:l,cache:o},nu(t),da(t,tt,o)):((e.lanes&n)!==0&&(au(e,t),yi(t,null,null,n),gi()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),da(t,tt,l)):(l=c.cache,da(t,tt,l),l!==o.cache&&$c(t,[tt],n,!0))),pt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Bn(e){e.flags|=4}function Bu(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(zp())e.flags|=8192;else throw cl=Hr,tu}else e.flags&=-16777217}function rp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_g(t))if(zp())e.flags|=8192;else throw cl=Hr,tu}function ao(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hd():536870912,e.lanes|=t,ms|=t)}function ji(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function zx(e,t,n){var l=t.pendingProps;switch(Xc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Dn(tt),ze(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ts(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zc())),Xe(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Bn(t),c!==null?(Xe(t),rp(t,c)):(Xe(t),Bu(t,o,null,l,n))):c?c!==e.memoizedState?(Bn(t),Xe(t),rp(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Bn(t),Xe(t),Bu(t,o,e,l,n)),null;case 27:if(kt(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}e=ee.current,ts(t)?Hh(t):(e=mg(o,l,n),t.stateNode=e,Bn(t))}return Xe(t),null;case 5:if(kt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}if(c=ee.current,ts(t))Hh(t);else{var h=vo(ve.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}c[dt]=t,c[Ct]=l;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.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=c;e:switch(gt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Bn(t)}}return Xe(t),Bu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Bn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ve.current,ts(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=ht,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ag(e.nodeValue,n)),e||fa(t,!0)}else e=vo(e).createTextNode(l),e[dt]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ts(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[dt]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=Zc(),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(r(558))}return Xe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ts(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[dt]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),o=!1}else o=Zc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ao(t,t.updateQueue),Xe(t),null);case 4:return ze(),e===null&&rf(t.stateNode.containerInfo),Xe(t),null;case 10:return Dn(t.type),Xe(t),null;case 19:if(X(We),l=t.memoizedState,l===null)return Xe(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)ji(l,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Yr(e),c!==null){for(t.flags|=128,ji(l,!1),e=c.updateQueue,t.updateQueue=e,ao(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Lh(n,e),n=n.sibling;return $(We,We.current&1|2),Ee&&On(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&jt()>oo&&(t.flags|=128,o=!0,ji(l,!1),t.lanes=4194304)}else{if(!o)if(e=Yr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ao(t,e),ji(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Ee)return Xe(t),null}else 2*jt()-l.renderingStartTime>oo&&n!==536870912&&(t.flags|=128,o=!0,ji(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=jt(),e.sibling=null,n=We.current,$(We,o?n&1|2:n&1),Ee&&On(t,l.treeForkCount),e):(Xe(t),null);case 22:case 23:return Gt(t),ru(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&ao(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&X(rl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Dn(tt),Xe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Dx(e,t){switch(Xc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(tt),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kt(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(r(340));ll()}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(r(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(We),null;case 4:return ze(),null;case 10:return Dn(t.type),null;case 22:case 23:return Gt(t),ru(),e!==null&&X(rl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dn(tt),null;case 25:return null;default:return null}}function op(e,t){switch(Xc(t),t.tag){case 3:Dn(tt),ze();break;case 26:case 27:case 5:kt(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:X(We);break;case 10:Dn(t.type);break;case 22:case 23:Gt(t),ru(),e!==null&&X(rl);break;case 24:Dn(tt)}}function Ni(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var c=n.create,h=n.inst;l=c(),h.destroy=l}n=n.next}while(n!==o)}}catch(x){ke(t,t.return,x)}}function ba(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var h=l.inst,x=h.destroy;if(x!==void 0){h.destroy=void 0,o=t;var N=n,L=x;try{L()}catch(Q){ke(o,N,Q)}}}l=l.next}while(l!==c)}}catch(Q){ke(t,t.return,Q)}}function cp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ih(t,n)}catch(l){ke(e,e.return,l)}}}function up(e,t,n){n.props=dl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){ke(e,t,l)}}function Ri(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){ke(e,t,o)}}function Sn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){ke(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){ke(e,t,o)}else n.current=null}function fp(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){ke(e,e.return,o)}}function qu(e,t,n){try{var l=e.stateNode;n0(l,e.type,n,t),l[Ct]=t}catch(o){ke(e,e.return,o)}}function dp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dp(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&&Ra(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 Qu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tn));else if(l!==4&&(l===27&&Ra(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qu(e,t,n),e=e.sibling;e!==null;)Qu(e,t,n),e=e.sibling}function lo(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Ra(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(lo(e,t,n),e=e.sibling;e!==null;)lo(e,t,n),e=e.sibling}function hp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);gt(t,l,n),t[dt]=e,t[Ct]=n}catch(c){ke(e,e.return,c)}}var qn=!1,lt=!1,Gu=!1,mp=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Lx(e,t){if(e=e.containerInfo,uf=wo,e=wh(e),Lc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,x=-1,N=-1,L=0,Q=0,Z=e,k=null;t:for(;;){for(var q;Z!==n||o!==0&&Z.nodeType!==3||(x=h+o),Z!==c||l!==0&&Z.nodeType!==3||(N=h+l),Z.nodeType===3&&(h+=Z.nodeValue.length),(q=Z.firstChild)!==null;)k=Z,Z=q;for(;;){if(Z===e)break t;if(k===n&&++L===o&&(x=h),k===c&&++Q===l&&(N=h),(q=Z.nextSibling)!==null)break;Z=k,k=Z.parentNode}Z=q}n=x===-1||N===-1?null:{start:x,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(ff={focusedElem:e,selectionRange:n},wo=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var ae=dl(n.type,o);e=l.getSnapshotBeforeUpdate(ae,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(de){ke(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)mf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mf(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function pp(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Qn(e,n),l&4&&Ni(5,n);break;case 1:if(Qn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){ke(n,n.return,h)}else{var o=dl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){ke(n,n.return,h)}}l&64&&cp(n),l&512&&Ri(n,n.return);break;case 3:if(Qn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ih(e,t)}catch(h){ke(n,n.return,h)}}break;case 27:t===null&&l&4&&hp(n);case 26:case 5:Qn(e,n),t===null&&l&4&&fp(n),l&512&&Ri(n,n.return);break;case 12:Qn(e,n);break;case 31:Qn(e,n),l&4&&bp(e,n);break;case 13:Qn(e,n),l&4&&vp(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yx.bind(null,n),u0(e,n))));break;case 22:if(l=n.memoizedState!==null||qn,!l){t=t!==null&&t.memoizedState!==null||lt,o=qn;var c=lt;qn=l,(lt=t)&&!c?Gn(e,n,(n.subtreeFlags&8772)!==0):Qn(e,n),qn=o,lt=c}break;case 30:break;default:Qn(e,n)}}function gp(e){var t=e.alternate;t!==null&&(e.alternate=null,gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bc(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 Pe=null,Tt=!1;function Hn(e,t,n){for(n=n.child;n!==null;)yp(e,t,n),n=n.sibling}function yp(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Fs,n)}catch{}switch(n.tag){case 26:lt||Sn(n,t),Hn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lt||Sn(n,t);var l=Pe,o=Tt;Ra(n.type)&&(Pe=n.stateNode,Tt=!1),Hn(e,t,n),Di(n.stateNode),Pe=l,Tt=o;break;case 5:lt||Sn(n,t);case 6:if(l=Pe,o=Tt,Pe=null,Hn(e,t,n),Pe=l,Tt=o,Pe!==null)if(Tt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(c){ke(n,t,c)}else try{Pe.removeChild(n.stateNode)}catch(c){ke(n,t,c)}break;case 18:Pe!==null&&(Tt?(e=Pe,cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_s(e)):cg(Pe,n.stateNode));break;case 4:l=Pe,o=Tt,Pe=n.stateNode.containerInfo,Tt=!0,Hn(e,t,n),Pe=l,Tt=o;break;case 0:case 11:case 14:case 15:ba(2,n,t),lt||ba(4,n,t),Hn(e,t,n);break;case 1:lt||(Sn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&up(n,t,l)),Hn(e,t,n);break;case 21:Hn(e,t,n);break;case 22:lt=(l=lt)||n.memoizedState!==null,Hn(e,t,n),lt=l;break;default:Hn(e,t,n)}}function bp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_s(e)}catch(n){ke(t,t.return,n)}}}function vp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_s(e)}catch(n){ke(t,t.return,n)}}function kx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mp),t;default:throw Error(r(435,e.tag))}}function so(e,t){var n=kx(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Kx.bind(null,e,l);l.then(o,o)}})}function Mt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],c=e,h=t,x=h;e:for(;x!==null;){switch(x.tag){case 27:if(Ra(x.type)){Pe=x.stateNode,Tt=!1;break e}break;case 5:Pe=x.stateNode,Tt=!1;break e;case 3:case 4:Pe=x.stateNode.containerInfo,Tt=!0;break e}x=x.return}if(Pe===null)throw Error(r(160));yp(c,h,o),Pe=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xp(t,e),t=t.sibling}var pn=null;function xp(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),At(e),l&4&&(ba(3,e,e.return),Ni(3,e),ba(5,e,e.return));break;case 1:Mt(t,e),At(e),l&512&&(lt||n===null||Sn(n,n.return)),l&64&&qn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=pn;if(Mt(t,e),At(e),l&512&&(lt||n===null||Sn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Ws]||c[dt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),gt(c,l,n),c[dt]=e,ot(c),l=c;break e;case"link":var h=xg("link","href",o).get(l+(n.href||""));if(h){for(var x=0;x<h.length;x++)if(c=h[x],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(x,1);break t}}c=o.createElement(l),gt(c,l,n),o.head.appendChild(c);break;case"meta":if(h=xg("meta","content",o).get(l+(n.content||""))){for(x=0;x<h.length;x++)if(c=h[x],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(x,1);break t}}c=o.createElement(l),gt(c,l,n),o.head.appendChild(c);break;default:throw Error(r(468,l))}c[dt]=e,ot(c),l=c}e.stateNode=l}else Sg(o,e.type,e.stateNode);else e.stateNode=vg(o,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Sg(o,e.type,e.stateNode):vg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&qu(e,e.memoizedProps,n.memoizedProps)}break;case 27:Mt(t,e),At(e),l&512&&(lt||n===null||Sn(n,n.return)),n!==null&&l&4&&qu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Mt(t,e),At(e),l&512&&(lt||n===null||Sn(n,n.return)),e.flags&32){o=e.stateNode;try{Kl(o,"")}catch(ae){ke(e,e.return,ae)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,qu(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Gu=!0);break;case 6:if(Mt(t,e),At(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ae){ke(e,e.return,ae)}}break;case 3:if(_o=null,o=pn,pn=xo(t.containerInfo),Mt(t,e),pn=o,At(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{_s(t.containerInfo)}catch(ae){ke(e,e.return,ae)}Gu&&(Gu=!1,Sp(e));break;case 4:l=pn,pn=xo(e.stateNode.containerInfo),Mt(t,e),At(e),pn=l;break;case 12:Mt(t,e),At(e);break;case 31:Mt(t,e),At(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,so(e,l)));break;case 13:Mt(t,e),At(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ro=jt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,so(e,l)));break;case 22:o=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,L=qn,Q=lt;if(qn=L||o,lt=Q||N,Mt(t,e),lt=Q,qn=L,At(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||N||qn||lt||hl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(c=N.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{x=N.stateNode;var Z=N.memoizedProps.style,k=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;x.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(ae){ke(N,N.return,ae)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=o?"":N.memoizedProps}catch(ae){ke(N,N.return,ae)}}}else if(t.tag===18){if(n===null){N=t;try{var q=N.stateNode;o?ug(q,!0):ug(N.stateNode,!1)}catch(ae){ke(N,N.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,so(e,n))));break;case 19:Mt(t,e),At(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,so(e,l)));break;case 30:break;case 21:break;default:Mt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(dp(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,c=Hu(e);lo(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(Kl(h,""),n.flags&=-33);var x=Hu(e);lo(e,x,h);break;case 3:case 4:var N=n.stateNode.containerInfo,L=Hu(e);Qu(e,L,N);break;default:throw Error(r(161))}}catch(Q){ke(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pp(e,t.alternate,t),t=t.sibling}function hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ba(4,t,t.return),hl(t);break;case 1:Sn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&up(t,t.return,n),hl(t);break;case 27:Di(t.stateNode);case 26:case 5:Sn(t,t.return),hl(t);break;case 22:t.memoizedState===null&&hl(t);break;case 30:hl(t);break;default:hl(t)}e=e.sibling}}function Gn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Gn(o,c,n),Ni(4,c);break;case 1:if(Gn(o,c,n),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){ke(l,l.return,L)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var N=o.shared.hiddenCallbacks;if(N!==null)for(o.shared.hiddenCallbacks=null,o=0;o<N.length;o++)Wh(N[o],x)}catch(L){ke(l,l.return,L)}}n&&h&64&&cp(c),Ri(c,c.return);break;case 27:hp(c);case 26:case 5:Gn(o,c,n),n&&l===null&&h&4&&fp(c),Ri(c,c.return);break;case 12:Gn(o,c,n);break;case 31:Gn(o,c,n),n&&h&4&&bp(o,c);break;case 13:Gn(o,c,n),n&&h&4&&vp(o,c);break;case 22:c.memoizedState===null&&Gn(o,c,n),Ri(c,c.return);break;case 30:break;default:Gn(o,c,n)}t=t.sibling}}function Vu(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&&fi(n))}function Yu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e))}function gn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_p(e,t,n,l),t=t.sibling}function _p(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,n,l),o&2048&&Ni(9,t);break;case 1:gn(e,t,n,l);break;case 3:gn(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e)));break;case 12:if(o&2048){gn(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,x=c.onPostCommit;typeof x=="function"&&x(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){ke(t,t.return,N)}}else gn(e,t,n,l);break;case 31:gn(e,t,n,l);break;case 13:gn(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?gn(e,t,n,l):wi(e,t):c._visibility&2?gn(e,t,n,l):(c._visibility|=2,fs(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Vu(h,t);break;case 24:gn(e,t,n,l),o&2048&&Yu(t.alternate,t);break;default:gn(e,t,n,l)}}function fs(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,x=n,N=l,L=h.flags;switch(h.tag){case 0:case 11:case 15:fs(c,h,x,N,o),Ni(8,h);break;case 23:break;case 22:var Q=h.stateNode;h.memoizedState!==null?Q._visibility&2?fs(c,h,x,N,o):wi(c,h):(Q._visibility|=2,fs(c,h,x,N,o)),o&&L&2048&&Vu(h.alternate,h);break;case 24:fs(c,h,x,N,o),o&&L&2048&&Yu(h.alternate,h);break;default:fs(c,h,x,N,o)}t=t.sibling}}function wi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:wi(n,l),o&2048&&Vu(l.alternate,l);break;case 24:wi(n,l),o&2048&&Yu(l.alternate,l);break;default:wi(n,l)}t=t.sibling}}var Ci=8192;function ds(e,t,n){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)jp(e,t,n),e=e.sibling}function jp(e,t,n){switch(e.tag){case 26:ds(e,t,n),e.flags&Ci&&e.memoizedState!==null&&_0(n,pn,e.memoizedState,e.memoizedProps);break;case 5:ds(e,t,n);break;case 3:case 4:var l=pn;pn=xo(e.stateNode.containerInfo),ds(e,t,n),pn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ci,Ci=16777216,ds(e,t,n),Ci=l):ds(e,t,n));break;default:ds(e,t,n)}}function Np(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 Ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ct=l,wp(l,e)}Np(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rp(e),e=e.sibling}function Rp(e){switch(e.tag){case 0:case 11:case 15:Ei(e),e.flags&2048&&ba(9,e,e.return);break;case 3:Ei(e);break;case 12:Ei(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,io(e)):Ei(e);break;default:Ei(e)}}function io(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ct=l,wp(l,e)}Np(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ba(8,t,t.return),io(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,io(t));break;default:io(t)}e=e.sibling}}function wp(e,t){for(;ct!==null;){var n=ct;switch(n.tag){case 0:case 11:case 15:ba(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:fi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ct=l;else e:for(n=e;ct!==null;){l=ct;var o=l.sibling,c=l.return;if(gp(l),l===n){ct=null;break e}if(o!==null){o.return=c,ct=o;break e}ct=c}}}var Ux={getCacheForType:function(e){var t=mt(tt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(tt).controller.signal}},Bx=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Ge=null,Ne=null,we=0,Le=0,Vt=null,va=!1,hs=!1,Ku=!1,Vn=0,Je=0,xa=0,ml=0,Xu=0,Yt=0,ms=0,Ti=null,Ot=null,Pu=!1,ro=0,Cp=0,oo=1/0,co=null,Sa=null,st=0,_a=null,ps=null,Yn=0,Zu=0,Fu=null,Ep=null,Mi=0,Ju=null;function Kt(){return(Oe&2)!==0&&we!==0?we&-we:A.T!==null?nf():Yd()}function Tp(){if(Yt===0)if((we&536870912)===0||Ee){var e=yr;yr<<=1,(yr&3932160)===0&&(yr=262144),Yt=e}else Yt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Yt}function zt(e,t,n){(e===Ge&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(gs(e,0),ja(e,we,Yt,!1)),$s(e,n),((Oe&2)===0||e!==Ge)&&(e===Ge&&((Oe&2)===0&&(ml|=n),Je===4&&ja(e,we,Yt,!1)),_n(e))}function Mp(e,t,n){if((Oe&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Js(e,t),o=l?Qx(e,t):Wu(e,t,!0),c=l;do{if(o===0){hs&&!l&&ja(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!qx(n)){o=Wu(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var x=e;o=Ti;var N=x.current.memoizedState.isDehydrated;if(N&&(gs(x,h).flags|=256),h=Wu(x,h,!1),h!==2){if(Ku&&!N){x.errorRecoveryDisabledLanes|=c,ml|=c,o=4;break e}c=Ot,Ot=o,c!==null&&(Ot===null?Ot=c:Ot.push.apply(Ot,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){gs(e,0),ja(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ja(l,t,Yt,!va);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=ro+300-jt(),10<o)){if(ja(l,t,Yt,!va),vr(l,0,!0)!==0)break e;Yn=t,l.timeoutHandle=rg(Ap.bind(null,l,n,Ot,co,Pu,t,Yt,ml,ms,va,c,"Throttled",-0,0),o);break e}Ap(l,n,Ot,co,Pu,t,Yt,ml,ms,va,c,null,-0,0)}}break}while(!0);_n(e)}function Ap(e,t,n,l,o,c,h,x,N,L,Q,Z,k,q){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},jp(t,c,Z);var ae=(c&62914560)===c?ro-jt():(c&4194048)===c?Cp-jt():0;if(ae=j0(Z,ae),ae!==null){Yn=c,e.cancelPendingCommit=ae(qp.bind(null,e,t,c,n,l,o,h,x,N,Q,Z,null,k,q)),ja(e,c,h,!L);return}}qp(e,t,c,n,l,o,h,x,N)}function qx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],c=o.getSnapshot;o=o.value;try{if(!qt(c(),o))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 ja(e,t,n,l){t&=~Xu,t&=~ml,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-Bt(o),h=1<<c;l[c]=-1,o&=~h}n!==0&&Qd(e,n,t)}function uo(){return(Oe&6)===0?(Ai(0),!1):!0}function $u(){if(Ne!==null){if(Le===0)var e=Ne.return;else e=Ne,zn=sl=null,hu(e),is=null,hi=0,e=Ne;for(;e!==null;)op(e.alternate,e),e=e.return;Ne=null}}function gs(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,s0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,$u(),Ge=e,Ne=n=An(e.current,null),we=t,Le=0,Vt=null,va=!1,hs=Js(e,t),Ku=!1,ms=Yt=Xu=ml=xa=Je=0,Ot=Ti=null,Pu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Bt(l),c=1<<o;t|=e[o],l&=~c}return Vn=t,Ar(),n}function Op(e,t){xe=null,A.H=Si,t===ss||t===qr?(t=Zh(),Le=3):t===tu?(t=Zh(),Le=4):Le=t===Tu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Vt=t,Ne===null&&(Je=1,Ir(e,Wt(t,e.current)))}function zp(){var e=Qt.current;return e===null?!0:(we&4194048)===we?nn===null:(we&62914560)===we||(we&536870912)!==0?e===nn:!1}function Dp(){var e=A.H;return A.H=Si,e===null?Si:e}function Lp(){var e=A.A;return A.A=Ux,e}function fo(){Je=4,va||(we&4194048)!==we&&Qt.current!==null||(hs=!0),(xa&134217727)===0&&(ml&134217727)===0||Ge===null||ja(Ge,we,Yt,!1)}function Wu(e,t,n){var l=Oe;Oe|=2;var o=Dp(),c=Lp();(Ge!==e||we!==t)&&(co=null,gs(e,t)),t=!1;var h=Je;e:do try{if(Le!==0&&Ne!==null){var x=Ne,N=Vt;switch(Le){case 8:$u(),h=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var L=Le;if(Le=0,Vt=null,ys(e,x,N,L),n&&hs){h=0;break e}break;default:L=Le,Le=0,Vt=null,ys(e,x,N,L)}}Hx(),h=Je;break}catch(Q){Op(e,Q)}while(!0);return t&&e.shellSuspendCounter++,zn=sl=null,Oe=l,A.H=o,A.A=c,Ne===null&&(Ge=null,we=0,Ar()),h}function Hx(){for(;Ne!==null;)kp(Ne)}function Qx(e,t){var n=Oe;Oe|=2;var l=Dp(),o=Lp();Ge!==e||we!==t?(co=null,oo=jt()+500,gs(e,t)):hs=Js(e,t);e:do try{if(Le!==0&&Ne!==null){t=Ne;var c=Vt;t:switch(Le){case 1:Le=0,Vt=null,ys(e,t,c,1);break;case 2:case 9:if(Xh(c)){Le=0,Vt=null,Up(t);break}t=function(){Le!==2&&Le!==9||Ge!==e||(Le=7),_n(e)},c.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Xh(c)?(Le=0,Vt=null,Up(t)):(Le=0,Vt=null,ys(e,t,c,7));break;case 5:var h=null;switch(Ne.tag){case 26:h=Ne.memoizedState;case 5:case 27:var x=Ne;if(h?_g(h):x.stateNode.complete){Le=0,Vt=null;var N=x.sibling;if(N!==null)Ne=N;else{var L=x.return;L!==null?(Ne=L,ho(L)):Ne=null}break t}}Le=0,Vt=null,ys(e,t,c,5);break;case 6:Le=0,Vt=null,ys(e,t,c,6);break;case 8:$u(),Je=6;break e;default:throw Error(r(462))}}Gx();break}catch(Q){Op(e,Q)}while(!0);return zn=sl=null,A.H=l,A.A=o,Oe=n,Ne!==null?0:(Ge=null,we=0,Ar(),Je)}function Gx(){for(;Ne!==null&&!mr();)kp(Ne)}function kp(e){var t=ip(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?ho(e):Ne=t}function Up(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ep(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=ep(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:hu(t);default:op(n,t),t=Ne=Lh(t,Vn),t=ip(n,t,Vn)}e.memoizedProps=e.pendingProps,t===null?ho(e):Ne=t}function ys(e,t,n,l){zn=sl=null,hu(t),is=null,hi=0;var o=t.return;try{if(Mx(e,o,t,n,we)){Je=1,Ir(e,Wt(n,e.current)),Ne=null;return}}catch(c){if(o!==null)throw Ne=o,c;Je=1,Ir(e,Wt(n,e.current)),Ne=null;return}t.flags&32768?(Ee||l===1?e=!0:hs||(we&536870912)!==0?e=!1:(va=e=!0,(l===2||l===9||l===3||l===6)&&(l=Qt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bp(t,e)):ho(t)}function ho(e){var t=e;do{if((t.flags&32768)!==0){Bp(t,va);return}e=t.return;var n=zx(t.alternate,t,Vn);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Je===0&&(Je=5)}function Bp(e,t){do{var n=Dx(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);Je=6,Ne=null}function qp(e,t,n,l,o,c,h,x,N){e.cancelPendingCommit=null;do mo();while(st!==0);if((Oe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Hc,Sv(e,n,c,h,x,N),e===Ge&&(Ne=Ge=null,we=0),ps=t,_a=e,Yn=n,Zu=c,Fu=o,Ep=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xx(bt,function(){return Yp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,o=F.p,F.p=2,h=Oe,Oe|=4;try{Lx(e,t,n)}finally{Oe=h,F.p=o,A.T=l}}st=1,Hp(),Qp(),Gp()}}function Hp(){if(st===1){st=0;var e=_a,t=ps,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=A.T,A.T=null;var l=F.p;F.p=2;var o=Oe;Oe|=4;try{xp(t,e);var c=ff,h=wh(e.containerInfo),x=c.focusedElem,N=c.selectionRange;if(h!==x&&x&&x.ownerDocument&&Rh(x.ownerDocument.documentElement,x)){if(N!==null&&Lc(x)){var L=N.start,Q=N.end;if(Q===void 0&&(Q=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(Q,x.value.length);else{var Z=x.ownerDocument||document,k=Z&&Z.defaultView||window;if(k.getSelection){var q=k.getSelection(),ae=x.textContent.length,de=Math.min(N.start,ae),He=N.end===void 0?de:Math.min(N.end,ae);!q.extend&&de>He&&(h=He,He=de,de=h);var O=Nh(x,de),E=Nh(x,He);if(O&&E&&(q.rangeCount!==1||q.anchorNode!==O.node||q.anchorOffset!==O.offset||q.focusNode!==E.node||q.focusOffset!==E.offset)){var D=Z.createRange();D.setStart(O.node,O.offset),q.removeAllRanges(),de>He?(q.addRange(D),q.extend(E.node,E.offset)):(D.setEnd(E.node,E.offset),q.addRange(D))}}}}for(Z=[],q=x;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Z.length;x++){var K=Z[x];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}wo=!!uf,ff=uf=null}finally{Oe=o,F.p=l,A.T=n}}e.current=t,st=2}}function Qp(){if(st===2){st=0;var e=_a,t=ps,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=A.T,A.T=null;var l=F.p;F.p=2;var o=Oe;Oe|=4;try{pp(e,t.alternate,t)}finally{Oe=o,F.p=l,A.T=n}}st=3}}function Gp(){if(st===4||st===3){st=0,dc();var e=_a,t=ps,n=Yn,l=Ep;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?st=5:(st=0,ps=_a=null,Vp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Sa=null),gc(n),t=t.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(Fs,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=A.T,o=F.p,F.p=2,A.T=null;try{for(var c=e.onRecoverableError,h=0;h<l.length;h++){var x=l[h];c(x.value,{componentStack:x.stack})}}finally{A.T=t,F.p=o}}(Yn&3)!==0&&mo(),_n(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Ju?Mi++:(Mi=0,Ju=e):Mi=0,Ai(0)}}function Vp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fi(t)))}function mo(){return Hp(),Qp(),Gp(),Yp()}function Yp(){if(st!==5)return!1;var e=_a,t=Zu;Zu=0;var n=gc(Yn),l=A.T,o=F.p;try{F.p=32>n?32:n,A.T=null,n=Fu,Fu=null;var c=_a,h=Yn;if(st=0,ps=_a=null,Yn=0,(Oe&6)!==0)throw Error(r(331));var x=Oe;if(Oe|=4,Rp(c.current),_p(c,c.current,h,n),Oe=x,Ai(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(Fs,c)}catch{}return!0}finally{F.p=o,A.T=l,Vp(e,t)}}function Kp(e,t,n){t=Wt(n,t),t=Eu(e.stateNode,t,2),e=pa(e,t,2),e!==null&&($s(e,2),_n(e))}function ke(e,t,n){if(e.tag===3)Kp(e,e,n);else for(;t!==null;){if(t.tag===3){Kp(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Sa===null||!Sa.has(l))){e=Wt(n,e),n=Xm(2),l=pa(t,n,2),l!==null&&(Pm(n,l,t,e),$s(l,2),_n(l));break}}t=t.return}}function Iu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Bx;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(Ku=!0,o.add(n),e=Vx.bind(null,e,t,n),t.then(e,e))}function Vx(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&(we&n)===n&&(Je===4||Je===3&&(we&62914560)===we&&300>jt()-ro?(Oe&2)===0&&gs(e,0):Xu|=n,ms===we&&(ms=0)),_n(e)}function Xp(e,t){t===0&&(t=Hd()),e=nl(e,t),e!==null&&($s(e,t),_n(e))}function Yx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xp(e,n)}function Kx(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Xp(e,n)}function Xx(e,t){return Ps(e,t)}var po=null,bs=null,ef=!1,go=!1,tf=!1,Na=0;function _n(e){e!==bs&&e.next===null&&(bs===null?po=bs=e:bs=bs.next=e),go=!0,ef||(ef=!0,Zx())}function Ai(e,t){if(!tf&&go){tf=!0;do for(var n=!1,l=po;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var h=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Bt(42|e)+1)-1,c&=o&~(h&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Jp(l,c))}else c=we,c=vr(l,l===Ge?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Js(l,c)||(n=!0,Jp(l,c));l=l.next}while(n);tf=!1}}function Px(){Pp()}function Pp(){go=ef=!1;var e=0;Na!==0&&l0()&&(e=Na);for(var t=jt(),n=null,l=po;l!==null;){var o=l.next,c=Zp(l,t);c===0?(l.next=null,n===null?po=o:n.next=o,o===null&&(bs=n)):(n=l,(e!==0||(c&3)!==0)&&(go=!0)),l=o}st!==0&&st!==5||Ai(e),Na!==0&&(Na=0)}function Zp(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Bt(c),x=1<<h,N=o[h];N===-1?((x&n)===0||(x&l)!==0)&&(o[h]=xv(x,t)):N<=t&&(e.expiredLanes|=x),c&=~x}if(t=Ge,n=we,n=vr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Zs(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Js(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Zs(l),gc(n)){case 2:case 8:n=ft;break;case 32:n=bt;break;case 268435456:n=qd;break;default:n=bt}return l=Fp.bind(null,e),n=Ps(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Zs(l),e.callbackPriority=2,e.callbackNode=null,2}function Fp(e,t){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(mo()&&e.callbackNode!==n)return null;var l=we;return l=vr(e,e===Ge?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Mp(e,l,t),Zp(e,jt()),e.callbackNode!=null&&e.callbackNode===n?Fp.bind(null,e):null)}function Jp(e,t){if(mo())return null;Mp(e,t,!0)}function Zx(){i0(function(){(Oe&6)!==0?Ps(Qe,Px):Pp()})}function nf(){if(Na===0){var e=as;e===0&&(e=gr,gr<<=1,(gr&261888)===0&&(gr=256)),Na=e}return Na}function $p(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:jr(""+e)}function Wp(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 Fx(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var c=$p((o[Ct]||null).action),h=l.submitter;h&&(t=(t=h[Ct]||null)?$p(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var x=new Cr("action","action",null,l,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Na!==0){var N=h?Wp(o,h):new FormData(o);_u(n,{pending:!0,data:N,method:o.method,action:c},null,N)}}else typeof c=="function"&&(x.preventDefault(),N=h?Wp(o,h):new FormData(o),_u(n,{pending:!0,data:N,method:o.method,action:c},c,N))},currentTarget:o}]})}}for(var af=0;af<qc.length;af++){var lf=qc[af],Jx=lf.toLowerCase(),$x=lf[0].toUpperCase()+lf.slice(1);mn(Jx,"on"+$x)}mn(Th,"onAnimationEnd"),mn(Mh,"onAnimationIteration"),mn(Ah,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(hx,"onTransitionRun"),mn(mx,"onTransitionStart"),mn(px,"onTransitionCancel"),mn(Oh,"onTransitionEnd"),Vl("onMouseEnter",["mouseout","mouseover"]),Vl("onMouseLeave",["mouseout","mouseover"]),Vl("onPointerEnter",["pointerout","pointerover"]),Vl("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),Wx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function Ip(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var h=l.length-1;0<=h;h--){var x=l[h],N=x.instance,L=x.currentTarget;if(x=x.listener,N!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=L;try{c(o)}catch(Q){Mr(Q)}o.currentTarget=null,c=N}else for(h=0;h<l.length;h++){if(x=l[h],N=x.instance,L=x.currentTarget,x=x.listener,N!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=L;try{c(o)}catch(Q){Mr(Q)}o.currentTarget=null,c=N}}}}function Re(e,t){var n=t[yc];n===void 0&&(n=t[yc]=new Set);var l=e+"__bubble";n.has(l)||(eg(t,e,2,!1),n.add(l))}function sf(e,t,n){var l=0;t&&(l|=4),eg(n,e,l,t)}var yo="_reactListening"+Math.random().toString(36).slice(2);function rf(e){if(!e[yo]){e[yo]=!0,Pd.forEach(function(n){n!=="selectionchange"&&(Wx.has(n)||sf(n,!1,e),sf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yo]||(t[yo]=!0,sf("selectionchange",!1,t))}}function eg(e,t,n,l){switch(Tg(t)){case 2:var o=w0;break;case 8:o=C0;break;default:o=_f}n=o.bind(null,t,n,e),o=void 0,!wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function of(e,t,n,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var x=l.stateNode.containerInfo;if(x===o)break;if(h===4)for(h=l.return;h!==null;){var N=h.tag;if((N===3||N===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;x!==null;){if(h=Hl(x),h===null)return;if(N=h.tag,N===5||N===6||N===26||N===27){l=c=h;continue e}x=x.parentNode}}l=l.return}sh(function(){var L=c,Q=Nc(n),Z=[];e:{var k=zh.get(e);if(k!==void 0){var q=Cr,ae=e;switch(e){case"keypress":if(Rr(n)===0)break e;case"keydown":case"keyup":q=Kv;break;case"focusin":ae="focus",q=Mc;break;case"focusout":ae="blur",q=Mc;break;case"beforeblur":case"afterblur":q=Mc;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":q=oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=zv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Zv;break;case Th:case Mh:case Ah:q=kv;break;case Oh:q=Jv;break;case"scroll":case"scrollend":q=Av;break;case"wheel":q=Wv;break;case"copy":case"cut":case"paste":q=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=uh;break;case"toggle":case"beforetoggle":q=ex}var de=(t&4)!==0,He=!de&&(e==="scroll"||e==="scrollend"),O=de?k!==null?k+"Capture":null:k;de=[];for(var E=L,D;E!==null;){var K=E;if(D=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||D===null||O===null||(K=ei(E,O),K!=null&&de.push(zi(E,K,D))),He)break;E=E.return}0<de.length&&(k=new q(k,ae,null,n,Q),Z.push({event:k,listeners:de}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",k&&n!==jc&&(ae=n.relatedTarget||n.fromElement)&&(Hl(ae)||ae[ql]))break e;if((q||k)&&(k=Q.window===Q?Q:(k=Q.ownerDocument)?k.defaultView||k.parentWindow:window,q?(ae=n.relatedTarget||n.toElement,q=L,ae=ae?Hl(ae):null,ae!==null&&(He=f(ae),de=ae.tag,ae!==He||de!==5&&de!==27&&de!==6)&&(ae=null)):(q=null,ae=L),q!==ae)){if(de=oh,K="onMouseLeave",O="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(de=uh,K="onPointerLeave",O="onPointerEnter",E="pointer"),He=q==null?k:Is(q),D=ae==null?k:Is(ae),k=new de(K,E+"leave",q,n,Q),k.target=He,k.relatedTarget=D,K=null,Hl(Q)===L&&(de=new de(O,E+"enter",ae,n,Q),de.target=D,de.relatedTarget=He,K=de),He=K,q&&ae)t:{for(de=Ix,O=q,E=ae,D=0,K=O;K;K=de(K))D++;K=0;for(var fe=E;fe;fe=de(fe))K++;for(;0<D-K;)O=de(O),D--;for(;0<K-D;)E=de(E),K--;for(;D--;){if(O===E||E!==null&&O===E.alternate){de=O;break t}O=de(O),E=de(E)}de=null}else de=null;q!==null&&tg(Z,k,q,de,!1),ae!==null&&He!==null&&tg(Z,He,ae,de,!0)}}e:{if(k=L?Is(L):window,q=k.nodeName&&k.nodeName.toLowerCase(),q==="select"||q==="input"&&k.type==="file")var Me=bh;else if(gh(k))if(vh)Me=ux;else{Me=ox;var re=rx}else q=k.nodeName,!q||q.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?L&&_c(L.elementType)&&(Me=bh):Me=cx;if(Me&&(Me=Me(e,L))){yh(Z,Me,n,Q);break e}re&&re(e,k,L),e==="focusout"&&L&&k.type==="number"&&L.memoizedProps.value!=null&&Sc(k,"number",k.value)}switch(re=L?Is(L):window,e){case"focusin":(gh(re)||re.contentEditable==="true")&&(Fl=re,kc=L,oi=null);break;case"focusout":oi=kc=Fl=null;break;case"mousedown":Uc=!0;break;case"contextmenu":case"mouseup":case"dragend":Uc=!1,Ch(Z,n,Q);break;case"selectionchange":if(dx)break;case"keydown":case"keyup":Ch(Z,n,Q)}var Se;if(Oc)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Zl?mh(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(fh&&n.locale!=="ko"&&(Zl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Zl&&(Se=ih()):(oa=Q,Cc="value"in oa?oa.value:oa.textContent,Zl=!0)),re=bo(L,Ce),0<re.length&&(Ce=new ch(Ce,e,null,n,Q),Z.push({event:Ce,listeners:re}),Se?Ce.data=Se:(Se=ph(n),Se!==null&&(Ce.data=Se)))),(Se=nx?ax(e,n):lx(e,n))&&(Ce=bo(L,"onBeforeInput"),0<Ce.length&&(re=new ch("onBeforeInput","beforeinput",null,n,Q),Z.push({event:re,listeners:Ce}),re.data=Se)),Fx(Z,e,L,n,Q)}Ip(Z,t)})}function zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bo(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ei(e,n),o!=null&&l.unshift(zi(e,o,c)),o=ei(e,t),o!=null&&l.push(zi(e,o,c))),e.tag===3)return l;e=e.return}return[]}function Ix(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,n,l,o){for(var c=t._reactName,h=[];n!==null&&n!==l;){var x=n,N=x.alternate,L=x.stateNode;if(x=x.tag,N!==null&&N===l)break;x!==5&&x!==26&&x!==27||L===null||(N=L,o?(L=ei(n,c),L!=null&&h.unshift(zi(n,L,N))):o||(L=ei(n,c),L!=null&&h.push(zi(n,L,N)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var e0=/\r\n?/g,t0=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(e0,`
|
|
49
|
+
`).replace(t0,"")}function ag(e,t){return t=ng(t),ng(e)===t}function qe(e,t,n,l,o,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Kl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Kl(e,""+l);break;case"className":Sr(e,"class",l);break;case"tabIndex":Sr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Sr(e,n,l);break;case"style":ah(e,l,c);break;case"data":if(t!=="object"){Sr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=jr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",o.name,o,null),qe(e,t,"formEncType",o.formEncType,o,null),qe(e,t,"formMethod",o.formMethod,o,null),qe(e,t,"formTarget",o.formTarget,o,null)):(qe(e,t,"encType",o.encType,o,null),qe(e,t,"method",o.method,o,null),qe(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=jr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Tn);break;case"onScroll":l!=null&&Re("scroll",e);break;case"onScrollEnd":l!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=jr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Re("beforetoggle",e),Re("toggle",e),xr(e,"popover",l);break;case"xlinkActuate":En(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":En(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":En(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":En(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":En(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":En(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":En(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":En(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":En(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Tv.get(n)||n,xr(e,n,l))}}function cf(e,t,n,l,o,c){switch(n){case"style":ah(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Kl(e,l):(typeof l=="number"||typeof l=="bigint")&&Kl(e,""+l);break;case"onScroll":l!=null&&Re("scroll",e);break;case"onScrollEnd":l!=null&&Re("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[Ct]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):xr(e,n,l)}}}function gt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var l=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,c,h,n,null)}}o&&qe(e,t,"srcSet",n.srcSet,n,null),l&&qe(e,t,"src",n.src,n,null);return;case"input":Re("invalid",e);var x=c=h=o=null,N=null,L=null;for(l in n)if(n.hasOwnProperty(l)){var Q=n[l];if(Q!=null)switch(l){case"name":o=Q;break;case"type":h=Q;break;case"checked":N=Q;break;case"defaultChecked":L=Q;break;case"value":c=Q;break;case"defaultValue":x=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,t));break;default:qe(e,t,l,Q,n,null)}}Id(e,c,x,N,L,h,o,!1);return;case"select":Re("invalid",e),l=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(x=n[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":h=x;break;case"multiple":l=x;default:qe(e,t,o,x,n,null)}t=c,n=h,e.multiple=!!l,t!=null?Yl(e,!!l,t,!1):n!=null&&Yl(e,!!l,n,!0);return;case"textarea":Re("invalid",e),c=o=l=null;for(h in n)if(n.hasOwnProperty(h)&&(x=n[h],x!=null))switch(h){case"value":l=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:qe(e,t,h,x,n,null)}th(e,l,o,c);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:qe(e,t,N,l,n,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(l=0;l<Oi.length;l++)Re(Oi[l],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in n)if(n.hasOwnProperty(L)&&(l=n[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,L,l,n,null)}return;default:if(_c(t)){for(Q in n)n.hasOwnProperty(Q)&&(l=n[Q],l!==void 0&&cf(e,t,Q,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&qe(e,t,x,l,n,null))}function n0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,x=null,N=null,L=null,Q=null;for(q in n){var Z=n[q];if(n.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=Z;default:l.hasOwnProperty(q)||qe(e,t,q,null,l,Z)}}for(var k in l){var q=l[k];if(Z=n[k],l.hasOwnProperty(k)&&(q!=null||Z!=null))switch(k){case"type":c=q;break;case"name":o=q;break;case"checked":L=q;break;case"defaultChecked":Q=q;break;case"value":h=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:q!==Z&&qe(e,t,k,q,l,Z)}}xc(e,h,x,N,L,Q,c,o);return;case"select":q=h=x=k=null;for(c in n)if(N=n[c],n.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":q=N;default:l.hasOwnProperty(c)||qe(e,t,c,null,l,N)}for(o in l)if(c=l[o],N=n[o],l.hasOwnProperty(o)&&(c!=null||N!=null))switch(o){case"value":k=c;break;case"defaultValue":x=c;break;case"multiple":h=c;default:c!==N&&qe(e,t,o,c,l,N)}t=x,n=h,l=q,k!=null?Yl(e,!!n,k,!1):!!l!=!!n&&(t!=null?Yl(e,!!n,t,!0):Yl(e,!!n,n?[]:"",!1));return;case"textarea":q=k=null;for(x in n)if(o=n[x],n.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:qe(e,t,x,null,l,o)}for(h in l)if(o=l[h],c=n[h],l.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":k=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&qe(e,t,h,o,l,c)}eh(e,k,q);return;case"option":for(var ae in n)if(k=n[ae],n.hasOwnProperty(ae)&&k!=null&&!l.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:qe(e,t,ae,null,l,k)}for(N in l)if(k=l[N],q=n[N],l.hasOwnProperty(N)&&k!==q&&(k!=null||q!=null))switch(N){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:qe(e,t,N,k,l,q)}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 de in n)k=n[de],n.hasOwnProperty(de)&&k!=null&&!l.hasOwnProperty(de)&&qe(e,t,de,null,l,k);for(L in l)if(k=l[L],q=n[L],l.hasOwnProperty(L)&&k!==q&&(k!=null||q!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:qe(e,t,L,k,l,q)}return;default:if(_c(t)){for(var He in n)k=n[He],n.hasOwnProperty(He)&&k!==void 0&&!l.hasOwnProperty(He)&&cf(e,t,He,void 0,l,k);for(Q in l)k=l[Q],q=n[Q],!l.hasOwnProperty(Q)||k===q||k===void 0&&q===void 0||cf(e,t,Q,k,l,q);return}}for(var O in n)k=n[O],n.hasOwnProperty(O)&&k!=null&&!l.hasOwnProperty(O)&&qe(e,t,O,null,l,k);for(Z in l)k=l[Z],q=n[Z],!l.hasOwnProperty(Z)||k===q||k==null&&q==null||qe(e,t,Z,k,l,q)}function lg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function a0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],c=o.transferSize,h=o.initiatorType,x=o.duration;if(c&&x&&lg(h)){for(h=0,x=o.responseEnd,l+=1;l<n.length;l++){var N=n[l],L=N.startTime;if(L>x)break;var Q=N.transferSize,Z=N.initiatorType;Q&&lg(Z)&&(N=N.responseEnd,h+=Q*(N<x?1:(x-L)/(N-L)))}if(--l,t+=8*(c+h)/(o.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 uf=null,ff=null;function vo(e){return e.nodeType===9?e:e.ownerDocument}function sg(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 ig(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 df(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 hf=null;function l0(){var e=window.event;return e&&e.type==="popstate"?e===hf?!1:(hf=e,!0):(hf=null,!1)}var rg=typeof setTimeout=="function"?setTimeout:void 0,s0=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,i0=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(r0)}:rg;function r0(e){setTimeout(function(){throw e})}function Ra(e){return e==="head"}function cg(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),_s(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Di(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Di(n);for(var c=n.firstChild;c;){var h=c.nextSibling,x=c.nodeName;c[Ws]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Di(e.ownerDocument.body);n=o}while(n);_s(t)}function ug(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function mf(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":mf(n),bc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function o0(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ws])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function c0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=an(e.nextSibling),e===null))return null;return e}function fg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function pf(e){return e.data==="$?"||e.data==="$~"}function gf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function u0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function an(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 yf=null;function dg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return an(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function hg(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 mg(e,t,n){switch(t=vo(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Di(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bc(e)}var ln=new Map,pg=new Set;function xo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=F.d;F.d={f:f0,r:d0,D:h0,C:m0,L:p0,m:g0,X:b0,S:y0,M:v0};function f0(){var e=Kn.f(),t=uo();return e||t}function d0(e){var t=Ql(e);t!==null&&t.tag===5&&t.type==="form"?Om(t):Kn.r(e)}var vs=typeof document>"u"?null:document;function gg(e,t,n){var l=vs;if(l&&typeof t=="string"&&t){var o=Jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),pg.has(o)||(pg.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),gt(t,"link",e),ot(t),l.head.appendChild(t)))}}function h0(e){Kn.D(e),gg("dns-prefetch",e,null)}function m0(e,t){Kn.C(e,t),gg("preconnect",e,t)}function p0(e,t,n){Kn.L(e,t,n);var l=vs;if(l&&e&&t){var o='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Jt(n.imageSizes)+'"]')):o+='[href="'+Jt(e)+'"]';var c=o;switch(t){case"style":c=xs(e);break;case"script":c=Ss(e)}ln.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Li(c))||t==="script"&&l.querySelector(ki(c))||(t=l.createElement("link"),gt(t,"link",e),ot(t),l.head.appendChild(t)))}}function g0(e,t){Kn.m(e,t);var n=vs;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Jt(l)+'"][href="'+Jt(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ss(e)}if(!ln.has(c)&&(e=b({rel:"modulepreload",href:e},t),ln.set(c,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ki(c)))return}l=n.createElement("link"),gt(l,"link",e),ot(l),n.head.appendChild(l)}}}function y0(e,t,n){Kn.S(e,t,n);var l=vs;if(l&&e){var o=Gl(l).hoistableStyles,c=xs(e);t=t||"default";var h=o.get(c);if(!h){var x={loading:0,preload:null};if(h=l.querySelector(Li(c)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(c))&&bf(e,n);var N=h=l.createElement("link");ot(N),gt(N,"link",e),N._p=new Promise(function(L,Q){N.onload=L,N.onerror=Q}),N.addEventListener("load",function(){x.loading|=1}),N.addEventListener("error",function(){x.loading|=2}),x.loading|=4,So(h,t,l)}h={type:"stylesheet",instance:h,count:1,state:x},o.set(c,h)}}}function b0(e,t){Kn.X(e,t);var n=vs;if(n&&e){var l=Gl(n).hoistableScripts,o=Ss(e),c=l.get(o);c||(c=n.querySelector(ki(o)),c||(e=b({src:e,async:!0},t),(t=ln.get(o))&&vf(e,t),c=n.createElement("script"),ot(c),gt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function v0(e,t){Kn.M(e,t);var n=vs;if(n&&e){var l=Gl(n).hoistableScripts,o=Ss(e),c=l.get(o);c||(c=n.querySelector(ki(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=ln.get(o))&&vf(e,t),c=n.createElement("script"),ot(c),gt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function yg(e,t,n,l){var o=(o=ve.current)?xo(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=xs(n.href),n=Gl(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=xs(n.href);var c=Gl(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Li(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ln.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ln.set(e,n),c||x0(o,e,n,h.state))),t&&l===null)throw Error(r(528,""));return h}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ss(n),n=Gl(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function xs(e){return'href="'+Jt(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function bg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function x0(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),gt(t,"link",n),ot(t),e.head.appendChild(t))}function Ss(e){return'[src="'+Jt(e)+'"]'}function ki(e){return"script[async]"+e}function vg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Jt(n.href)+'"]');if(l)return t.instance=l,ot(l),l;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ot(l),gt(l,"style",o),So(l,n.precedence,e),t.instance=l;case"stylesheet":o=xs(n.href);var c=e.querySelector(Li(o));if(c)return t.state.loading|=4,t.instance=c,ot(c),c;l=bg(n),(o=ln.get(o))&&bf(l,o),c=(e.ownerDocument||e).createElement("link"),ot(c);var h=c;return h._p=new Promise(function(x,N){h.onload=x,h.onerror=N}),gt(c,"link",l),t.state.loading|=4,So(c,n.precedence,e),t.instance=c;case"script":return c=Ss(n.src),(o=e.querySelector(ki(c)))?(t.instance=o,ot(o),o):(l=n,(o=ln.get(c))&&(l=b({},n),vf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ot(o),gt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,So(l,n.precedence,e));return t.instance}function So(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,h=0;h<l.length;h++){var x=l[h];if(x.dataset.precedence===t)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function bf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _o=null;function xg(e,t,n){if(_o===null){var l=new Map,o=_o=new Map;o.set(n,l)}else o=_o,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[Ws]||c[dt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var x=l.get(h);x?x.push(c):l.set(h,[c])}}return l}function Sg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function S0(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 _g(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _0(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=xs(l.href),c=t.querySelector(Li(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ot(c);return}c=t.ownerDocument||t,l=bg(l),(o=ln.get(o))&&bf(l,o),c=c.createElement("link"),ot(c);var h=c;h._p=new Promise(function(x,N){h.onload=x,h.onerror=N}),gt(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=jo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var xf=0;function j0(e,t){return e.stylesheets&&e.count===0&&Ro(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Ro(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&xf===0&&(xf=62500*a0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ro(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ro(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var No=null;function Ro(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,No=new Map,t.forEach(N0,e),No=null,jo.call(e))}function N0(e,t){if(!(t.state.loading&4)){var n=No.get(e);if(n)var l=n.get(null);else{n=new Map,No.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||l,c===l&&n.set(null,o),n.set(h,o),this.count++,l=jo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ui={$$typeof:P,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function R0(e,t,n,l,o,c,h,x,N){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=mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.hiddenUpdates=mc(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function jg(e,t,n,l,o,c,h,x,N,L,Q,Z){return e=new R0(e,t,n,h,N,L,Q,Z,x),t=1,c===!0&&(t|=24),c=Ht(3,null,null,t),e.current=c,c.stateNode=e,t=Wc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},nu(c),e}function Ng(e){return e?(e=Wl,e):Wl}function Rg(e,t,n,l,o,c){o=Ng(o),l.context===null?l.context=o:l.pendingContext=o,l=ma(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=pa(e,l,t),n!==null&&(zt(n,e,t),pi(n,e,t))}function wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sf(e,t){wg(e,t),(e=e.alternate)&&wg(e,t)}function Cg(e){if(e.tag===13||e.tag===31){var t=nl(e,67108864);t!==null&&zt(t,e,67108864),Sf(e,67108864)}}function Eg(e){if(e.tag===13||e.tag===31){var t=Kt();t=pc(t);var n=nl(e,t);n!==null&&zt(n,e,t),Sf(e,t)}}var wo=!0;function w0(e,t,n,l){var o=A.T;A.T=null;var c=F.p;try{F.p=2,_f(e,t,n,l)}finally{F.p=c,A.T=o}}function C0(e,t,n,l){var o=A.T;A.T=null;var c=F.p;try{F.p=8,_f(e,t,n,l)}finally{F.p=c,A.T=o}}function _f(e,t,n,l){if(wo){var o=jf(l);if(o===null)of(e,t,l,Co,n),Mg(e,l);else if(T0(o,e,t,n,l))l.stopPropagation();else if(Mg(e,l),t&4&&-1<E0.indexOf(e)){for(;o!==null;){var c=Ql(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=$a(c.pendingLanes);if(h!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;h;){var N=1<<31-Bt(h);x.entanglements[1]|=N,h&=~N}_n(c),(Oe&6)===0&&(oo=jt()+500,Ai(0))}}break;case 31:case 13:x=nl(c,2),x!==null&&zt(x,c,2),uo(),Sf(c,2)}if(c=jf(l),c===null&&of(e,t,l,Co,n),c===o)break;o=c}o!==null&&l.stopPropagation()}else of(e,t,l,null,n)}}function jf(e){return e=Nc(e),Nf(e)}var Co=null;function Nf(e){if(Co=null,e=Hl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=p(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 Co=e,null}function Tg(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(hc()){case Qe:return 2;case ft:return 8;case bt:case pr:return 32;case qd:return 268435456;default:return 32}default:return 32}}var Rf=!1,wa=null,Ca=null,Ea=null,Bi=new Map,qi=new Map,Ta=[],E0="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 Mg(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qi.delete(t.pointerId)}}function Hi(e,t,n,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Ql(t),t!==null&&Cg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function T0(e,t,n,l,o){switch(t){case"focusin":return wa=Hi(wa,e,t,n,l,o),!0;case"dragenter":return Ca=Hi(Ca,e,t,n,l,o),!0;case"mouseover":return Ea=Hi(Ea,e,t,n,l,o),!0;case"pointerover":var c=o.pointerId;return Bi.set(c,Hi(Bi.get(c)||null,e,t,n,l,o)),!0;case"gotpointercapture":return c=o.pointerId,qi.set(c,Hi(qi.get(c)||null,e,t,n,l,o)),!0}return!1}function Ag(e){var t=Hl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Kd(e.priority,function(){Eg(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Kd(e.priority,function(){Eg(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 Eo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=jf(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);jc=l,n.target.dispatchEvent(l),jc=null}else return t=Ql(n),t!==null&&Cg(t),e.blockedOn=n,!1;t.shift()}return!0}function Og(e,t,n){Eo(e)&&n.delete(t)}function M0(){Rf=!1,wa!==null&&Eo(wa)&&(wa=null),Ca!==null&&Eo(Ca)&&(Ca=null),Ea!==null&&Eo(Ea)&&(Ea=null),Bi.forEach(Og),qi.forEach(Og)}function To(e,t){e.blockedOn===t&&(e.blockedOn=null,Rf||(Rf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,M0)))}var Mo=null;function zg(e){Mo!==e&&(Mo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Mo===e&&(Mo=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Nf(l||n)===null)continue;break}var c=Ql(n);c!==null&&(e.splice(t,3),t-=3,_u(c,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function _s(e){function t(N){return To(N,e)}wa!==null&&To(wa,e),Ca!==null&&To(Ca,e),Ea!==null&&To(Ea,e),Bi.forEach(t),qi.forEach(t);for(var n=0;n<Ta.length;n++){var l=Ta[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ta.length&&(n=Ta[0],n.blockedOn===null);)Ag(n),n.blockedOn===null&&Ta.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],c=n[l+1],h=o[Ct]||null;if(typeof c=="function")h||zg(n);else if(h){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Ct]||null)x=h.formAction;else if(Nf(o)!==null)continue}else x=h.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),zg(n)}}}function Dg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wf(e){this._internalRoot=e}Ao.prototype.render=wf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Kt();Rg(n,l,e,t,null,null)},Ao.prototype.unmount=wf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rg(e.current,2,null,e,null,null),uo(),t[ql]=null}};function Ao(e){this._internalRoot=e}Ao.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ta.length&&t!==0&&t<Ta[n].priority;n++);Ta.splice(n,0,e),n===0&&Ag(e)}};var Lg=s.version;if(Lg!=="19.2.4")throw Error(r(527,Lg,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var A0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oo.isDisabled&&Oo.supportsFiber)try{Fs=Oo.inject(A0),Ut=Oo}catch{}}return Gi.createRoot=function(e,t){if(!u(e))throw Error(r(299));var n=!1,l="",o=Gm,c=Vm,h=Ym;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=jg(e,1,!1,null,null,n,l,null,o,c,h,Dg),e[ql]=t.current,rf(e),new wf(t)},Gi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(r(299));var l=!1,o="",c=Gm,h=Vm,x=Ym,N=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=jg(e,1,!0,t,n??null,l,o,N,c,h,x,Dg),t.context=Ng(null),n=t.current,l=Kt(),l=pc(l),o=ma(l),o.callback=null,pa(n,o,l),n=l,t.current.lanes=n,$s(t,n),_n(t),e[ql]=t.current,rf(e),new Ao(t)},Gi.version="19.2.4",Gi}var Xg;function V0(){if(Xg)return Mf.exports;Xg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Mf.exports=G0(),Mf.exports}var Y0=V0(),Vs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},K0={setTimeout:(a,s)=>setTimeout(a,s),clearTimeout:a=>clearTimeout(a),setInterval:(a,s)=>setInterval(a,s),clearInterval:a=>clearInterval(a)},Da,yd,Vy,X0=(Vy=class{constructor(){ue(this,Da,K0);ue(this,yd,!1)}setTimeoutProvider(a){ne(this,Da,a)}setTimeout(a,s){return w(this,Da).setTimeout(a,s)}clearTimeout(a){w(this,Da).clearTimeout(a)}setInterval(a,s){return w(this,Da).setInterval(a,s)}clearInterval(a){w(this,Da).clearInterval(a)}},Da=new WeakMap,yd=new WeakMap,Vy),yl=new X0;function P0(a){setTimeout(a,0)}var Ol=typeof window>"u"||"Deno"in globalThis;function wt(){}function Z0(a,s){return typeof a=="function"?a(s):a}function Wf(a){return typeof a=="number"&&a>=0&&a!==1/0}function tb(a,s){return Math.max(a+(s||0)-Date.now(),0)}function Ka(a,s){return typeof a=="function"?a(s):a}function rn(a,s){return typeof a=="function"?a(s):a}function Pg(a,s){const{type:i="all",exact:r,fetchStatus:u,predicate:f,queryKey:m,stale:p}=a;if(m){if(r){if(s.queryHash!==bd(m,s.options))return!1}else if(!lr(s.queryKey,m))return!1}if(i!=="all"){const g=s.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof p=="boolean"&&s.isStale()!==p||u&&u!==s.state.fetchStatus||f&&!f(s))}function Zg(a,s){const{exact:i,status:r,predicate:u,mutationKey:f}=a;if(f){if(!s.options.mutationKey)return!1;if(i){if(zl(s.options.mutationKey)!==zl(f))return!1}else if(!lr(s.options.mutationKey,f))return!1}return!(r&&s.state.status!==r||u&&!u(s))}function bd(a,s){return((s==null?void 0:s.queryKeyHashFn)||zl)(a)}function zl(a){return JSON.stringify(a,(s,i)=>If(i)?Object.keys(i).sort().reduce((r,u)=>(r[u]=i[u],r),{}):i)}function lr(a,s){return a===s?!0:typeof a!=typeof s?!1:a&&s&&typeof a=="object"&&typeof s=="object"?Object.keys(s).every(i=>lr(a[i],s[i])):!1}var F0=Object.prototype.hasOwnProperty;function nb(a,s,i=0){if(a===s)return a;if(i>500)return s;const r=Fg(a)&&Fg(s);if(!r&&!(If(a)&&If(s)))return s;const f=(r?a:Object.keys(a)).length,m=r?s:Object.keys(s),p=m.length,g=r?new Array(p):{};let y=0;for(let v=0;v<p;v++){const b=r?v:m[v],S=a[b],_=s[b];if(S===_){g[b]=S,(r?v<f:F0.call(a,b))&&y++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){g[b]=_;continue}const R=nb(S,_,i+1);g[b]=R,R===S&&y++}return f===p&&y===f?a:g}function Po(a,s){if(!s||Object.keys(a).length!==Object.keys(s).length)return!1;for(const i in a)if(a[i]!==s[i])return!1;return!0}function Fg(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function If(a){if(!Jg(a))return!1;const s=a.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!Jg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Jg(a){return Object.prototype.toString.call(a)==="[object Object]"}function J0(a){return new Promise(s=>{yl.setTimeout(s,a)})}function ed(a,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(a,s):i.structuralSharing!==!1?nb(a,s):s}function un(a){return a}function $0(a,s,i=0){const r=[...a,s];return i&&r.length>i?r.slice(1):r}function W0(a,s,i=0){const r=[s,...a];return i&&r.length>i?r.slice(0,-1):r}var vd=Symbol();function ab(a,s){return!a.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!a.queryFn||a.queryFn===vd?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function xd(a,s){return typeof a=="function"?a(...s):!!a}function I0(a,s,i){let r=!1,u;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(u??(u=s()),r||(r=!0,u.aborted?i():u.addEventListener("abort",i,{once:!0})),u)}),a}var xl,La,Es,Yy,e1=(Yy=class extends Vs{constructor(){super();ue(this,xl);ue(this,La);ue(this,Es);ne(this,Es,s=>{if(!Ol&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){w(this,La)||this.setEventListener(w(this,Es))}onUnsubscribe(){var s;this.hasListeners()||((s=w(this,La))==null||s.call(this),ne(this,La,void 0))}setEventListener(s){var i;ne(this,Es,s),(i=w(this,La))==null||i.call(this),ne(this,La,s(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(s){w(this,xl)!==s&&(ne(this,xl,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof w(this,xl)=="boolean"?w(this,xl):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},xl=new WeakMap,La=new WeakMap,Es=new WeakMap,Yy),Sd=new e1;function td(){let a,s;const i=new Promise((u,f)=>{a=u,s=f});i.status="pending",i.catch(()=>{});function r(u){Object.assign(i,u),delete i.resolve,delete i.reject}return i.resolve=u=>{r({status:"fulfilled",value:u}),a(u)},i.reject=u=>{r({status:"rejected",reason:u}),s(u)},i}var t1=P0;function n1(){let a=[],s=0,i=p=>{p()},r=p=>{p()},u=t1;const f=p=>{s?a.push(p):u(()=>{i(p)})},m=()=>{const p=a;a=[],p.length&&u(()=>{r(()=>{p.forEach(g=>{i(g)})})})};return{batch:p=>{let g;s++;try{g=p()}finally{s--,s||m()}return g},batchCalls:p=>(...g)=>{f(()=>{p(...g)})},schedule:f,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{r=p},setScheduler:p=>{u=p}}}var rt=n1(),Ts,ka,Ms,Ky,a1=(Ky=class extends Vs{constructor(){super();ue(this,Ts,!0);ue(this,ka);ue(this,Ms);ne(this,Ms,s=>{if(!Ol&&window.addEventListener){const i=()=>s(!0),r=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){w(this,ka)||this.setEventListener(w(this,Ms))}onUnsubscribe(){var s;this.hasListeners()||((s=w(this,ka))==null||s.call(this),ne(this,ka,void 0))}setEventListener(s){var i;ne(this,Ms,s),(i=w(this,ka))==null||i.call(this),ne(this,ka,s(this.setOnline.bind(this)))}setOnline(s){w(this,Ts)!==s&&(ne(this,Ts,s),this.listeners.forEach(r=>{r(s)}))}isOnline(){return w(this,Ts)}},Ts=new WeakMap,ka=new WeakMap,Ms=new WeakMap,Ky),Zo=new a1;function l1(a){return Math.min(1e3*2**a,3e4)}function lb(a){return(a??"online")==="online"?Zo.isOnline():!0}var nd=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function sb(a){let s=!1,i=0,r;const u=td(),f=()=>u.status!=="pending",m=j=>{var M;if(!f()){const z=new nd(j);S(z),(M=a.onCancel)==null||M.call(a,z)}},p=()=>{s=!0},g=()=>{s=!1},y=()=>Sd.isFocused()&&(a.networkMode==="always"||Zo.isOnline())&&a.canRun(),v=()=>lb(a.networkMode)&&a.canRun(),b=j=>{f()||(r==null||r(),u.resolve(j))},S=j=>{f()||(r==null||r(),u.reject(j))},_=()=>new Promise(j=>{var M;r=z=>{(f()||y())&&j(z)},(M=a.onPause)==null||M.call(a)}).then(()=>{var j;r=void 0,f()||(j=a.onContinue)==null||j.call(a)}),R=()=>{if(f())return;let j;const M=i===0?a.initialPromise:void 0;try{j=M??a.fn()}catch(z){j=Promise.reject(z)}Promise.resolve(j).then(b).catch(z=>{var te;if(f())return;const B=a.retry??(Ol?0:3),P=a.retryDelay??l1,T=typeof P=="function"?P(i,z):P,J=B===!0||typeof B=="number"&&i<B||typeof B=="function"&&B(i,z);if(s||!J){S(z);return}i++,(te=a.onFail)==null||te.call(a,i,z),J0(T).then(()=>y()?void 0:_()).then(()=>{s?S(z):R()})})};return{promise:u,status:()=>u.status,cancel:m,continue:()=>(r==null||r(),u),cancelRetry:p,continueRetry:g,canStart:v,start:()=>(v()?R():_().then(R),u)}}var Sl,Xy,ib=(Xy=class{constructor(){ue(this,Sl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wf(this.gcTime)&&ne(this,Sl,yl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Ol?1/0:300*1e3))}clearGcTimeout(){w(this,Sl)&&(yl.clearTimeout(w(this,Sl)),ne(this,Sl,void 0))}},Sl=new WeakMap,Xy),_l,As,sn,jl,ut,rr,Nl,yn,Pn,Py,s1=(Py=class extends ib{constructor(s){super();ue(this,yn);ue(this,_l);ue(this,As);ue(this,sn);ue(this,jl);ue(this,ut);ue(this,rr);ue(this,Nl);ne(this,Nl,!1),ne(this,rr,s.defaultOptions),this.setOptions(s.options),this.observers=[],ne(this,jl,s.client),ne(this,sn,w(this,jl).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,ne(this,_l,Wg(this.options)),this.state=s.state??w(this,_l),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=w(this,ut))==null?void 0:s.promise}setOptions(s){if(this.options={...w(this,rr),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Wg(this.options);i.data!==void 0&&(this.setState($g(i.data,i.dataUpdatedAt)),ne(this,_l,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,sn).remove(this)}setData(s,i){const r=ed(this.state.data,s,this.options);return _e(this,yn,Pn).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(s,i){_e(this,yn,Pn).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var r,u;const i=(r=w(this,ut))==null?void 0:r.promise;return(u=w(this,ut))==null||u.cancel(s),i?i.then(wt).catch(wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(w(this,_l))}isActive(){return this.observers.some(s=>rn(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>Ka(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!tb(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(r=>r.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=w(this,ut))==null||i.continue()}onOnline(){var i;const s=this.observers.find(r=>r.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=w(this,ut))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),w(this,sn).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(w(this,ut)&&(w(this,Nl)?w(this,ut).cancel({revert:!0}):w(this,ut).cancelRetry()),this.scheduleGc()),w(this,sn).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_e(this,yn,Pn).call(this,{type:"invalidate"})}async fetch(s,i){var g,y,v,b,S,_,R,j,M,z,B,P;if(this.state.fetchStatus!=="idle"&&((g=w(this,ut))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(w(this,ut))return w(this,ut).continueRetry(),w(this,ut).promise}if(s&&this.setOptions(s),!this.options.queryFn){const T=this.observers.find(J=>J.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,u=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(ne(this,Nl,!0),r.signal)})},f=()=>{const T=ab(this.options,i),te=(()=>{const V={client:w(this,jl),queryKey:this.queryKey,meta:this.meta};return u(V),V})();return ne(this,Nl,!1),this.options.persister?this.options.persister(T,te,this):T(te)},p=(()=>{const T={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:w(this,jl),state:this.state,fetchFn:f};return u(T),T})();(y=this.options.behavior)==null||y.onFetch(p,this),ne(this,As,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=p.fetchOptions)==null?void 0:v.meta))&&_e(this,yn,Pn).call(this,{type:"fetch",meta:(b=p.fetchOptions)==null?void 0:b.meta}),ne(this,ut,sb({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:T=>{T instanceof nd&&T.revert&&this.setState({...w(this,As),fetchStatus:"idle"}),r.abort()},onFail:(T,J)=>{_e(this,yn,Pn).call(this,{type:"failed",failureCount:T,error:J})},onPause:()=>{_e(this,yn,Pn).call(this,{type:"pause"})},onContinue:()=>{_e(this,yn,Pn).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const T=await w(this,ut).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(_=(S=w(this,sn).config).onSuccess)==null||_.call(S,T,this),(j=(R=w(this,sn).config).onSettled)==null||j.call(R,T,this.state.error,this),T}catch(T){if(T instanceof nd){if(T.silent)return w(this,ut).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw _e(this,yn,Pn).call(this,{type:"error",error:T}),(z=(M=w(this,sn).config).onError)==null||z.call(M,T,this),(P=(B=w(this,sn).config).onSettled)==null||P.call(B,this.state.data,T,this),T}finally{this.scheduleGc()}}},_l=new WeakMap,As=new WeakMap,sn=new WeakMap,jl=new WeakMap,ut=new WeakMap,rr=new WeakMap,Nl=new WeakMap,yn=new WeakSet,Pn=function(s){const i=r=>{switch(s.type){case"failed":return{...r,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...rb(r.data,this.options),fetchMeta:s.meta??null};case"success":const u={...r,...$g(s.data,s.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,As,s.manual?u:void 0),u;case"error":const f=s.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...s.state}}};this.state=i(this.state),rt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),w(this,sn).notify({query:this,type:"updated",action:s})})},Py);function rb(a,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lb(s.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function $g(a,s){return{data:a,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wg(a){const s=typeof a.initialData=="function"?a.initialData():a.initialData,i=s!==void 0,r=i?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Dt,Te,or,Rt,Rl,Os,Zn,Ua,cr,zs,Ds,wl,Cl,Ba,Ls,De,Ji,ad,ld,sd,id,rd,od,cd,ob,Zy,i1=(Zy=class extends Vs{constructor(s,i){super();ue(this,De);ue(this,Dt);ue(this,Te);ue(this,or);ue(this,Rt);ue(this,Rl);ue(this,Os);ue(this,Zn);ue(this,Ua);ue(this,cr);ue(this,zs);ue(this,Ds);ue(this,wl);ue(this,Cl);ue(this,Ba);ue(this,Ls,new Set);this.options=i,ne(this,Dt,s),ne(this,Ua,null),ne(this,Zn,td()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,Te).addObserver(this),Ig(w(this,Te),this.options)?_e(this,De,Ji).call(this):this.updateResult(),_e(this,De,id).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ud(w(this,Te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ud(w(this,Te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_e(this,De,rd).call(this),_e(this,De,od).call(this),w(this,Te).removeObserver(this)}setOptions(s){const i=this.options,r=w(this,Te);if(this.options=w(this,Dt).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rn(this.options.enabled,w(this,Te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_e(this,De,cd).call(this),w(this,Te).setOptions(this.options),i._defaulted&&!Po(this.options,i)&&w(this,Dt).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,Te),observer:this});const u=this.hasListeners();u&&ey(w(this,Te),r,this.options,i)&&_e(this,De,Ji).call(this),this.updateResult(),u&&(w(this,Te)!==r||rn(this.options.enabled,w(this,Te))!==rn(i.enabled,w(this,Te))||Ka(this.options.staleTime,w(this,Te))!==Ka(i.staleTime,w(this,Te)))&&_e(this,De,ad).call(this);const f=_e(this,De,ld).call(this);u&&(w(this,Te)!==r||rn(this.options.enabled,w(this,Te))!==rn(i.enabled,w(this,Te))||f!==w(this,Ba))&&_e(this,De,sd).call(this,f)}getOptimisticResult(s){const i=w(this,Dt).getQueryCache().build(w(this,Dt),s),r=this.createResult(i,s);return o1(this,r)&&(ne(this,Rt,r),ne(this,Os,this.options),ne(this,Rl,w(this,Te).state)),r}getCurrentResult(){return w(this,Rt)}trackResult(s,i){return new Proxy(s,{get:(r,u)=>(this.trackProp(u),i==null||i(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&w(this,Zn).status==="pending"&&w(this,Zn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,u))})}trackProp(s){w(this,Ls).add(s)}getCurrentQuery(){return w(this,Te)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=w(this,Dt).defaultQueryOptions(s),r=w(this,Dt).getQueryCache().build(w(this,Dt),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(s){return _e(this,De,Ji).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,Rt)))}createResult(s,i){var W;const r=w(this,Te),u=this.options,f=w(this,Rt),m=w(this,Rl),p=w(this,Os),y=s!==r?s.state:w(this,or),{state:v}=s;let b={...v},S=!1,_;if(i._optimisticResults){const G=this.hasListeners(),I=!G&&Ig(s,i),oe=G&&ey(s,r,i,u);(I||oe)&&(b={...b,...rb(v.data,s.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:R,errorUpdatedAt:j,status:M}=b;_=b.data;let z=!1;if(i.placeholderData!==void 0&&_===void 0&&M==="pending"){let G;f!=null&&f.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(G=f.data,z=!0):G=typeof i.placeholderData=="function"?i.placeholderData((W=w(this,Ds))==null?void 0:W.state.data,w(this,Ds)):i.placeholderData,G!==void 0&&(M="success",_=ed(f==null?void 0:f.data,G,i),S=!0)}if(i.select&&_!==void 0&&!z)if(f&&_===(m==null?void 0:m.data)&&i.select===w(this,cr))_=w(this,zs);else try{ne(this,cr,i.select),_=i.select(_),_=ed(f==null?void 0:f.data,_,i),ne(this,zs,_),ne(this,Ua,null)}catch(G){ne(this,Ua,G)}w(this,Ua)&&(R=w(this,Ua),_=w(this,zs),j=Date.now(),M="error");const B=b.fetchStatus==="fetching",P=M==="pending",T=M==="error",J=P&&B,te=_!==void 0,H={status:M,fetchStatus:b.fetchStatus,isPending:P,isSuccess:M==="success",isError:T,isInitialLoading:J,isLoading:J,data:_,dataUpdatedAt:b.dataUpdatedAt,error:R,errorUpdatedAt:j,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>y.dataUpdateCount||b.errorUpdateCount>y.errorUpdateCount,isFetching:B,isRefetching:B&&!P,isLoadingError:T&&!te,isPaused:b.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:T&&te,isStale:_d(s,i),refetch:this.refetch,promise:w(this,Zn),isEnabled:rn(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const G=H.data!==void 0,I=H.status==="error"&&!G,oe=ie=>{I?ie.reject(H.error):G&&ie.resolve(H.data)},pe=()=>{const ie=ne(this,Zn,H.promise=td());oe(ie)},ge=w(this,Zn);switch(ge.status){case"pending":s.queryHash===r.queryHash&&oe(ge);break;case"fulfilled":(I||H.data!==ge.value)&&pe();break;case"rejected":(!I||H.error!==ge.reason)&&pe();break}}return H}updateResult(){const s=w(this,Rt),i=this.createResult(w(this,Te),this.options);if(ne(this,Rl,w(this,Te).state),ne(this,Os,this.options),w(this,Rl).data!==void 0&&ne(this,Ds,w(this,Te)),Po(i,s))return;ne(this,Rt,i);const r=()=>{if(!s)return!0;const{notifyOnChangeProps:u}=this.options,f=typeof u=="function"?u():u;if(f==="all"||!f&&!w(this,Ls).size)return!0;const m=new Set(f??w(this,Ls));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,Rt)).some(p=>{const g=p;return w(this,Rt)[g]!==s[g]&&m.has(g)})};_e(this,De,ob).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_e(this,De,id).call(this)}},Dt=new WeakMap,Te=new WeakMap,or=new WeakMap,Rt=new WeakMap,Rl=new WeakMap,Os=new WeakMap,Zn=new WeakMap,Ua=new WeakMap,cr=new WeakMap,zs=new WeakMap,Ds=new WeakMap,wl=new WeakMap,Cl=new WeakMap,Ba=new WeakMap,Ls=new WeakMap,De=new WeakSet,Ji=function(s){_e(this,De,cd).call(this);let i=w(this,Te).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(wt)),i},ad=function(){_e(this,De,rd).call(this);const s=Ka(this.options.staleTime,w(this,Te));if(Ol||w(this,Rt).isStale||!Wf(s))return;const r=tb(w(this,Rt).dataUpdatedAt,s)+1;ne(this,wl,yl.setTimeout(()=>{w(this,Rt).isStale||this.updateResult()},r))},ld=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,Te)):this.options.refetchInterval)??!1},sd=function(s){_e(this,De,od).call(this),ne(this,Ba,s),!(Ol||rn(this.options.enabled,w(this,Te))===!1||!Wf(w(this,Ba))||w(this,Ba)===0)&&ne(this,Cl,yl.setInterval(()=>{(this.options.refetchIntervalInBackground||Sd.isFocused())&&_e(this,De,Ji).call(this)},w(this,Ba)))},id=function(){_e(this,De,ad).call(this),_e(this,De,sd).call(this,_e(this,De,ld).call(this))},rd=function(){w(this,wl)&&(yl.clearTimeout(w(this,wl)),ne(this,wl,void 0))},od=function(){w(this,Cl)&&(yl.clearInterval(w(this,Cl)),ne(this,Cl,void 0))},cd=function(){const s=w(this,Dt).getQueryCache().build(w(this,Dt),this.options);if(s===w(this,Te))return;const i=w(this,Te);ne(this,Te,s),ne(this,or,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},ob=function(s){rt.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(w(this,Rt))}),w(this,Dt).getQueryCache().notify({query:w(this,Te),type:"observerResultsUpdated"})})},Zy);function r1(a,s){return rn(s.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&s.retryOnMount===!1)}function Ig(a,s){return r1(a,s)||a.state.data!==void 0&&ud(a,s,s.refetchOnMount)}function ud(a,s,i){if(rn(s.enabled,a)!==!1&&Ka(s.staleTime,a)!=="static"){const r=typeof i=="function"?i(a):i;return r==="always"||r!==!1&&_d(a,s)}return!1}function ey(a,s,i,r){return(a!==s||rn(r.enabled,a)===!1)&&(!i.suspense||a.state.status!=="error")&&_d(a,i)}function _d(a,s){return rn(s.enabled,a)!==!1&&a.isStaleByTime(Ka(s.staleTime,a))}function o1(a,s){return!Po(a.getCurrentResult(),s)}function ty(a){return{onFetch:(s,i)=>{var v,b,S,_,R;const r=s.options,u=(S=(b=(v=s.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:S.direction,f=((_=s.state.data)==null?void 0:_.pages)||[],m=((R=s.state.data)==null?void 0:R.pageParams)||[];let p={pages:[],pageParams:[]},g=0;const y=async()=>{let j=!1;const M=P=>{I0(P,()=>s.signal,()=>j=!0)},z=ab(s.options,s.fetchOptions),B=async(P,T,J)=>{if(j)return Promise.reject();if(T==null&&P.pages.length)return Promise.resolve(P);const V=(()=>{const I={client:s.client,queryKey:s.queryKey,pageParam:T,direction:J?"backward":"forward",meta:s.options.meta};return M(I),I})(),H=await z(V),{maxPages:W}=s.options,G=J?W0:$0;return{pages:G(P.pages,H,W),pageParams:G(P.pageParams,T,W)}};if(u&&f.length){const P=u==="backward",T=P?c1:ny,J={pages:f,pageParams:m},te=T(r,J);p=await B(J,te,P)}else{const P=a??f.length;do{const T=g===0?m[0]??r.initialPageParam:ny(r,p);if(g>0&&T==null)break;p=await B(p,T),g++}while(g<P)}return p};s.options.persister?s.fetchFn=()=>{var j,M;return(M=(j=s.options).persister)==null?void 0:M.call(j,y,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=y}}}function ny(a,{pages:s,pageParams:i}){const r=s.length-1;return s.length>0?a.getNextPageParam(s[r],s,i[r],i):void 0}function c1(a,{pages:s,pageParams:i}){var r;return s.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,s[0],s,i[0],i):void 0}var ur,jn,xt,El,Nn,Oa,Fy,u1=(Fy=class extends ib{constructor(s){super();ue(this,Nn);ue(this,ur);ue(this,jn);ue(this,xt);ue(this,El);ne(this,ur,s.client),this.mutationId=s.mutationId,ne(this,xt,s.mutationCache),ne(this,jn,[]),this.state=s.state||cb(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){w(this,jn).includes(s)||(w(this,jn).push(s),this.clearGcTimeout(),w(this,xt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){ne(this,jn,w(this,jn).filter(i=>i!==s)),this.scheduleGc(),w(this,xt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){w(this,jn).length||(this.state.status==="pending"?this.scheduleGc():w(this,xt).remove(this))}continue(){var s;return((s=w(this,El))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var m,p,g,y,v,b,S,_,R,j,M,z,B,P,T,J,te,V;const i=()=>{_e(this,Nn,Oa).call(this,{type:"continue"})},r={client:w(this,ur),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,El,sb({fn:()=>this.options.mutationFn?this.options.mutationFn(s,r):Promise.reject(new Error("No mutationFn found")),onFail:(H,W)=>{_e(this,Nn,Oa).call(this,{type:"failed",failureCount:H,error:W})},onPause:()=>{_e(this,Nn,Oa).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,xt).canRun(this)}));const u=this.state.status==="pending",f=!w(this,El).canStart();try{if(u)i();else{_e(this,Nn,Oa).call(this,{type:"pending",variables:s,isPaused:f}),w(this,xt).config.onMutate&&await w(this,xt).config.onMutate(s,this,r);const W=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,s,r));W!==this.state.context&&_e(this,Nn,Oa).call(this,{type:"pending",context:W,variables:s,isPaused:f})}const H=await w(this,El).start();return await((y=(g=w(this,xt).config).onSuccess)==null?void 0:y.call(g,H,s,this.state.context,this,r)),await((b=(v=this.options).onSuccess)==null?void 0:b.call(v,H,s,this.state.context,r)),await((_=(S=w(this,xt).config).onSettled)==null?void 0:_.call(S,H,null,this.state.variables,this.state.context,this,r)),await((j=(R=this.options).onSettled)==null?void 0:j.call(R,H,null,s,this.state.context,r)),_e(this,Nn,Oa).call(this,{type:"success",data:H}),H}catch(H){try{await((z=(M=w(this,xt).config).onError)==null?void 0:z.call(M,H,s,this.state.context,this,r))}catch(W){Promise.reject(W)}try{await((P=(B=this.options).onError)==null?void 0:P.call(B,H,s,this.state.context,r))}catch(W){Promise.reject(W)}try{await((J=(T=w(this,xt).config).onSettled)==null?void 0:J.call(T,void 0,H,this.state.variables,this.state.context,this,r))}catch(W){Promise.reject(W)}try{await((V=(te=this.options).onSettled)==null?void 0:V.call(te,void 0,H,s,this.state.context,r))}catch(W){Promise.reject(W)}throw _e(this,Nn,Oa).call(this,{type:"error",error:H}),H}finally{w(this,xt).runNext(this)}}},ur=new WeakMap,jn=new WeakMap,xt=new WeakMap,El=new WeakMap,Nn=new WeakSet,Oa=function(s){const i=r=>{switch(s.type){case"failed":return{...r,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...r,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:s.error,failureCount:r.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),rt.batch(()=>{w(this,jn).forEach(r=>{r.onMutationUpdate(s)}),w(this,xt).notify({mutation:this,type:"updated",action:s})})},Fy);function cb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,bn,fr,Jy,f1=(Jy=class extends Vs{constructor(s={}){super();ue(this,Fn);ue(this,bn);ue(this,fr);this.config=s,ne(this,Fn,new Set),ne(this,bn,new Map),ne(this,fr,0)}build(s,i,r){const u=new u1({client:s,mutationCache:this,mutationId:++zo(this,fr)._,options:s.defaultMutationOptions(i),state:r});return this.add(u),u}add(s){w(this,Fn).add(s);const i=Do(s);if(typeof i=="string"){const r=w(this,bn).get(i);r?r.push(s):w(this,bn).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(w(this,Fn).delete(s)){const i=Do(s);if(typeof i=="string"){const r=w(this,bn).get(i);if(r)if(r.length>1){const u=r.indexOf(s);u!==-1&&r.splice(u,1)}else r[0]===s&&w(this,bn).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=Do(s);if(typeof i=="string"){const r=w(this,bn).get(i),u=r==null?void 0:r.find(f=>f.state.status==="pending");return!u||u===s}else return!0}runNext(s){var r;const i=Do(s);if(typeof i=="string"){const u=(r=w(this,bn).get(i))==null?void 0:r.find(f=>f!==s&&f.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){rt.batch(()=>{w(this,Fn).forEach(s=>{this.notify({type:"removed",mutation:s})}),w(this,Fn).clear(),w(this,bn).clear()})}getAll(){return Array.from(w(this,Fn))}find(s){const i={exact:!0,...s};return this.getAll().find(r=>Zg(i,r))}findAll(s={}){return this.getAll().filter(i=>Zg(s,i))}notify(s){rt.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return rt.batch(()=>Promise.all(s.map(i=>i.continue().catch(wt))))}},Fn=new WeakMap,bn=new WeakMap,fr=new WeakMap,Jy);function Do(a){var s;return(s=a.options.scope)==null?void 0:s.id}var Jn,qa,Lt,$n,ea,Go,fd,$y,d1=($y=class extends Vs{constructor(i,r){super();ue(this,ea);ue(this,Jn);ue(this,qa);ue(this,Lt);ue(this,$n);ne(this,Jn,i),this.setOptions(r),this.bindMethods(),_e(this,ea,Go).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var u;const r=this.options;this.options=w(this,Jn).defaultMutationOptions(i),Po(this.options,r)||w(this,Jn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Lt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&zl(r.mutationKey)!==zl(this.options.mutationKey)?this.reset():((u=w(this,Lt))==null?void 0:u.state.status)==="pending"&&w(this,Lt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=w(this,Lt))==null||i.removeObserver(this)}onMutationUpdate(i){_e(this,ea,Go).call(this),_e(this,ea,fd).call(this,i)}getCurrentResult(){return w(this,qa)}reset(){var i;(i=w(this,Lt))==null||i.removeObserver(this),ne(this,Lt,void 0),_e(this,ea,Go).call(this),_e(this,ea,fd).call(this)}mutate(i,r){var u;return ne(this,$n,r),(u=w(this,Lt))==null||u.removeObserver(this),ne(this,Lt,w(this,Jn).getMutationCache().build(w(this,Jn),this.options)),w(this,Lt).addObserver(this),w(this,Lt).execute(i)}},Jn=new WeakMap,qa=new WeakMap,Lt=new WeakMap,$n=new WeakMap,ea=new WeakSet,Go=function(){var r;const i=((r=w(this,Lt))==null?void 0:r.state)??cb();ne(this,qa,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},fd=function(i){rt.batch(()=>{var r,u,f,m,p,g,y,v;if(w(this,$n)&&this.hasListeners()){const b=w(this,qa).variables,S=w(this,qa).context,_={client:w(this,Jn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(u=(r=w(this,$n)).onSuccess)==null||u.call(r,i.data,b,S,_)}catch(R){Promise.reject(R)}try{(m=(f=w(this,$n)).onSettled)==null||m.call(f,i.data,null,b,S,_)}catch(R){Promise.reject(R)}}else if((i==null?void 0:i.type)==="error"){try{(g=(p=w(this,$n)).onError)==null||g.call(p,i.error,b,S,_)}catch(R){Promise.reject(R)}try{(v=(y=w(this,$n)).onSettled)==null||v.call(y,void 0,i.error,b,S,_)}catch(R){Promise.reject(R)}}}this.listeners.forEach(b=>{b(w(this,qa))})})},$y),Rn,Wy,h1=(Wy=class extends Vs{constructor(s={}){super();ue(this,Rn);this.config=s,ne(this,Rn,new Map)}build(s,i,r){const u=i.queryKey,f=i.queryHash??bd(u,i);let m=this.get(f);return m||(m=new s1({client:s,queryKey:u,queryHash:f,options:s.defaultQueryOptions(i),state:r,defaultOptions:s.getQueryDefaults(u)}),this.add(m)),m}add(s){w(this,Rn).has(s.queryHash)||(w(this,Rn).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=w(this,Rn).get(s.queryHash);i&&(s.destroy(),i===s&&w(this,Rn).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){rt.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return w(this,Rn).get(s)}getAll(){return[...w(this,Rn).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(r=>Pg(i,r))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(r=>Pg(s,r)):i}notify(s){rt.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Rn=new WeakMap,Wy),$e,Ha,Qa,ks,Us,Ga,Bs,qs,Iy,m1=(Iy=class{constructor(a={}){ue(this,$e);ue(this,Ha);ue(this,Qa);ue(this,ks);ue(this,Us);ue(this,Ga);ue(this,Bs);ue(this,qs);ne(this,$e,a.queryCache||new h1),ne(this,Ha,a.mutationCache||new f1),ne(this,Qa,a.defaultOptions||{}),ne(this,ks,new Map),ne(this,Us,new Map),ne(this,Ga,0)}mount(){zo(this,Ga)._++,w(this,Ga)===1&&(ne(this,Bs,Sd.subscribe(async a=>{a&&(await this.resumePausedMutations(),w(this,$e).onFocus())})),ne(this,qs,Zo.subscribe(async a=>{a&&(await this.resumePausedMutations(),w(this,$e).onOnline())})))}unmount(){var a,s;zo(this,Ga)._--,w(this,Ga)===0&&((a=w(this,Bs))==null||a.call(this),ne(this,Bs,void 0),(s=w(this,qs))==null||s.call(this),ne(this,qs,void 0))}isFetching(a){return w(this,$e).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return w(this,Ha).findAll({...a,status:"pending"}).length}getQueryData(a){var i;const s=this.defaultQueryOptions({queryKey:a});return(i=w(this,$e).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(a){const s=this.defaultQueryOptions(a),i=w(this,$e).build(this,s),r=i.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&i.isStaleByTime(Ka(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(a){return w(this,$e).findAll(a).map(({queryKey:s,state:i})=>{const r=i.data;return[s,r]})}setQueryData(a,s,i){const r=this.defaultQueryOptions({queryKey:a}),u=w(this,$e).get(r.queryHash),f=u==null?void 0:u.state.data,m=Z0(s,f);if(m!==void 0)return w(this,$e).build(this,r).setData(m,{...i,manual:!0})}setQueriesData(a,s,i){return rt.batch(()=>w(this,$e).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,s,i)]))}getQueryState(a){var i;const s=this.defaultQueryOptions({queryKey:a});return(i=w(this,$e).get(s.queryHash))==null?void 0:i.state}removeQueries(a){const s=w(this,$e);rt.batch(()=>{s.findAll(a).forEach(i=>{s.remove(i)})})}resetQueries(a,s){const i=w(this,$e);return rt.batch(()=>(i.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},s)))}cancelQueries(a,s={}){const i={revert:!0,...s},r=rt.batch(()=>w(this,$e).findAll(a).map(u=>u.cancel(i)));return Promise.all(r).then(wt).catch(wt)}invalidateQueries(a,s={}){return rt.batch(()=>(w(this,$e).findAll(a).forEach(i=>{i.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},s)))}refetchQueries(a,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},r=rt.batch(()=>w(this,$e).findAll(a).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,i);return i.throwOnError||(f=f.catch(wt)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(wt)}fetchQuery(a){const s=this.defaultQueryOptions(a);s.retry===void 0&&(s.retry=!1);const i=w(this,$e).build(this,s);return i.isStaleByTime(Ka(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(wt).catch(wt)}fetchInfiniteQuery(a){return a.behavior=ty(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(wt).catch(wt)}ensureInfiniteQueryData(a){return a.behavior=ty(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Zo.isOnline()?w(this,Ha).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,$e)}getMutationCache(){return w(this,Ha)}getDefaultOptions(){return w(this,Qa)}setDefaultOptions(a){ne(this,Qa,a)}setQueryDefaults(a,s){w(this,ks).set(zl(a),{queryKey:a,defaultOptions:s})}getQueryDefaults(a){const s=[...w(this,ks).values()],i={};return s.forEach(r=>{lr(a,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(a,s){w(this,Us).set(zl(a),{mutationKey:a,defaultOptions:s})}getMutationDefaults(a){const s=[...w(this,Us).values()],i={};return s.forEach(r=>{lr(a,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(a){if(a._defaulted)return a;const s={...w(this,Qa).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return s.queryHash||(s.queryHash=bd(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===vd&&(s.enabled=!1),s}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...w(this,Qa).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){w(this,$e).clear(),w(this,Ha).clear()}},$e=new WeakMap,Ha=new WeakMap,Qa=new WeakMap,ks=new WeakMap,Us=new WeakMap,Ga=new WeakMap,Bs=new WeakMap,qs=new WeakMap,Iy),ub=U.createContext(void 0),hr=a=>{const s=U.useContext(ub);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},p1=({client:a,children:s})=>(U.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),d.jsx(ub.Provider,{value:a,children:s})),fb=U.createContext(!1),g1=()=>U.useContext(fb);fb.Provider;function y1(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var b1=U.createContext(y1()),v1=()=>U.useContext(b1),x1=(a,s,i)=>{const r=i!=null&&i.state.error&&typeof a.throwOnError=="function"?xd(a.throwOnError,[i.state.error,i]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(s.isReset()||(a.retryOnMount=!1))},S1=a=>{U.useEffect(()=>{a.clearReset()},[a])},_1=({result:a,errorResetBoundary:s,throwOnError:i,query:r,suspense:u})=>a.isError&&!s.isReset()&&!a.isFetching&&r&&(u&&a.data===void 0||xd(i,[a.error,r])),j1=a=>{if(a.suspense){const i=u=>u==="static"?u:Math.max(u??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...u)=>i(r(...u)):i(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},N1=(a,s)=>a.isLoading&&a.isFetching&&!s,R1=(a,s)=>(a==null?void 0:a.suspense)&&s.isPending,ay=(a,s,i)=>s.fetchOptimistic(a).catch(()=>{i.clearReset()});function w1(a,s,i){var S,_,R,j;const r=g1(),u=v1(),f=hr(),m=f.defaultQueryOptions(a);(_=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||_.call(S,m);const p=f.getQueryCache().get(m.queryHash);m._optimisticResults=r?"isRestoring":"optimistic",j1(m),x1(m,u,p),S1(u);const g=!f.getQueryCache().get(m.queryHash),[y]=U.useState(()=>new s(f,m)),v=y.getOptimisticResult(m),b=!r&&a.subscribed!==!1;if(U.useSyncExternalStore(U.useCallback(M=>{const z=b?y.subscribe(rt.batchCalls(M)):wt;return y.updateResult(),z},[y,b]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),U.useEffect(()=>{y.setOptions(m)},[m,y]),R1(m,v))throw ay(m,y,u);if(_1({result:v,errorResetBoundary:u,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw v.error;if((j=(R=f.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||j.call(R,m,v),m.experimental_prefetchInRender&&!Ol&&N1(v,r)){const M=g?ay(m,y,u):p==null?void 0:p.promise;M==null||M.catch(wt).finally(()=>{y.updateResult()})}return m.notifyOnChangeProps?v:y.trackResult(v)}function St(a,s){return w1(a,i1)}function Wn(a,s){const i=hr(),[r]=U.useState(()=>new d1(i,a));U.useEffect(()=>{r.setOptions(a)},[r,a]);const u=U.useSyncExternalStore(U.useCallback(m=>r.subscribe(rt.batchCalls(m)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=U.useCallback((m,p)=>{r.mutate(m,p).catch(wt)},[r]);if(u.error&&xd(r.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}const dd=new WeakMap,C1=new WeakMap,Fo={current:[]};let Df=!1,er=0;const $i=new Set,Lo=new Map;function db(a){for(const s of a){if(Fo.current.includes(s))continue;Fo.current.push(s),s.recompute();const i=C1.get(s);if(i)for(const r of i){const u=dd.get(r);u!=null&&u.length&&db(u)}}}function E1(a){const s={prevVal:a.prevState,currentVal:a.state};for(const i of a.listeners)i(s)}function T1(a){const s={prevVal:a.prevState,currentVal:a.state};for(const i of a.listeners)i(s)}function hb(a){if(er>0&&!Lo.has(a)&&Lo.set(a,a.prevState),$i.add(a),!(er>0)&&!Df)try{for(Df=!0;$i.size>0;){const s=Array.from($i);$i.clear();for(const i of s){const r=Lo.get(i)??i.prevState;i.prevState=r,E1(i)}for(const i of s){const r=dd.get(i);r&&(Fo.current.push(i),db(r))}for(const i of s){const r=dd.get(i);if(r)for(const u of r)T1(u)}}}finally{Df=!1,Fo.current=[],Lo.clear()}}function M1(a){er++;try{a()}finally{if(er--,er===0){const s=$i.values().next().value;s&&hb(s)}}}function A1(a){return typeof a=="function"}class O1{constructor(s,i){this.listeners=new Set,this.subscribe=r=>{var u,f;this.listeners.add(r);const m=(f=(u=this.options)==null?void 0:u.onSubscribe)==null?void 0:f.call(u,r,this);return()=>{this.listeners.delete(r),m==null||m()}},this.prevState=s,this.state=s,this.options=i}setState(s){var i,r,u;this.prevState=this.state,(i=this.options)!=null&&i.updateFn?this.state=this.options.updateFn(this.prevState)(s):A1(s)?this.state=s(this.prevState):this.state=s,(u=(r=this.options)==null?void 0:r.onUpdate)==null||u.call(r),hb(this)}}const Xa="__TSR_index",ly="popstate",sy="beforeunload";function z1(a){let s=a.getLocation();const i=new Set,r=m=>{s=a.getLocation(),i.forEach(p=>p({location:s,action:m}))},u=m=>{a.notifyOnIndexChange??!0?r(m):s=a.getLocation()},f=async({task:m,navigateOpts:p,...g})=>{var S,_;if((p==null?void 0:p.ignoreBlocker)??!1){m();return}const v=((S=a.getBlockers)==null?void 0:S.call(a))??[],b=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&v.length&&b)for(const R of v){const j=Jo(g.path,g.state);if(await R.blockerFn({currentLocation:s,nextLocation:j,action:g.type})){(_=a.onBlocked)==null||_.call(a);return}}m()};return{get location(){return s},get length(){return a.getLength()},subscribers:i,subscribe:m=>(i.add(m),()=>{i.delete(m)}),push:(m,p,g)=>{const y=s.state[Xa];p=iy(y+1,p),f({task:()=>{a.pushState(m,p),r({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:m,state:p})},replace:(m,p,g)=>{const y=s.state[Xa];p=iy(y,p),f({task:()=>{a.replaceState(m,p),r({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:m,state:p})},go:(m,p)=>{f({task:()=>{a.go(m),u({type:"GO",index:m})},navigateOpts:p,type:"GO"})},back:m=>{f({task:()=>{a.back((m==null?void 0:m.ignoreBlocker)??!1),u({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{f({task:()=>{a.forward((m==null?void 0:m.ignoreBlocker)??!1),u({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>s.state[Xa]!==0,createHref:m=>a.createHref(m),block:m=>{var g;if(!a.setBlockers)return()=>{};const p=((g=a.getBlockers)==null?void 0:g.call(a))??[];return a.setBlockers([...p,m]),()=>{var v,b;const y=((v=a.getBlockers)==null?void 0:v.call(a))??[];(b=a.setBlockers)==null||b.call(a,y.filter(S=>S!==m))}},flush:()=>{var m;return(m=a.flush)==null?void 0:m.call(a)},destroy:()=>{var m;return(m=a.destroy)==null?void 0:m.call(a)},notify:r}}function iy(a,s){s||(s={});const i=jd();return{...s,key:i,__TSR_key:i,[Xa]:a}}function D1(a){var H,W;const s=typeof document<"u"?window:void 0,i=s.history.pushState,r=s.history.replaceState;let u=[];const f=()=>u,m=G=>u=G,p=(G=>G),g=(()=>Jo(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((H=s.history.state)!=null&&H.__TSR_key)&&!((W=s.history.state)!=null&&W.key)){const G=jd();s.history.replaceState({[Xa]:0,key:G,__TSR_key:G},"")}let y=g(),v,b=!1,S=!1,_=!1,R=!1;const j=()=>y;let M,z;const B=()=>{M&&(V._ignoreSubscribers=!0,(M.isPush?s.history.pushState:s.history.replaceState)(M.state,"",M.href),V._ignoreSubscribers=!1,M=void 0,z=void 0,v=void 0)},P=(G,I,oe)=>{const pe=p(I);z||(v=y),y=Jo(I,oe),M={href:pe,state:oe,isPush:(M==null?void 0:M.isPush)||G==="push"},z||(z=Promise.resolve().then(()=>B()))},T=G=>{y=g(),V.notify({type:G})},J=async()=>{if(S){S=!1;return}const G=g(),I=G.state[Xa]-y.state[Xa],oe=I===1,pe=I===-1,ge=!oe&&!pe||b;b=!1;const ie=ge?"GO":pe?"BACK":"FORWARD",A=ge?{type:"GO",index:I}:{type:pe?"BACK":"FORWARD"};if(_)_=!1;else{const F=f();if(typeof document<"u"&&F.length){for(const Y of F)if(await Y.blockerFn({currentLocation:y,nextLocation:G,action:ie})){S=!0,s.history.go(1),V.notify(A);return}}}y=g(),V.notify(A)},te=G=>{if(R){R=!1;return}let I=!1;const oe=f();if(typeof document<"u"&&oe.length)for(const pe of oe){const ge=pe.enableBeforeUnload??!0;if(ge===!0){I=!0;break}if(typeof ge=="function"&&ge()===!0){I=!0;break}}if(I)return G.preventDefault(),G.returnValue=""},V=z1({getLocation:j,getLength:()=>s.history.length,pushState:(G,I)=>P("push",G,I),replaceState:(G,I)=>P("replace",G,I),back:G=>(G&&(_=!0),R=!0,s.history.back()),forward:G=>{G&&(_=!0),R=!0,s.history.forward()},go:G=>{b=!0,s.history.go(G)},createHref:G=>p(G),flush:B,destroy:()=>{s.history.pushState=i,s.history.replaceState=r,s.removeEventListener(sy,te,{capture:!0}),s.removeEventListener(ly,J)},onBlocked:()=>{v&&y!==v&&(y=v)},getBlockers:f,setBlockers:m,notifyOnIndexChange:!1});return s.addEventListener(sy,te,{capture:!0}),s.addEventListener(ly,J),s.history.pushState=function(...G){const I=i.apply(s.history,G);return V._ignoreSubscribers||T("PUSH"),I},s.history.replaceState=function(...G){const I=r.apply(s.history,G);return V._ignoreSubscribers||T("REPLACE"),I},V}function L1(a){let s=a.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function Jo(a,s){const i=L1(a),r=i.indexOf("#"),u=i.indexOf("?"),f=jd();return{href:i,pathname:i.substring(0,r>0?u>0?Math.min(r,u):r:u>0?u:i.length),hash:r>-1?i.substring(r):"",search:u>-1?i.slice(u,r===-1?void 0:r):"",state:s||{[Xa]:0,key:f,__TSR_key:f}}}function jd(){return(Math.random()+1).toString(36).substring(7)}const k1=!1;function tr(a){let s;return M1(()=>{s=a()}),s}function sr(a){return a[a.length-1]}function U1(a){return typeof a=="function"}function Va(a,s){return U1(a)?a(s):a}const B1=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable;function Xt(a,s,i=0){if(a===s)return a;if(i>500)return s;const r=s,u=uy(a)&&uy(r);if(!u&&!($o(a)&&$o(r)))return r;const f=u?a:oy(a);if(!f)return r;const m=u?r:oy(r);if(!m)return r;const p=f.length,g=m.length,y=u?new Array(g):{};let v=0;for(let b=0;b<g;b++){const S=u?b:m[b],_=a[S],R=r[S];if(_===R){y[S]=_,(u?b<p:B1.call(a,S))&&v++;continue}if(_===null||R===null||typeof _!="object"||typeof R!="object"){y[S]=R;continue}const j=Xt(_,R,i+1);y[S]=j,j===_&&v++}return p===g&&v===p?a:y}function oy(a){const s=Object.getOwnPropertyNames(a);for(const u of s)if(!ry.call(a,u))return!1;const i=Object.getOwnPropertySymbols(a);if(i.length===0)return s;const r=s;for(const u of i){if(!ry.call(a,u))return!1;r.push(u)}return r}function $o(a){if(!cy(a))return!1;const s=a.constructor;if(typeof s>"u")return!0;const i=s.prototype;return!(!cy(i)||!i.hasOwnProperty("isPrototypeOf"))}function cy(a){return Object.prototype.toString.call(a)==="[object Object]"}function uy(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Tl(a,s,i){if(a===s)return!0;if(typeof a!=typeof s)return!1;if(Array.isArray(a)&&Array.isArray(s)){if(a.length!==s.length)return!1;for(let r=0,u=a.length;r<u;r++)if(!Tl(a[r],s[r],i))return!1;return!0}if($o(a)&&$o(s)){const r=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const m in s)if((!r||s[m]!==void 0)&&!Tl(a[m],s[m],i))return!1;return!0}let u=0;if(!r)u=Object.keys(a).length;else for(const m in a)a[m]!==void 0&&u++;let f=0;for(const m in s)if((!r||s[m]!==void 0)&&(f++,f>u||!Tl(a[m],s[m],i)))return!1;return u===f}return!1}function Qs(a){let s,i;const r=new Promise((u,f)=>{s=u,i=f});return r.status="pending",r.resolve=u=>{r.status="resolved",r.value=u,s(u),a==null||a(u)},r.reject=u=>{r.status="rejected",i(u)},r}function Rs(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function q1(a){return a.replace(/[\x00-\x1f\x7f]/g,"")}function fy(a){let s;try{s=decodeURI(a)}catch{s=a.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return q1(s)}const mb=["http:","https:","mailto:","tel:"];function Wo(a){if(!a)return!1;try{const s=new URL(a);return!mb.includes(s.protocol)}catch{return!1}}function Vi(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let i=0,r="",u;for(;(u=s.exec(a))!==null;)r+=fy(a.slice(i,u.index))+u[0],i=s.lastIndex;r=r+fy(i?a.slice(i):a);let f=!1;return r.startsWith("//")&&(f=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:f}}function H1(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}var Q1="Invariant failed";function ta(a,s){if(!a)throw new Error(Q1)}function Io(a){const s=new Map;let i,r;const u=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,i=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const m=s.get(f);if(m)return u(m),m.value},set(f,m){if(s.size>=a&&i){const g=i;s.delete(g.key),g.next&&(i=g.next,g.next.prev=void 0),g===r&&(r=void 0)}const p=s.get(f);if(p)p.value=m,u(p);else{const g={key:f,value:m,prev:r};r&&(r.next=g),r=g,i||(i=g),s.set(f,g)}},clear(){s.clear(),i=void 0,r=void 0}}}const Gs=0,Dl=1,Ll=2,ir=3,bl=4,pb=5;function G1(a){const s=a.indexOf("{");if(s===-1)return null;const i=a.indexOf("}",s);return i===-1||s+1>=a.length?null:[s,i]}function Nd(a,s,i=new Uint16Array(6)){const r=a.indexOf("/",s),u=r===-1?a.length:r,f=a.substring(s,u);if(!f||!f.includes("$"))return i[0]=Gs,i[1]=s,i[2]=s,i[3]=u,i[4]=u,i[5]=u,i;if(f==="$"){const p=a.length;return i[0]=Ll,i[1]=s,i[2]=s,i[3]=p,i[4]=p,i[5]=p,i}if(f.charCodeAt(0)===36)return i[0]=Dl,i[1]=s,i[2]=s+1,i[3]=u,i[4]=u,i[5]=u,i;const m=G1(f);if(m){const[p,g]=m,y=f.charCodeAt(p+1);if(y===45){if(p+2<f.length&&f.charCodeAt(p+2)===36){const v=p+3,b=g;if(v<b)return i[0]=ir,i[1]=s+p,i[2]=s+v,i[3]=s+b,i[4]=s+g+1,i[5]=u,i}}else if(y===36){const v=p+1,b=p+2;return b===g?(i[0]=Ll,i[1]=s+p,i[2]=s+v,i[3]=s+b,i[4]=s+g+1,i[5]=a.length,i):(i[0]=Dl,i[1]=s+p,i[2]=s+b,i[3]=s+g,i[4]=s+g+1,i[5]=u,i)}}return i[0]=Gs,i[1]=s,i[2]=s,i[3]=u,i[4]=u,i[5]=u,i}function rc(a,s,i,r,u,f,m){var g,y,v,b,S,_,R,j,M,z,B,P,T;m==null||m(i);let p=r;{const J=i.fullPath??i.from,te=J.length,V=((g=i.options)==null?void 0:g.caseSensitive)??a,H=!!((v=(y=i.options)==null?void 0:y.params)!=null&&v.parse&&((S=(b=i.options)==null?void 0:b.skipRouteOnParseError)!=null&&S.params));for(;p<te;){const G=Nd(J,p,s);let I;const oe=p,pe=G[5];switch(p=pe+1,f++,G[0]){case Gs:{const ie=J.substring(G[2],G[3]);if(V){const A=(_=u.static)==null?void 0:_.get(ie);if(A)I=A;else{u.static??(u.static=new Map);const F=vl(i.fullPath??i.from);F.parent=u,F.depth=f,I=F,u.static.set(ie,F)}}else{const A=ie.toLowerCase(),F=(R=u.staticInsensitive)==null?void 0:R.get(A);if(F)I=F;else{u.staticInsensitive??(u.staticInsensitive=new Map);const Y=vl(i.fullPath??i.from);Y.parent=u,Y.depth=f,I=Y,u.staticInsensitive.set(A,Y)}}break}case Dl:{const ie=J.substring(oe,G[1]),A=J.substring(G[4],pe),F=V&&!!(ie||A),Y=ie?F?ie:ie.toLowerCase():void 0,me=A?F?A:A.toLowerCase():void 0,ye=!H&&((j=u.dynamic)==null?void 0:j.find(C=>!C.skipOnParamError&&C.caseSensitive===F&&C.prefix===Y&&C.suffix===me));if(ye)I=ye;else{const C=kf(Dl,i.fullPath??i.from,F,Y,me);I=C,C.depth=f,C.parent=u,u.dynamic??(u.dynamic=[]),u.dynamic.push(C)}break}case ir:{const ie=J.substring(oe,G[1]),A=J.substring(G[4],pe),F=V&&!!(ie||A),Y=ie?F?ie:ie.toLowerCase():void 0,me=A?F?A:A.toLowerCase():void 0,ye=!H&&((M=u.optional)==null?void 0:M.find(C=>!C.skipOnParamError&&C.caseSensitive===F&&C.prefix===Y&&C.suffix===me));if(ye)I=ye;else{const C=kf(ir,i.fullPath??i.from,F,Y,me);I=C,C.parent=u,C.depth=f,u.optional??(u.optional=[]),u.optional.push(C)}break}case Ll:{const ie=J.substring(oe,G[1]),A=J.substring(G[4],pe),F=V&&!!(ie||A),Y=ie?F?ie:ie.toLowerCase():void 0,me=A?F?A:A.toLowerCase():void 0,ye=kf(Ll,i.fullPath??i.from,F,Y,me);I=ye,ye.parent=u,ye.depth=f,u.wildcard??(u.wildcard=[]),u.wildcard.push(ye)}}u=I}if(H&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const G=vl(i.fullPath??i.from);G.kind=pb,G.parent=u,f++,G.depth=f,u.pathless??(u.pathless=[]),u.pathless.push(G),u=G}const W=(i.path||!i.children)&&!i.isRoot;if(W&&J.endsWith("/")){const G=vl(i.fullPath??i.from);G.kind=bl,G.parent=u,f++,G.depth=f,u.index=G,u=G}u.parse=((B=(z=i.options)==null?void 0:z.params)==null?void 0:B.parse)??null,u.skipOnParamError=H,u.parsingPriority=((T=(P=i.options)==null?void 0:P.skipRouteOnParseError)==null?void 0:T.priority)??0,W&&!u.route&&(u.route=i,u.fullPath=i.fullPath??i.from)}if(i.children)for(const J of i.children)rc(a,s,J,p,u,f,m)}function Lf(a,s){if(a.skipOnParamError&&!s.skipOnParamError)return-1;if(!a.skipOnParamError&&s.skipOnParamError)return 1;if(a.skipOnParamError&&s.skipOnParamError&&(a.parsingPriority||s.parsingPriority))return s.parsingPriority-a.parsingPriority;if(a.prefix&&s.prefix&&a.prefix!==s.prefix){if(a.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(a.prefix))return 1}if(a.suffix&&s.suffix&&a.suffix!==s.suffix){if(a.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(a.suffix))return 1}return a.prefix&&!s.prefix?-1:!a.prefix&&s.prefix?1:a.suffix&&!s.suffix?-1:!a.suffix&&s.suffix?1:a.caseSensitive&&!s.caseSensitive?-1:!a.caseSensitive&&s.caseSensitive?1:0}function za(a){var s,i,r;if(a.pathless)for(const u of a.pathless)za(u);if(a.static)for(const u of a.static.values())za(u);if(a.staticInsensitive)for(const u of a.staticInsensitive.values())za(u);if((s=a.dynamic)!=null&&s.length){a.dynamic.sort(Lf);for(const u of a.dynamic)za(u)}if((i=a.optional)!=null&&i.length){a.optional.sort(Lf);for(const u of a.optional)za(u)}if((r=a.wildcard)!=null&&r.length){a.wildcard.sort(Lf);for(const u of a.wildcard)za(u)}}function vl(a){return{kind:Gs,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function kf(a,s,i,r,u){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:r,suffix:u}}function V1(a,s){const i=vl("/"),r=new Uint16Array(6);for(const u of a)rc(!1,r,u,1,i,0);za(i),s.masksTree=i,s.flatCache=Io(1e3)}function Y1(a,s){a||(a="/");const i=s.flatCache.get(a);if(i)return i;const r=Rd(a,s.masksTree);return s.flatCache.set(a,r),r}function K1(a,s,i,r,u){a||(a="/"),r||(r="/");const f=s?`case\0${a}`:a;let m=u.singleCache.get(f);if(!m){m=vl("/");const p=new Uint16Array(6);rc(s,p,{from:a},1,m,0),u.singleCache.set(f,m)}return Rd(r,m,i)}function X1(a,s,i=!1){const r=i?a:`nofuzz\0${a}`,u=s.matchCache.get(r);if(u!==void 0)return u;a||(a="/");let f;try{f=Rd(a,s.segmentTree,i)}catch(m){if(m instanceof URIError)f=null;else throw m}return f&&(f.branch=F1(f.route)),s.matchCache.set(r,f),f}function P1(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function Z1(a,s=!1,i){const r=vl(a.fullPath),u=new Uint16Array(6),f={},m={};let p=0;return rc(s,u,a,1,r,0,y=>{if(i==null||i(y,p),ta(!(y.id in f),`Duplicate routes found with id: ${String(y.id)}`),f[y.id]=y,p!==0&&y.path){const v=P1(y.fullPath);(!m[v]||y.fullPath.endsWith("/"))&&(m[v]=y)}p++}),za(r),{processedTree:{segmentTree:r,singleCache:Io(1e3),matchCache:Io(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:m}}function Rd(a,s,i=!1){const r=a.split("/"),u=$1(a,r,s,i);if(!u)return null;const[f]=gb(a,r,u);return{route:u.node.route,rawParams:f,parsedParams:u.parsedParams}}function gb(a,s,i){var v,b,S,_,R,j,M,z,B,P;const r=J1(i.node);let u=null;const f={};let m=((v=i.extract)==null?void 0:v.part)??0,p=((b=i.extract)==null?void 0:b.node)??0,g=((S=i.extract)==null?void 0:S.path)??0,y=((_=i.extract)==null?void 0:_.segment)??0;for(;p<r.length;m++,p++,g++,y++){const T=r[p];if(T.kind===bl)break;if(T.kind===pb){y--,m--,g--;continue}const J=s[m],te=g;if(J&&(g+=J.length),T.kind===Dl){u??(u=i.node.fullPath.split("/"));const V=u[y],H=((R=T.prefix)==null?void 0:R.length)??0;if(V.charCodeAt(H)===123){const G=((j=T.suffix)==null?void 0:j.length)??0,I=V.substring(H+2,V.length-G-1),oe=J.substring(H,J.length-G);f[I]=decodeURIComponent(oe)}else{const G=V.substring(1);f[G]=decodeURIComponent(J)}}else if(T.kind===ir){if(i.skipped&1<<p){m--,g=te-1;continue}u??(u=i.node.fullPath.split("/"));const V=u[y],H=((M=T.prefix)==null?void 0:M.length)??0,W=((z=T.suffix)==null?void 0:z.length)??0,G=V.substring(H+3,V.length-W-1),I=T.suffix||T.prefix?J.substring(H,J.length-W):J;I&&(f[G]=decodeURIComponent(I))}else if(T.kind===Ll){const V=T,H=a.substring(te+(((B=V.prefix)==null?void 0:B.length)??0),a.length-(((P=V.suffix)==null?void 0:P.length)??0)),W=decodeURIComponent(H);f["*"]=W,f._splat=W;break}}return i.rawParams&&Object.assign(f,i.rawParams),[f,{part:m,node:p,path:g,segment:y}]}function F1(a){const s=[a];for(;a.parentRoute;)a=a.parentRoute,s.push(a);return s.reverse(),s}function J1(a){const s=Array(a.depth+1);do s[a.depth]=a,a=a.parent;while(a);return s}function $1(a,s,i,r){if(a==="/"&&i.index)return{node:i.index,skipped:0};const u=!sr(s),f=u&&a!=="/",m=s.length-(u?1:0),p=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let g=null,y=null,v=null;for(;p.length;){const b=p.pop(),{node:S,index:_,skipped:R,depth:j,statics:M,dynamics:z,optionals:B}=b;let{extract:P,rawParams:T,parsedParams:J}=b;if(S.skipOnParamError){if(!Uf(a,s,b))continue;T=b.rawParams,P=b.extract,J=b.parsedParams}r&&S.route&&S.kind!==bl&&Yi(y,b)&&(y=b);const te=_===m;if(te&&(S.route&&!f&&Yi(v,b)&&(v=b),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const V=te?void 0:s[_];let H;if(te&&S.index){const W={node:S.index,index:_,skipped:R,depth:j+1,statics:M,dynamics:z,optionals:B,extract:P,rawParams:T,parsedParams:J};let G=!0;if(S.index.skipOnParamError&&(Uf(a,s,W)||(G=!1)),G){if(M===m&&!z&&!B&&!R)return W;Yi(v,W)&&(v=W)}}if(S.wildcard&&Yi(g,b))for(const W of S.wildcard){const{prefix:G,suffix:I}=W;if(G&&(te||!(W.caseSensitive?V:H??(H=V.toLowerCase())).startsWith(G)))continue;if(I){if(te)continue;const pe=s.slice(_).join("/").slice(-I.length);if((W.caseSensitive?pe:pe.toLowerCase())!==I)continue}const oe={node:W,index:m,skipped:R,depth:j,statics:M,dynamics:z,optionals:B,extract:P,rawParams:T,parsedParams:J};if(!(W.skipOnParamError&&!Uf(a,s,oe))){g=oe;break}}if(S.optional){const W=R|1<<j,G=j+1;for(let I=S.optional.length-1;I>=0;I--){const oe=S.optional[I];p.push({node:oe,index:_,skipped:W,depth:G,statics:M,dynamics:z,optionals:B,extract:P,rawParams:T,parsedParams:J})}if(!te)for(let I=S.optional.length-1;I>=0;I--){const oe=S.optional[I],{prefix:pe,suffix:ge}=oe;if(pe||ge){const ie=oe.caseSensitive?V:H??(H=V.toLowerCase());if(pe&&!ie.startsWith(pe)||ge&&!ie.endsWith(ge))continue}p.push({node:oe,index:_+1,skipped:R,depth:G,statics:M,dynamics:z,optionals:B+1,extract:P,rawParams:T,parsedParams:J})}}if(!te&&S.dynamic&&V)for(let W=S.dynamic.length-1;W>=0;W--){const G=S.dynamic[W],{prefix:I,suffix:oe}=G;if(I||oe){const pe=G.caseSensitive?V:H??(H=V.toLowerCase());if(I&&!pe.startsWith(I)||oe&&!pe.endsWith(oe))continue}p.push({node:G,index:_+1,skipped:R,depth:j+1,statics:M,dynamics:z+1,optionals:B,extract:P,rawParams:T,parsedParams:J})}if(!te&&S.staticInsensitive){const W=S.staticInsensitive.get(H??(H=V.toLowerCase()));W&&p.push({node:W,index:_+1,skipped:R,depth:j+1,statics:M+1,dynamics:z,optionals:B,extract:P,rawParams:T,parsedParams:J})}if(!te&&S.static){const W=S.static.get(V);W&&p.push({node:W,index:_+1,skipped:R,depth:j+1,statics:M+1,dynamics:z,optionals:B,extract:P,rawParams:T,parsedParams:J})}if(S.pathless){const W=j+1;for(let G=S.pathless.length-1;G>=0;G--){const I=S.pathless[G];p.push({node:I,index:_,skipped:R,depth:W,statics:M,dynamics:z,optionals:B,extract:P,rawParams:T,parsedParams:J})}}}if(v&&g)return Yi(g,v)?v:g;if(v)return v;if(g)return g;if(r&&y){let b=y.index;for(let _=0;_<y.index;_++)b+=s[_].length;const S=b===a.length?"/":a.slice(b);return y.rawParams??(y.rawParams={}),y.rawParams["**"]=decodeURIComponent(S),y}return null}function Uf(a,s,i){try{const[r,u]=gb(a,s,i);i.rawParams=r,i.extract=u;const f=i.node.parse(r);return i.parsedParams=Object.assign({},i.parsedParams,f),!0}catch{return null}}function Yi(a,s){return a?s.statics>a.statics||s.statics===a.statics&&(s.dynamics>a.dynamics||s.dynamics===a.dynamics&&(s.optionals>a.optionals||s.optionals===a.optionals&&((s.node.kind===bl)>(a.node.kind===bl)||s.node.kind===bl==(a.node.kind===bl)&&s.depth>a.depth))):!0}function Vo(a){return wd(a.filter(s=>s!==void 0).join("/"))}function wd(a){return a.replace(/\/{2,}/g,"/")}function yb(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function In(a){const s=a.length;return s>1&&a[s-1]==="/"?a.replace(/\/{1,}$/,""):a}function bb(a){return In(yb(a))}function ec(a,s){return a!=null&&a.endsWith("/")&&a!=="/"&&a!==`${s}/`?a.slice(0,-1):a}function W1(a,s,i){return ec(a,i)===ec(s,i)}function I1({base:a,to:s,trailingSlash:i="never",cache:r}){const u=s.startsWith("/"),f=!u&&s===".";let m;if(r){m=u?s:f?a:a+"\0"+s;const b=r.get(m);if(b)return b}let p;if(f)p=a.split("/");else if(u)p=s.split("/");else{for(p=a.split("/");p.length>1&&sr(p)==="";)p.pop();const b=s.split("/");for(let S=0,_=b.length;S<_;S++){const R=b[S];R===""?S?S===_-1&&p.push(R):p=[R]:R===".."?p.pop():R==="."||p.push(R)}}p.length>1&&(sr(p)===""?i==="never"&&p.pop():i==="always"&&p.push(""));let g,y="";for(let b=0;b<p.length;b++){b>0&&(y+="/");const S=p[b];if(!S)continue;g=Nd(S,0,g);const _=g[0];if(_===Gs){y+=S;continue}const R=g[5],j=S.substring(0,g[1]),M=S.substring(g[4],R),z=S.substring(g[2],g[3]);_===Dl?y+=j||M?`${j}{$${z}}${M}`:`$${z}`:_===Ll?y+=j||M?`${j}{$}${M}`:"$":y+=`${j}{-$${z}}${M}`}y=wd(y);const v=y||"/";return m&&r&&r.set(m,v),v}function eS(a){const s=new Map(a.map(u=>[encodeURIComponent(u),u])),i=Array.from(s.keys()).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(i,"g");return u=>u.replace(r,f=>s.get(f)??f)}function Bf(a,s,i){const r=s[a];return typeof r!="string"?r:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(u=>dy(u,i)).join("/"):dy(r,i)}function qf({path:a,params:s,decoder:i,...r}){let u=!1;const f={};if(!a||a==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:u};if(!a.includes("$"))return{interpolatedPath:a,usedParams:f,isMissingParams:u};const m=a.length;let p=0,g,y="";for(;p<m;){const b=p;g=Nd(a,b,g);const S=g[5];if(p=S+1,b===S)continue;const _=g[0];if(_===Gs){y+="/"+a.substring(b,S);continue}if(_===Ll){const R=s._splat;f._splat=R,f["*"]=R;const j=a.substring(b,g[1]),M=a.substring(g[4],S);if(!R){u=!0,(j||M)&&(y+="/"+j+M);continue}const z=Bf("_splat",s,i);y+="/"+j+z+M;continue}if(_===Dl){const R=a.substring(g[2],g[3]);!u&&!(R in s)&&(u=!0),f[R]=s[R];const j=a.substring(b,g[1]),M=a.substring(g[4],S),z=Bf(R,s,i)??"undefined";y+="/"+j+z+M;continue}if(_===ir){const R=a.substring(g[2],g[3]),j=s[R];if(j==null)continue;f[R]=j;const M=a.substring(b,g[1]),z=a.substring(g[4],S),B=Bf(R,s,i)??"";y+="/"+M+B+z;continue}}return a.endsWith("/")&&(y+="/"),{usedParams:f,interpolatedPath:y||"/",isMissingParams:u}}function dy(a,s){const i=encodeURIComponent(a);return(s==null?void 0:s(i))??i}function Pt(a){return!!(a!=null&&a.isNotFound)}function tS(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const hd="tsr-scroll-restoration-v1_3",nS=(a,s)=>{let i;return(...r)=>{i||(i=setTimeout(()=>{a(...r),i=null},s))}};function aS(){const a=tS();if(!a)return null;const s=a.getItem(hd);let i=s?JSON.parse(s):{};return{state:i,set:r=>{i=Va(r,i)||i;try{a.setItem(hd,JSON.stringify(i))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const ko=aS(),lS=a=>a.state.__TSR_key||a.href;function sS(a){const s=[];let i;for(;i=a.parentNode;)s.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,a)+1})`),a=i;return`${s.reverse().join(" > ")}`.toLowerCase()}let tc=!1;function iS({storageKey:a,key:s,behavior:i,shouldScrollRestoration:r,scrollToTopSelectors:u,location:f}){var y,v;let m;try{m=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(b){console.error(b);return}const p=s||((y=window.history.state)==null?void 0:y.__TSR_key),g=m[p];tc=!0;e:{if(r&&g&&Object.keys(g).length>0){for(const _ in g){const R=g[_];if(_==="window")window.scrollTo({top:R.scrollY,left:R.scrollX,behavior:i});else if(_){const j=document.querySelector(_);j&&(j.scrollLeft=R.scrollX,j.scrollTop=R.scrollY)}}break e}const b=(f??window.location).hash.split("#",2)[1];if(b){const _=((v=window.history.state)==null?void 0:v.__hashScrollIntoViewOptions)??!0;if(_){const R=document.getElementById(b);R&&R.scrollIntoView(_)}break e}const S={top:0,left:0,behavior:i};if(window.scrollTo(S),u)for(const _ of u){if(_==="window")continue;const R=typeof _=="function"?_():document.querySelector(_);R&&R.scrollTo(S)}}tc=!1}function rS(a,s){if(!ko||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup||!ko))return;a.isScrollRestorationSetup=!0,tc=!1;const r=a.options.getScrollRestorationKey||lS;window.history.scrollRestoration="manual";const u=f=>{if(tc||!a.isScrollRestoring)return;let m="";if(f.target===document||f.target===window)m="window";else{const g=f.target.getAttribute("data-scroll-restoration-id");g?m=`[data-scroll-restoration-id="${g}"]`:m=sS(f.target)}const p=r(a.state.location);ko.set(g=>{const y=g[p]||(g[p]={}),v=y[m]||(y[m]={});if(m==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(m){const b=document.querySelector(m);b&&(v.scrollX=b.scrollLeft||0,v.scrollY=b.scrollTop||0)}return g})};typeof document<"u"&&document.addEventListener("scroll",nS(u,100),!0),a.subscribe("onRendered",f=>{const m=r(f.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(iS({storageKey:hd,key:m,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&ko.set(p=>(p[m]||(p[m]={}),p)))})}function oS(a){if(typeof document<"u"&&document.querySelector){const s=a.state.location.state.__hashScrollIntoViewOptions??!0;if(s&&a.state.location.hash!==""){const i=document.getElementById(a.state.location.hash);i&&i.scrollIntoView(s)}}}function cS(a,s=String){const i=new URLSearchParams;for(const r in a){const u=a[r];u!==void 0&&i.set(r,s(u))}return i.toString()}function Hf(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function uS(a){const s=new URLSearchParams(a),i={};for(const[r,u]of s.entries()){const f=i[r];f==null?i[r]=Hf(u):Array.isArray(f)?f.push(Hf(u)):i[r]=[f,Hf(u)]}return i}const fS=hS(JSON.parse),dS=mS(JSON.stringify,JSON.parse);function hS(a){return s=>{s[0]==="?"&&(s=s.substring(1));const i=uS(s);for(const r in i){const u=i[r];if(typeof u=="string")try{i[r]=a(u)}catch{}}return i}}function mS(a,s){const i=typeof s=="function";function r(u){if(typeof u=="object"&&u!==null)try{return a(u)}catch{}else if(i&&typeof u=="string")try{return s(u),a(u)}catch{}return u}return u=>{const f=cS(u,r);return f?`?${f}`:""}}const on="__root__";function pS(a){if(a.statusCode=a.statusCode||a.code||307,!a._builtLocation&&typeof a.href=="string"&&Wo(a.href))throw new Error(`Redirect blocked: unsafe protocol in href "${a.href}". Only ${mb.join(", ")} protocols are allowed.`);if(!a._builtLocation&&!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const s=new Headers(a.headers);a.href&&s.get("Location")===null&&s.set("Location",a.href);const i=new Response(null,{status:a.statusCode,headers:s});if(i.options=a,a.throw)throw i;return i}function cn(a){return a instanceof Response&&!!a.options}const Yo=a=>{var s;if(!a.rendered)return a.rendered=!0,(s=a.onReady)==null?void 0:s.call(a)},oc=(a,s)=>!!(a.preload&&!a.router.state.matches.some(i=>i.id===s)),ws=(a,s,i=!0)=>{const r={...a.router.options.context??{}},u=i?s:s-1;for(let f=0;f<=u;f++){const m=a.matches[f];if(!m)continue;const p=a.router.getMatch(m.id);p&&Object.assign(r,p.__routeContext,p.__beforeLoadContext)}return r},vb=(a,s)=>{var u;const i=a.router.routesById[s.routeId??""]??a.router.routeTree;!i.options.notFoundComponent&&((u=a.router.options)!=null&&u.defaultNotFoundComponent)&&(i.options.notFoundComponent=a.router.options.defaultNotFoundComponent),ta(i.options.notFoundComponent);const r=a.matches.find(f=>f.routeId===i.id);ta(r,"Could not find match for route: "+i.id),a.updateMatch(r.id,f=>({...f,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&i.parentRoute&&(s.routeId=i.parentRoute.id,vb(a,s))},Ya=(a,s,i)=>{var r,u,f;if(!(!cn(i)&&!Pt(i))){if(cn(i)&&i.redirectHandled&&!i.options.reloadDocument)throw i;if(s){(r=s._nonReactive.beforeLoadPromise)==null||r.resolve(),(u=s._nonReactive.loaderPromise)==null||u.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0;const m=cn(i)?"redirected":"notFound";s._nonReactive.error=i,a.updateMatch(s.id,p=>({...p,status:m,context:ws(a,s.index),isFetching:!1,error:i})),Pt(i)&&!i.routeId&&(i.routeId=s.routeId),(f=s._nonReactive.loadPromise)==null||f.resolve()}throw cn(i)?(a.rendered=!0,i.options._fromLocation=a.location,i.redirectHandled=!0,i=a.router.resolveRedirect(i),i):(vb(a,i),i)}},xb=(a,s)=>!!a.router.getMatch(s)._nonReactive.dehydrated,Ki=(a,s,i,r)=>{var p,g;const{id:u,routeId:f}=a.matches[s],m=a.router.looseRoutesById[f];if(i instanceof Promise)throw i;i.routerCode=r,a.firstBadMatchIndex??(a.firstBadMatchIndex=s),Ya(a,a.router.getMatch(u),i);try{(g=(p=m.options).onError)==null||g.call(p,i)}catch(y){i=y,Ya(a,a.router.getMatch(u),i)}a.updateMatch(u,y=>{var v,b;return(v=y._nonReactive.beforeLoadPromise)==null||v.resolve(),y._nonReactive.beforeLoadPromise=void 0,(b=y._nonReactive.loadPromise)==null||b.resolve(),{...y,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Sb=(a,s,i,r)=>{var m;if(r._nonReactive.pendingTimeout!==void 0)return;const u=i.options.pendingMs??a.router.options.defaultPendingMs;if(!!(a.onReady&&!oc(a,s)&&(i.options.loader||i.options.beforeLoad||Nb(i))&&typeof u=="number"&&u!==1/0&&(i.options.pendingComponent??((m=a.router.options)==null?void 0:m.defaultPendingComponent)))){const p=setTimeout(()=>{Yo(a)},u);r._nonReactive.pendingTimeout=p}},gS=(a,s,i)=>{const r=a.router.getMatch(s);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Sb(a,s,i,r);const u=()=>{const f=a.router.getMatch(s);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Ya(a,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(u):u()},yS=(a,s,i,r)=>{const u=a.router.getMatch(s),f=u._nonReactive.loadPromise;u._nonReactive.loadPromise=Qs(()=>{f==null||f.resolve()});const{paramsError:m,searchError:p}=u;m&&Ki(a,i,m,"PARSE_PARAMS"),p&&Ki(a,i,p,"VALIDATE_SEARCH"),Sb(a,s,r,u);const g=new AbortController;let y=!1;const v=()=>{y||(y=!0,a.updateMatch(s,T=>({...T,isFetching:"beforeLoad",fetchCount:T.fetchCount+1,abortController:g})))},b=()=>{var T;(T=u._nonReactive.beforeLoadPromise)==null||T.resolve(),u._nonReactive.beforeLoadPromise=void 0,a.updateMatch(s,J=>({...J,isFetching:!1}))};if(!r.options.beforeLoad){tr(()=>{v(),b()});return}u._nonReactive.beforeLoadPromise=Qs();const S={...ws(a,i,!1),...u.__routeContext},{search:_,params:R,cause:j}=u,M=oc(a,s),z={search:_,abortController:g,params:R,preload:M,context:S,location:a.location,navigate:T=>a.router.navigate({...T,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:M?"preload":j,matches:a.matches,routeId:r.id,...a.router.options.additionalContext},B=T=>{if(T===void 0){tr(()=>{v(),b()});return}(cn(T)||Pt(T))&&(v(),Ki(a,i,T,"BEFORE_LOAD")),tr(()=>{v(),a.updateMatch(s,J=>({...J,__beforeLoadContext:T})),b()})};let P;try{if(P=r.options.beforeLoad(z),Rs(P))return v(),P.catch(T=>{Ki(a,i,T,"BEFORE_LOAD")}).then(B)}catch(T){v(),Ki(a,i,T,"BEFORE_LOAD")}B(P)},bS=(a,s)=>{const{id:i,routeId:r}=a.matches[s],u=a.router.looseRoutesById[r],f=()=>p(),m=()=>yS(a,i,s,u),p=()=>{if(xb(a,i))return;const g=gS(a,i,u);return Rs(g)?g.then(m):m()};return f()},vS=(a,s,i)=>{var f,m,p,g,y,v;const r=a.router.getMatch(s);if(!r||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const u={ssr:a.router.options.ssr,matches:a.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(m=(f=i.options).head)==null?void 0:m.call(f,u),(g=(p=i.options).scripts)==null?void 0:g.call(p,u),(v=(y=i.options).headers)==null?void 0:v.call(y,u)]).then(([b,S,_])=>{const R=b==null?void 0:b.meta,j=b==null?void 0:b.links,M=b==null?void 0:b.scripts,z=b==null?void 0:b.styles;return{meta:R,links:j,headScripts:M,headers:_,scripts:S,styles:z}})},_b=(a,s,i,r)=>{const u=a.matchPromises[i-1],{params:f,loaderDeps:m,abortController:p,cause:g}=a.router.getMatch(s),y=ws(a,i),v=oc(a,s);return{params:f,deps:m,preload:!!v,parentMatchPromise:u,abortController:p,context:y,location:a.location,navigate:b=>a.router.navigate({...b,_fromLocation:a.location}),cause:v?"preload":g,route:r,...a.router.options.additionalContext}},hy=async(a,s,i,r)=>{var u,f,m,p,g,y,v;try{const b=a.router.getMatch(s);try{(!(k1??a.router.isServer)||b.ssr===!0)&&jb(r);const S=(f=(u=r.options).loader)==null?void 0:f.call(u,_b(a,s,i,r)),_=r.options.loader&&Rs(S);if(!!(_||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||b._nonReactive.minPendingPromise)&&a.updateMatch(s,M=>({...M,isFetching:"loader"})),r.options.loader){const M=_?await S:S;Ya(a,a.router.getMatch(s),M),M!==void 0&&a.updateMatch(s,z=>({...z,loaderData:M}))}r._lazyPromise&&await r._lazyPromise;const j=b._nonReactive.minPendingPromise;j&&await j,r._componentsPromise&&await r._componentsPromise,a.updateMatch(s,M=>({...M,error:void 0,context:ws(a,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(S){let _=S;if((_==null?void 0:_.name)==="AbortError"){if(b.abortController.signal.aborted){(m=b._nonReactive.loaderPromise)==null||m.resolve(),b._nonReactive.loaderPromise=void 0;return}a.updateMatch(s,j=>({...j,status:j.status==="pending"?"success":j.status,isFetching:!1,context:ws(a,i)}));return}const R=b._nonReactive.minPendingPromise;R&&await R,Pt(S)&&await((g=(p=r.options.notFoundComponent)==null?void 0:p.preload)==null?void 0:g.call(p)),Ya(a,a.router.getMatch(s),S);try{(v=(y=r.options).onError)==null||v.call(y,S)}catch(j){_=j,Ya(a,a.router.getMatch(s),j)}a.updateMatch(s,j=>({...j,error:_,context:ws(a,i),status:"error",isFetching:!1}))}}catch(b){const S=a.router.getMatch(s);S&&(S._nonReactive.loaderPromise=void 0),Ya(a,S,b)}},xS=async(a,s)=>{var v,b;async function i(S,_,R,j){const M=Date.now()-_.updatedAt,z=S?j.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:j.options.staleTime??a.router.options.defaultStaleTime??0,B=j.options.shouldReload,P=typeof B=="function"?B(_b(a,r,s,j)):B,{status:T,invalid:J}=R;f=T==="success"&&(J||(P??M>z)),S&&j.options.preload===!1||(f&&!a.sync?(m=!0,(async()=>{var te,V;try{await hy(a,r,s,j);const H=a.router.getMatch(r);(te=H._nonReactive.loaderPromise)==null||te.resolve(),(V=H._nonReactive.loadPromise)==null||V.resolve(),H._nonReactive.loaderPromise=void 0}catch(H){cn(H)&&await a.router.navigate(H.options)}})()):(T!=="success"||f&&a.sync)&&await hy(a,r,s,j))}const{id:r,routeId:u}=a.matches[s];let f=!1,m=!1;const p=a.router.looseRoutesById[u];if(!xb(a,r)){const S=a.router.getMatch(r),_=oc(a,r);if(S._nonReactive.loaderPromise){if(S.status==="success"&&!a.sync&&!S.preload)return S;await S._nonReactive.loaderPromise;const R=a.router.getMatch(r),j=R._nonReactive.error||R.error;j&&Ya(a,R,j),R.status==="pending"&&await i(_,S,R,p)}else{const R=_&&!a.router.state.matches.some(M=>M.id===r),j=a.router.getMatch(r);j._nonReactive.loaderPromise=Qs(),R!==j.preload&&a.updateMatch(r,M=>({...M,preload:R})),await i(_,S,j,p)}}const g=a.router.getMatch(r);m||((v=g._nonReactive.loaderPromise)==null||v.resolve(),(b=g._nonReactive.loadPromise)==null||b.resolve()),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,m||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const y=m?g.isFetching:!1;return y!==g.isFetching||g.invalid!==!1?(a.updateMatch(r,S=>({...S,isFetching:y,invalid:!1})),a.router.getMatch(r)):g};async function my(a){const s=Object.assign(a,{matchPromises:[]});s.router.state.matches.some(i=>i._forcePending)&&Yo(s);try{for(let p=0;p<s.matches.length;p++){const g=bS(s,p);Rs(g)&&await g}const i=s.firstBadMatchIndex??s.matches.length;for(let p=0;p<i;p++)s.matchPromises.push(xS(s,p));const u=(await Promise.allSettled(s.matchPromises)).filter(p=>p.status==="rejected").map(p=>p.reason);let f;for(const p of u){if(cn(p))throw p;!f&&Pt(p)&&(f=p)}for(const p of s.matches){const{id:g,routeId:y}=p,v=s.router.looseRoutesById[y];try{const b=vS(s,g,v);if(b){const S=await b;s.updateMatch(g,_=>({..._,...S}))}}catch(b){console.error(`Error executing head for route ${y}:`,b)}}if(f)throw f;const m=Yo(s);Rs(m)&&await m}catch(i){if(Pt(i)&&!s.preload){const r=Yo(s);throw Rs(r)&&await r,i}if(cn(i))throw i}return s.matches}async function jb(a){if(!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(s=>{const{id:i,...r}=s.options;Object.assign(a.options,r),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0),!a._componentsLoaded&&a._componentsPromise===void 0){const s=()=>{var r;const i=[];for(const u of Rb){const f=(r=a.options[u])==null?void 0:r.preload;f&&i.push(f())}if(i.length)return Promise.all(i).then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0});a._componentsLoaded=!0,a._componentsPromise=void 0};a._componentsPromise=a._lazyPromise?a._lazyPromise.then(s):s()}return a._componentsPromise}function Nb(a){var s;for(const i of Rb)if((s=a.options[i])!=null&&s.preload)return!0;return!1}const Rb=["component","errorComponent","pendingComponent","notFoundComponent"];function SS(a){return{input:({url:s})=>{for(const i of a)s=md(i,s);return s},output:({url:s})=>{for(let i=a.length-1;i>=0;i--)s=wb(a[i],s);return s}}}function _S(a){const s=bb(a.basepath),i=`/${s}`,r=`${i}/`,u=a.caseSensitive?i:i.toLowerCase(),f=a.caseSensitive?r:r.toLowerCase();return{input:({url:m})=>{const p=a.caseSensitive?m.pathname:m.pathname.toLowerCase();return p===u?m.pathname="/":p.startsWith(f)&&(m.pathname=m.pathname.slice(i.length)),m},output:({url:m})=>(m.pathname=Vo(["/",s,m.pathname]),m)}}function md(a,s){var r;const i=(r=a==null?void 0:a.input)==null?void 0:r.call(a,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function wb(a,s){var r;const i=(r=a==null?void 0:a.output)==null?void 0:r.call(a,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function Ml(a){const s=a.resolvedLocation,i=a.location,r=(s==null?void 0:s.pathname)!==i.pathname,u=(s==null?void 0:s.href)!==i.href,f=(s==null?void 0:s.hash)!==i.hash;return{fromLocation:s,toLocation:i,pathChanged:r,hrefChanged:u,hashChanged:f}}class jS{constructor(s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{var S;i.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,u=this.basepath??(r==null?void 0:r.basepath)??"/",f=this.basepath===void 0,m=r==null?void 0:r.rewrite;if(this.options={...r,...i},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=eS(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=D1()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let _;this.resolvePathCache=Io(1e3),_=this.buildRouteTree(),this.setRoutes(_)}!this.__store&&this.latestLocation&&(this.__store=new O1(RS(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(_=>!["redirected"].includes(_.status))}}}),rS(this));let p=!1;const g=this.options.basepath??"/",y=this.options.rewrite;if(f||u!==g||m!==y){this.basepath=g;const _=[],R=bb(g);R&&R!=="/"&&_.push(_S({basepath:g})),y&&_.push(y),this.rewrite=_.length===0?void 0:_.length===1?_[0]:SS(_),this.history&&this.updateLatestLocation(),p=!0}p&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((S=window.CSS)==null?void 0:S.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=Z1(this.routeTree,this.options.caseSensitive,(r,u)=>{r.init({originalIndex:u})});return this.options.routeMasks&&V1(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,r)=>{const u={eventType:i,fn:r};return this.subscribers.add(u),()=>{this.subscribers.delete(u)}},this.emit=i=>{this.subscribers.forEach(r=>{r.eventType===i.type&&r.fn(i)})},this.parseLocation=(i,r)=>{const u=({pathname:g,search:y,hash:v,href:b,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const B=this.options.parseSearch(y),P=this.options.stringifySearch(B);return{href:g+P+v,publicHref:b,pathname:Vi(g).path,external:!1,searchStr:P,search:Xt(r==null?void 0:r.search,B),hash:Vi(v.slice(1)).path,state:Xt(r==null?void 0:r.state,S)}}const _=new URL(b,this.origin),R=md(this.rewrite,_),j=this.options.parseSearch(R.search),M=this.options.stringifySearch(j);return R.search=M,{href:R.href.replace(R.origin,""),publicHref:b,pathname:Vi(R.pathname).path,external:!!this.rewrite&&R.origin!==this.origin,searchStr:M,search:Xt(r==null?void 0:r.search,j),hash:Vi(R.hash.slice(1)).path,state:Xt(r==null?void 0:r.state,S)}},f=u(i),{__tempLocation:m,__tempKey:p}=f.state;if(m&&(!p||p===this.tempLocationKey)){const g=u(m);return g.state.key=f.state.key,g.state.__TSR_key=f.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:f}}return f},this.resolvePathWithBase=(i,r)=>I1({base:i,to:wd(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,r,u)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:r},u):this.matchRoutesInternal(i,r),this.getMatchedRoutes=i=>wS({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const r=this.getMatch(i);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const i=this.state.matches.filter(f=>f.status==="pending"),r=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...i,...r]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=i=>{const r=(f={})=>{var pe,ge;const m=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(m);f.from;const g=f.unsafeRelative==="path"?m.pathname:f.from??p.fullPath,y=this.resolvePathWithBase(g,"."),v=p.search,b={...p.params},S=f.to?this.resolvePathWithBase(y,`${f.to}`):this.resolvePathWithBase(y,"."),_=f.params===!1||f.params===null?{}:(f.params??!0)===!0?b:Object.assign(b,Va(f.params,b)),R=qf({path:S,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,j=this.getMatchedRoutes(R);let M=j.matchedRoutes;(j.foundRoute?j.foundRoute.path!=="/"&&j.routeParams["**"]:In(R))&&this.options.notFoundRoute&&(M=[...M,this.options.notFoundRoute]);let B=!1;if(Object.keys(_).length>0)for(const ie of M){const A=((pe=ie.options.params)==null?void 0:pe.stringify)??ie.options.stringifyParams;A&&(B=!0,Object.assign(_,A(_)))}const P=i.leaveParams?S:Vi(B?qf({path:S,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:R).path;let T=v;if(i._includeValidateSearch&&((ge=this.options.search)!=null&&ge.strict)){const ie={};M.forEach(A=>{if(A.options.validateSearch)try{Object.assign(ie,Ko(A.options.validateSearch,{...ie,...T}))}catch{}}),T=ie}T=CS({search:T,dest:f,destRoutes:M,_includeValidateSearch:i._includeValidateSearch}),T=Xt(v,T);const J=this.options.stringifySearch(T),te=f.hash===!0?m.hash:f.hash?Va(f.hash,m.hash):void 0,V=te?`#${te}`:"";let H=f.state===!0?m.state:f.state?Va(f.state,m.state):{};H=Xt(m.state,H);const W=`${P}${J}${V}`;let G,I,oe=!1;if(this.rewrite){const ie=new URL(W,this.origin),A=wb(this.rewrite,ie);G=ie.href.replace(ie.origin,""),A.origin!==this.origin?(I=A.href,oe=!0):I=A.pathname+A.search+A.hash}else G=H1(W),I=G;return{publicHref:I,href:G,pathname:P,search:T,searchStr:J,state:H,hash:te??"",external:oe,unmaskOnReload:f.unmaskOnReload}},u=(f={},m)=>{const p=r(f);let g=m?r(m):void 0;if(!g){const y={};if(this.options.routeMasks){const v=Y1(p.pathname,this.processedTree);if(v){Object.assign(y,v.rawParams);const{from:b,params:S,..._}=v.route,R=S===!1||S===null?{}:(S??!0)===!0?y:Object.assign(y,Va(S,y));m={from:i.from,..._,params:R},g=r(m)}}}return g&&(p.maskedLocation=g),p};return i.mask?u(i,{from:i.from,...i.mask}):u(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:r,...u})=>{const f=()=>{const g=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];g.forEach(v=>{u.state[v]=this.latestLocation.state[v]});const y=Tl(u.state,this.latestLocation.state);return g.forEach(v=>{delete u.state[v]}),y},m=In(this.latestLocation.href)===In(u.href),p=this.commitLocationPromise;if(this.commitLocationPromise=Qs(()=>{p==null||p.resolve()}),m&&f())this.load();else{let{maskedLocation:g,hashScrollIntoView:y,...v}=u;g&&(v={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[u.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:r})}return this.resetNextScroll=u.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:r,hashScrollIntoView:u,viewTransition:f,ignoreBlocker:m,href:p,...g}={})=>{if(p){const b=this.history.location.state.__TSR_index,S=Jo(p,{__TSR_index:i?b:b+1}),_=new URL(S.pathname,this.origin),R=md(this.rewrite,_);g.to=R.pathname,g.search=this.options.parseSearch(S.search),g.hash=S.hash.slice(1)}const y=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const v=this.commitLocation({...y,viewTransition:f,replace:i,resetScroll:r,hashScrollIntoView:u,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:i,reloadDocument:r,href:u,publicHref:f,...m})=>{var g;let p=!1;if(u)try{new URL(`${u}`),p=!0}catch{}if(p&&!r&&(r=!0),r){if(i!==void 0||!u){const v=this.buildLocation({to:i,...m});u=u??v.publicHref,f=f??v.publicHref}const y=!p&&f?f:u;if(Wo(y))return Promise.resolve();if(!m.ignoreBlocker){const v=this.history,b=((g=v.getBlockers)==null?void 0:g.call(v))??[];for(const S of b)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return m.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...m,href:u,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:i,cachedMatches:r.cachedMatches.filter(u=>!i.some(f=>f.id===u.id))}))},this.load=async i=>{let r,u,f;for(f=new Promise(p=>{this.startTransition(async()=>{var g;try{this.beforeLoad();const y=this.latestLocation,v=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ml({resolvedLocation:v,location:y})}),this.emit({type:"onBeforeLoad",...Ml({resolvedLocation:v,location:y})}),await my({router:this,sync:i==null?void 0:i.sync,matches:this.state.pendingMatches,location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],S=[],_=[];tr(()=>{this.__store.setState(R=>{const j=R.matches,M=R.pendingMatches||R.matches;return b=j.filter(z=>!M.some(B=>B.id===z.id)),S=M.filter(z=>!j.some(B=>B.id===z.id)),_=M.filter(z=>j.some(B=>B.id===z.id)),{...R,isLoading:!1,loadedAt:Date.now(),matches:M,pendingMatches:void 0,cachedMatches:[...R.cachedMatches,...b.filter(z=>z.status!=="error"&&z.status!=="notFound")]}}),this.clearExpiredCache()}),[[b,"onLeave"],[S,"onEnter"],[_,"onStay"]].forEach(([R,j])=>{R.forEach(M=>{var z,B;(B=(z=this.looseRoutesById[M.routeId].options)[j])==null||B.call(z,M)})})})})}})}catch(y){cn(y)?(r=y,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Pt(y)&&(u=y),this.__store.setState(v=>({...v,statusCode:r?r.status:u?404:v.matches.some(b=>b.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===f&&((g=this.commitLocationPromise)==null||g.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let m;this.hasNotFoundMatch()?m=404:this.__store.state.matches.some(p=>p.status==="error")&&(m=500),m!==void 0&&this.__store.setState(p=>({...p,statusCode:m}))},this.startViewTransition=i=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let u;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,m=this.state.resolvedLocation,p=typeof r.types=="function"?r.types(Ml({resolvedLocation:m,location:f})):r.types;if(p===!1){i();return}u={update:i,types:p}}else u=i;document.startViewTransition(u)}else i()},this.updateMatch=(i,r)=>{this.startTransition(()=>{var f;const u=(f=this.state.pendingMatches)!=null&&f.some(m=>m.id===i)?"pendingMatches":this.state.matches.some(m=>m.id===i)?"matches":this.state.cachedMatches.some(m=>m.id===i)?"cachedMatches":"";u&&this.__store.setState(m=>{var p;return{...m,[u]:(p=m[u])==null?void 0:p.map(g=>g.id===i?r(g):g)}})})},this.getMatch=i=>{var u;const r=f=>f.id===i;return this.state.cachedMatches.find(r)??((u=this.state.pendingMatches)==null?void 0:u.find(r))??this.state.matches.find(r)},this.invalidate=i=>{const r=u=>{var f;return((f=i==null?void 0:i.filter)==null?void 0:f.call(i,u))??!0?{...u,invalid:!0,...i!=null&&i.forcePending||u.status==="error"||u.status==="notFound"?{status:"pending",error:void 0}:void 0}:u};return this.__store.setState(u=>{var f;return{...u,matches:u.matches.map(r),cachedMatches:u.cachedMatches.map(r),pendingMatches:(f=u.pendingMatches)==null?void 0:f.map(r)}}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const r=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const u=i.options._builtLocation??this.buildLocation(i.options),f=this.getParsedLocationHref(u);i.options.href=f,i.headers.set("Location",f)}else if(r)try{const u=new URL(r);if(this.origin&&u.origin===this.origin){const f=u.pathname+u.search+u.hash;i.options.href=f,i.headers.set("Location",f)}}catch{}return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const r=i==null?void 0:i.filter;r!==void 0?this.__store.setState(u=>({...u,cachedMatches:u.cachedMatches.filter(f=>!r(f))})):this.__store.setState(u=>({...u,cachedMatches:[]}))},this.clearExpiredCache=()=>{const i=r=>{const u=this.looseRoutesById[r.routeId];if(!u.options.loader)return!0;const f=(r.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=f};this.clearCache({filter:i})},this.loadRouteChunk=jb,this.preloadRoute=async i=>{const r=this.buildLocation(i);let u=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:i});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(p=>p.id)),m=new Set([...f,...this.state.cachedMatches.map(p=>p.id)]);tr(()=>{u.forEach(p=>{m.has(p.id)||this.__store.setState(g=>({...g,cachedMatches:[...g.cachedMatches,p]}))})});try{return u=await my({router:this,matches:u,location:r,preload:!0,updateMatch:(p,g)=>{f.has(p)?u=u.map(y=>y.id===p?g(y):y):this.updateMatch(p,g)}}),u}catch(p){if(cn(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:r});Pt(p)||console.error(p);return}},this.matchRoute=(i,r)=>{const u={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},f=this.buildLocation(u);if(r!=null&&r.pending&&this.state.status!=="pending")return!1;const p=((r==null?void 0:r.pending)===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,g=K1(f.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,p.pathname,this.processedTree);return!g||i.params&&!Tl(g.rawParams,i.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?Tl(p.search,f.search,{partial:!0})?g.rawParams:!1:g.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(i=>i.status==="notFound"||i.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...s,caseSensitive:s.caseSensitive??!1,notFoundMode:s.notFoundMode??"fuzzy",stringifySearch:s.stringifySearch??dS,parseSearch:s.parseSearch??fS}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:s,routesByPath:i,processedTree:r}){this.routesById=s,this.routesByPath=i,this.processedTree=r;const u=this.options.notFoundRoute;u&&(u.init({originalIndex:99999999999}),this.routesById[u.id]=u)}get looseRoutesById(){return this.routesById}getParentContext(s){return(s==null?void 0:s.id)?s.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(s,i){var S,_;const r=this.getMatchedRoutes(s.pathname),{foundRoute:u,routeParams:f,parsedParams:m}=r;let{matchedRoutes:p}=r,g=!1;(u?u.path!=="/"&&f["**"]:In(s.pathname))&&(this.options.notFoundRoute?p=[...p,this.options.notFoundRoute]:g=!0);const y=g?TS(this.options.notFoundMode,p):void 0,v=new Array(p.length),b=new Map(this.state.matches.map(R=>[R.routeId,R]));for(let R=0;R<p.length;R++){const j=p[R],M=v[R-1];let z,B,P;{const A=(M==null?void 0:M.search)??s.search,F=(M==null?void 0:M._strictSearch)??void 0;try{const Y=Ko(j.options.validateSearch,{...A})??void 0;z={...A,...Y},B={...F,...Y},P=void 0}catch(Y){let me=Y;if(Y instanceof nc||(me=new nc(Y.message,{cause:Y})),i!=null&&i.throwOnError)throw me;z=A,B={},P=me}}const T=((_=(S=j.options).loaderDeps)==null?void 0:_.call(S,{search:z}))??"",J=T?JSON.stringify(T):"",{interpolatedPath:te,usedParams:V}=qf({path:j.fullPath,params:f,decoder:this.pathParamsDecoder,server:this.isServer}),H=j.id+te+J,W=this.getMatch(H),G=b.get(j.id),I=(W==null?void 0:W._strictParams)??V;let oe;if(!W)try{py(j,V,m,I)}catch(A){if(Pt(A)||cn(A)?oe=A:oe=new NS(A.message,{cause:A}),i!=null&&i.throwOnError)throw oe}Object.assign(f,I);const pe=G?"stay":"enter";let ge;if(W)ge={...W,cause:pe,params:(G==null?void 0:G.params)??f,_strictParams:I,search:Xt(G?G.search:W.search,z),_strictSearch:B};else{const A=j.options.loader||j.options.beforeLoad||j.lazyFn||Nb(j)?"pending":"success";ge={id:H,ssr:j.options.ssr,index:R,routeId:j.id,params:(G==null?void 0:G.params)??f,_strictParams:I,pathname:te,updatedAt:Date.now(),search:G?Xt(G.search,z):z,_strictSearch:B,searchError:void 0,status:A,isFetching:!1,error:void 0,paramsError:oe,__routeContext:void 0,_nonReactive:{loadPromise:Qs()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:pe,loaderDeps:G?Xt(G.loaderDeps,T):T,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:j.options.staticData||{},fullPath:j.fullPath}}i!=null&&i.preload||(ge.globalNotFound=y===j.id),ge.searchError=P;const ie=this.getParentContext(M);ge.context={...ie,...ge.__routeContext,...ge.__beforeLoadContext},v[R]=ge}for(let R=0;R<v.length;R++){const j=v[R],M=this.looseRoutesById[j.routeId],z=this.getMatch(j.id),B=b.get(j.routeId);if(j.params=B?Xt(B.params,f):f,!z){const P=v[R-1],T=this.getParentContext(P);if(M.options.context){const J={deps:j.loaderDeps,params:j.params,context:T??{},location:s,navigate:te=>this.navigate({...te,_fromLocation:s}),buildLocation:this.buildLocation,cause:j.cause,abortController:j.abortController,preload:!!j.preload,matches:v,routeId:M.id};j.__routeContext=M.options.context(J)??void 0}j.context={...T,...j.__routeContext,...j.__beforeLoadContext}}}return v}matchRoutesLightweight(s){const{matchedRoutes:i,routeParams:r,parsedParams:u}=this.getMatchedRoutes(s.pathname),f=sr(i),m={...s.search};for(const v of i)try{Object.assign(m,Ko(v.options.validateSearch,m))}catch{}const p=sr(this.state.matches),g=p&&p.routeId===f.id&&s.pathname===this.state.location.pathname;let y;if(g)y=p.params;else{const v={...r};for(const b of i)try{py(b,r,u??{},v)}catch{}y=v}return{matchedRoutes:i,fullPath:f.fullPath,search:m,params:y}}}class nc extends Error{}class NS extends Error{}function RS(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Ko(a,s){if(a==null)return{};if("~standard"in a){const i=a["~standard"].validate(s);if(i instanceof Promise)throw new nc("Async validation not supported");if(i.issues)throw new nc(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in a?a.parse(s):typeof a=="function"?a(s):{}}function wS({pathname:a,routesById:s,processedTree:i}){const r={},u=In(a);let f,m;const p=X1(u,i,!0);return p&&(f=p.route,Object.assign(r,p.rawParams),m=Object.assign({},p.parsedParams)),{matchedRoutes:(p==null?void 0:p.branch)||[s[on]],routeParams:r,foundRoute:f,parsedParams:m}}function CS({search:a,dest:s,destRoutes:i,_includeValidateSearch:r}){return ES(i)(a,s,r??!1)}function ES(a){var u;const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of a){if("search"in f.options)(u=f.options.search)!=null&&u.middlewares&&s.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const m=({search:p,next:g})=>{let y=p;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(y=f.options.preSearchFilters.reduce((b,S)=>S(b),p));const v=g(y);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((b,S)=>S(b),v):v};s.middlewares.push(m)}if(f.options.validateSearch){const m=({search:p,next:g})=>{const y=g(p);if(!s._includeValidateSearch)return y;try{return{...y,...Ko(f.options.validateSearch,y)??void 0}}catch{return y}};s.middlewares.push(m)}}const i=({search:f})=>{const m=s.dest;return m.search?m.search===!0?f:Va(m.search,f):{}};s.middlewares.push(i);const r=(f,m,p)=>{if(f>=p.length)return m;const g=p[f];return g({search:m,next:v=>r(f+1,v,p)})};return function(m,p,g){return s.dest=p,s._includeValidateSearch=g,r(0,m,s.middlewares)}}function TS(a,s){if(a!=="root")for(let i=s.length-1;i>=0;i--){const r=s[i];if(r.children)return r.id}return on}function py(a,s,i,r){var f;const u=((f=a.options.params)==null?void 0:f.parse)??a.options.parseParams;if(u)if(a.options.skipRouteOnParseError)for(const m in s)m in i&&(r[m]=i[m]);else{const m=u(r);Object.assign(r,m)}}const MS="Error preloading route! ☝️";class Cb{constructor(s){if(this.init=i=>{var y,v;this.originalIndex=i.originalIndex;const r=this.options,u=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(v=(y=this.options).getParentRoute)==null?void 0:v.call(y),u?this._path=on:this.parentRoute||ta(!1);let f=u?on:r==null?void 0:r.path;f&&f!=="/"&&(f=yb(f));const m=(r==null?void 0:r.id)||f;let p=u?on:Vo([this.parentRoute.id===on?"":this.parentRoute.id,m]);f===on&&(f="/"),p!==on&&(p=Vo(["/",p]));const g=p===on?"/":Vo([this.parentRoute.fullPath,f]);this._path=f,this._id=p,this._fullPath=g,this._to=In(g)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>pS({from:this.fullPath,...i}),this.options=s||{},this.isRoot=!(s!=null&&s.getParentRoute),s!=null&&s.id&&(s!=null&&s.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class AS extends Cb{constructor(s){super(s)}}const Uo=typeof window<"u"?U.useLayoutEffect:U.useEffect;function Qf(a){const s=U.useRef({value:a,prev:null}),i=s.current.value;return a!==i&&(s.current={value:a,prev:i}),s.current.prev}function OS(a,s,i={},r={}){U.useEffect(()=>{if(!a.current||r.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([f])=>{s(f)},i);return u.observe(a.current),()=>{u.disconnect()}},[s,i,r.disabled,a])}function zS(a){const s=U.useRef(null);return U.useImperativeHandle(a,()=>s.current,[]),s}function Cd(a){const s=a.errorComponent??Ed;return d.jsx(DS,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:i,reset:r})=>i?U.createElement(s,{error:i,reset:r}):a.children})}class DS extends U.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(s){return{resetKey:s.getResetKey()}}static getDerivedStateFromError(s){return{error:s}}reset(){this.setState({error:null})}componentDidUpdate(s,i){i.error&&i.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(s,i){this.props.onCatch&&this.props.onCatch(s,i)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Ed({error:a}){const[s,i]=U.useState(!1);return d.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[d.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),d.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(r=>!r),children:s?"Hide Error":"Show Error"})]}),d.jsx("div",{style:{height:".25rem"}}),s?d.jsx("div",{children:d.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?d.jsx("code",{children:a.message}):null})}):null]})}function LS({children:a,fallback:s=null}){return Eb()?d.jsx(Hs.Fragment,{children:a}):d.jsx(Hs.Fragment,{children:s})}function Eb(){return Hs.useSyncExternalStore(kS,()=>!0,()=>!1)}function kS(){return()=>{}}var Gf={exports:{}},Vf={},Yf={exports:{}},Kf={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* use-sync-external-store-shim.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var gy;function US(){if(gy)return Kf;gy=1;var a=dr();function s(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var i=typeof Object.is=="function"?Object.is:s,r=a.useState,u=a.useEffect,f=a.useLayoutEffect,m=a.useDebugValue;function p(b,S){var _=S(),R=r({inst:{value:_,getSnapshot:S}}),j=R[0].inst,M=R[1];return f(function(){j.value=_,j.getSnapshot=S,g(j)&&M({inst:j})},[b,_,S]),u(function(){return g(j)&&M({inst:j}),b(function(){g(j)&&M({inst:j})})},[b]),m(_),_}function g(b){var S=b.getSnapshot;b=b.value;try{var _=S();return!i(b,_)}catch{return!0}}function y(b,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:p;return Kf.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:v,Kf}var yy;function BS(){return yy||(yy=1,Yf.exports=US()),Yf.exports}/**
|
|
58
|
+
* @license React
|
|
59
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var by;function qS(){if(by)return Vf;by=1;var a=dr(),s=BS();function i(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var r=typeof Object.is=="function"?Object.is:i,u=s.useSyncExternalStore,f=a.useRef,m=a.useEffect,p=a.useMemo,g=a.useDebugValue;return Vf.useSyncExternalStoreWithSelector=function(y,v,b,S,_){var R=f(null);if(R.current===null){var j={hasValue:!1,value:null};R.current=j}else j=R.current;R=p(function(){function z(te){if(!B){if(B=!0,P=te,te=S(te),_!==void 0&&j.hasValue){var V=j.value;if(_(V,te))return T=V}return T=te}if(V=T,r(P,te))return V;var H=S(te);return _!==void 0&&_(V,H)?(P=te,V):(P=te,T=H)}var B=!1,P,T,J=b===void 0?null:b;return[function(){return z(v())},J===null?void 0:function(){return z(J())}]},[v,b,S,_]);var M=u(y,R[0],R[1]);return m(function(){j.hasValue=!0,j.value=M},[M]),g(M),M},Vf}var vy;function HS(){return vy||(vy=1,Gf.exports=qS()),Gf.exports}var QS=HS();function GS(a,s=r=>r,i={}){const r=i.equal??VS;return QS.useSyncExternalStoreWithSelector(a.subscribe,()=>a.state,()=>a.state,s,r)}function VS(a,s){if(Object.is(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;if(a instanceof Map&&s instanceof Map){if(a.size!==s.size)return!1;for(const[r,u]of a)if(!s.has(r)||!Object.is(u,s.get(r)))return!1;return!0}if(a instanceof Set&&s instanceof Set){if(a.size!==s.size)return!1;for(const r of a)if(!s.has(r))return!1;return!0}if(a instanceof Date&&s instanceof Date)return a.getTime()===s.getTime();const i=xy(a);if(i.length!==xy(s).length)return!1;for(let r=0;r<i.length;r++)if(!Object.prototype.hasOwnProperty.call(s,i[r])||!Object.is(a[i[r]],s[i[r]]))return!1;return!0}function xy(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}const Xf=U.createContext(null);function Tb(){return typeof document>"u"?Xf:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Xf,Xf)}function fn(a){const s=U.useContext(Tb());return a==null||a.warn,s}function Zt(a){const s=fn({warn:(a==null?void 0:a.router)===void 0}),i=(a==null?void 0:a.router)||s,r=U.useRef(void 0);return GS(i.__store,u=>{if(a!=null&&a.select){if(a.structuralSharing??i.options.defaultStructuralSharing){const f=Xt(r.current,a.select(u));return r.current=f,f}return a.select(u)}return u})}const cc=U.createContext(void 0),YS=U.createContext(void 0);function wn(a){const s=U.useContext(a.from?YS:cc);return Zt({select:r=>{const u=r.matches.find(f=>a.from?a.from===f.routeId:f.id===s);if(ta(!((a.shouldThrow??!0)&&!u),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),u!==void 0)return a.select?a.select(u):u},structuralSharing:a.structuralSharing})}function Td(a){return wn({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:s=>a.select?a.select(s.loaderData):s.loaderData})}function Md(a){const{select:s,...i}=a;return wn({...i,select:r=>s?s(r.loaderDeps):r.loaderDeps})}function Ad(a){return wn({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:s=>{const i=a.strict===!1?s.params:s._strictParams;return a.select?a.select(i):i}})}function Od(a){return wn({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:s=>a.select?a.select(s.search):s.search})}function uc(a){const s=fn();return U.useCallback(i=>s.navigate({...i,from:i.from??(a==null?void 0:a.from)}),[a==null?void 0:a.from,s])}var KS=eb();function XS(a,s){const i=fn(),r=zS(s),{activeProps:u,inactiveProps:f,activeOptions:m,to:p,preload:g,preloadDelay:y,hashScrollIntoView:v,replace:b,startTransition:S,resetScroll:_,viewTransition:R,children:j,target:M,disabled:z,style:B,className:P,onClick:T,onFocus:J,onMouseEnter:te,onMouseLeave:V,onTouchStart:H,ignoreBlocker:W,params:G,search:I,hash:oe,state:pe,mask:ge,reloadDocument:ie,unsafeRelative:A,from:F,_fromLocation:Y,...me}=a,ye=Eb(),C=Zt({select:Qe=>Qe.location.search,structuralSharing:!0}),X=a.from,$=U.useMemo(()=>({...a,from:X}),[i,C,X,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),ee=U.useMemo(()=>i.buildLocation({...$}),[i,$]),he=ee.maskedLocation?ee.maskedLocation.publicHref:ee.publicHref,ve=ee.maskedLocation?ee.maskedLocation.external:ee.external,ce=U.useMemo(()=>WS(he,ve,i.history,z),[z,ve,he,i.history]),Ze=U.useMemo(()=>{if(ce!=null&&ce.external)return Wo(ce.href)?void 0:ce.href;if(!IS(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),Wo(p)?void 0:p}catch{}},[p,ce]),ze=Zt({select:Qe=>{if(Ze)return!1;if(m!=null&&m.exact){if(!W1(Qe.location.pathname,ee.pathname,i.basepath))return!1}else{const ft=ec(Qe.location.pathname,i.basepath),bt=ec(ee.pathname,i.basepath);if(!(ft.startsWith(bt)&&(ft.length===bt.length||ft[bt.length]==="/")))return!1}return((m==null?void 0:m.includeSearch)??!0)&&!Tl(Qe.location.search,ee.search,{partial:!(m!=null&&m.exact),ignoreUndefined:!(m!=null&&m.explicitUndefined)})?!1:m!=null&&m.includeHash?ye&&Qe.location.hash===ee.hash:!0}}),_t=ze?Va(u,{})??PS:Pf,kt=ze?Pf:Va(f,{})??Pf,dn=[P,_t.className,kt.className].filter(Boolean).join(" "),Xs=(B||_t.style||kt.style)&&{...B,..._t.style,...kt.style},[Cn,kl]=U.useState(!1),Ul=U.useRef(!1),sa=a.reloadDocument||Ze?!1:g??i.options.defaultPreload,Bl=y??i.options.defaultPreloadDelay??0,hn=U.useCallback(()=>{i.preloadRoute({...$}).catch(Qe=>{console.warn(Qe),console.warn(MS)})},[i,$]),Ps=U.useCallback(Qe=>{Qe!=null&&Qe.isIntersecting&&hn()},[hn]);OS(r,Ps,$S,{disabled:!!z||sa!=="viewport"}),U.useEffect(()=>{Ul.current||!z&&sa==="render"&&(hn(),Ul.current=!0)},[z,hn,sa]);const Zs=Qe=>{const ft=Qe.currentTarget.getAttribute("target"),bt=M!==void 0?M:ft;if(!z&&!e2(Qe)&&!Qe.defaultPrevented&&(!bt||bt==="_self")&&Qe.button===0){Qe.preventDefault(),KS.flushSync(()=>{kl(!0)});const pr=i.subscribe("onResolved",()=>{pr(),kl(!1)});i.navigate({...$,replace:b,resetScroll:_,hashScrollIntoView:v,startTransition:S,viewTransition:R,ignoreBlocker:W})}};if(Ze)return{...me,ref:r,href:Ze,...j&&{children:j},...M&&{target:M},...z&&{disabled:z},...B&&{style:B},...P&&{className:P},...T&&{onClick:T},...J&&{onFocus:J},...te&&{onMouseEnter:te},...V&&{onMouseLeave:V},...H&&{onTouchStart:H}};const mr=Qe=>{z||sa&&hn()},dc=mr,jt=Qe=>{if(!(z||!sa))if(!Bl)hn();else{const ft=Qe.target;if(Xi.has(ft))return;const bt=setTimeout(()=>{Xi.delete(ft),hn()},Bl);Xi.set(ft,bt)}},hc=Qe=>{if(z||!sa||!Bl)return;const ft=Qe.target,bt=Xi.get(ft);bt&&(clearTimeout(bt),Xi.delete(ft))};return{...me,..._t,...kt,href:ce==null?void 0:ce.href,ref:r,onClick:Pi([T,Zs]),onFocus:Pi([J,mr]),onMouseEnter:Pi([te,jt]),onMouseLeave:Pi([V,hc]),onTouchStart:Pi([H,dc]),disabled:!!z,target:M,...Xs&&{style:Xs},...dn&&{className:dn},...z&&ZS,...ze&&FS,...ye&&Cn&&JS}}const Pf={},PS={className:"active"},ZS={role:"link","aria-disabled":!0},FS={"data-status":"active","aria-current":"page"},JS={"data-transitioning":"transitioning"},Xi=new WeakMap,$S={rootMargin:"100px"},Pi=a=>s=>{for(const i of a)if(i){if(s.defaultPrevented)return;i(s)}};function WS(a,s,i,r){if(!r)return s?{href:a,external:!0}:{href:i.createHref(a)||"/",external:!1}}function IS(a){if(typeof a!="string")return!1;const s=a.charCodeAt(0);return s===47?a.charCodeAt(1)!==47:s===46}const zd=U.forwardRef((a,s)=>{const{_asChild:i,...r}=a,{type:u,...f}=XS(r,s),m=typeof r.children=="function"?r.children({isActive:f["data-status"]==="active"}):r.children;if(!i){const{disabled:p,...g}=f;return U.createElement("a",g,m)}return U.createElement(i,f,m)});function e2(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}class t2 extends Cb{constructor(s){super(s),this.useMatch=i=>wn({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>wn({...i,from:this.id,select:r=>i!=null&&i.select?i.select(r.context):r.context}),this.useSearch=i=>Od({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>Ad({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Md({...i,from:this.id}),this.useLoaderData=i=>Td({...i,from:this.id}),this.useNavigate=()=>uc({from:this.fullPath}),this.Link=Hs.forwardRef((i,r)=>d.jsx(zd,{ref:r,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}}function aa(a){return new t2(a)}class n2 extends AS{constructor(s){super(s),this.useMatch=i=>wn({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>wn({...i,from:this.id,select:r=>i!=null&&i.select?i.select(r.context):r.context}),this.useSearch=i=>Od({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>Ad({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Md({...i,from:this.id}),this.useLoaderData=i=>Td({...i,from:this.id}),this.useNavigate=()=>uc({from:this.fullPath}),this.Link=Hs.forwardRef((i,r)=>d.jsx(zd,{ref:r,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}}function a2(a){return new n2(a)}function Sy(a){return typeof a=="object"?new _y(a,{silent:!0}).createRoute(a):new _y(a,{silent:!0}).createRoute}class _y{constructor(s,i){this.path=s,this.createRoute=r=>{this.silent;const u=aa(r);return u.isRoot=!1,u},this.silent=i==null?void 0:i.silent}}class jy{constructor(s){this.useMatch=i=>wn({select:i==null?void 0:i.select,from:this.options.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>wn({from:this.options.id,select:r=>i!=null&&i.select?i.select(r.context):r.context}),this.useSearch=i=>Od({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.options.id}),this.useParams=i=>Ad({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.options.id}),this.useLoaderDeps=i=>Md({...i,from:this.options.id}),this.useLoaderData=i=>Td({...i,from:this.options.id}),this.useNavigate=()=>{const i=fn();return uc({from:i.routesById[this.options.id].fullPath})},this.options=s,this.$$typeof=Symbol.for("react.memo")}}function Ny(a){return typeof a=="object"?new jy(a):s=>new jy({id:a,...s})}function l2(){const a=fn(),s=U.useRef({router:a,mounted:!1}),[i,r]=U.useState(!1),{hasPendingMatches:u,isLoading:f}=Zt({select:b=>({isLoading:b.isLoading,hasPendingMatches:b.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),m=Qf(f),p=f||i||u,g=Qf(p),y=f||u,v=Qf(y);return a.startTransition=b=>{r(!0),U.startTransition(()=>{b(),r(!1)})},U.useEffect(()=>{const b=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return In(a.latestLocation.publicHref)!==In(S.publicHref)&&a.commitLocation({...S,replace:!0}),()=>{b()}},[a,a.history]),Uo(()=>{if(typeof window<"u"&&a.ssr||s.current.router===a&&s.current.mounted)return;s.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),Uo(()=>{m&&!f&&a.emit({type:"onLoad",...Ml(a.state)})},[m,a,f]),Uo(()=>{v&&!y&&a.emit({type:"onBeforeRouteMount",...Ml(a.state)})},[y,v,a]),Uo(()=>{if(g&&!p){const b=Ml(a.state);a.emit({type:"onResolved",...b}),a.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),b.hrefChanged&&oS(a)}},[p,g,a]),null}function s2(a){const s=Zt({select:i=>`not-found-${i.location.pathname}-${i.status}`});return d.jsx(Cd,{getResetKey:()=>s,onCatch:(i,r)=>{var u;if(Pt(i))(u=a.onCatch)==null||u.call(a,i,r);else throw i},errorComponent:({error:i})=>{var r;if(Pt(i))return(r=a.fallback)==null?void 0:r.call(a,i);throw i},children:a.children})}function i2(){return d.jsx("p",{children:"Not Found"})}function Ns(a){return d.jsx(d.Fragment,{children:a.children})}function Mb(a,s,i){return s.options.notFoundComponent?d.jsx(s.options.notFoundComponent,{...i}):a.options.defaultNotFoundComponent?d.jsx(a.options.defaultNotFoundComponent,{...i}):d.jsx(i2,{})}function r2(){return fn().isScrollRestoring,null}const Ab=U.memo(function({matchId:s}){var j,M;const i=fn(),r=Zt({select:z=>{var T;const B=z.matches.findIndex(J=>J.id===s),P=z.matches[B];return ta(P),{routeId:P.routeId,ssr:P.ssr,_displayPending:P._displayPending,resetKey:z.loadedAt,parentRouteId:(T=z.matches[B-1])==null?void 0:T.routeId}},structuralSharing:!0}),u=i.routesById[r.routeId],f=u.options.pendingComponent??i.options.defaultPendingComponent,m=f?d.jsx(f,{}):null,p=u.options.errorComponent??i.options.defaultErrorComponent,g=u.options.onCatch??i.options.defaultOnCatch,y=u.isRoot?u.options.notFoundComponent??((j=i.options.notFoundRoute)==null?void 0:j.options.component):u.options.notFoundComponent,v=r.ssr===!1||r.ssr==="data-only",b=(!u.isRoot||u.options.wrapInSuspense||v)&&(u.options.wrapInSuspense??f??(((M=u.options.errorComponent)==null?void 0:M.preload)||v))?U.Suspense:Ns,S=p?Cd:Ns,_=y?s2:Ns,R=u.isRoot?u.options.shellComponent??Ns:Ns;return d.jsxs(R,{children:[d.jsx(cc.Provider,{value:s,children:d.jsx(b,{fallback:m,children:d.jsx(S,{getResetKey:()=>r.resetKey,errorComponent:p||Ed,onCatch:(z,B)=>{if(Pt(z))throw z;g==null||g(z,B)},children:d.jsx(_,{fallback:z=>{if(!y||z.routeId&&z.routeId!==r.routeId||!z.routeId&&!u.isRoot)throw z;return U.createElement(y,z)},children:v||r._displayPending?d.jsx(LS,{fallback:m,children:d.jsx(Ry,{matchId:s})}):d.jsx(Ry,{matchId:s})})})})}),r.parentRouteId===on&&i.options.scrollRestoration?d.jsxs(d.Fragment,{children:[d.jsx(o2,{}),d.jsx(r2,{})]}):null]})});function o2(){const a=fn(),s=U.useRef(void 0);return d.jsx("script",{suppressHydrationWarning:!0,ref:i=>{i&&(s.current===void 0||s.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...Ml(a.state)}),s.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}const Ry=U.memo(function({matchId:s}){var g,y,v,b;const i=fn(),{match:r,key:u,routeId:f}=Zt({select:S=>{const _=S.matches.find(B=>B.id===s),R=_.routeId,j=i.routesById[R].options.remountDeps??i.options.defaultRemountDeps,M=j==null?void 0:j({routeId:R,loaderDeps:_.loaderDeps,params:_._strictParams,search:_._strictSearch});return{key:M?JSON.stringify(M):void 0,routeId:R,match:{id:_.id,status:_.status,error:_.error,invalid:_.invalid,_forcePending:_._forcePending,_displayPending:_._displayPending}}},structuralSharing:!0}),m=i.routesById[f],p=U.useMemo(()=>{const S=m.options.component??i.options.defaultComponent;return S?d.jsx(S,{},u):d.jsx(Ob,{})},[u,m.options.component,i.options.defaultComponent]);if(r._displayPending)throw(g=i.getMatch(r.id))==null?void 0:g._nonReactive.displayPendingPromise;if(r._forcePending)throw(y=i.getMatch(r.id))==null?void 0:y._nonReactive.minPendingPromise;if(r.status==="pending"){const S=m.options.pendingMinMs??i.options.defaultPendingMinMs;if(S){const _=i.getMatch(r.id);if(_&&!_._nonReactive.minPendingPromise){const R=Qs();_._nonReactive.minPendingPromise=R,setTimeout(()=>{R.resolve(),_._nonReactive.minPendingPromise=void 0},S)}}throw(v=i.getMatch(r.id))==null?void 0:v._nonReactive.loadPromise}if(r.status==="notFound")return ta(Pt(r.error)),Mb(i,m,r.error);if(r.status==="redirected")throw ta(cn(r.error)),(b=i.getMatch(r.id))==null?void 0:b._nonReactive.loadPromise;if(r.status==="error")throw r.error;return p}),Ob=U.memo(function(){const s=fn(),i=U.useContext(cc),r=Zt({select:y=>{var v;return(v=y.matches.find(b=>b.id===i))==null?void 0:v.routeId}}),u=s.routesById[r],f=Zt({select:y=>{const b=y.matches.find(S=>S.id===i);return ta(b),b.globalNotFound}}),m=Zt({select:y=>{var S;const v=y.matches,b=v.findIndex(_=>_.id===i);return(S=v[b+1])==null?void 0:S.id}}),p=s.options.defaultPendingComponent?d.jsx(s.options.defaultPendingComponent,{}):null;if(f)return Mb(s,u,void 0);if(!m)return null;const g=d.jsx(Ab,{matchId:m});return r===on?d.jsx(U.Suspense,{fallback:p,children:g}):g});function c2(){const a=fn(),i=a.routesById[on].options.pendingComponent??a.options.defaultPendingComponent,r=i?d.jsx(i,{}):null,u=typeof document<"u"&&a.ssr?Ns:U.Suspense,f=d.jsxs(u,{fallback:r,children:[d.jsx(l2,{}),d.jsx(u2,{})]});return a.options.InnerWrap?d.jsx(a.options.InnerWrap,{children:f}):f}function u2(){const a=fn(),s=Zt({select:u=>{var f;return(f=u.matches[0])==null?void 0:f.id}}),i=Zt({select:u=>u.loadedAt}),r=s?d.jsx(Ab,{matchId:s}):null;return d.jsx(cc.Provider,{value:s,children:a.options.disableGlobalCatchBoundary?r:d.jsx(Cd,{getResetKey:()=>i,errorComponent:Ed,onCatch:u=>{u.message||u.toString()},children:r})})}const f2=a=>new d2(a);class d2 extends jS{constructor(s){super(s)}}typeof globalThis<"u"?(globalThis.createFileRoute=Sy,globalThis.createLazyFileRoute=Ny):typeof window<"u"&&(window.createFileRoute=Sy,window.createLazyFileRoute=Ny);function h2({router:a,children:s,...i}){Object.keys(i).length>0&&a.update({...a.options,...i,context:{...a.options.context,...i.context}});const r=Tb(),u=d.jsx(r.Provider,{value:a,children:s});return a.options.Wrap?d.jsx(a.options.Wrap,{children:u}):u}function m2({router:a,...s}){return d.jsx(h2,{router:a,...s,children:d.jsx(c2,{})})}/**
|
|
66
|
+
* @license lucide-react v0.513.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
|
+
*/const p2=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),g2=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,i,r)=>r?r.toUpperCase():i.toLowerCase()),wy=a=>{const s=g2(a);return s.charAt(0).toUpperCase()+s.slice(1)},zb=(...a)=>a.filter((s,i,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===i).join(" ").trim(),y2=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/**
|
|
71
|
+
* @license lucide-react v0.513.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
|
+
*/var b2={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"};/**
|
|
76
|
+
* @license lucide-react v0.513.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 v2=U.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:u="",children:f,iconNode:m,...p},g)=>U.createElement("svg",{ref:g,...b2,width:s,height:s,stroke:a,strokeWidth:r?Number(i)*24/Number(s):i,className:zb("lucide",u),...!f&&!y2(p)&&{"aria-hidden":"true"},...p},[...m.map(([y,v])=>U.createElement(y,v)),...Array.isArray(f)?f:[f]]));/**
|
|
81
|
+
* @license lucide-react v0.513.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 Ue=(a,s)=>{const i=U.forwardRef(({className:r,...u},f)=>U.createElement(v2,{ref:f,iconNode:s,className:zb(`lucide-${p2(wy(a))}`,`lucide-${a}`,r),...u}));return i.displayName=wy(a),i};/**
|
|
86
|
+
* @license lucide-react v0.513.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 x2=[["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"}]],Db=Ue("activity",x2);/**
|
|
91
|
+
* @license lucide-react v0.513.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const S2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],_2=Ue("arrow-left",S2);/**
|
|
96
|
+
* @license lucide-react v0.513.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 j2=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]],N2=Ue("book-text",j2);/**
|
|
101
|
+
* @license lucide-react v0.513.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 R2=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],w2=Ue("chart-column",R2);/**
|
|
106
|
+
* @license lucide-react v0.513.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 C2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Xo=Ue("check",C2);/**
|
|
111
|
+
* @license lucide-react v0.513.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 E2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Lb=Ue("chevron-left",E2);/**
|
|
116
|
+
* @license lucide-react v0.513.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 T2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kb=Ue("chevron-right",T2);/**
|
|
121
|
+
* @license lucide-react v0.513.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 M2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],A2=Ue("circle-user",M2);/**
|
|
126
|
+
* @license lucide-react v0.513.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 O2=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Ub=Ue("cpu",O2);/**
|
|
131
|
+
* @license lucide-react v0.513.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 z2=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],D2=Ue("credit-card",z2);/**
|
|
136
|
+
* @license lucide-react v0.513.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 L2=[["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"}]],ac=Ue("database",L2);/**
|
|
141
|
+
* @license lucide-react v0.513.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 k2=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],U2=Ue("ellipsis-vertical",k2);/**
|
|
146
|
+
* @license lucide-react v0.513.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 B2=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Bb=Ue("eye-off",B2);/**
|
|
151
|
+
* @license lucide-react v0.513.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 q2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],qb=Ue("eye",q2);/**
|
|
156
|
+
* @license lucide-react v0.513.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 H2=[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],Hb=Ue("folder-git-2",H2);/**
|
|
161
|
+
* @license lucide-react v0.513.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 Q2=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],G2=Ue("folder-plus",Q2);/**
|
|
166
|
+
* @license lucide-react v0.513.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 V2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Y2=Ue("layout-dashboard",V2);/**
|
|
171
|
+
* @license lucide-react v0.513.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 K2=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],X2=Ue("log-out",K2);/**
|
|
176
|
+
* @license lucide-react v0.513.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 P2=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Z2=Ue("mail",P2);/**
|
|
181
|
+
* @license lucide-react v0.513.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 F2=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Cy=Ue("moon",F2);/**
|
|
186
|
+
* @license lucide-react v0.513.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 J2=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],$2=Ue("network",J2);/**
|
|
191
|
+
* @license lucide-react v0.513.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 W2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],I2=Ue("panel-left",W2);/**
|
|
196
|
+
* @license lucide-react v0.513.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 e_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],t_=Ue("plus",e_);/**
|
|
201
|
+
* @license lucide-react v0.513.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 n_=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Qb=Ue("refresh-cw",n_);/**
|
|
206
|
+
* @license lucide-react v0.513.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 a_=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ey=Ue("search",a_);/**
|
|
211
|
+
* @license lucide-react v0.513.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const l_=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],pd=Ue("send",l_);/**
|
|
216
|
+
* @license lucide-react v0.513.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const s_=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],i_=Ue("shapes",s_);/**
|
|
221
|
+
* @license lucide-react v0.513.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const r_=[["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"}]],Ty=Ue("sun",r_);/**
|
|
226
|
+
* @license lucide-react v0.513.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const o_=[["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"}]],c_=Ue("trash-2",o_);function Gb(a){var s,i,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var u=a.length;for(s=0;s<u;s++)a[s]&&(i=Gb(a[s]))&&(r&&(r+=" "),r+=i)}else for(i in a)a[i]&&(r&&(r+=" "),r+=i);return r}function Vb(){for(var a,s,i=0,r="",u=arguments.length;i<u;i++)(a=arguments[i])&&(s=Gb(a))&&(r&&(r+=" "),r+=s);return r}const u_=(a,s)=>{const i=new Array(a.length+s.length);for(let r=0;r<a.length;r++)i[r]=a[r];for(let r=0;r<s.length;r++)i[a.length+r]=s[r];return i},f_=(a,s)=>({classGroupId:a,validator:s}),Yb=(a=new Map,s=null,i)=>({nextPart:a,validators:s,classGroupId:i}),lc="-",My=[],d_="arbitrary..",h_=a=>{const s=p_(a),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return m_(m);const p=m.split(lc),g=p[0]===""&&p.length>1?1:0;return Kb(p,g,s)},getConflictingClassGroupIds:(m,p)=>{if(p){const g=r[m],y=i[m];return g?y?u_(y,g):g:y||My}return i[m]||My}}},Kb=(a,s,i)=>{if(a.length-s===0)return i.classGroupId;const u=a[s],f=i.nextPart.get(u);if(f){const y=Kb(a,s+1,f);if(y)return y}const m=i.validators;if(m===null)return;const p=s===0?a.join(lc):a.slice(s).join(lc),g=m.length;for(let y=0;y<g;y++){const v=m[y];if(v.validator(p))return v.classGroupId}},m_=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=a.slice(1,-1),i=s.indexOf(":"),r=s.slice(0,i);return r?d_+r:void 0})(),p_=a=>{const{theme:s,classGroups:i}=a;return g_(i,s)},g_=(a,s)=>{const i=Yb();for(const r in a){const u=a[r];Dd(u,i,r,s)}return i},Dd=(a,s,i,r)=>{const u=a.length;for(let f=0;f<u;f++){const m=a[f];y_(m,s,i,r)}},y_=(a,s,i,r)=>{if(typeof a=="string"){b_(a,s,i);return}if(typeof a=="function"){v_(a,s,i,r);return}x_(a,s,i,r)},b_=(a,s,i)=>{const r=a===""?s:Xb(s,a);r.classGroupId=i},v_=(a,s,i,r)=>{if(S_(a)){Dd(a(r),s,i,r);return}s.validators===null&&(s.validators=[]),s.validators.push(f_(i,a))},x_=(a,s,i,r)=>{const u=Object.entries(a),f=u.length;for(let m=0;m<f;m++){const[p,g]=u[m];Dd(g,Xb(s,p),i,r)}},Xb=(a,s)=>{let i=a;const r=s.split(lc),u=r.length;for(let f=0;f<u;f++){const m=r[f];let p=i.nextPart.get(m);p||(p=Yb(),i.nextPart.set(m,p)),i=p}return i},S_=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,__=a=>{if(a<1)return{get:()=>{},set:()=>{}};let s=0,i=Object.create(null),r=Object.create(null);const u=(f,m)=>{i[f]=m,s++,s>a&&(s=0,r=i,i=Object.create(null))};return{get(f){let m=i[f];if(m!==void 0)return m;if((m=r[f])!==void 0)return u(f,m),m},set(f,m){f in i?i[f]=m:u(f,m)}}},gd="!",Ay=":",j_=[],Oy=(a,s,i,r,u)=>({modifiers:a,hasImportantModifier:s,baseClassName:i,maybePostfixModifierPosition:r,isExternal:u}),N_=a=>{const{prefix:s,experimentalParseClassName:i}=a;let r=u=>{const f=[];let m=0,p=0,g=0,y;const v=u.length;for(let j=0;j<v;j++){const M=u[j];if(m===0&&p===0){if(M===Ay){f.push(u.slice(g,j)),g=j+1;continue}if(M==="/"){y=j;continue}}M==="["?m++:M==="]"?m--:M==="("?p++:M===")"&&p--}const b=f.length===0?u:u.slice(g);let S=b,_=!1;b.endsWith(gd)?(S=b.slice(0,-1),_=!0):b.startsWith(gd)&&(S=b.slice(1),_=!0);const R=y&&y>g?y-g:void 0;return Oy(f,_,S,R)};if(s){const u=s+Ay,f=r;r=m=>m.startsWith(u)?f(m.slice(u.length)):Oy(j_,!1,m,void 0,!0)}if(i){const u=r;r=f=>i({className:f,parseClassName:u})}return r},R_=a=>{const s=new Map;return a.orderSensitiveModifiers.forEach((i,r)=>{s.set(i,1e6+r)}),i=>{const r=[];let u=[];for(let f=0;f<i.length;f++){const m=i[f],p=m[0]==="[",g=s.has(m);p||g?(u.length>0&&(u.sort(),r.push(...u),u=[]),r.push(m)):u.push(m)}return u.length>0&&(u.sort(),r.push(...u)),r}},w_=a=>({cache:__(a.cacheSize),parseClassName:N_(a),sortModifiers:R_(a),...h_(a)}),C_=/\s+/,E_=(a,s)=>{const{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:f}=s,m=[],p=a.trim().split(C_);let g="";for(let y=p.length-1;y>=0;y-=1){const v=p[y],{isExternal:b,modifiers:S,hasImportantModifier:_,baseClassName:R,maybePostfixModifierPosition:j}=i(v);if(b){g=v+(g.length>0?" "+g:g);continue}let M=!!j,z=r(M?R.substring(0,j):R);if(!z){if(!M){g=v+(g.length>0?" "+g:g);continue}if(z=r(R),!z){g=v+(g.length>0?" "+g:g);continue}M=!1}const B=S.length===0?"":S.length===1?S[0]:f(S).join(":"),P=_?B+gd:B,T=P+z;if(m.indexOf(T)>-1)continue;m.push(T);const J=u(z,M);for(let te=0;te<J.length;++te){const V=J[te];m.push(P+V)}g=v+(g.length>0?" "+g:g)}return g},T_=(...a)=>{let s=0,i,r,u="";for(;s<a.length;)(i=a[s++])&&(r=Pb(i))&&(u&&(u+=" "),u+=r);return u},Pb=a=>{if(typeof a=="string")return a;let s,i="";for(let r=0;r<a.length;r++)a[r]&&(s=Pb(a[r]))&&(i&&(i+=" "),i+=s);return i},M_=(a,...s)=>{let i,r,u,f;const m=g=>{const y=s.reduce((v,b)=>b(v),a());return i=w_(y),r=i.cache.get,u=i.cache.set,f=p,p(g)},p=g=>{const y=r(g);if(y)return y;const v=E_(g,i);return u(g,v),v};return f=m,(...g)=>f(T_(...g))},A_=[],it=a=>{const s=i=>i[a]||A_;return s.isThemeGetter=!0,s},Zb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,O_=/^\d+\/\d+$/,z_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D_=/\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$/,L_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,k_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,js=a=>O_.test(a),je=a=>!!a&&!Number.isNaN(Number(a)),Aa=a=>!!a&&Number.isInteger(Number(a)),Zf=a=>a.endsWith("%")&&je(a.slice(0,-1)),Xn=a=>z_.test(a),B_=()=>!0,q_=a=>D_.test(a)&&!L_.test(a),Jb=()=>!1,H_=a=>k_.test(a),Q_=a=>U_.test(a),G_=a=>!le(a)&&!se(a),V_=a=>Ys(a,Ib,Jb),le=a=>Zb.test(a),pl=a=>Ys(a,ev,q_),Ff=a=>Ys(a,Z_,je),zy=a=>Ys(a,$b,Jb),Y_=a=>Ys(a,Wb,Q_),Bo=a=>Ys(a,tv,H_),se=a=>Fb.test(a),Zi=a=>Ks(a,ev),K_=a=>Ks(a,F_),Dy=a=>Ks(a,$b),X_=a=>Ks(a,Ib),P_=a=>Ks(a,Wb),qo=a=>Ks(a,tv,!0),Ys=(a,s,i)=>{const r=Zb.exec(a);return r?r[1]?s(r[1]):i(r[2]):!1},Ks=(a,s,i=!1)=>{const r=Fb.exec(a);return r?r[1]?s(r[1]):i:!1},$b=a=>a==="position"||a==="percentage",Wb=a=>a==="image"||a==="url",Ib=a=>a==="length"||a==="size"||a==="bg-size",ev=a=>a==="length",Z_=a=>a==="number",F_=a=>a==="family-name",tv=a=>a==="shadow",J_=()=>{const a=it("color"),s=it("font"),i=it("text"),r=it("font-weight"),u=it("tracking"),f=it("leading"),m=it("breakpoint"),p=it("container"),g=it("spacing"),y=it("radius"),v=it("shadow"),b=it("inset-shadow"),S=it("text-shadow"),_=it("drop-shadow"),R=it("blur"),j=it("perspective"),M=it("aspect"),z=it("ease"),B=it("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],J=()=>[...T(),se,le],te=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],H=()=>[se,le,g],W=()=>[js,"full","auto",...H()],G=()=>[Aa,"none","subgrid",se,le],I=()=>["auto",{span:["full",Aa,se,le]},Aa,se,le],oe=()=>[Aa,"auto",se,le],pe=()=>["auto","min","max","fr",se,le],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...H()],F=()=>[js,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],Y=()=>[a,se,le],me=()=>[...T(),Dy,zy,{position:[se,le]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",X_,V_,{size:[se,le]}],X=()=>[Zf,Zi,pl],$=()=>["","none","full",y,se,le],ee=()=>["",je,Zi,pl],he=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[je,Zf,Dy,zy],Ze=()=>["","none",R,se,le],ze=()=>["none",je,se,le],_t=()=>["none",je,se,le],kt=()=>[je,se,le],dn=()=>[js,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[B_],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[G_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",je],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",js,le,se,M]}],container:["container"],columns:[{columns:[je,le,se,p]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:J()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Aa,"auto",se,le]}],basis:[{basis:[js,"full","auto",p,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,js,"auto","initial","none",le]}],grow:[{grow:["",je,se,le]}],shrink:[{shrink:["",je,se,le]}],order:[{order:[Aa,"first","last","none",se,le]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],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:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[p,"screen",...F()]}],"min-w":[{"min-w":[p,"screen","none",...F()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[m]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",i,Zi,pl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,se,Ff]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zf,le]}],"font-family":[{font:[K_,le,s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,se,le]}],"line-clamp":[{"line-clamp":[je,"none",se,Ff]}],leading:[{leading:[f,...H()]}],"list-image":[{"list-image":["none",se,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",se,pl]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[je,"auto",se,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Aa,se,le],radial:["",se,le],conic:[Aa,se,le]},P_,Y_]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,se,le]}],"outline-w":[{outline:["",je,Zi,pl]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",v,qo,Bo]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",b,qo,Bo]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[je,pl]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",S,qo,Bo]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[je,se,le]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[se,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,le]}],filter:[{filter:["","none",se,le]}],blur:[{blur:Ze()}],brightness:[{brightness:[je,se,le]}],contrast:[{contrast:[je,se,le]}],"drop-shadow":[{"drop-shadow":["","none",_,qo,Bo]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",je,se,le]}],"hue-rotate":[{"hue-rotate":[je,se,le]}],invert:[{invert:["",je,se,le]}],saturate:[{saturate:[je,se,le]}],sepia:[{sepia:["",je,se,le]}],"backdrop-filter":[{"backdrop-filter":["","none",se,le]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[je,se,le]}],"backdrop-contrast":[{"backdrop-contrast":[je,se,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,se,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,se,le]}],"backdrop-invert":[{"backdrop-invert":["",je,se,le]}],"backdrop-opacity":[{"backdrop-opacity":[je,se,le]}],"backdrop-saturate":[{"backdrop-saturate":[je,se,le]}],"backdrop-sepia":[{"backdrop-sepia":["",je,se,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",se,le]}],ease:[{ease:["linear","initial",z,se,le]}],delay:[{delay:[je,se,le]}],animate:[{animate:["none",B,se,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,se,le]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:_t()}],"scale-x":[{"scale-x":_t()}],"scale-y":[{"scale-y":_t()}],"scale-z":[{"scale-z":_t()}],"scale-3d":["scale-3d"],skew:[{skew:kt()}],"skew-x":[{"skew-x":kt()}],"skew-y":[{"skew-y":kt()}],transform:[{transform:[se,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",se,le]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[je,Zi,pl,Ff]}],stroke:[{stroke:["none",...Y()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$_=M_(J_);function Ye(...a){return $_(Vb(a))}function W_({healthy:a,title:s="LENS",subtitle:i="Workspace"}){return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:Ye("flex size-8! shrink-0 items-center justify-center rounded-lg text-xs font-semibold text-primary-foreground",a===!1?"bg-destructive":"bg-primary"),children:"L"}),d.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[d.jsx("span",{className:"truncate font-semibold",children:s}),d.jsx("span",{className:"truncate text-xs text-muted-foreground",children:i})]})]})}const Ly=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,ky=Vb,nv=(a,s)=>i=>{var r;if((s==null?void 0:s.variants)==null)return ky(a,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:u,defaultVariants:f}=s,m=Object.keys(u).map(y=>{const v=i==null?void 0:i[y],b=f==null?void 0:f[y];if(v===null)return null;const S=Ly(v)||Ly(b);return u[y][S]}),p=i&&Object.entries(i).reduce((y,v)=>{let[b,S]=v;return S===void 0||(y[b]=S),y},{}),g=s==null||(r=s.compoundVariants)===null||r===void 0?void 0:r.reduce((y,v)=>{let{class:b,className:S,..._}=v;return Object.entries(_).every(R=>{let[j,M]=R;return Array.isArray(M)?M.includes({...f,...p}[j]):{...f,...p}[j]===M})?[...y,b,S]:y},[]);return ky(a,m,g,i==null?void 0:i.class,i==null?void 0:i.className)},I_=nv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function yt({className:a,variant:s="default",size:i="default",...r}){return d.jsx("button",{"data-slot":"button","data-variant":s,"data-size":i,className:Ye(I_({variant:s,size:i,className:a})),...r})}function ej({className:a,orientation:s="horizontal",...i}){return d.jsx("div",{"data-slot":"separator","data-orientation":s,role:"separator",className:Ye("bg-border shrink-0",s==="horizontal"?"h-px w-full":"h-full w-px",a),...i})}const tj="16rem",nj="3rem",aj="b",av=U.createContext(null);function lv(){const a=U.useContext(av);if(!a)throw new Error("useSidebar must be used within SidebarProvider.");return a}function lj({defaultOpen:a=!0,className:s,style:i,children:r,...u}){const[f,m]=U.useState(a),p=U.useCallback(()=>m(v=>!v),[]);U.useEffect(()=>{const v=b=>{b.key===aj&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),p())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p]);const g=f?"expanded":"collapsed",y=U.useMemo(()=>({state:g,open:f,setOpen:m,toggleSidebar:p}),[g,f,p]);return d.jsx(av.Provider,{value:y,children:d.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":tj,"--sidebar-width-icon":nj,...i},className:Ye("group/sidebar-wrapper flex min-h-svh w-full",s),...u,children:r})})}function sj({side:a="left",collapsible:s="icon",variant:i="default",className:r,children:u,...f}){const{state:m}=lv();return s==="none"?d.jsx("div",{"data-slot":"sidebar",className:Ye("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...f,children:u}):d.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":m==="collapsed"?s:"","data-side":a,"data-variant":i,"data-slot":"sidebar",children:[d.jsx("div",{"data-slot":"sidebar-gap",className:Ye("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),d.jsx("div",{"data-slot":"sidebar-container",className:Ye("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",i==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)",r),...f,children:d.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-transparent flex h-full w-full flex-col py-2",children:u})})]})}function ij({className:a,onClick:s,...i}){const{toggleSidebar:r}=lv();return d.jsxs(yt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:Ye("size-7",a),onClick:u=>{s==null||s(u),r()},...i,children:[d.jsx(I2,{}),d.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function rj({className:a,...s}){return d.jsx("main",{"data-slot":"sidebar-inset",className:Ye("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",a),...s})}function oj({className:a,...s}){return d.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:Ye("flex flex-col gap-2 p-2",a),...s})}function cj({className:a,...s}){return d.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:Ye("flex flex-col gap-2 p-2",a),...s})}function uj({className:a,...s}){return d.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:Ye("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...s})}function Jf({className:a,...s}){return d.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:Ye("relative flex w-full min-w-0 flex-col p-2",a),...s})}function fj({className:a,...s}){return d.jsx("div",{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:Ye("text-sidebar-foreground/70 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...s})}function $f({className:a,...s}){return d.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:Ye("w-full text-sm",a),...s})}function Wi({className:a,...s}){return d.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:Ye("flex w-full min-w-0 flex-col gap-1",a),...s})}function Ii({className:a,...s}){return d.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:Ye("group/menu-item relative",a),...s})}function nr({as:a="button",isActive:s=!1,size:i="default",className:r,children:u,...f}){return d.jsx(a,{...a==="button"?{type:"button"}:{},"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":s,className:Ye("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden transition-[width,height,padding] duration-200 ease-linear","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","disabled:pointer-events-none disabled:opacity-50","data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground","group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2","[&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",i==="sm"&&"h-7 text-xs",i==="default"&&"h-8 text-sm",i==="lg"&&"h-12 text-sm group-data-[collapsible=icon]:!p-0",r),...f,children:u})}function dj(){const[a,s]=U.useState(()=>{if(typeof window>"u")return!1;const i=localStorage.getItem("theme");return i==="dark"?!0:i==="light"?!1:document.documentElement.classList.contains("dark")});return U.useEffect(()=>{document.documentElement.classList.toggle("dark",a),localStorage.setItem("theme",a?"dark":"light")},[a]),[a,()=>s(i=>!i)]}function hj({variant:a="sidebar"}){const[s,i]=dj();return a==="button"?d.jsxs(yt,{variant:"ghost",size:"icon",className:"size-7",onClick:i,children:[s?d.jsx(Ty,{}):d.jsx(Cy,{}),d.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):d.jsxs(nr,{onClick:i,children:[s?d.jsx(Ty,{}):d.jsx(Cy,{}),d.jsx("span",{children:s?"Light mode":"Dark mode"})]})}function mj({navItems:a,navGroups:s,currentPath:i,renderLink:r,brand:u={title:"LENS",subtitle:"Workspace"},healthy:f,footer:m,...p}){return d.jsxs(sj,{collapsible:"icon",className:"shadow-none",...p,children:[d.jsx(oj,{children:d.jsx(Wi,{children:d.jsx(Ii,{children:d.jsx(nr,{size:"lg",className:"hover:bg-transparent",children:d.jsx(W_,{healthy:f,title:u.title,subtitle:u.subtitle})})})})}),d.jsxs(uj,{children:[d.jsx(Jf,{children:d.jsx($f,{children:d.jsx(Wi,{children:a.map(({href:g,icon:y,label:v})=>{const b=g==="/"||g==="/dashboard"?i===g:i.startsWith(g);return d.jsx(Ii,{children:r({href:g,children:d.jsxs(nr,{isActive:b,children:[d.jsx(y,{}),d.jsx("span",{children:v})]})})},g)})})})}),s==null?void 0:s.map(g=>d.jsxs(Jf,{children:[d.jsx(fj,{children:g.label}),d.jsx($f,{children:d.jsx(Wi,{children:g.items.map(({href:y,icon:v,label:b})=>{const S=i.startsWith(y);return d.jsx(Ii,{children:r({href:y,children:d.jsxs(nr,{isActive:S,children:[d.jsx(v,{}),d.jsx("span",{children:b})]})})},y)})})})]},g.label)),d.jsx(Jf,{className:"mt-auto",children:d.jsx($f,{children:d.jsx(Wi,{children:d.jsx(Ii,{children:d.jsx(hj,{variant:"sidebar"})})})})})]}),m&&d.jsx(cj,{children:m})]})}function pj({user:a,onSignOut:s}){return d.jsx(Wi,{children:d.jsx(Ii,{children:d.jsxs(nr,{as:"div",size:"lg",children:[d.jsx(A2,{className:"!size-8 text-muted-foreground"}),d.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[d.jsx("span",{className:"truncate font-medium",children:a.name}),d.jsx("span",{className:"text-muted-foreground truncate text-xs",children:a.email})]}),s?d.jsx("button",{type:"button",onClick:s,className:"ml-auto rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-sidebar-accent",children:d.jsx(X2,{className:"size-4"})}):d.jsx(U2,{className:"ml-auto"})]})})})}function na({children:a}){return d.jsx("header",{className:"flex h-12 shrink-0 items-center border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/70",children:d.jsxs("div",{className:"flex w-full items-center gap-2 px-3",children:[d.jsx(ij,{}),d.jsx(ej,{orientation:"vertical",className:"data-[orientation=vertical]:h-4"}),d.jsx("div",{className:"flex flex-1 items-center gap-2 min-w-0",children:a})]})})}const gj=nv("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-white dark:bg-destructive/60",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function yj({className:a,variant:s="default",...i}){return d.jsx("span",{"data-slot":"badge","data-variant":s,className:Ye(gj({variant:s}),a),...i})}function Pa({className:a,...s}){return d.jsx("div",{"data-slot":"card",className:Ye("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...s})}function Za({className:a,...s}){return d.jsx("div",{"data-slot":"card-header",className:Ye("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a),...s})}function Al({className:a,...s}){return d.jsx("div",{"data-slot":"card-title",className:Ye("leading-none font-semibold",a),...s})}function Fa({className:a,...s}){return d.jsx("div",{"data-slot":"card-content",className:Ye("px-6",a),...s})}function Uy(a,s){if(typeof a=="function")return a(s);a!=null&&(a.current=s)}function sv(...a){return s=>{let i=!1;const r=a.map(u=>{const f=Uy(u,s);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let u=0;u<r.length;u++){const f=r[u];typeof f=="function"?f():Uy(a[u],null)}}}}function Ld(...a){return U.useCallback(sv(...a),a)}function bj(a,s=[]){let i=[];function r(f,m){const p=U.createContext(m),g=i.length;i=[...i,m];const y=b=>{var z;const{scope:S,children:_,...R}=b,j=((z=S==null?void 0:S[a])==null?void 0:z[g])||p,M=U.useMemo(()=>R,Object.values(R));return d.jsx(j.Provider,{value:M,children:_})};y.displayName=f+"Provider";function v(b,S){var j;const _=((j=S==null?void 0:S[a])==null?void 0:j[g])||p,R=U.useContext(_);if(R)return R;if(m!==void 0)return m;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[y,v]}const u=()=>{const f=i.map(m=>U.createContext(m));return function(p){const g=(p==null?void 0:p[a])||f;return U.useMemo(()=>({[`__scope${a}`]:{...p,[a]:g}}),[p,g])}};return u.scopeName=a,[r,vj(u,...s)]}function vj(...a){const s=a[0];if(a.length===1)return s;const i=()=>{const r=a.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const m=r.reduce((p,{useScope:g,scopeName:y})=>{const b=g(f)[`__scope${y}`];return{...p,...b}},{});return U.useMemo(()=>({[`__scope${s.scopeName}`]:m}),[m])}};return i.scopeName=s.scopeName,i}function By(a,s,{checkForDefaultPrevented:i=!0}={}){return function(u){if(a==null||a(u),i===!1||!u.defaultPrevented)return s==null?void 0:s(u)}}var sc=globalThis!=null&&globalThis.document?U.useLayoutEffect:()=>{},xj=B0[" useInsertionEffect ".trim().toString()]||sc;function Sj({prop:a,defaultProp:s,onChange:i=()=>{},caller:r}){const[u,f,m]=_j({defaultProp:s,onChange:i}),p=a!==void 0,g=p?a:u;{const v=U.useRef(a!==void 0);U.useEffect(()=>{const b=v.current;b!==p&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${p?"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.`),v.current=p},[p,r])}const y=U.useCallback(v=>{var b;if(p){const S=jj(v)?v(a):v;S!==a&&((b=m.current)==null||b.call(m,S))}else f(v)},[p,a,f,m]);return[g,y]}function _j({defaultProp:a,onChange:s}){const[i,r]=U.useState(a),u=U.useRef(i),f=U.useRef(s);return xj(()=>{f.current=s},[s]),U.useEffect(()=>{var m;u.current!==i&&((m=f.current)==null||m.call(f,i),u.current=i)},[i,u]),[i,r,f]}function jj(a){return typeof a=="function"}function Nj(a){const s=U.useRef({value:a,previous:a});return U.useMemo(()=>(s.current.value!==a&&(s.current.previous=s.current.value,s.current.value=a),s.current.previous),[a])}function Rj(a){const[s,i]=U.useState(void 0);return sc(()=>{if(a){i({width:a.offsetWidth,height:a.offsetHeight});const r=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let m,p;if("borderBoxSize"in f){const g=f.borderBoxSize,y=Array.isArray(g)?g[0]:g;m=y.inlineSize,p=y.blockSize}else m=a.offsetWidth,p=a.offsetHeight;i({width:m,height:p})});return r.observe(a,{box:"border-box"}),()=>r.unobserve(a)}else i(void 0)},[a]),s}function wj(a,s){return U.useReducer((i,r)=>s[i][r]??i,a)}var iv=a=>{const{present:s,children:i}=a,r=Cj(s),u=typeof i=="function"?i({present:r.isPresent}):U.Children.only(i),f=Ld(r.ref,Ej(u));return typeof i=="function"||r.isPresent?U.cloneElement(u,{ref:f}):null};iv.displayName="Presence";function Cj(a){const[s,i]=U.useState(),r=U.useRef(null),u=U.useRef(a),f=U.useRef("none"),m=a?"mounted":"unmounted",[p,g]=wj(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect(()=>{const y=Ho(r.current);f.current=p==="mounted"?y:"none"},[p]),sc(()=>{const y=r.current,v=u.current;if(v!==a){const S=f.current,_=Ho(y);a?g("MOUNT"):_==="none"||(y==null?void 0:y.display)==="none"?g("UNMOUNT"):g(v&&S!==_?"ANIMATION_OUT":"UNMOUNT"),u.current=a}},[a,g]),sc(()=>{if(s){let y;const v=s.ownerDocument.defaultView??window,b=_=>{const j=Ho(r.current).includes(CSS.escape(_.animationName));if(_.target===s&&j&&(g("ANIMATION_END"),!u.current)){const M=s.style.animationFillMode;s.style.animationFillMode="forwards",y=v.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=M)})}},S=_=>{_.target===s&&(f.current=Ho(r.current))};return s.addEventListener("animationstart",S),s.addEventListener("animationcancel",b),s.addEventListener("animationend",b),()=>{v.clearTimeout(y),s.removeEventListener("animationstart",S),s.removeEventListener("animationcancel",b),s.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[s,g]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:U.useCallback(y=>{r.current=y?getComputedStyle(y):null,i(y)},[])}}function Ho(a){return(a==null?void 0:a.animationName)||"none"}function Ej(a){var r,u;let s=(r=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:r.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?a.ref:(s=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?a.props.ref:a.props.ref||a.ref)}function Tj(a){const s=Mj(a),i=U.forwardRef((r,u)=>{const{children:f,...m}=r,p=U.Children.toArray(f),g=p.find(Oj);if(g){const y=g.props.children,v=p.map(b=>b===g?U.Children.count(y)>1?U.Children.only(null):U.isValidElement(y)?y.props.children:null:b);return d.jsx(s,{...m,ref:u,children:U.isValidElement(y)?U.cloneElement(y,void 0,v):null})}return d.jsx(s,{...m,ref:u,children:f})});return i.displayName=`${a}.Slot`,i}function Mj(a){const s=U.forwardRef((i,r)=>{const{children:u,...f}=i;if(U.isValidElement(u)){const m=Dj(u),p=zj(f,u.props);return u.type!==U.Fragment&&(p.ref=r?sv(r,m):m),U.cloneElement(u,p)}return U.Children.count(u)>1?U.Children.only(null):null});return s.displayName=`${a}.SlotClone`,s}var Aj=Symbol("radix.slottable");function Oj(a){return U.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===Aj}function zj(a,s){const i={...s};for(const r in s){const u=a[r],f=s[r];/^on[A-Z]/.test(r)?u&&f?i[r]=(...p)=>{const g=f(...p);return u(...p),g}:u&&(i[r]=u):r==="style"?i[r]={...u,...f}:r==="className"&&(i[r]=[u,f].filter(Boolean).join(" "))}return{...a,...i}}function Dj(a){var r,u;let s=(r=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:r.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?a.ref:(s=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?a.props.ref:a.props.ref||a.ref)}var Lj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kd=Lj.reduce((a,s)=>{const i=Tj(`Primitive.${s}`),r=U.forwardRef((u,f)=>{const{asChild:m,...p}=u,g=m?i:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(g,{...p,ref:f})});return r.displayName=`Primitive.${s}`,{...a,[s]:r}},{}),fc="Checkbox",[kj]=bj(fc),[Uj,Ud]=kj(fc);function Bj(a){const{__scopeCheckbox:s,checked:i,children:r,defaultChecked:u,disabled:f,form:m,name:p,onCheckedChange:g,required:y,value:v="on",internal_do_not_use_render:b}=a,[S,_]=Sj({prop:i,defaultProp:u??!1,onChange:g,caller:fc}),[R,j]=U.useState(null),[M,z]=U.useState(null),B=U.useRef(!1),P=R?!!m||!!R.closest("form"):!0,T={checked:S,disabled:f,setChecked:_,control:R,setControl:j,name:p,form:m,value:v,hasConsumerStoppedPropagationRef:B,required:y,defaultChecked:Ja(u)?!1:u,isFormControl:P,bubbleInput:M,setBubbleInput:z};return d.jsx(Uj,{scope:s,...T,children:qj(b)?b(T):r})}var rv="CheckboxTrigger",ov=U.forwardRef(({__scopeCheckbox:a,onKeyDown:s,onClick:i,...r},u)=>{const{control:f,value:m,disabled:p,checked:g,required:y,setControl:v,setChecked:b,hasConsumerStoppedPropagationRef:S,isFormControl:_,bubbleInput:R}=Ud(rv,a),j=Ld(u,v),M=U.useRef(g);return U.useEffect(()=>{const z=f==null?void 0:f.form;if(z){const B=()=>b(M.current);return z.addEventListener("reset",B),()=>z.removeEventListener("reset",B)}},[f,b]),d.jsx(kd.button,{type:"button",role:"checkbox","aria-checked":Ja(g)?"mixed":g,"aria-required":y,"data-state":hv(g),"data-disabled":p?"":void 0,disabled:p,value:m,...r,ref:j,onKeyDown:By(s,z=>{z.key==="Enter"&&z.preventDefault()}),onClick:By(i,z=>{b(B=>Ja(B)?!0:!B),R&&_&&(S.current=z.isPropagationStopped(),S.current||z.stopPropagation())})})});ov.displayName=rv;var Bd=U.forwardRef((a,s)=>{const{__scopeCheckbox:i,name:r,checked:u,defaultChecked:f,required:m,disabled:p,value:g,onCheckedChange:y,form:v,...b}=a;return d.jsx(Bj,{__scopeCheckbox:i,checked:u,defaultChecked:f,disabled:p,required:m,onCheckedChange:y,name:r,form:v,value:g,internal_do_not_use_render:({isFormControl:S})=>d.jsxs(d.Fragment,{children:[d.jsx(ov,{...b,ref:s,__scopeCheckbox:i}),S&&d.jsx(dv,{__scopeCheckbox:i})]})})});Bd.displayName=fc;var cv="CheckboxIndicator",uv=U.forwardRef((a,s)=>{const{__scopeCheckbox:i,forceMount:r,...u}=a,f=Ud(cv,i);return d.jsx(iv,{present:r||Ja(f.checked)||f.checked===!0,children:d.jsx(kd.span,{"data-state":hv(f.checked),"data-disabled":f.disabled?"":void 0,...u,ref:s,style:{pointerEvents:"none",...a.style}})})});uv.displayName=cv;var fv="CheckboxBubbleInput",dv=U.forwardRef(({__scopeCheckbox:a,...s},i)=>{const{control:r,hasConsumerStoppedPropagationRef:u,checked:f,defaultChecked:m,required:p,disabled:g,name:y,value:v,form:b,bubbleInput:S,setBubbleInput:_}=Ud(fv,a),R=Ld(i,_),j=Nj(f),M=Rj(r);U.useEffect(()=>{const B=S;if(!B)return;const P=window.HTMLInputElement.prototype,J=Object.getOwnPropertyDescriptor(P,"checked").set,te=!u.current;if(j!==f&&J){const V=new Event("click",{bubbles:te});B.indeterminate=Ja(f),J.call(B,Ja(f)?!1:f),B.dispatchEvent(V)}},[S,j,f,u]);const z=U.useRef(Ja(f)?!1:f);return d.jsx(kd.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??z.current,required:p,disabled:g,name:y,value:v,form:b,...s,tabIndex:-1,ref:R,style:{...s.style,...M,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});dv.displayName=fv;function qj(a){return typeof a=="function"}function Ja(a){return a==="indeterminate"}function hv(a){return Ja(a)?"indeterminate":a?"checked":"unchecked"}const Hj=U.forwardRef(({className:a,...s},i)=>d.jsx(Bd,{ref:i,"data-slot":"checkbox",className:Ye("peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary size-4 shrink-0 rounded-[4px] border shadow-xs cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),...s,children:d.jsx(uv,{className:"flex items-center justify-center text-current",children:d.jsx(Xo,{className:"h-3.5 w-3.5"})})}));Hj.displayName=Bd.displayName;U.createContext({value:"",onChange:()=>{}});const Qj="";async function et(a,s){const i=await fetch(`${Qj}${a}`,s);if(!i.ok)throw new Error(`${i.status} ${i.statusText}`);return i.json()}const Ve={health:()=>et("/health"),stats:()=>et("/api/dashboard/stats"),repos:()=>et("/api/dashboard/repos"),repo:a=>et(`/api/dashboard/repos/${a}`),logs:a=>{const s=new URLSearchParams;a!=null&&a.limit&&s.set("limit",String(a.limit)),a!=null&&a.offset&&s.set("offset",String(a.offset)),a!=null&&a.method&&s.set("method",a.method),a!=null&&a.path&&s.set("path",a.path),a!=null&&a.status&&s.set("status",String(a.status)),a!=null&&a.source&&s.set("source",a.source);const i=s.toString();return et(`/api/dashboard/logs${i?`?${i}`:""}`)},tables:()=>et("/api/dashboard/tables"),tableRows:(a,s=50,i=0)=>et(`/api/dashboard/tables/${encodeURIComponent(a)}?limit=${s}&offset=${i}`),jobs:()=>et("/api/dashboard/jobs"),routes:()=>et("/api/dashboard/routes"),reindex:a=>et("/index/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:a,force:!1})}),startWatcher:a=>et("/index/watch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:a})}),stopWatcher:a=>et("/index/unwatch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:a})}),buildContext:(a,s)=>et("/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repo_id:a,goal:s})}),registerRepo:(a,s)=>et("/repo/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({root_path:a,name:s})}),removeRepo:a=>et(`/repo/${a}`,{method:"DELETE"}),localUsage:()=>et("/api/dashboard/usage"),authStatus:()=>et("/api/auth/status"),cloudUsageRange:(a,s)=>et(`/api/cloud/usage?start=${a}&end=${s}`),cloudSubscription:()=>et("/api/cloud/subscription"),cloudCheckout:(a="monthly")=>et("/api/cloud/billing/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interval:a,return_url:window.location.href})}),cloudPortal:()=>et(`/api/cloud/billing/portal?return_url=${encodeURIComponent(window.location.href)}`)},Gj=[{href:"/",icon:Y2,label:"Overview"},{href:"/repos",icon:Hb,label:"Repos"},{href:"/requests",icon:Db,label:"Requests"},{href:"/data",icon:ac,label:"Data"},{href:"/jobs",icon:Ub,label:"Jobs"},{href:"/context",icon:pd,label:"Context"}],Vj=[{label:"Cloud",items:[{href:"/usage",icon:w2,label:"Usage"},{href:"/billing",icon:D2,label:"Billing"}]}];function Yj(){var p,g;const s=Zt().location.pathname,r=((p=St({queryKey:["health"],queryFn:Ve.health,refetchInterval:1e4,placeholderData:un}).data)==null?void 0:p.status)==="ok",u=hr(),f=St({queryKey:["auth-status"],queryFn:Ve.authStatus,placeholderData:un});U.useEffect(()=>{const y=new EventSource("/api/auth/events");return y.onmessage=()=>u.invalidateQueries({queryKey:["auth-status"]}),()=>y.close()},[u]),U.useEffect(()=>{const y=new EventSource("/api/repo/events");let v;return y.onmessage=()=>{clearTimeout(v),v=setTimeout(()=>{u.invalidateQueries({queryKey:["dashboard-repos"]}),u.invalidateQueries({queryKey:["dashboard-stats"]}),u.invalidateQueries({queryKey:["dashboard-jobs"]})},300)},()=>{clearTimeout(v),y.close()}},[u]);const m=(g=f.data)!=null&&g.authenticated?{name:f.data.email??"User",email:f.data.email??""}:{name:"Guest",email:"Run: lens login"};return d.jsxs(lj,{className:"bg-muted h-svh",children:[d.jsx(mj,{navItems:Gj,navGroups:Vj,currentPath:s,renderLink:({href:y,children:v})=>d.jsx(zd,{to:y,children:v}),healthy:r,footer:d.jsx(pj,{user:m})}),d.jsx(rj,{className:"bg-background rounded-xl overflow-hidden md:my-2 md:mr-2 md:border",children:d.jsx("div",{className:"@container/main flex min-h-0 flex-1 flex-col",children:d.jsx(Ob,{})})})]})}const qy={ready:"bg-success/15 text-success border-success/25",indexed:"bg-success/15 text-success border-success/25",indexing:"bg-warning/15 text-warning border-warning/25",pending:"bg-muted text-muted-foreground border-border",error:"bg-destructive/15 text-destructive border-destructive/25",active:"bg-success/15 text-success border-success/25",inactive:"bg-muted text-muted-foreground border-border"};function Cs({status:a,className:s}){const i=qy[a]??qy.pending;return d.jsx(yj,{variant:"outline",className:Ye("rounded-md px-2 py-0.5 text-[11px]",i,s),children:a})}function Kj(a){return a<1?"<1ms":a<1e3?`${Math.round(a)}ms`:`${(a/1e3).toFixed(2)}s`}function ic(a){if(!a)return"never";const s=Date.now()-new Date(a+"Z").getTime(),i=Math.floor(s/1e3);if(i<60)return`${i}s ago`;const r=Math.floor(i/60);if(r<60)return`${r}m ago`;const u=Math.floor(r/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}function mv(){const a=uc(),{data:s,isLoading:i}=St({queryKey:["dashboard-stats"],queryFn:Ve.stats,refetchInterval:3e4,placeholderData:un}),{data:r}=St({queryKey:["dashboard-repos"],queryFn:Ve.repos,refetchInterval:3e4,placeholderData:un}),{data:u}=St({queryKey:["dashboard-usage"],queryFn:Ve.localUsage,refetchInterval:3e4}),f=((u==null?void 0:u.plan)??"free")==="pro"||(u==null?void 0:u.has_capabilities)===!0;if(!s&&i)return d.jsx(Xj,{});const m=(s==null?void 0:s.uptime_seconds)??0,p=m<60?`${m}s`:m<3600?`${Math.floor(m/60)}m`:`${Math.floor(m/3600)}h ${Math.floor(m%3600/60)}m`,g="border-border/80 bg-muted/35 text-foreground/80",y=[{label:"Repos",value:(s==null?void 0:s.repos_count)??0,description:"Registered repositories",icon:Hb,iconClassName:g},{label:"Chunks",value:((s==null?void 0:s.total_chunks)??0).toLocaleString(),description:"Code segments across all repos",icon:i_,iconClassName:g},{label:"Embeddings",value:((s==null?void 0:s.total_embeddings)??0).toLocaleString(),description:"Chunks with vector embeddings stored locally",icon:Ub,iconClassName:g,pro:!0},{label:"Summaries",value:((s==null?void 0:s.total_summaries)??0).toLocaleString(),description:"Files with a purpose summary in local DB",icon:N2,iconClassName:g,pro:!0},{label:"Vocab",value:((s==null?void 0:s.total_vocab_clusters)??0).toLocaleString(),description:"Term clusters for concept expansion",icon:$2,iconClassName:g,pro:!0},{label:"DB Size",value:`${(s==null?void 0:s.db_size_mb)??0} MB`,description:"SQLite database",icon:ac,iconClassName:g},{label:"Uptime",value:p,description:"Daemon process",icon:Db,iconClassName:g}];return d.jsxs(d.Fragment,{children:[d.jsx(na,{children:d.jsx("span",{className:"text-sm font-medium",children:"Overview"})}),d.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-auto py-4 md:gap-6 md:py-6",children:[d.jsx("section",{className:"px-4 lg:px-6",children:d.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[d.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"System snapshot"}),d.jsx("p",{className:"mt-1 text-sm",children:"Live operational metrics for repositories and indexing throughput."})]})}),d.jsx("section",{className:"grid grid-cols-1 gap-4 px-4 lg:px-6 @xl/main:grid-cols-2 @3xl/main:grid-cols-4",children:y.map(v=>{const b=v.icon,S=v.pro&&!f;return d.jsxs(Pa,{className:`border-border bg-background py-4 shadow-none ${S?"opacity-60":""}`,children:[d.jsx(Za,{className:"pb-1",children:d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:v.label}),S&&d.jsx("span",{className:"rounded bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-medium text-amber-600 dark:text-amber-400",children:"Pro"})]}),d.jsx(Al,{className:"mt-1 text-2xl font-semibold tabular-nums",children:S?"—":v.value})]}),d.jsx("span",{className:`rounded-md border p-1.5 ${v.iconClassName}`,children:d.jsx(b,{className:"h-4 w-4"})})]})}),d.jsx(Fa,{className:"pt-0",children:d.jsx("p",{className:"text-sm text-muted-foreground",children:v.description})})]},v.label)})}),(r==null?void 0:r.repos)&&r.repos.length>0&&d.jsxs("section",{className:"space-y-3 px-4 lg:px-6",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-semibold",children:"Repositories"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Tracked codebases and index status"})]}),d.jsx(yt,{variant:"outline",size:"sm",onClick:()=>a({to:"/repos"}),children:"View all"})]}),d.jsx("div",{className:"grid gap-3 @xl/main:grid-cols-2 @5xl/main:grid-cols-3",children:r.repos.map(v=>d.jsxs(Pa,{className:"border-border bg-background py-4 shadow-none",children:[d.jsx(Za,{className:"pb-2",children:d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsx(Al,{className:"truncate text-sm",children:v.name}),d.jsx("p",{className:"truncate text-xs text-muted-foreground",children:v.root_path})]}),d.jsx(Cs,{status:v.index_status,className:"border-border bg-muted text-foreground"})]})}),d.jsxs(Fa,{className:"space-y-2",children:[d.jsxs("div",{className:"grid grid-cols-5 gap-2 text-xs",children:[d.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5",children:[d.jsx("p",{className:"text-muted-foreground",children:"Files"}),d.jsx("p",{className:"font-mono font-medium tabular-nums",children:v.files_indexed})]}),d.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5",children:[d.jsx("p",{className:"text-muted-foreground",children:"Chunks"}),d.jsx("p",{className:"font-mono font-medium tabular-nums",children:v.chunk_count})]}),d.jsxs("div",{className:`rounded-md border border-border bg-background px-2 py-1.5 ${f?"":"opacity-40"}`,children:[d.jsx("p",{className:"text-muted-foreground",children:"Embed"}),d.jsx("p",{className:"font-mono font-medium tabular-nums",children:f?`${v.embedded_pct}%`:"—"})]}),d.jsxs("div",{className:`rounded-md border border-border bg-background px-2 py-1.5 ${f?"":"opacity-40"}`,children:[d.jsx("p",{className:"text-muted-foreground",children:"Summaries"}),d.jsx("p",{className:"font-mono font-medium tabular-nums",children:f?`${v.purpose_count}/${v.purpose_total}`:"—"})]}),d.jsxs("div",{className:`rounded-md border border-border bg-background px-2 py-1.5 ${f?"":"opacity-40"}`,children:[d.jsx("p",{className:"text-muted-foreground",children:"Vocab"}),d.jsx("p",{className:"font-mono font-medium tabular-nums",children:f?v.vocab_cluster_count:"—"})]})]}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Indexed ",ic(v.last_indexed_at)]})]})]},v.id))})]})]})]})}function Xj(){return d.jsx("div",{className:"flex items-center justify-center py-20",children:d.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}function ar({value:a,max:s,label:i,className:r}){const u=s>0?Math.round(a/s*100):0;return d.jsxs("div",{className:Ye("space-y-1",r),children:[i&&d.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d.jsx("span",{className:"text-muted-foreground",children:i}),d.jsxs("span",{className:"font-mono text-muted-foreground",children:[a,"/",s," (",u,"%)"]})]}),d.jsx("div",{className:"h-2.5 w-full overflow-hidden rounded-full bg-muted",children:d.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-300",style:{width:`${u}%`}})})]})}function Pj(){var J,te;const[a,s]=U.useState(null),[i,r]=U.useState(!1),[u,f]=U.useState(""),[m,p]=U.useState(null),g=hr(),y=St({queryKey:["auth-status"],queryFn:Ve.authStatus}),{data:v}=St({queryKey:["cloud-usage-current"],queryFn:Ve.cloudUsageCurrent,enabled:!!((J=y.data)!=null&&J.authenticated)}),b=((v==null?void 0:v.plan)??"free")==="pro",{data:S,isLoading:_}=St({queryKey:["dashboard-repos"],queryFn:Ve.repos,refetchInterval:3e4,placeholderData:un}),R=Wn({mutationFn:Ve.reindex,onSuccess:()=>g.invalidateQueries({queryKey:["dashboard-repos"]})}),j=Wn({mutationFn:Ve.startWatcher,onSuccess:()=>g.invalidateQueries({queryKey:["dashboard-repos"]})}),M=Wn({mutationFn:Ve.stopWatcher,onSuccess:()=>g.invalidateQueries({queryKey:["dashboard-repos"]})}),z=Wn({mutationFn:V=>Ve.registerRepo(V),onSuccess:()=>{g.invalidateQueries({queryKey:["dashboard-repos"]}),r(!1),f("")}}),B=Wn({mutationFn:Ve.removeRepo,onSuccess:()=>{g.invalidateQueries({queryKey:["dashboard-repos"]}),p(null),s(null)}}),P=(S==null?void 0:S.repos)??[],T=a?P.find(V=>V.id===a):null;return T?d.jsxs(d.Fragment,{children:[d.jsxs(na,{children:[d.jsxs(yt,{variant:"ghost",size:"sm",onClick:()=>s(null),className:"gap-1 -ml-2",children:[d.jsx(_2,{className:"h-3.5 w-3.5"})," Back"]}),d.jsx("span",{className:"text-sm font-medium",children:T.name}),d.jsx("span",{className:"text-xs text-muted-foreground truncate hidden md:inline",children:T.root_path}),d.jsxs("div",{className:"ml-auto flex gap-2",children:[d.jsx(Qo,{onClick:()=>R.mutate(T.id),icon:Qb,label:"Re-index",loading:R.isPending}),T.watcher.active?d.jsx(Qo,{onClick:()=>M.mutate(T.id),icon:Bb,label:"Stop watcher"}):d.jsx(Qo,{onClick:()=>j.mutate(T.id),icon:qb,label:"Start watcher"}),m===T.id?d.jsxs(d.Fragment,{children:[d.jsx(yt,{variant:"destructive",size:"sm",onClick:()=>B.mutate(T.id),disabled:B.isPending,children:B.isPending?"Removing...":"Confirm"}),d.jsx(yt,{variant:"outline",size:"sm",onClick:()=>p(null),children:"Cancel"})]}):d.jsx(Qo,{onClick:()=>p(T.id),icon:c_,label:"Remove"})]})]}),d.jsxs("div",{className:"flex-1 min-h-0 overflow-auto grid gap-4 p-4 lg:p-6 @xl/main:grid-cols-2 content-start",children:[d.jsxs(Pa,{children:[d.jsx(Za,{className:"pb-2",children:d.jsx(Al,{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Index"})}),d.jsx(Fa,{children:d.jsxs("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[d.jsx(gl,{label:"Status",value:d.jsx(Cs,{status:T.index_status})}),d.jsx(gl,{label:"Last commit",value:((te=T.last_indexed_commit)==null?void 0:te.slice(0,8))??"—",mono:!0}),d.jsx(gl,{label:"Files",value:T.files_indexed}),d.jsx(gl,{label:"Chunks",value:T.chunk_count}),d.jsx(gl,{label:"Import depth",value:T.max_import_depth}),d.jsx(gl,{label:"Indexed",value:ic(T.last_indexed_at)})]})})]}),d.jsxs(Pa,{children:[d.jsx(Za,{className:"pb-2",children:d.jsx(Al,{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Enrichment"})}),d.jsxs(Fa,{className:"space-y-3",children:[T.has_capabilities?d.jsxs(d.Fragment,{children:[d.jsx(ar,{label:"Embeddings",value:T.embedded_count,max:T.embeddable_count}),d.jsx(ar,{label:"Vocab clusters",value:T.vocab_cluster_count,max:T.vocab_cluster_count||1}),d.jsx(ar,{label:"Purpose",value:T.purpose_count,max:T.purpose_total})]}):d.jsxs("div",{className:"rounded-md border border-amber-500/30 bg-amber-500/5 px-3 py-2",children:[d.jsx("p",{className:"text-xs font-medium text-amber-600 dark:text-amber-400",children:"⚡ Pro — Embeddings · Vocab clusters · Summaries"}),d.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:[d.jsx("code",{className:"text-[10px]",children:"lens login"})," → upgrade to enable"]})]}),d.jsxs("div",{className:"pt-1",children:[d.jsx(gl,{label:"Watcher",value:d.jsx(Cs,{status:T.watcher.active?"active":"inactive"})}),T.watcher.active&&T.watcher.changed_files>0&&d.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[T.watcher.changed_files," changed files pending"]})]})]})]})]})]}):d.jsxs(d.Fragment,{children:[d.jsx(na,{children:i?d.jsxs("form",{onSubmit:V=>{V.preventDefault(),u.trim()&&z.mutate(u.trim())},className:"flex flex-1 items-center gap-2",children:[d.jsxs("div",{className:"relative flex-1",children:[d.jsx(G2,{className:"pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),d.jsx("input",{type:"text",value:u,onChange:V=>f(V.target.value),placeholder:"/absolute/path/to/repo",className:"h-7 w-full rounded-md border border-border bg-background pl-7 pr-2 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",autoFocus:!0})]}),d.jsx(yt,{type:"submit",size:"sm",className:"h-7 text-xs",disabled:!u.trim()||z.isPending,children:z.isPending?"Registering...":"Register"}),d.jsx(yt,{type:"button",variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>{r(!1),f("")},children:"Cancel"}),z.isError&&d.jsx("span",{className:"text-xs text-destructive",children:z.error.message})]}):d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-sm font-medium",children:"Repositories"}),d.jsxs("span",{className:"text-xs text-muted-foreground",children:[P.length," total"]}),d.jsx("div",{className:"ml-auto",children:d.jsxs(yt,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:()=>r(!0),children:[d.jsx(t_,{className:"h-3.5 w-3.5"}),"Register"]})})]})}),d.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:d.jsxs("table",{className:"w-full border-collapse text-xs",children:[d.jsx("thead",{className:"sticky top-0 z-10",children:d.jsxs("tr",{className:"bg-muted/60 text-left",children:[d.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Name"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Status"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground text-right",children:"Files"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground text-right",children:"Chunks"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground text-right",children:"Embed%"}),d.jsx("th",{className:"border-b border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Indexed"})]})}),d.jsx("tbody",{children:P.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"py-12 text-center text-muted-foreground",children:"No repos registered. Run: lens repo register"})}):P.map((V,H)=>d.jsxs("tr",{className:"group hover:bg-accent/30",children:[d.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-1.5 text-center font-mono text-[10px] text-muted-foreground tabular-nums",children:H+1}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5",children:d.jsx("button",{type:"button",onClick:()=>s(V.id),className:"text-primary hover:underline font-medium",children:V.name})}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5",children:d.jsx(Cs,{status:V.index_status})}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono text-right tabular-nums",children:V.files_indexed}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono text-right tabular-nums",children:V.chunk_count}),d.jsx("td",{className:`border-b border-r border-border px-3 py-1.5 font-mono text-right tabular-nums ${b?"":"opacity-40"}`,children:b?`${V.embedded_pct}%`:"—"}),d.jsx("td",{className:"border-b border-border px-3 py-1.5 text-muted-foreground",children:ic(V.last_indexed_at)})]},V.id))})]})})]})}function gl({label:a,value:s,mono:i}){return d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-muted-foreground",children:a}),d.jsx("div",{className:`text-sm font-medium ${i?"font-mono":""}`,children:s})]})}function Qo({onClick:a,icon:s,label:i,loading:r}){return d.jsxs(yt,{variant:"outline",size:"sm",onClick:a,disabled:r,className:"gap-1.5",children:[d.jsx(s,{className:`h-3.5 w-3.5 ${r?"animate-spin":""}`}),i]})}const Zj={2:"text-success",3:"text-warning",4:"text-warning",5:"text-destructive"},Hy={cli:"bg-blue-500/15 text-blue-400",mcp:"bg-purple-500/15 text-purple-400",api:"bg-emerald-500/15 text-emerald-400",dashboard:"bg-amber-500/15 text-amber-400"};function Fj(){const[a,s]=U.useState(0),[i,r]=U.useState(""),u=100,{data:f,isLoading:m}=St({queryKey:["dashboard-logs",a,i],queryFn:()=>Ve.logs({limit:u,offset:a*u,source:i||void 0}),refetchInterval:15e3,placeholderData:un}),p=(f==null?void 0:f.total)??0,g=Math.max(1,Math.ceil(p/u)),y=(f==null?void 0:f.rows)??[];return d.jsxs(d.Fragment,{children:[d.jsxs(na,{children:[d.jsx("span",{className:"text-sm font-medium",children:"Requests"}),(f==null?void 0:f.summary)&&d.jsxs("div",{className:"hidden items-center gap-2 text-xs text-muted-foreground md:flex",children:[d.jsxs("span",{className:"tabular-nums",children:[f.summary.total_today," today"]}),f.summary.by_source.map(v=>d.jsxs("span",{className:"tabular-nums",children:[d.jsx("span",{className:`inline-block rounded px-1 py-0.5 ${Hy[v.source]??""}`,children:v.source})," ",v.count]},v.source))]}),d.jsx("div",{className:"ml-auto",children:d.jsxs("select",{value:i,onChange:v=>{r(v.target.value),s(0)},className:"h-7 rounded-md border border-border bg-background px-2 text-xs focus:outline-none focus:ring-1 focus:ring-ring",children:[d.jsx("option",{value:"",children:"All sources"}),d.jsx("option",{value:"cli",children:"CLI"}),d.jsx("option",{value:"mcp",children:"MCP"}),d.jsx("option",{value:"api",children:"API"}),d.jsx("option",{value:"dashboard",children:"Dashboard"})]})})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:m&&!f?d.jsx(Jj,{}):d.jsxs("table",{className:"w-full border-collapse text-xs",children:[d.jsx("thead",{className:"sticky top-0 z-10",children:d.jsxs("tr",{className:"bg-muted/60 text-left",children:[d.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Time"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Source"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Method"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Path"}),d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:"Status"}),d.jsx("th",{className:"border-b border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground text-right",children:"Duration"})]})}),d.jsx("tbody",{children:y.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"py-12 text-center text-muted-foreground",children:"No requests logged yet"})}):y.map((v,b)=>{const S=new Date(v.created_at+"Z"),_=Zj[String(v.status)[0]]??"",R=Hy[v.source]??"";return d.jsxs("tr",{className:"group hover:bg-accent/30",children:[d.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-1.5 text-center font-mono text-[10px] text-muted-foreground tabular-nums",children:a*u+b+1}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono text-muted-foreground tabular-nums",children:S.toLocaleTimeString()}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5",children:d.jsx("span",{className:`inline-block rounded px-1.5 py-0.5 font-medium ${R}`,children:v.source})}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:v.method}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono max-w-xs truncate",children:v.path}),d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:d.jsx("span",{className:`font-medium ${_}`,children:v.status})}),d.jsx("td",{className:"border-b border-border px-3 py-1.5 font-mono text-right text-muted-foreground tabular-nums",children:Kj(v.duration_ms)})]},v.id)})})]})}),p>u&&d.jsxs("div",{className:"flex items-center justify-between border-t bg-muted/20 px-3 py-1.5 text-xs text-muted-foreground",children:[d.jsxs("span",{className:"tabular-nums",children:[a*u+1,"–",Math.min((a+1)*u,p)," of"," ",p.toLocaleString()]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(yt,{variant:"ghost",size:"icon-xs",onClick:()=>s(a-1),disabled:a===0,children:d.jsx(Lb,{className:"h-3.5 w-3.5"})}),d.jsxs("span",{className:"px-1.5 tabular-nums",children:[a+1," / ",g]}),d.jsx(yt,{variant:"ghost",size:"icon-xs",onClick:()=>s(a+1),disabled:a>=g-1,children:d.jsx(kb,{className:"h-3.5 w-3.5"})})]})]})]})}function Jj(){return d.jsx("div",{className:"flex flex-1 items-center justify-center py-20",children:d.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}function $j(){const[a,s]=U.useState(null),[i,r]=U.useState(0),[u,f]=U.useState(""),[m,p]=U.useState(""),g=100,{data:y,isLoading:v}=St({queryKey:["dashboard-tables"],queryFn:Ve.tables,placeholderData:un}),{data:b,isLoading:S}=St({queryKey:["dashboard-table-rows",a,i],queryFn:()=>Ve.tableRows(a,g,i*g),enabled:!!a,placeholderData:un}),_=U.useMemo(()=>{const B=(y==null?void 0:y.tables)??[];if(!m)return B;const P=m.toLowerCase();return B.filter(T=>T.name.toLowerCase().includes(P))},[y,m]),R=U.useMemo(()=>{const B=(b==null?void 0:b.rows)??[];if(!u)return B;const P=u.toLowerCase();return B.filter(T=>Object.values(T).some(J=>J!=null&&String(J).toLowerCase().includes(P)))},[b,u]),j=u?R.length:(b==null?void 0:b.total)??0,M=Math.max(1,Math.ceil(j/g)),z=(b==null?void 0:b.columns)??[];return!y&&v?d.jsx(Qy,{}):d.jsxs(d.Fragment,{children:[d.jsxs(na,{children:[d.jsx("span",{className:"text-sm font-medium",children:"Data"}),a&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:a}),d.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[j.toLocaleString()," row",j!==1?"s":""]})]}),d.jsxs("select",{value:a??"",onChange:B=>{s(B.target.value||null),r(0),f("")},className:"h-7 rounded-md border border-border bg-background px-2 text-xs md:hidden",children:[d.jsx("option",{value:"",children:"Select table..."}),((y==null?void 0:y.tables)??[]).map(B=>d.jsxs("option",{value:B.name,children:[B.name," (",B.count,")"]},B.name))]}),a&&d.jsxs("div",{className:"ml-auto relative",children:[d.jsx(Ey,{className:"pointer-events-none absolute left-2 top-1/2 h-3 w-3 -translate-y-1/2 text-muted-foreground"}),d.jsx("input",{type:"search",value:u,onChange:B=>f(B.target.value),placeholder:"Filter rows...",className:"h-7 w-40 rounded-md border border-border bg-background pl-7 pr-2 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]})]}),d.jsxs("div",{className:"flex flex-1 min-h-0",children:[d.jsxs("div",{className:"hidden w-56 shrink-0 flex-col border-r border-border bg-muted/30 md:flex",children:[d.jsx("div",{className:"border-b px-3 py-2.5",children:d.jsxs("div",{className:"relative",children:[d.jsx(Ey,{className:"pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),d.jsx("input",{type:"search",value:m,onChange:B=>p(B.target.value),placeholder:"Search tables...",className:"h-7 w-full rounded-md border border-border bg-background pl-7 pr-2 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]})}),d.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:_.map(B=>d.jsxs("button",{type:"button",onClick:()=>{s(B.name),r(0),f("")},className:`flex w-full items-center justify-between px-3 py-1.5 text-xs transition-colors ${a===B.name?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`,children:[d.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[d.jsx(ac,{className:"h-3 w-3 shrink-0 opacity-50"}),d.jsx("span",{className:"truncate",children:B.name})]}),d.jsx("span",{className:"ml-2 shrink-0 font-mono text-[10px] tabular-nums opacity-60",children:B.count})]},B.name))})]}),d.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:a?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:S&&!b?d.jsx(Qy,{}):d.jsxs("table",{className:"w-full border-collapse text-xs",children:[d.jsx("thead",{className:"sticky top-0 z-10",children:d.jsxs("tr",{className:"bg-muted/60 text-left",children:[d.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),z.map(B=>d.jsx("th",{className:"border-b border-r border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:B},B))]})}),d.jsx("tbody",{children:R.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:z.length+1,className:"py-12 text-center text-muted-foreground",children:u?"No matching rows":"Empty table"})}):R.map((B,P)=>d.jsxs("tr",{className:"group hover:bg-accent/30",children:[d.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-1.5 text-center font-mono text-[10px] text-muted-foreground tabular-nums",children:i*g+P+1}),z.map(T=>d.jsx("td",{className:"border-b border-r border-border px-3 py-1.5 font-mono",children:d.jsx(Wj,{value:B[T]})},T))]},P))})]})}),j>g&&d.jsxs("div",{className:"flex items-center justify-between border-t bg-muted/20 px-3 py-1.5 text-xs text-muted-foreground",children:[d.jsxs("span",{className:"tabular-nums",children:[i*g+1,"–",Math.min((i+1)*g,j)," of"," ",j.toLocaleString()]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(yt,{variant:"ghost",size:"icon-xs",onClick:()=>r(i-1),disabled:i===0,children:d.jsx(Lb,{className:"h-3.5 w-3.5"})}),d.jsxs("span",{className:"px-1.5 tabular-nums",children:[i+1," / ",M]}),d.jsx(yt,{variant:"ghost",size:"icon-xs",onClick:()=>r(i+1),disabled:i>=M-1,children:d.jsx(kb,{className:"h-3.5 w-3.5"})})]})]})]}):d.jsx("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:d.jsxs("div",{className:"text-center",children:[d.jsx(ac,{className:"mx-auto mb-2 h-8 w-8 opacity-30"}),d.jsx("p",{children:"Select a table to browse rows"})]})})})]})]})}function Wj({value:a}){if(a==null)return d.jsx("span",{className:"italic text-muted-foreground/40",children:"NULL"});const s=String(a);if(typeof a=="string"&&(s.startsWith("{")||s.startsWith("[")))try{const i=JSON.parse(s),r=Array.isArray(i)?`[${i.length}]`:`{${Object.keys(i).length}}`;return d.jsxs("details",{className:"cursor-pointer",children:[d.jsx("summary",{className:"text-muted-foreground hover:text-foreground",children:r}),d.jsx("pre",{className:"mt-1 max-h-48 overflow-auto rounded bg-muted p-2 text-[10px] leading-relaxed",children:JSON.stringify(i,null,2)})]})}catch{}return s.startsWith("<blob ")?d.jsx("span",{className:"italic text-muted-foreground/50",children:s}):s.length>120?d.jsxs("span",{className:"cursor-help",title:s,children:[s.slice(0,120),d.jsx("span",{className:"text-muted-foreground",children:"..."})]}):d.jsx(d.Fragment,{children:s})}function Qy(){return d.jsx("div",{className:"flex flex-1 items-center justify-center py-20",children:d.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}function Ij(){const a=hr(),{data:s,isLoading:i}=St({queryKey:["dashboard-jobs"],queryFn:Ve.jobs,refetchInterval:15e3,placeholderData:un}),r=Wn({mutationFn:Ve.reindex,onSuccess:()=>a.invalidateQueries({queryKey:["dashboard-jobs"]})}),u=Wn({mutationFn:Ve.startWatcher,onSuccess:()=>a.invalidateQueries({queryKey:["dashboard-jobs"]})}),f=Wn({mutationFn:Ve.stopWatcher,onSuccess:()=>a.invalidateQueries({queryKey:["dashboard-jobs"]})}),m=(s==null?void 0:s.repos)??[];return d.jsxs(d.Fragment,{children:[d.jsxs(na,{children:[d.jsx("span",{className:"text-sm font-medium",children:"Jobs"}),d.jsxs("span",{className:"text-xs text-muted-foreground",children:[m.length," repos"]})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-auto flex flex-col gap-4 py-4 md:gap-6 md:py-6",children:m.length===0?d.jsx("p",{className:"text-sm text-muted-foreground py-10 text-center",children:"No repos registered"}):d.jsx("div",{className:"grid gap-4 px-4 lg:px-6 @xl/main:grid-cols-2",children:m.map(p=>{var g;return d.jsxs(Pa,{children:[d.jsxs(Za,{className:"flex flex-row items-start justify-between pb-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:p.name}),d.jsx("p",{className:"text-xs text-muted-foreground",children:ic(p.last_indexed_at)})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(yt,{variant:"outline",size:"icon-xs",onClick:()=>r.mutate(p.id),disabled:r.isPending,title:"Re-index",children:d.jsx(Qb,{className:`h-3.5 w-3.5 ${r.isPending?"animate-spin":""}`})}),d.jsx(yt,{variant:"outline",size:"icon-xs",onClick:()=>(p.watcher.active?f:u).mutate(p.id),title:p.watcher.active?"Stop watcher":"Start watcher",children:p.watcher.active?d.jsx(Bb,{className:"h-3.5 w-3.5"}):d.jsx(qb,{className:"h-3.5 w-3.5"})})]})]}),d.jsxs(Fa,{className:"space-y-4",children:[d.jsxs("div",{className:"space-y-1",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Index"}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Cs,{status:p.index_status}),p.is_stale&&d.jsx("span",{className:"text-xs text-warning font-medium",children:"stale"})]})]}),d.jsxs("p",{className:"text-xs font-mono text-muted-foreground",children:[((g=p.last_indexed_commit)==null?void 0:g.slice(0,8))??"—",p.current_head&&p.last_indexed_commit!==p.current_head&&d.jsxs("span",{children:[" → ",p.current_head.slice(0,8)]})]})]}),d.jsx(ar,{label:"Embeddings",value:p.embedded_count,max:p.embeddable_count}),d.jsx(ar,{label:"Purpose",value:p.purpose_count,max:p.purpose_total}),d.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d.jsx("span",{className:"text-muted-foreground",children:"Watcher"}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Cs,{status:p.watcher.active?"active":"inactive"}),p.watcher.changed_files>0&&d.jsxs("span",{className:"text-muted-foreground",children:[p.watcher.changed_files," pending"]})]})]})]})]},p.id)})})})]})}function eN(){var y;const[a,s]=U.useState(""),[i,r]=U.useState(""),{data:u}=St({queryKey:["dashboard-repos"],queryFn:Ve.repos,placeholderData:un}),f=Wn({mutationFn:()=>Ve.buildContext(a,i)}),m=(u==null?void 0:u.repos)??[];U.useEffect(()=>{!a&&m.length>0&&s(m[0].id)},[a,m]);const p=v=>{v.preventDefault(),!(!a||!i.trim())&&f.mutate()},g=(y=f.data)==null?void 0:y.stats;return d.jsxs(d.Fragment,{children:[d.jsx(na,{children:d.jsx("span",{className:"text-sm font-medium",children:"Context"})}),d.jsxs("div",{className:"flex flex-1 min-h-0 flex-col gap-3 py-3",children:[d.jsxs("form",{onSubmit:p,className:"shrink-0 flex flex-col gap-2 px-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("select",{value:a,onChange:v=>s(v.target.value),className:"h-8 rounded-md border border-border bg-background px-2 text-xs focus:outline-none focus:ring-1 focus:ring-ring",children:[d.jsx("option",{value:"",children:"Select repo..."}),m.map(v=>d.jsx("option",{value:v.id,children:v.name},v.id))]}),d.jsx("input",{type:"text",value:i,onChange:v=>r(v.target.value),placeholder:"Describe your goal... e.g. 'add user authentication'",className:"h-8 flex-1 rounded-md border border-border bg-background px-3 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),d.jsxs(yt,{type:"submit",size:"sm",className:"h-8 gap-1.5 text-xs",disabled:!a||!i.trim()||f.isPending,children:[f.isPending?d.jsx("div",{className:"h-3 w-3 animate-spin rounded-full border-2 border-current border-t-transparent"}):d.jsx(pd,{className:"h-3 w-3"}),"Query"]})]}),g&&d.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-muted-foreground",children:[d.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5 tabular-nums",children:[g.files_in_context," files"]}),d.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5 tabular-nums",children:[g.duration_ms,"ms"]}),d.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5",children:g.cached?"cached":"fresh"}),!g.index_fresh&&d.jsx("span",{className:"rounded bg-destructive/15 px-1.5 py-0.5 text-destructive",children:"stale"})]})]}),f.isError&&d.jsx("div",{className:"shrink-0 mx-3 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-xs text-destructive",children:f.error.message}),f.isPending?d.jsx("div",{className:"flex items-center justify-center py-20",children:d.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):f.data?d.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:d.jsxs("table",{className:"w-full border-collapse text-xs",children:[d.jsx("thead",{className:"sticky top-0 z-10",children:d.jsxs("tr",{className:"bg-muted/60 text-left",children:[d.jsx("th",{className:"w-12 border-b border-r border-border bg-muted/60 px-2 py-2 text-center font-medium text-muted-foreground",children:"#"}),d.jsxs("th",{className:"border-b border-border bg-muted/60 px-3 py-2 font-medium text-muted-foreground",children:["Context Pack",d.jsxs("span",{className:"ml-2 font-normal text-muted-foreground/60",children:[f.data.context_pack.split(`
|
|
231
|
+
`).length," lines"]})]})]})}),d.jsx("tbody",{children:f.data.context_pack.split(`
|
|
232
|
+
`).map((v,b)=>d.jsxs("tr",{className:"group hover:bg-accent/30",children:[d.jsx("td",{className:"border-b border-r border-border bg-muted/20 px-2 py-0 text-center font-mono text-[10px] text-muted-foreground/50 tabular-nums select-none align-top leading-5",children:b+1}),d.jsx("td",{className:"border-b border-border px-3 py-0 font-mono leading-5 whitespace-pre-wrap break-all",children:v||" "})]},b))})]})}):d.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-muted-foreground",children:[d.jsx(pd,{className:"mb-2 h-6 w-6 opacity-30"}),d.jsx("p",{className:"text-xs",children:"Select a repo and describe your goal"})]})]})]})}function Fi({label:a,used:s,limit:i,locked:r,description:u}){if(r)return d.jsxs(Pa,{className:"border-border bg-background py-4 shadow-none opacity-60",children:[d.jsxs(Za,{className:"pb-1",children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:a}),d.jsx("span",{className:"rounded bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-medium text-amber-600 dark:text-amber-400",children:"Pro"})]}),d.jsx(Al,{className:"mt-1 text-2xl font-semibold tabular-nums",children:"—"})]}),d.jsx(Fa,{className:"pt-0",children:d.jsx("p",{className:"text-xs text-muted-foreground",children:"Upgrade to Pro"})})]});if(!i||i<=0)return d.jsxs(Pa,{className:"border-border bg-background py-4 shadow-none",children:[d.jsxs(Za,{className:"pb-1",children:[d.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:a}),d.jsx(Al,{className:"mt-1 text-2xl font-semibold tabular-nums",children:s.toLocaleString()})]}),d.jsx(Fa,{className:"pt-0",children:d.jsx("p",{className:"text-xs text-muted-foreground",children:"No quota (local only)"})})]});const f=Math.min(s/i*100,100),m=f>90?"bg-destructive":f>70?"bg-yellow-500":"bg-primary";return d.jsxs(Pa,{className:"border-border bg-background py-4 shadow-none",children:[d.jsxs(Za,{className:"pb-1",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:a}),d.jsxs("p",{className:"text-xs text-muted-foreground/70 tabular-nums",children:[s.toLocaleString()," / ",i.toLocaleString()]})]}),d.jsx(Al,{className:"mt-1 text-2xl font-semibold tabular-nums",children:s.toLocaleString()})]}),d.jsxs(Fa,{className:"pt-0",children:[d.jsx("div",{className:"mt-1 h-1.5 overflow-hidden rounded-full bg-muted",children:d.jsx("div",{className:`h-full rounded-full ${m}`,style:{width:`${f}%`}})}),u&&d.jsx("p",{className:"mt-1.5 text-[10px] text-muted-foreground/60",children:u})]})]})}function tN(){const{data:a,isLoading:s}=St({queryKey:["dashboard-usage"],queryFn:Ve.localUsage,refetchInterval:1e4,placeholderData:un}),r=((a==null?void 0:a.plan)??"free")==="pro"||(a==null?void 0:a.has_capabilities)===!0,u=a==null?void 0:a.quota,f=a==null?void 0:a.today;return d.jsxs(d.Fragment,{children:[d.jsx(na,{children:d.jsx("span",{className:"text-sm font-medium",children:"Usage"})}),d.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-auto py-4 md:gap-6 md:py-6",children:[d.jsx("section",{className:"px-4 lg:px-6",children:d.jsxs("div",{className:"rounded-xl border border-border bg-background p-4",children:[d.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Today's usage"}),d.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Local counters",a!=null&&a.synced_at?` · last synced ${new Date(a.synced_at).toLocaleTimeString()}`:" · not synced"]})]})}),s||!f?d.jsx("div",{className:"flex items-center justify-center py-16",children:d.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):d.jsxs("section",{className:"grid grid-cols-1 gap-4 px-4 lg:px-6 @xl/main:grid-cols-2 @3xl/main:grid-cols-3",children:[d.jsx(Fi,{label:"Context Queries",used:f.context_queries}),d.jsx(Fi,{label:"Repos Indexed",used:f.repos_indexed}),d.jsx(Fi,{label:"Embedding Requests",used:f.embedding_requests,limit:u==null?void 0:u.embeddingRequests,locked:!r,description:"API calls to Voyage. Each batch = 1 request."}),d.jsx(Fi,{label:"Embedding Chunks",used:f.embedding_chunks,limit:u==null?void 0:u.embeddingChunks,locked:!r,description:"Code chunks sent for vector embedding."}),d.jsx(Fi,{label:"Purpose Summaries",used:f.purpose_requests,limit:u==null?void 0:u.purposeRequests,locked:!r,description:"API calls to generate file summaries. Re-indexing re-counts."})]})]})]})}function nN({children:a}){var i;const s=St({queryKey:["auth-status"],queryFn:Ve.authStatus,placeholderData:un});return!s.isLoading&&!((i=s.data)!=null&&i.authenticated)?d.jsx("div",{className:"flex flex-col items-center justify-center py-16 gap-4",children:d.jsxs("div",{className:"rounded-xl border bg-card p-8 text-center max-w-sm",children:[d.jsx("h2",{className:"text-lg font-semibold text-card-foreground",children:"Cloud Not Connected"}),d.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Authenticate with the LENS cloud to manage API keys, usage, and billing."}),d.jsx("code",{className:"mt-4 block rounded-lg bg-muted px-4 py-2 text-sm font-mono",children:"lens login"})]})}):d.jsx(d.Fragment,{children:a})}const Gy=["Everything in Free","Voyage embeddings","Purpose summaries","Vocab clusters"];function aN(){const[a,s]=U.useState(null),{data:i,isLoading:r}=St({queryKey:["cloud-subscription"],queryFn:Ve.cloudSubscription});if(r)return d.jsxs("div",{className:"space-y-8 animate-pulse",children:[d.jsxs("div",{children:[d.jsx("div",{className:"h-7 w-32 rounded bg-muted"}),d.jsx("div",{className:"mt-2 h-4 w-64 rounded bg-muted"})]}),d.jsx("div",{className:"rounded-xl border bg-card p-6",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"h-4 w-24 rounded bg-muted"}),d.jsx("div",{className:"mt-2 h-6 w-20 rounded bg-muted"})]}),d.jsx("div",{className:"h-7 w-16 rounded-full bg-muted"})]})}),d.jsxs("div",{children:[d.jsx("div",{className:"mb-4 h-4 w-28 rounded bg-muted"}),d.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[0,1,2].map(S=>d.jsxs("div",{className:"rounded-xl border border-border bg-card p-6",children:[d.jsx("div",{className:"h-5 w-20 rounded bg-muted"}),d.jsx("div",{className:"mt-3 h-8 w-16 rounded bg-muted"}),d.jsx("div",{className:"mt-4 space-y-2",children:[0,1,2].map(_=>d.jsx("div",{className:"h-4 w-3/4 rounded bg-muted"},_))})]},S))})]})]});const u=i==null?void 0:i.subscription,f=(u==null?void 0:u.plan)??"free",m=(u==null?void 0:u.status)==="active",p=u!=null&&u.currentPeriodEnd?new Date(u.currentPeriodEnd).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):null;async function g(S){s(S);try{const _=await Ve.cloudCheckout(S);_.url&&(window.location.href=_.url)}finally{s(null)}}async function y(){s("portal");try{const S=await Ve.cloudPortal();S.url&&(window.location.href=S.url)}finally{s(null)}}const v=f==="free",b=f==="pro";return d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Billing"}),d.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Manage your subscription and payment method."})]}),d.jsxs("div",{className:"rounded-xl border bg-card p-6",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Current Plan"}),d.jsxs("p",{className:"mt-1 text-xl font-bold capitalize",children:[f," ",b&&d.jsx("span",{className:"text-sm font-normal text-muted-foreground",children:"— $9/mo"})]})]}),d.jsx("div",{className:`inline-flex items-center rounded-full border px-3 py-1 ${m?"border-success/30 bg-success/10":"border-border bg-muted"}`,children:d.jsx("span",{className:`text-xs font-medium ${m?"text-success":"text-muted-foreground"}`,children:u!=null&&u.status?u.status.charAt(0).toUpperCase()+u.status.slice(1):"Active"})})]}),p&&d.jsx("div",{className:"mt-4 flex items-center gap-4 border-t pt-4",children:d.jsxs("p",{className:"text-sm text-muted-foreground",children:[u!=null&&u.cancelAtPeriodEnd?"Access until: ":"Next billing date: ",d.jsx("span",{className:"text-foreground",children:p})]})}),b&&(u==null?void 0:u.stripeCustomerId)&&d.jsx("div",{className:"mt-4 flex gap-3",children:d.jsx("button",{onClick:y,disabled:a!==null,className:"rounded-lg bg-secondary px-4 py-2 text-sm hover:bg-accent disabled:opacity-50",children:a==="portal"?"Loading...":"Manage Subscription"})})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"mb-4 text-sm font-semibold",children:"Available Plans"}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[d.jsxs("div",{className:`rounded-xl border p-6 ${v?"border-primary/50 ring-1 ring-primary/20":"border-border"} bg-card`,children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h4",{className:"font-semibold",children:"Free"}),v&&d.jsx("span",{className:"rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary",children:"Current"})]}),d.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[d.jsx("span",{className:"text-3xl font-bold",children:"$0"}),d.jsx("span",{className:"text-sm text-muted-foreground",children:"forever"})]}),d.jsx("ul",{className:"mt-4 space-y-2",children:["Unlimited local context queries","TF-IDF + Import graph","MCP integration"].map(S=>d.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[d.jsx(Xo,{className:"size-4 text-success"})," ",S]},S))}),b&&d.jsx("button",{onClick:y,disabled:a!==null,className:"mt-6 w-full rounded-lg bg-secondary py-2.5 text-sm font-medium hover:bg-accent disabled:opacity-50",children:a==="portal"?"Loading...":"Downgrade to Free"})]}),d.jsxs("div",{className:`rounded-xl border p-6 ${b?"border-primary/50 ring-1 ring-primary/20":"border-border"} bg-card`,children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h4",{className:"font-semibold",children:"Pro"}),b&&d.jsx("span",{className:"rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary",children:"Current"})]}),d.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[d.jsx("span",{className:"text-3xl font-bold",children:"$9"}),d.jsx("span",{className:"text-sm text-muted-foreground",children:"/mo"})]}),d.jsx("ul",{className:"mt-4 space-y-2",children:Gy.map(S=>d.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[d.jsx(Xo,{className:"size-4 text-success"})," ",S]},S))}),v&&d.jsx("button",{onClick:()=>g("monthly"),disabled:a!==null,className:"mt-6 w-full rounded-lg bg-primary py-2.5 text-sm font-semibold text-primary-foreground hover:bg-primary/90 disabled:opacity-50",children:a==="monthly"?"Loading...":"Go Monthly"})]}),d.jsxs("div",{className:"rounded-xl border border-border bg-card p-6",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h4",{className:"font-semibold",children:"Pro Yearly"}),d.jsx("span",{className:"rounded-full bg-success/15 px-2.5 py-0.5 text-xs font-semibold text-success",children:"Save 17%"})]}),d.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[d.jsx("span",{className:"text-3xl font-bold",children:"$90"}),d.jsx("span",{className:"text-sm text-muted-foreground",children:"/yr"})]}),d.jsx("ul",{className:"mt-4 space-y-2",children:Gy.map(S=>d.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[d.jsx(Xo,{className:"size-4 text-success"})," ",S]},S))}),v&&d.jsx("button",{onClick:()=>g("yearly"),disabled:a!==null,className:"mt-6 w-full rounded-lg bg-primary py-2.5 text-sm font-semibold text-primary-foreground hover:bg-primary/90 disabled:opacity-50",children:a==="yearly"?"Loading...":"Go Yearly"})]})]})]}),d.jsxs("a",{href:"mailto:support@lens.dev?subject=LENS Enterprise Inquiry",className:"flex items-center justify-between rounded-xl border border-border bg-card p-5 transition-colors hover:bg-accent",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-semibold",children:"Enterprise"}),d.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:"Dedicated support, custom integrations, SLA guarantee"})]}),d.jsxs("span",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[d.jsx(Z2,{className:"size-4"})," Contact Sales"]})]})]})}function lN(){return d.jsxs(d.Fragment,{children:[d.jsx(na,{children:d.jsx("h1",{className:"text-sm font-semibold",children:"Billing"})}),d.jsx("main",{className:"flex-1 overflow-auto p-4 lg:p-6",children:d.jsx(nN,{children:d.jsx(aN,{})})})]})}const la=a2({component:Yj}),sN=aa({getParentRoute:()=>la,path:"/",component:mv}),iN=aa({getParentRoute:()=>la,path:"/repos",component:Pj}),rN=aa({getParentRoute:()=>la,path:"/requests",component:Fj}),oN=aa({getParentRoute:()=>la,path:"/data",component:$j}),cN=aa({getParentRoute:()=>la,path:"/jobs",component:Ij}),uN=aa({getParentRoute:()=>la,path:"/context",component:eN}),fN=aa({getParentRoute:()=>la,path:"/usage",component:tN}),dN=aa({getParentRoute:()=>la,path:"/billing",component:lN}),hN=la.addChildren([sN,iN,rN,oN,cN,uN,fN,dN]),mN=f2({routeTree:hN,basepath:"/dashboard",defaultNotFoundComponent:()=>d.jsx(mv,{})}),pN=new m1({defaultOptions:{queries:{refetchOnWindowFocus:!0,staleTime:5e3,retry:1}}});Y0.createRoot(document.getElementById("root")).render(d.jsx(U.StrictMode,{children:d.jsx(p1,{client:pN,children:d.jsx(m2,{router:mN})})}));
|