@openez-graph/cli 0.9.0 → 0.10.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.
@@ -1,362 +0,0 @@
1
- var ab=t=>{throw TypeError(t)};var nh=(t,a,r)=>a.has(t)||ab("Cannot "+r);var O=(t,a,r)=>(nh(t,a,"read from private field"),r?r.call(t):a.get(t)),pe=(t,a,r)=>a.has(t)?ab("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,r),oe=(t,a,r,i)=>(nh(t,a,"write to private field"),i?i.call(t,r):a.set(t,r),r),Re=(t,a,r)=>(nh(t,a,"access private method"),r);var kc=(t,a,r,i)=>({set _(o){oe(t,a,o,r)},get _(){return O(t,a,i)}});function sE(t,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(i,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(o){if(o.ep)return;o.ep=!0;const u=r(o);fetch(o.href,u)}})();function bm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ah={exports:{}},Fl={};/**
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 sb;function rE(){if(sb)return Fl;sb=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,u){var h=null;if(u!==void 0&&(h=""+u),o.key!==void 0&&(h=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:t,type:i,key:h,ref:o!==void 0?o:null,props:u}}return Fl.Fragment=a,Fl.jsx=r,Fl.jsxs=r,Fl}var rb;function iE(){return rb||(rb=1,ah.exports=rE()),ah.exports}var c=iE(),sh={exports:{}},je={};/**
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 ib;function lE(){if(ib)return je;ib=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function j(L){return L===null||typeof L!="object"?null:(L=x&&L[x]||L["@@iterator"],typeof L=="function"?L:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function _(L,Z,re){this.props=L,this.context=Z,this.refs=E,this.updater=re||w}_.prototype.isReactComponent={},_.prototype.setState=function(L,Z){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,Z,"setState")},_.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function C(){}C.prototype=_.prototype;function T(L,Z,re){this.props=L,this.context=Z,this.refs=E,this.updater=re||w}var A=T.prototype=new C;A.constructor=T,S(A,_.prototype),A.isPureReactComponent=!0;var B=Array.isArray;function q(){}var k={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function z(L,Z,re){var ie=re.ref;return{$$typeof:t,type:L,key:Z,ref:ie!==void 0?ie:null,props:re}}function H(L,Z){return z(L.type,Z,L.props)}function X(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function ne(L){var Z={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(re){return Z[re]})}var se=/\/+/g;function te(L,Z){return typeof L=="object"&&L!==null&&L.key!=null?ne(""+L.key):Z.toString(36)}function ce(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(q,q):(L.status="pending",L.then(function(Z){L.status==="pending"&&(L.status="fulfilled",L.value=Z)},function(Z){L.status==="pending"&&(L.status="rejected",L.reason=Z)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function P(L,Z,re,ie,le){var he=typeof L;(he==="undefined"||he==="boolean")&&(L=null);var xe=!1;if(L===null)xe=!0;else switch(he){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(L.$$typeof){case t:case a:xe=!0;break;case v:return xe=L._init,P(xe(L._payload),Z,re,ie,le)}}if(xe)return le=le(L),xe=ie===""?"."+te(L,0):ie,B(le)?(re="",xe!=null&&(re=xe.replace(se,"$&/")+"/"),P(le,Z,re,"",function(zt){return zt})):le!=null&&(X(le)&&(le=H(le,re+(le.key==null||L&&L.key===le.key?"":(""+le.key).replace(se,"$&/")+"/")+xe)),Z.push(le)),1;xe=0;var Be=ie===""?".":ie+":";if(B(L))for(var ve=0;ve<L.length;ve++)ie=L[ve],he=Be+te(ie,ve),xe+=P(ie,Z,re,he,le);else if(ve=j(L),typeof ve=="function")for(L=ve.call(L),ve=0;!(ie=L.next()).done;)ie=ie.value,he=Be+te(ie,ve++),xe+=P(ie,Z,re,he,le);else if(he==="object"){if(typeof L.then=="function")return P(ce(L),Z,re,ie,le);throw Z=String(L),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return xe}function V(L,Z,re){if(L==null)return L;var ie=[],le=0;return P(L,ie,"","",function(he){return Z.call(re,he,le++)}),ie}function ee(L){if(L._status===-1){var Z=L._result;Z=Z(),Z.then(function(re){(L._status===0||L._status===-1)&&(L._status=1,L._result=re)},function(re){(L._status===0||L._status===-1)&&(L._status=2,L._result=re)}),L._status===-1&&(L._status=0,L._result=Z)}if(L._status===1)return L._result.default;throw L._result}var ye=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},ae={map:V,forEach:function(L,Z,re){V(L,function(){Z.apply(this,arguments)},re)},count:function(L){var Z=0;return V(L,function(){Z++}),Z},toArray:function(L){return V(L,function(Z){return Z})||[]},only:function(L){if(!X(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return je.Activity=y,je.Children=ae,je.Component=_,je.Fragment=r,je.Profiler=o,je.PureComponent=T,je.StrictMode=i,je.Suspense=g,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,je.__COMPILER_RUNTIME={__proto__:null,c:function(L){return k.H.useMemoCache(L)}},je.cache=function(L){return function(){return L.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(L,Z,re){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ie=S({},L.props),le=L.key;if(Z!=null)for(he in Z.key!==void 0&&(le=""+Z.key),Z)!D.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(ie[he]=Z[he]);var he=arguments.length-2;if(he===1)ie.children=re;else if(1<he){for(var xe=Array(he),Be=0;Be<he;Be++)xe[Be]=arguments[Be+2];ie.children=xe}return z(L.type,le,ie)},je.createContext=function(L){return L={$$typeof:h,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:u,_context:L},L},je.createElement=function(L,Z,re){var ie,le={},he=null;if(Z!=null)for(ie in Z.key!==void 0&&(he=""+Z.key),Z)D.call(Z,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(le[ie]=Z[ie]);var xe=arguments.length-2;if(xe===1)le.children=re;else if(1<xe){for(var Be=Array(xe),ve=0;ve<xe;ve++)Be[ve]=arguments[ve+2];le.children=Be}if(L&&L.defaultProps)for(ie in xe=L.defaultProps,xe)le[ie]===void 0&&(le[ie]=xe[ie]);return z(L,he,le)},je.createRef=function(){return{current:null}},je.forwardRef=function(L){return{$$typeof:m,render:L}},je.isValidElement=X,je.lazy=function(L){return{$$typeof:v,_payload:{_status:-1,_result:L},_init:ee}},je.memo=function(L,Z){return{$$typeof:p,type:L,compare:Z===void 0?null:Z}},je.startTransition=function(L){var Z=k.T,re={};k.T=re;try{var ie=L(),le=k.S;le!==null&&le(re,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(q,ye)}catch(he){ye(he)}finally{Z!==null&&re.types!==null&&(Z.types=re.types),k.T=Z}},je.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},je.use=function(L){return k.H.use(L)},je.useActionState=function(L,Z,re){return k.H.useActionState(L,Z,re)},je.useCallback=function(L,Z){return k.H.useCallback(L,Z)},je.useContext=function(L){return k.H.useContext(L)},je.useDebugValue=function(){},je.useDeferredValue=function(L,Z){return k.H.useDeferredValue(L,Z)},je.useEffect=function(L,Z){return k.H.useEffect(L,Z)},je.useEffectEvent=function(L){return k.H.useEffectEvent(L)},je.useId=function(){return k.H.useId()},je.useImperativeHandle=function(L,Z,re){return k.H.useImperativeHandle(L,Z,re)},je.useInsertionEffect=function(L,Z){return k.H.useInsertionEffect(L,Z)},je.useLayoutEffect=function(L,Z){return k.H.useLayoutEffect(L,Z)},je.useMemo=function(L,Z){return k.H.useMemo(L,Z)},je.useOptimistic=function(L,Z){return k.H.useOptimistic(L,Z)},je.useReducer=function(L,Z,re){return k.H.useReducer(L,Z,re)},je.useRef=function(L){return k.H.useRef(L)},je.useState=function(L){return k.H.useState(L)},je.useSyncExternalStore=function(L,Z,re){return k.H.useSyncExternalStore(L,Z,re)},je.useTransition=function(){return k.H.useTransition()},je.version="19.2.7",je}var lb;function co(){return lb||(lb=1,sh.exports=lE()),sh.exports}var N=co();const br=bm(N),xm=sE({__proto__:null,default:br},[N]);var rh={exports:{}},Hl={},ih={exports:{}},lh={};/**
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 ob;function oE(){return ob||(ob=1,(function(t){function a(P,V){var ee=P.length;P.push(V);e:for(;0<ee;){var ye=ee-1>>>1,ae=P[ye];if(0<o(ae,V))P[ye]=V,P[ee]=ae,ee=ye;else break e}}function r(P){return P.length===0?null:P[0]}function i(P){if(P.length===0)return null;var V=P[0],ee=P.pop();if(ee!==V){P[0]=ee;e:for(var ye=0,ae=P.length,L=ae>>>1;ye<L;){var Z=2*(ye+1)-1,re=P[Z],ie=Z+1,le=P[ie];if(0>o(re,ee))ie<ae&&0>o(le,re)?(P[ye]=le,P[ie]=ee,ye=ie):(P[ye]=re,P[Z]=ee,ye=Z);else if(ie<ae&&0>o(le,ee))P[ye]=le,P[ie]=ee,ye=ie;else break e}}return V}function o(P,V){var ee=P.sortIndex-V.sortIndex;return ee!==0?ee:P.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var h=Date,m=h.now();t.unstable_now=function(){return h.now()-m}}var g=[],p=[],v=1,y=null,x=3,j=!1,w=!1,S=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function A(P){for(var V=r(p);V!==null;){if(V.callback===null)i(p);else if(V.startTime<=P)i(p),V.sortIndex=V.expirationTime,a(g,V);else break;V=r(p)}}function B(P){if(S=!1,A(P),!w)if(r(g)!==null)w=!0,q||(q=!0,ne());else{var V=r(p);V!==null&&ce(B,V.startTime-P)}}var q=!1,k=-1,D=5,z=-1;function H(){return E?!0:!(t.unstable_now()-z<D)}function X(){if(E=!1,q){var P=t.unstable_now();z=P;var V=!0;try{e:{w=!1,S&&(S=!1,C(k),k=-1),j=!0;var ee=x;try{t:{for(A(P),y=r(g);y!==null&&!(y.expirationTime>P&&H());){var ye=y.callback;if(typeof ye=="function"){y.callback=null,x=y.priorityLevel;var ae=ye(y.expirationTime<=P);if(P=t.unstable_now(),typeof ae=="function"){y.callback=ae,A(P),V=!0;break t}y===r(g)&&i(g),A(P)}else i(g);y=r(g)}if(y!==null)V=!0;else{var L=r(p);L!==null&&ce(B,L.startTime-P),V=!1}}break e}finally{y=null,x=ee,j=!1}V=void 0}}finally{V?ne():q=!1}}}var ne;if(typeof T=="function")ne=function(){T(X)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,te=se.port2;se.port1.onmessage=X,ne=function(){te.postMessage(null)}}else ne=function(){_(X,0)};function ce(P,V){k=_(function(){P(t.unstable_now())},V)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(P){switch(x){case 1:case 2:case 3:var V=3;break;default:V=x}var ee=x;x=V;try{return P()}finally{x=ee}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(P,V){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ee=x;x=P;try{return V()}finally{x=ee}},t.unstable_scheduleCallback=function(P,V,ee){var ye=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,P){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=ee+ae,P={id:v++,callback:V,priorityLevel:P,startTime:ee,expirationTime:ae,sortIndex:-1},ee>ye?(P.sortIndex=ee,a(p,P),r(g)===null&&P===r(p)&&(S?(C(k),k=-1):S=!0,ce(B,ee-ye))):(P.sortIndex=ae,a(g,P),w||j||(w=!0,q||(q=!0,ne()))),P},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(P){var V=x;return function(){var ee=x;x=V;try{return P.apply(this,arguments)}finally{x=ee}}}})(lh)),lh}var cb;function cE(){return cb||(cb=1,ih.exports=oE()),ih.exports}var oh={exports:{}},Ot={};/**
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 ub;function uE(){if(ub)return Ot;ub=1;var t=co();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(g,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:g,containerInfo:p,implementation:v}}var h=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ot.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return u(g,p,null,v)},Ot.flushSync=function(g){var p=h.T,v=i.p;try{if(h.T=null,i.p=2,g)return g()}finally{h.T=p,i.p=v,i.d.f()}},Ot.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(g,p))},Ot.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},Ot.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?i.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:j}):v==="script"&&i.d.X(g,{crossOrigin:y,integrity:x,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ot.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);i.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(g)},Ot.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin);i.d.L(g,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ot.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);i.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(g)},Ot.requestFormReset=function(g){i.d.r(g)},Ot.unstable_batchedUpdates=function(g,p){return g(p)},Ot.useFormState=function(g,p,v){return h.H.useFormState(g,p,v)},Ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},Ot.version="19.2.7",Ot}var db;function i0(){if(db)return oh.exports;db=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),oh.exports=uE(),oh.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 fb;function dE(){if(fb)return Hl;fb=1;var t=cE(),a=co(),r=i0();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function h(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(u(e)!==e)throw Error(i(188))}function p(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(i(188));return n!==e?null:e}for(var s=e,l=n;;){var d=s.return;if(d===null)break;var f=d.alternate;if(f===null){if(l=d.return,l!==null){s=l;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===s)return g(d),e;if(f===l)return g(d),n;f=f.sibling}throw Error(i(188))}if(s.return!==l.return)s=d,l=f;else{for(var b=!1,R=d.child;R;){if(R===s){b=!0,s=d,l=f;break}if(R===l){b=!0,l=d,s=f;break}R=R.sibling}if(!b){for(R=f.child;R;){if(R===s){b=!0,s=f,l=d;break}if(R===l){b=!0,l=f,s=d;break}R=R.sibling}if(!b)throw Error(i(189))}}if(s.alternate!==l)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case B:return"Suspense";case q:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case T:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case A:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return n=e.displayName||null,n!==null?n:te(e.type)||"Memo";case D:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}var ce=Array.isArray,P=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ye=[],ae=-1;function L(e){return{current:e}}function Z(e){0>ae||(e.current=ye[ae],ye[ae]=null,ae--)}function re(e,n){ae++,ye[ae]=e.current,e.current=n}var ie=L(null),le=L(null),he=L(null),xe=L(null);function Be(e,n){switch(re(he,n),re(le,e),re(ie,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Rv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Rv(n),e=Cv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ie),re(ie,e)}function ve(){Z(ie),Z(le),Z(he)}function zt(e){e.memoizedState!==null&&re(xe,e);var n=ie.current,s=Cv(n,e.type);n!==s&&(re(le,e),re(ie,s))}function jt(e){le.current===e&&(Z(ie),Z(le)),xe.current===e&&(Z(xe),zl._currentValue=ee)}var kt,Bt;function bt(e){if(kt===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);kt=n&&n[1]||"",Bt=-1<s.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+kt+e+Bt}var Ls=!1;function Fa(e,n){if(!e||Ls)return"";Ls=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(Y){var Q=Y}Reflect.construct(e,[],W)}else{try{W.call()}catch(Y){Q=Y}e.call(W.prototype)}}else{try{throw Error()}catch(Y){Q=Y}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(Y){if(Y&&Q&&typeof Y.stack=="string")return[Y.stack,Q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),b=f[0],R=f[1];if(b&&R){var M=b.split(`
44
- `),I=R.split(`
45
- `);for(d=l=0;l<M.length&&!M[l].includes("DetermineComponentFrameRoot");)l++;for(;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;if(l===M.length||d===I.length)for(l=M.length-1,d=I.length-1;1<=l&&0<=d&&M[l]!==I[d];)d--;for(;1<=l&&0<=d;l--,d--)if(M[l]!==I[d]){if(l!==1||d!==1)do if(l--,d--,0>d||M[l]!==I[d]){var $=`
46
- `+M[l].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=l&&0<=d);break}}}finally{Ls=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?bt(s):""}function Rr(e,n){switch(e.tag){case 26:case 27:case 5:return bt(e.type);case 16:return bt("Lazy");case 13:return e.child!==n&&n!==null?bt("Suspense Fallback"):bt("Suspense");case 19:return bt("SuspenseList");case 0:case 15:return Fa(e.type,!1);case 11:return Fa(e.type.render,!1);case 1:return Fa(e.type,!0);case 31:return bt("Activity");default:return""}}function zn(e){try{var n="",s=null;do n+=Rr(e,s),s=e,e=e.return;while(e);return n}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var xn=Object.prototype.hasOwnProperty,Bn=t.unstable_scheduleCallback,Yi=t.unstable_cancelCallback,mo=t.unstable_shouldYield,qu=t.unstable_requestPaint,Mt=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Et=t.unstable_ImmediatePriority,Vn=t.unstable_UserBlockingPriority,Cr=t.unstable_NormalPriority,PS=t.unstable_LowPriority,ip=t.unstable_IdlePriority,FS=t.log,HS=t.unstable_setDisableYieldValue,$i=null,an=null;function Ha(e){if(typeof FS=="function"&&HS(e),an&&typeof an.setStrictMode=="function")try{an.setStrictMode($i,e)}catch{}}var sn=Math.clz32?Math.clz32:IS,qS=Math.log,GS=Math.LN2;function IS(e){return e>>>=0,e===0?32:31-(qS(e)/GS|0)|0}var po=256,go=262144,yo=4194304;function zs(e){var n=e&42;if(n!==0)return n;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 vo(e,n,s){var l=e.pendingLanes;if(l===0)return 0;var d=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var R=l&134217727;return R!==0?(l=R&~f,l!==0?d=zs(l):(b&=R,b!==0?d=zs(b):s||(s=R&~e,s!==0&&(d=zs(s))))):(R=l&~f,R!==0?d=zs(R):b!==0?d=zs(b):s||(s=l&~e,s!==0&&(d=zs(s)))),d===0?0:n!==0&&n!==d&&(n&f)===0&&(f=d&-d,s=n&-n,f>=s||f===32&&(s&4194048)!==0)?n:d}function Xi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function QS(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 lp(){var e=yo;return yo<<=1,(yo&62914560)===0&&(yo=4194304),e}function Gu(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Zi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function VS(e,n,s,l,d,f){var b=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var R=e.entanglements,M=e.expirationTimes,I=e.hiddenUpdates;for(s=b&~s;0<s;){var $=31-sn(s),W=1<<$;R[$]=0,M[$]=-1;var Q=I[$];if(Q!==null)for(I[$]=null,$=0;$<Q.length;$++){var Y=Q[$];Y!==null&&(Y.lane&=-536870913)}s&=~W}l!==0&&op(e,l,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(b&~n))}function op(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-sn(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|s&261930}function cp(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var l=31-sn(s),d=1<<l;d&n|e[l]&n&&(e[l]|=n),s&=~d}}function up(e,n){var s=n&-n;return s=(s&42)!==0?1:Iu(s),(s&(e.suspendedLanes|n))!==0?0:s}function Iu(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 Qu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dp(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Zv(e.type))}function fp(e,n){var s=V.p;try{return V.p=e,n()}finally{V.p=s}}var qa=Math.random().toString(36).slice(2),Nt="__reactFiber$"+qa,Gt="__reactProps$"+qa,_r="__reactContainer$"+qa,Vu="__reactEvents$"+qa,YS="__reactListeners$"+qa,$S="__reactHandles$"+qa,hp="__reactResources$"+qa,Ki="__reactMarker$"+qa;function Yu(e){delete e[Nt],delete e[Gt],delete e[Vu],delete e[YS],delete e[$S]}function Ar(e){var n=e[Nt];if(n)return n;for(var s=e.parentNode;s;){if(n=s[_r]||s[Nt]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=Dv(e);e!==null;){if(s=e[Nt])return s;e=Dv(e)}return n}e=s,s=e.parentNode}return null}function Tr(e){if(e=e[Nt]||e[_r]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Wi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function kr(e){var n=e[hp];return n||(n=e[hp]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function xt(e){e[Ki]=!0}var mp=new Set,pp={};function Bs(e,n){Mr(e,n),Mr(e+"Capture",n)}function Mr(e,n){for(pp[e]=n,e=0;e<n.length;e++)mp.add(n[e])}var XS=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]*$"),gp={},yp={};function ZS(e){return xn.call(yp,e)?!0:xn.call(gp,e)?!1:XS.test(e)?yp[e]=!0:(gp[e]=!0,!1)}function bo(e,n,s){if(ZS(n))if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+s)}}function xo(e,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+s)}}function oa(e,n,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(n,s,""+l)}}function Sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function KS(e,n,s){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,f=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(b){s=""+b,f.call(this,b)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(b){s=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function $u(e){if(!e._valueTracker){var n=vp(e)?"checked":"value";e._valueTracker=KS(e,n,""+e[n])}}function bp(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),l="";return e&&(l=vp(e)?e.checked?"true":"false":e.value),e=l,e!==s?(n.setValue(e),!0):!1}function So(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 WS=/[\n"\\]/g;function wn(e){return e.replace(WS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Xu(e,n,s,l,d,f,b,R){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Sn(n)):e.value!==""+Sn(n)&&(e.value=""+Sn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Zu(e,b,Sn(n)):s!=null?Zu(e,b,Sn(s)):l!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+Sn(R):e.removeAttribute("name")}function xp(e,n,s,l,d,f,b,R){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||s!=null){if(!(f!=="submit"&&f!=="reset"||n!=null)){$u(e);return}s=s!=null?""+Sn(s):"",n=n!=null?""+Sn(n):s,R||n===e.value||(e.value=n),e.defaultValue=n}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=R?e.checked:!!l,e.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),$u(e)}function Zu(e,n,s){n==="number"&&So(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Or(e,n,s,l){if(e=e.options,n){n={};for(var d=0;d<s.length;d++)n["$"+s[d]]=!0;for(s=0;s<e.length;s++)d=n.hasOwnProperty("$"+e[s].value),e[s].selected!==d&&(e[s].selected=d),d&&l&&(e[s].defaultSelected=!0)}else{for(s=""+Sn(s),n=null,d=0;d<e.length;d++){if(e[d].value===s){e[d].selected=!0,l&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function Sp(e,n,s){if(n!=null&&(n=""+Sn(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+Sn(s):""}function wp(e,n,s,l){if(n==null){if(l!=null){if(s!=null)throw Error(i(92));if(ce(l)){if(1<l.length)throw Error(i(93));l=l[0]}s=l}s==null&&(s=""),n=s}s=Sn(n),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l),$u(e)}function Dr(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var JS=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 jp(e,n,s){var l=n.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,s):typeof s!="number"||s===0||JS.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function Ep(e,n,s){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var d in n)l=n[d],n.hasOwnProperty(d)&&s[d]!==l&&jp(e,d,l)}else for(var f in n)n.hasOwnProperty(f)&&jp(e,f,n[f])}function Ku(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 ew=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"]]),tw=/^[\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 wo(e){return tw.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ca(){}var Wu=null;function Ju(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lr=null,zr=null;function Np(e){var n=Tr(e);if(n&&(e=n.stateNode)){var s=e[Gt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Xu(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+wn(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var l=s[n];if(l!==e&&l.form===e.form){var d=l[Gt]||null;if(!d)throw Error(i(90));Xu(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<s.length;n++)l=s[n],l.form===e.form&&bp(l)}break e;case"textarea":Sp(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&Or(e,!!s.multiple,n,!1)}}}var ed=!1;function Rp(e,n,s){if(ed)return e(n,s);ed=!0;try{var l=e(n);return l}finally{if(ed=!1,(Lr!==null||zr!==null)&&(cc(),Lr&&(n=Lr,e=zr,zr=Lr=null,Np(n),e)))for(n=0;n<e.length;n++)Np(e[n])}}function Ji(e,n){var s=e.stateNode;if(s===null)return null;var l=s[Gt]||null;if(l===null)return null;s=l[n];e:switch(n){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(s&&typeof s!="function")throw Error(i(231,n,typeof s));return s}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=!1;if(ua)try{var el={};Object.defineProperty(el,"passive",{get:function(){td=!0}}),window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{td=!1}var Ga=null,nd=null,jo=null;function Cp(){if(jo)return jo;var e,n=nd,s=n.length,l,d="value"in Ga?Ga.value:Ga.textContent,f=d.length;for(e=0;e<s&&n[e]===d[e];e++);var b=s-e;for(l=1;l<=b&&n[s-l]===d[f-l];l++);return jo=d.slice(e,1<l?1-l:void 0)}function Eo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function No(){return!0}function _p(){return!1}function It(e){function n(s,l,d,f,b){this._reactName=s,this._targetInst=d,this.type=l,this.nativeEvent=f,this.target=b,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(s=e[R],this[R]=s?s(f):f[R]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?No:_p,this.isPropagationStopped=_p,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=No)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),n}var Us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ro=It(Us),tl=y({},Us,{view:0,detail:0}),nw=It(tl),ad,sd,nl,Co=y({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,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!==nl&&(nl&&e.type==="mousemove"?(ad=e.screenX-nl.screenX,sd=e.screenY-nl.screenY):sd=ad=0,nl=e),ad)},movementY:function(e){return"movementY"in e?e.movementY:sd}}),Ap=It(Co),aw=y({},Co,{dataTransfer:0}),sw=It(aw),rw=y({},tl,{relatedTarget:0}),rd=It(rw),iw=y({},Us,{animationName:0,elapsedTime:0,pseudoElement:0}),lw=It(iw),ow=y({},Us,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cw=It(ow),uw=y({},Us,{data:0}),Tp=It(uw),dw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fw={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"},hw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mw(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=hw[e])?!!n[e]:!1}function id(){return mw}var pw=y({},tl,{key:function(e){if(e.key){var n=dw[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gw=It(pw),yw=y({},Co,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kp=It(yw),vw=y({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),bw=It(vw),xw=y({},Us,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sw=It(xw),ww=y({},Co,{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}),jw=It(ww),Ew=y({},Us,{newState:0,oldState:0}),Nw=It(Ew),Rw=[9,13,27,32],ld=ua&&"CompositionEvent"in window,al=null;ua&&"documentMode"in document&&(al=document.documentMode);var Cw=ua&&"TextEvent"in window&&!al,Mp=ua&&(!ld||al&&8<al&&11>=al),Op=" ",Dp=!1;function Lp(e,n){switch(e){case"keyup":return Rw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function _w(e,n){switch(e){case"compositionend":return zp(n);case"keypress":return n.which!==32?null:(Dp=!0,Op);case"textInput":return e=n.data,e===Op&&Dp?null:e;default:return null}}function Aw(e,n){if(Br)return e==="compositionend"||!ld&&Lp(e,n)?(e=Cp(),jo=nd=Ga=null,Br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Mp&&n.locale!=="ko"?null:n.data;default:return null}}var Tw={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 Bp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Tw[e.type]:n==="textarea"}function Up(e,n,s,l){Lr?zr?zr.push(l):zr=[l]:Lr=l,n=gc(n,"onChange"),0<n.length&&(s=new Ro("onChange","change",null,s,l),e.push({event:s,listeners:n}))}var sl=null,rl=null;function kw(e){xv(e,0)}function _o(e){var n=Wi(e);if(bp(n))return e}function Pp(e,n){if(e==="change")return n}var Fp=!1;if(ua){var od;if(ua){var cd="oninput"in document;if(!cd){var Hp=document.createElement("div");Hp.setAttribute("oninput","return;"),cd=typeof Hp.oninput=="function"}od=cd}else od=!1;Fp=od&&(!document.documentMode||9<document.documentMode)}function qp(){sl&&(sl.detachEvent("onpropertychange",Gp),rl=sl=null)}function Gp(e){if(e.propertyName==="value"&&_o(rl)){var n=[];Up(n,rl,e,Ju(e)),Rp(kw,n)}}function Mw(e,n,s){e==="focusin"?(qp(),sl=n,rl=s,sl.attachEvent("onpropertychange",Gp)):e==="focusout"&&qp()}function Ow(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _o(rl)}function Dw(e,n){if(e==="click")return _o(n)}function Lw(e,n){if(e==="input"||e==="change")return _o(n)}function zw(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var rn=typeof Object.is=="function"?Object.is:zw;function il(e,n){if(rn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),l=Object.keys(n);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var d=s[l];if(!xn.call(n,d)||!rn(e[d],n[d]))return!1}return!0}function Ip(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qp(e,n){var s=Ip(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=n&&l>=n)return{node:s,offset:n-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Ip(s)}}function Vp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Yp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=So(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=So(e.document)}return n}function ud(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Bw=ua&&"documentMode"in document&&11>=document.documentMode,Ur=null,dd=null,ll=null,fd=!1;function $p(e,n,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;fd||Ur==null||Ur!==So(l)||(l=Ur,"selectionStart"in l&&ud(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}),ll&&il(ll,l)||(ll=l,l=gc(dd,"onSelect"),0<l.length&&(n=new Ro("onSelect","select",null,n,s),e.push({event:n,listeners:l}),n.target=Ur)))}function Ps(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var Pr={animationend:Ps("Animation","AnimationEnd"),animationiteration:Ps("Animation","AnimationIteration"),animationstart:Ps("Animation","AnimationStart"),transitionrun:Ps("Transition","TransitionRun"),transitionstart:Ps("Transition","TransitionStart"),transitioncancel:Ps("Transition","TransitionCancel"),transitionend:Ps("Transition","TransitionEnd")},hd={},Xp={};ua&&(Xp=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Fs(e){if(hd[e])return hd[e];if(!Pr[e])return e;var n=Pr[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in Xp)return hd[e]=n[s];return e}var Zp=Fs("animationend"),Kp=Fs("animationiteration"),Wp=Fs("animationstart"),Uw=Fs("transitionrun"),Pw=Fs("transitionstart"),Fw=Fs("transitioncancel"),Jp=Fs("transitionend"),eg=new Map,md="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(" ");md.push("scrollEnd");function Un(e,n){eg.set(e,n),Bs(n,[e])}var Ao=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jn=[],Fr=0,pd=0;function To(){for(var e=Fr,n=pd=Fr=0;n<e;){var s=jn[n];jn[n++]=null;var l=jn[n];jn[n++]=null;var d=jn[n];jn[n++]=null;var f=jn[n];if(jn[n++]=null,l!==null&&d!==null){var b=l.pending;b===null?d.next=d:(d.next=b.next,b.next=d),l.pending=d}f!==0&&tg(s,d,f)}}function ko(e,n,s,l){jn[Fr++]=e,jn[Fr++]=n,jn[Fr++]=s,jn[Fr++]=l,pd|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function gd(e,n,s,l){return ko(e,n,s,l),Mo(e)}function Hs(e,n){return ko(e,null,null,n),Mo(e)}function tg(e,n,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var d=!1,f=e.return;f!==null;)f.childLanes|=s,l=f.alternate,l!==null&&(l.childLanes|=s),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&n!==null&&(d=31-sn(s),e=f.hiddenUpdates,l=e[d],l===null?e[d]=[n]:l.push(n),n.lane=s|536870912),f):null}function Mo(e){if(50<Al)throw Al=0,Rf=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Hr={};function Hw(e,n,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,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 ln(e,n,s,l){return new Hw(e,n,s,l)}function yd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function da(e,n){var s=e.alternate;return s===null?(s=ln(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function ng(e,n){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,n=s.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Oo(e,n,s,l,d,f){var b=0;if(l=e,typeof e=="function")yd(e)&&(b=1);else if(typeof e=="string")b=Vj(e,s,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=ln(31,s,n,d),e.elementType=z,e.lanes=f,e;case S:return qs(s.children,d,f,n);case E:b=8,d|=24;break;case _:return e=ln(12,s,n,d|2),e.elementType=_,e.lanes=f,e;case B:return e=ln(13,s,n,d),e.elementType=B,e.lanes=f,e;case q:return e=ln(19,s,n,d),e.elementType=q,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:b=10;break e;case C:b=9;break e;case A:b=11;break e;case k:b=14;break e;case D:b=16,l=null;break e}b=29,s=Error(i(130,e===null?"null":typeof e,"")),l=null}return n=ln(b,s,n,d),n.elementType=e,n.type=l,n.lanes=f,n}function qs(e,n,s,l){return e=ln(7,e,l,n),e.lanes=s,e}function vd(e,n,s){return e=ln(6,e,null,n),e.lanes=s,e}function ag(e){var n=ln(18,null,null,0);return n.stateNode=e,n}function bd(e,n,s){return n=ln(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var sg=new WeakMap;function En(e,n){if(typeof e=="object"&&e!==null){var s=sg.get(e);return s!==void 0?s:(n={value:e,source:n,stack:zn(n)},sg.set(e,n),n)}return{value:e,source:n,stack:zn(n)}}var qr=[],Gr=0,Do=null,ol=0,Nn=[],Rn=0,Ia=null,Yn=1,$n="";function fa(e,n){qr[Gr++]=ol,qr[Gr++]=Do,Do=e,ol=n}function rg(e,n,s){Nn[Rn++]=Yn,Nn[Rn++]=$n,Nn[Rn++]=Ia,Ia=e;var l=Yn;e=$n;var d=32-sn(l)-1;l&=~(1<<d),s+=1;var f=32-sn(n)+d;if(30<f){var b=d-d%5;f=(l&(1<<b)-1).toString(32),l>>=b,d-=b,Yn=1<<32-sn(n)+d|s<<d|l,$n=f+e}else Yn=1<<f|s<<d|l,$n=e}function xd(e){e.return!==null&&(fa(e,1),rg(e,1,0))}function Sd(e){for(;e===Do;)Do=qr[--Gr],qr[Gr]=null,ol=qr[--Gr],qr[Gr]=null;for(;e===Ia;)Ia=Nn[--Rn],Nn[Rn]=null,$n=Nn[--Rn],Nn[Rn]=null,Yn=Nn[--Rn],Nn[Rn]=null}function ig(e,n){Nn[Rn++]=Yn,Nn[Rn++]=$n,Nn[Rn++]=Ia,Yn=n.id,$n=n.overflow,Ia=e}var Rt=null,Ke=null,De=!1,Qa=null,Cn=!1,wd=Error(i(519));function Va(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cl(En(n,e)),wd}function lg(e){var n=e.stateNode,s=e.type,l=e.memoizedProps;switch(n[Nt]=e,n[Gt]=l,s){case"dialog":ke("cancel",n),ke("close",n);break;case"iframe":case"object":case"embed":ke("load",n);break;case"video":case"audio":for(s=0;s<kl.length;s++)ke(kl[s],n);break;case"source":ke("error",n);break;case"img":case"image":case"link":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"input":ke("invalid",n),xp(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ke("invalid",n);break;case"textarea":ke("invalid",n),wp(n,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||n.textContent===""+s||l.suppressHydrationWarning===!0||Ev(n.textContent,s)?(l.popover!=null&&(ke("beforetoggle",n),ke("toggle",n)),l.onScroll!=null&&ke("scroll",n),l.onScrollEnd!=null&&ke("scrollend",n),l.onClick!=null&&(n.onclick=ca),n=!0):n=!1,n||Va(e,!0)}function og(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:Cn=!1;return;case 27:case 3:Cn=!0;return;default:Rt=Rt.return}}function Ir(e){if(e!==Rt)return!1;if(!De)return og(e),De=!0,!1;var n=e.tag,s;if((s=n!==3&&n!==27)&&((s=n===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||Hf(e.type,e.memoizedProps)),s=!s),s&&Ke&&Va(e),og(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ke=Ov(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ke=Ov(e)}else n===27?(n=Ke,is(e.type)?(e=Vf,Vf=null,Ke=e):Ke=n):Ke=Rt?An(e.stateNode.nextSibling):null;return!0}function Gs(){Ke=Rt=null,De=!1}function jd(){var e=Qa;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),Qa=null),e}function cl(e){Qa===null?Qa=[e]:Qa.push(e)}var Ed=L(null),Is=null,ha=null;function Ya(e,n,s){re(Ed,n._currentValue),n._currentValue=s}function ma(e){e._currentValue=Ed.current,Z(Ed)}function Nd(e,n,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===s)break;e=e.return}}function Rd(e,n,s,l){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var b=d.child;f=f.firstContext;e:for(;f!==null;){var R=f;f=d;for(var M=0;M<n.length;M++)if(R.context===n[M]){f.lanes|=s,R=f.alternate,R!==null&&(R.lanes|=s),Nd(f.return,s,e),l||(b=null);break e}f=R.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(i(341));b.lanes|=s,f=b.alternate,f!==null&&(f.lanes|=s),Nd(b,s,e),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===e){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Qr(e,n,s,l){e=null;for(var d=n,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var R=d.type;rn(d.pendingProps.value,b.value)||(e!==null?e.push(R):e=[R])}}else if(d===xe.current){if(b=d.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(zl):e=[zl])}d=d.return}e!==null&&Rd(n,e,s,l),n.flags|=262144}function Lo(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qs(e){Is=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return cg(Is,e)}function zo(e,n){return Is===null&&Qs(e),cg(e,n)}function cg(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},ha===null){if(e===null)throw Error(i(308));ha=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else ha=ha.next=n;return s}var qw=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(s){return s()})}},Gw=t.unstable_scheduleCallback,Iw=t.unstable_NormalPriority,ot={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cd(){return{controller:new qw,data:new Map,refCount:0}}function ul(e){e.refCount--,e.refCount===0&&Gw(Iw,function(){e.controller.abort()})}var dl=null,_d=0,Vr=0,Yr=null;function Qw(e,n){if(dl===null){var s=dl=[];_d=0,Vr=Mf(),Yr={status:"pending",value:void 0,then:function(l){s.push(l)}}}return _d++,n.then(ug,ug),n}function ug(){if(--_d===0&&dl!==null){Yr!==null&&(Yr.status="fulfilled");var e=dl;dl=null,Vr=0,Yr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Vw(e,n){var s=[],l={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var d=0;d<s.length;d++)(0,s[d])(n)},function(d){for(l.status="rejected",l.reason=d,d=0;d<s.length;d++)(0,s[d])(void 0)}),l}var dg=P.S;P.S=function(e,n){$y=Mt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Qw(e,n),dg!==null&&dg(e,n)};var Vs=L(null);function Ad(){var e=Vs.current;return e!==null?e:$e.pooledCache}function Bo(e,n){n===null?re(Vs,Vs.current):re(Vs,n.pool)}function fg(){var e=Ad();return e===null?null:{parent:ot._currentValue,pool:e}}var $r=Error(i(460)),Td=Error(i(474)),Uo=Error(i(542)),Po={then:function(){}};function hg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mg(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(ca,ca),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,gg(e),e;default:if(typeof n.status=="string")n.then(ca,ca);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=l}},function(l){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,gg(e),e}throw $s=n,$r}}function Ys(e){try{var n=e._init;return n(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?($s=s,$r):s}}var $s=null;function pg(){if($s===null)throw Error(i(459));var e=$s;return $s=null,e}function gg(e){if(e===$r||e===Uo)throw Error(i(483))}var Xr=null,fl=0;function Fo(e){var n=fl;return fl+=1,Xr===null&&(Xr=[]),mg(Xr,e,n)}function hl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ho(e,n){throw n.$$typeof===x?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function yg(e){function n(F,U){if(e){var G=F.deletions;G===null?(F.deletions=[U],F.flags|=16):G.push(U)}}function s(F,U){if(!e)return null;for(;U!==null;)n(F,U),U=U.sibling;return null}function l(F){for(var U=new Map;F!==null;)F.key!==null?U.set(F.key,F):U.set(F.index,F),F=F.sibling;return U}function d(F,U){return F=da(F,U),F.index=0,F.sibling=null,F}function f(F,U,G){return F.index=G,e?(G=F.alternate,G!==null?(G=G.index,G<U?(F.flags|=67108866,U):G):(F.flags|=67108866,U)):(F.flags|=1048576,U)}function b(F){return e&&F.alternate===null&&(F.flags|=67108866),F}function R(F,U,G,K){return U===null||U.tag!==6?(U=vd(G,F.mode,K),U.return=F,U):(U=d(U,G),U.return=F,U)}function M(F,U,G,K){var ge=G.type;return ge===S?$(F,U,G.props.children,K,G.key):U!==null&&(U.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===D&&Ys(ge)===U.type)?(U=d(U,G.props),hl(U,G),U.return=F,U):(U=Oo(G.type,G.key,G.props,null,F.mode,K),hl(U,G),U.return=F,U)}function I(F,U,G,K){return U===null||U.tag!==4||U.stateNode.containerInfo!==G.containerInfo||U.stateNode.implementation!==G.implementation?(U=bd(G,F.mode,K),U.return=F,U):(U=d(U,G.children||[]),U.return=F,U)}function $(F,U,G,K,ge){return U===null||U.tag!==7?(U=qs(G,F.mode,K,ge),U.return=F,U):(U=d(U,G),U.return=F,U)}function W(F,U,G){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=vd(""+U,F.mode,G),U.return=F,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return G=Oo(U.type,U.key,U.props,null,F.mode,G),hl(G,U),G.return=F,G;case w:return U=bd(U,F.mode,G),U.return=F,U;case D:return U=Ys(U),W(F,U,G)}if(ce(U)||ne(U))return U=qs(U,F.mode,G,null),U.return=F,U;if(typeof U.then=="function")return W(F,Fo(U),G);if(U.$$typeof===T)return W(F,zo(F,U),G);Ho(F,U)}return null}function Q(F,U,G,K){var ge=U!==null?U.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return ge!==null?null:R(F,U,""+G,K);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case j:return G.key===ge?M(F,U,G,K):null;case w:return G.key===ge?I(F,U,G,K):null;case D:return G=Ys(G),Q(F,U,G,K)}if(ce(G)||ne(G))return ge!==null?null:$(F,U,G,K,null);if(typeof G.then=="function")return Q(F,U,Fo(G),K);if(G.$$typeof===T)return Q(F,U,zo(F,G),K);Ho(F,G)}return null}function Y(F,U,G,K,ge){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return F=F.get(G)||null,R(U,F,""+K,ge);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return F=F.get(K.key===null?G:K.key)||null,M(U,F,K,ge);case w:return F=F.get(K.key===null?G:K.key)||null,I(U,F,K,ge);case D:return K=Ys(K),Y(F,U,G,K,ge)}if(ce(K)||ne(K))return F=F.get(G)||null,$(U,F,K,ge,null);if(typeof K.then=="function")return Y(F,U,G,Fo(K),ge);if(K.$$typeof===T)return Y(F,U,G,zo(U,K),ge);Ho(U,K)}return null}function fe(F,U,G,K){for(var ge=null,Ue=null,me=U,Ne=U=0,Oe=null;me!==null&&Ne<G.length;Ne++){me.index>Ne?(Oe=me,me=null):Oe=me.sibling;var Pe=Q(F,me,G[Ne],K);if(Pe===null){me===null&&(me=Oe);break}e&&me&&Pe.alternate===null&&n(F,me),U=f(Pe,U,Ne),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe,me=Oe}if(Ne===G.length)return s(F,me),De&&fa(F,Ne),ge;if(me===null){for(;Ne<G.length;Ne++)me=W(F,G[Ne],K),me!==null&&(U=f(me,U,Ne),Ue===null?ge=me:Ue.sibling=me,Ue=me);return De&&fa(F,Ne),ge}for(me=l(me);Ne<G.length;Ne++)Oe=Y(me,F,Ne,G[Ne],K),Oe!==null&&(e&&Oe.alternate!==null&&me.delete(Oe.key===null?Ne:Oe.key),U=f(Oe,U,Ne),Ue===null?ge=Oe:Ue.sibling=Oe,Ue=Oe);return e&&me.forEach(function(ds){return n(F,ds)}),De&&fa(F,Ne),ge}function be(F,U,G,K){if(G==null)throw Error(i(151));for(var ge=null,Ue=null,me=U,Ne=U=0,Oe=null,Pe=G.next();me!==null&&!Pe.done;Ne++,Pe=G.next()){me.index>Ne?(Oe=me,me=null):Oe=me.sibling;var ds=Q(F,me,Pe.value,K);if(ds===null){me===null&&(me=Oe);break}e&&me&&ds.alternate===null&&n(F,me),U=f(ds,U,Ne),Ue===null?ge=ds:Ue.sibling=ds,Ue=ds,me=Oe}if(Pe.done)return s(F,me),De&&fa(F,Ne),ge;if(me===null){for(;!Pe.done;Ne++,Pe=G.next())Pe=W(F,Pe.value,K),Pe!==null&&(U=f(Pe,U,Ne),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe);return De&&fa(F,Ne),ge}for(me=l(me);!Pe.done;Ne++,Pe=G.next())Pe=Y(me,F,Ne,Pe.value,K),Pe!==null&&(e&&Pe.alternate!==null&&me.delete(Pe.key===null?Ne:Pe.key),U=f(Pe,U,Ne),Ue===null?ge=Pe:Ue.sibling=Pe,Ue=Pe);return e&&me.forEach(function(aE){return n(F,aE)}),De&&fa(F,Ne),ge}function Ye(F,U,G,K){if(typeof G=="object"&&G!==null&&G.type===S&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case j:e:{for(var ge=G.key;U!==null;){if(U.key===ge){if(ge=G.type,ge===S){if(U.tag===7){s(F,U.sibling),K=d(U,G.props.children),K.return=F,F=K;break e}}else if(U.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===D&&Ys(ge)===U.type){s(F,U.sibling),K=d(U,G.props),hl(K,G),K.return=F,F=K;break e}s(F,U);break}else n(F,U);U=U.sibling}G.type===S?(K=qs(G.props.children,F.mode,K,G.key),K.return=F,F=K):(K=Oo(G.type,G.key,G.props,null,F.mode,K),hl(K,G),K.return=F,F=K)}return b(F);case w:e:{for(ge=G.key;U!==null;){if(U.key===ge)if(U.tag===4&&U.stateNode.containerInfo===G.containerInfo&&U.stateNode.implementation===G.implementation){s(F,U.sibling),K=d(U,G.children||[]),K.return=F,F=K;break e}else{s(F,U);break}else n(F,U);U=U.sibling}K=bd(G,F.mode,K),K.return=F,F=K}return b(F);case D:return G=Ys(G),Ye(F,U,G,K)}if(ce(G))return fe(F,U,G,K);if(ne(G)){if(ge=ne(G),typeof ge!="function")throw Error(i(150));return G=ge.call(G),be(F,U,G,K)}if(typeof G.then=="function")return Ye(F,U,Fo(G),K);if(G.$$typeof===T)return Ye(F,U,zo(F,G),K);Ho(F,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,U!==null&&U.tag===6?(s(F,U.sibling),K=d(U,G),K.return=F,F=K):(s(F,U),K=vd(G,F.mode,K),K.return=F,F=K),b(F)):s(F,U)}return function(F,U,G,K){try{fl=0;var ge=Ye(F,U,G,K);return Xr=null,ge}catch(me){if(me===$r||me===Uo)throw me;var Ue=ln(29,me,null,F.mode);return Ue.lanes=K,Ue.return=F,Ue}finally{}}}var Xs=yg(!0),vg=yg(!1),$a=!1;function kd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Md(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,n,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Fe&2)!==0){var d=l.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n,n=Mo(e),tg(e,null,s),n}return ko(e,l,n,s),Mo(e)}function ml(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,cp(e,s)}}function Od(e,n){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var d=null,f=null;if(s=s.firstBaseUpdate,s!==null){do{var b={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};f===null?d=f=b:f=f.next=b,s=s.next}while(s!==null);f===null?d=f=n:f=f.next=n}else d=f=n;s={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}var Dd=!1;function pl(){if(Dd){var e=Yr;if(e!==null)throw e}}function gl(e,n,s,l){Dd=!1;var d=e.updateQueue;$a=!1;var f=d.firstBaseUpdate,b=d.lastBaseUpdate,R=d.shared.pending;if(R!==null){d.shared.pending=null;var M=R,I=M.next;M.next=null,b===null?f=I:b.next=I,b=M;var $=e.alternate;$!==null&&($=$.updateQueue,R=$.lastBaseUpdate,R!==b&&(R===null?$.firstBaseUpdate=I:R.next=I,$.lastBaseUpdate=M))}if(f!==null){var W=d.baseState;b=0,$=I=M=null,R=f;do{var Q=R.lane&-536870913,Y=Q!==R.lane;if(Y?(Me&Q)===Q:(l&Q)===Q){Q!==0&&Q===Vr&&(Dd=!0),$!==null&&($=$.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var fe=e,be=R;Q=n;var Ye=s;switch(be.tag){case 1:if(fe=be.payload,typeof fe=="function"){W=fe.call(Ye,W,Q);break e}W=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=be.payload,Q=typeof fe=="function"?fe.call(Ye,W,Q):fe,Q==null)break e;W=y({},W,Q);break e;case 2:$a=!0}}Q=R.callback,Q!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=d.callbacks,Y===null?d.callbacks=[Q]:Y.push(Q))}else Y={lane:Q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},$===null?(I=$=Y,M=W):$=$.next=Y,b|=Q;if(R=R.next,R===null){if(R=d.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,d.lastBaseUpdate=Y,d.shared.pending=null}}while(!0);$===null&&(M=W),d.baseState=M,d.firstBaseUpdate=I,d.lastBaseUpdate=$,f===null&&(d.shared.lanes=0),ts|=b,e.lanes=b,e.memoizedState=W}}function bg(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function xg(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)bg(s[e],n)}var Zr=L(null),qo=L(0);function Sg(e,n){e=ja,re(qo,e),re(Zr,n),ja=e|n.baseLanes}function Ld(){re(qo,ja),re(Zr,Zr.current)}function zd(){ja=qo.current,Z(Zr),Z(qo)}var on=L(null),_n=null;function Ka(e){var n=e.alternate;re(it,it.current&1),re(on,e),_n===null&&(n===null||Zr.current!==null||n.memoizedState!==null)&&(_n=e)}function Bd(e){re(it,it.current),re(on,e),_n===null&&(_n=e)}function wg(e){e.tag===22?(re(it,it.current),re(on,e),_n===null&&(_n=e)):Wa()}function Wa(){re(it,it.current),re(on,on.current)}function cn(e){Z(on),_n===e&&(_n=null),Z(it)}var it=L(0);function Go(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||If(s)||Qf(s)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var pa=0,Ee=null,Qe=null,ct=null,Io=!1,Kr=!1,Zs=!1,Qo=0,yl=0,Wr=null,Yw=0;function at(){throw Error(i(321))}function Ud(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!rn(e[s],n[s]))return!1;return!0}function Pd(e,n,s,l,d,f){return pa=f,Ee=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,P.H=e===null||e.memoizedState===null?ry:ef,Zs=!1,f=s(l,d),Zs=!1,Kr&&(f=Eg(n,s,l,d)),jg(e),f}function jg(e){P.H=xl;var n=Qe!==null&&Qe.next!==null;if(pa=0,ct=Qe=Ee=null,Io=!1,yl=0,Wr=null,n)throw Error(i(300));e===null||ut||(e=e.dependencies,e!==null&&Lo(e)&&(ut=!0))}function Eg(e,n,s,l){Ee=e;var d=0;do{if(Kr&&(Wr=null),yl=0,Kr=!1,25<=d)throw Error(i(301));if(d+=1,ct=Qe=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}P.H=iy,f=n(s,l)}while(Kr);return f}function $w(){var e=P.H,n=e.useState()[0];return n=typeof n.then=="function"?vl(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Ee.flags|=1024),n}function Fd(){var e=Qo!==0;return Qo=0,e}function Hd(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}function qd(e){if(Io){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Io=!1}pa=0,ct=Qe=Ee=null,Kr=!1,yl=Qo=0,Wr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Ee.memoizedState=ct=e:ct=ct.next=e,ct}function lt(){if(Qe===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=ct===null?Ee.memoizedState:ct.next;if(n!==null)ct=n,Qe=e;else{if(e===null)throw Ee.alternate===null?Error(i(467)):Error(i(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},ct===null?Ee.memoizedState=ct=e:ct=ct.next=e}return ct}function Vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vl(e){var n=yl;return yl+=1,Wr===null&&(Wr=[]),e=mg(Wr,e,n),n=Ee,(ct===null?n.memoizedState:ct.next)===null&&(n=n.alternate,P.H=n===null||n.memoizedState===null?ry:ef),e}function Yo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vl(e);if(e.$$typeof===T)return Ct(e)}throw Error(i(438,String(e)))}function Gd(e){var n=null,s=Ee.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var l=Ee.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=Vo(),Ee.updateQueue=s),s.memoCache=n,s=n.data[n.index],s===void 0)for(s=n.data[n.index]=Array(e),l=0;l<e;l++)s[l]=H;return n.index++,s}function ga(e,n){return typeof n=="function"?n(e):n}function $o(e){var n=lt();return Id(n,Qe,e)}function Id(e,n,s){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=s;var d=e.baseQueue,f=l.pending;if(f!==null){if(d!==null){var b=d.next;d.next=f.next,f.next=b}n.baseQueue=d=f,l.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{n=d.next;var R=b=null,M=null,I=n,$=!1;do{var W=I.lane&-536870913;if(W!==I.lane?(Me&W)===W:(pa&W)===W){var Q=I.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),W===Vr&&($=!0);else if((pa&Q)===Q){I=I.next,Q===Vr&&($=!0);continue}else W={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(R=M=W,b=f):M=M.next=W,Ee.lanes|=Q,ts|=Q;W=I.action,Zs&&s(f,W),f=I.hasEagerState?I.eagerState:s(f,W)}else Q={lane:W,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(R=M=Q,b=f):M=M.next=Q,Ee.lanes|=W,ts|=W;I=I.next}while(I!==null&&I!==n);if(M===null?b=f:M.next=R,!rn(f,e.memoizedState)&&(ut=!0,$&&(s=Yr,s!==null)))throw s;e.memoizedState=f,e.baseState=b,e.baseQueue=M,l.lastRenderedState=f}return d===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Qd(e){var n=lt(),s=n.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=e;var l=s.dispatch,d=s.pending,f=n.memoizedState;if(d!==null){s.pending=null;var b=d=d.next;do f=e(f,b.action),b=b.next;while(b!==d);rn(f,n.memoizedState)||(ut=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),s.lastRenderedState=f}return[f,l]}function Ng(e,n,s){var l=Ee,d=lt(),f=De;if(f){if(s===void 0)throw Error(i(407));s=s()}else s=n();var b=!rn((Qe||d).memoizedState,s);if(b&&(d.memoizedState=s,ut=!0),d=d.queue,$d(_g.bind(null,l,d,e),[e]),d.getSnapshot!==n||b||ct!==null&&ct.memoizedState.tag&1){if(l.flags|=2048,Jr(9,{destroy:void 0},Cg.bind(null,l,d,s,n),null),$e===null)throw Error(i(349));f||(pa&127)!==0||Rg(l,n,s)}return s}function Rg(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=Ee.updateQueue,n===null?(n=Vo(),Ee.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function Cg(e,n,s,l){n.value=s,n.getSnapshot=l,Ag(n)&&Tg(e)}function _g(e,n,s){return s(function(){Ag(n)&&Tg(e)})}function Ag(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!rn(e,s)}catch{return!0}}function Tg(e){var n=Hs(e,2);n!==null&&Xt(n,e,2)}function Vd(e){var n=Ut();if(typeof e=="function"){var s=e;if(e=s(),Zs){Ha(!0);try{s()}finally{Ha(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},n}function kg(e,n,s,l){return e.baseState=s,Id(e,Qe,typeof l=="function"?l:ga)}function Xw(e,n,s,l,d){if(Ko(e))throw Error(i(485));if(e=n.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){f.listeners.push(b)}};P.T!==null?s(!0):f.isTransition=!1,l(f),s=n.pending,s===null?(f.next=n.pending=f,Mg(n,f)):(f.next=s.next,n.pending=s.next=f)}}function Mg(e,n){var s=n.action,l=n.payload,d=e.state;if(n.isTransition){var f=P.T,b={};P.T=b;try{var R=s(d,l),M=P.S;M!==null&&M(b,R),Og(e,n,R)}catch(I){Yd(e,n,I)}finally{f!==null&&b.types!==null&&(f.types=b.types),P.T=f}}else try{f=s(d,l),Og(e,n,f)}catch(I){Yd(e,n,I)}}function Og(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Dg(e,n,l)},function(l){return Yd(e,n,l)}):Dg(e,n,s)}function Dg(e,n,s){n.status="fulfilled",n.value=s,Lg(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,Mg(e,s)))}function Yd(e,n,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=s,Lg(n),n=n.next;while(n!==l)}e.action=null}function Lg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function zg(e,n){return n}function Bg(e,n){if(De){var s=$e.formState;if(s!==null){e:{var l=Ee;if(De){if(Ke){t:{for(var d=Ke,f=Cn;d.nodeType!==8;){if(!f){d=null;break t}if(d=An(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){Ke=An(d.nextSibling),l=d.data==="F!";break e}}Va(l)}l=!1}l&&(n=s[0])}}return s=Ut(),s.memoizedState=s.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zg,lastRenderedState:n},s.queue=l,s=ny.bind(null,Ee,l),l.dispatch=s,l=Vd(!1),f=Jd.bind(null,Ee,!1,l.queue),l=Ut(),d={state:n,dispatch:null,action:e,pending:null},l.queue=d,s=Xw.bind(null,Ee,d,f,s),d.dispatch=s,l.memoizedState=e,[n,s,!1]}function Ug(e){var n=lt();return Pg(n,Qe,e)}function Pg(e,n,s){if(n=Id(e,n,zg)[0],e=$o(ga)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=vl(n)}catch(b){throw b===$r?Uo:b}else l=n;n=lt();var d=n.queue,f=d.dispatch;return s!==n.memoizedState&&(Ee.flags|=2048,Jr(9,{destroy:void 0},Zw.bind(null,d,s),null)),[l,f,e]}function Zw(e,n){e.action=n}function Fg(e){var n=lt(),s=Qe;if(s!==null)return Pg(n,s,e);lt(),n=n.memoizedState,s=lt();var l=s.queue.dispatch;return s.memoizedState=e,[n,l,!1]}function Jr(e,n,s,l){return e={tag:e,create:s,deps:l,inst:n,next:null},n=Ee.updateQueue,n===null&&(n=Vo(),Ee.updateQueue=n),s=n.lastEffect,s===null?n.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,n.lastEffect=e),e}function Hg(){return lt().memoizedState}function Xo(e,n,s,l){var d=Ut();Ee.flags|=e,d.memoizedState=Jr(1|n,{destroy:void 0},s,l===void 0?null:l)}function Zo(e,n,s,l){var d=lt();l=l===void 0?null:l;var f=d.memoizedState.inst;Qe!==null&&l!==null&&Ud(l,Qe.memoizedState.deps)?d.memoizedState=Jr(n,f,s,l):(Ee.flags|=e,d.memoizedState=Jr(1|n,f,s,l))}function qg(e,n){Xo(8390656,8,e,n)}function $d(e,n){Zo(2048,8,e,n)}function Kw(e){Ee.flags|=4;var n=Ee.updateQueue;if(n===null)n=Vo(),Ee.updateQueue=n,n.events=[e];else{var s=n.events;s===null?n.events=[e]:s.push(e)}}function Gg(e){var n=lt().memoizedState;return Kw({ref:n,nextImpl:e}),function(){if((Fe&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function Ig(e,n){return Zo(4,2,e,n)}function Qg(e,n){return Zo(4,4,e,n)}function Vg(e,n){if(typeof n=="function"){e=e();var s=n(e);return function(){typeof s=="function"?s():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Yg(e,n,s){s=s!=null?s.concat([e]):null,Zo(4,4,Vg.bind(null,n,e),s)}function Xd(){}function $g(e,n){var s=lt();n=n===void 0?null:n;var l=s.memoizedState;return n!==null&&Ud(n,l[1])?l[0]:(s.memoizedState=[e,n],e)}function Xg(e,n){var s=lt();n=n===void 0?null:n;var l=s.memoizedState;if(n!==null&&Ud(n,l[1]))return l[0];if(l=e(),Zs){Ha(!0);try{e()}finally{Ha(!1)}}return s.memoizedState=[l,n],l}function Zd(e,n,s){return s===void 0||(pa&1073741824)!==0&&(Me&261930)===0?e.memoizedState=n:(e.memoizedState=s,e=Zy(),Ee.lanes|=e,ts|=e,s)}function Zg(e,n,s,l){return rn(s,n)?s:Zr.current!==null?(e=Zd(e,s,l),rn(e,n)||(ut=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(Me&261930)===0?(ut=!0,e.memoizedState=s):(e=Zy(),Ee.lanes|=e,ts|=e,n)}function Kg(e,n,s,l,d){var f=V.p;V.p=f!==0&&8>f?f:8;var b=P.T,R={};P.T=R,Jd(e,!1,n,s);try{var M=d(),I=P.S;if(I!==null&&I(R,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var $=Vw(M,l);bl(e,n,$,fn(e))}else bl(e,n,l,fn(e))}catch(W){bl(e,n,{then:function(){},status:"rejected",reason:W},fn())}finally{V.p=f,b!==null&&R.types!==null&&(b.types=R.types),P.T=b}}function Ww(){}function Kd(e,n,s,l){if(e.tag!==5)throw Error(i(476));var d=Wg(e).queue;Kg(e,d,n,ee,s===null?Ww:function(){return Jg(e),s(l)})}function Wg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:ee},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:s},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Jg(e){var n=Wg(e);n.next===null&&(n=e.alternate.memoizedState),bl(e,n.next.queue,{},fn())}function Wd(){return Ct(zl)}function ey(){return lt().memoizedState}function ty(){return lt().memoizedState}function Jw(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=fn();e=Xa(s);var l=Za(n,e,s);l!==null&&(Xt(l,n,s),ml(l,n,s)),n={cache:Cd()},e.payload=n;return}n=n.return}}function ej(e,n,s){var l=fn();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ko(e)?ay(n,s):(s=gd(e,n,s,l),s!==null&&(Xt(s,e,l),sy(s,n,l)))}function ny(e,n,s){var l=fn();bl(e,n,s,l)}function bl(e,n,s,l){var d={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))ay(n,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var b=n.lastRenderedState,R=f(b,s);if(d.hasEagerState=!0,d.eagerState=R,rn(R,b))return ko(e,n,d,0),$e===null&&To(),!1}catch{}finally{}if(s=gd(e,n,d,l),s!==null)return Xt(s,e,l),sy(s,n,l),!0}return!1}function Jd(e,n,s,l){if(l={lane:2,revertLane:Mf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ko(e)){if(n)throw Error(i(479))}else n=gd(e,s,l,2),n!==null&&Xt(n,e,2)}function Ko(e){var n=e.alternate;return e===Ee||n!==null&&n===Ee}function ay(e,n){Kr=Io=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function sy(e,n,s){if((s&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,cp(e,s)}}var xl={readContext:Ct,use:Yo,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};xl.useEffectEvent=at;var ry={readContext:Ct,use:Yo,useCallback:function(e,n){return Ut().memoizedState=[e,n===void 0?null:n],e},useContext:Ct,useEffect:qg,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,Xo(4194308,4,Vg.bind(null,n,e),s)},useLayoutEffect:function(e,n){return Xo(4194308,4,e,n)},useInsertionEffect:function(e,n){Xo(4,2,e,n)},useMemo:function(e,n){var s=Ut();n=n===void 0?null:n;var l=e();if(Zs){Ha(!0);try{e()}finally{Ha(!1)}}return s.memoizedState=[l,n],l},useReducer:function(e,n,s){var l=Ut();if(s!==void 0){var d=s(n);if(Zs){Ha(!0);try{s(n)}finally{Ha(!1)}}}else d=n;return l.memoizedState=l.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},l.queue=e,e=e.dispatch=ej.bind(null,Ee,e),[l.memoizedState,e]},useRef:function(e){var n=Ut();return e={current:e},n.memoizedState=e},useState:function(e){e=Vd(e);var n=e.queue,s=ny.bind(null,Ee,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:Xd,useDeferredValue:function(e,n){var s=Ut();return Zd(s,e,n)},useTransition:function(){var e=Vd(!1);return e=Kg.bind(null,Ee,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var l=Ee,d=Ut();if(De){if(s===void 0)throw Error(i(407));s=s()}else{if(s=n(),$e===null)throw Error(i(349));(Me&127)!==0||Rg(l,n,s)}d.memoizedState=s;var f={value:s,getSnapshot:n};return d.queue=f,qg(_g.bind(null,l,f,e),[e]),l.flags|=2048,Jr(9,{destroy:void 0},Cg.bind(null,l,f,s,n),null),s},useId:function(){var e=Ut(),n=$e.identifierPrefix;if(De){var s=$n,l=Yn;s=(l&~(1<<32-sn(l)-1)).toString(32)+s,n="_"+n+"R_"+s,s=Qo++,0<s&&(n+="H"+s.toString(32)),n+="_"}else s=Yw++,n="_"+n+"r_"+s.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Wd,useFormState:Bg,useActionState:Bg,useOptimistic:function(e){var n=Ut();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=Jd.bind(null,Ee,!0,s),s.dispatch=n,[e,n]},useMemoCache:Gd,useCacheRefresh:function(){return Ut().memoizedState=Jw.bind(null,Ee)},useEffectEvent:function(e){var n=Ut(),s={impl:e};return n.memoizedState=s,function(){if((Fe&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},ef={readContext:Ct,use:Yo,useCallback:$g,useContext:Ct,useEffect:$d,useImperativeHandle:Yg,useInsertionEffect:Ig,useLayoutEffect:Qg,useMemo:Xg,useReducer:$o,useRef:Hg,useState:function(){return $o(ga)},useDebugValue:Xd,useDeferredValue:function(e,n){var s=lt();return Zg(s,Qe.memoizedState,e,n)},useTransition:function(){var e=$o(ga)[0],n=lt().memoizedState;return[typeof e=="boolean"?e:vl(e),n]},useSyncExternalStore:Ng,useId:ey,useHostTransitionStatus:Wd,useFormState:Ug,useActionState:Ug,useOptimistic:function(e,n){var s=lt();return kg(s,Qe,e,n)},useMemoCache:Gd,useCacheRefresh:ty};ef.useEffectEvent=Gg;var iy={readContext:Ct,use:Yo,useCallback:$g,useContext:Ct,useEffect:$d,useImperativeHandle:Yg,useInsertionEffect:Ig,useLayoutEffect:Qg,useMemo:Xg,useReducer:Qd,useRef:Hg,useState:function(){return Qd(ga)},useDebugValue:Xd,useDeferredValue:function(e,n){var s=lt();return Qe===null?Zd(s,e,n):Zg(s,Qe.memoizedState,e,n)},useTransition:function(){var e=Qd(ga)[0],n=lt().memoizedState;return[typeof e=="boolean"?e:vl(e),n]},useSyncExternalStore:Ng,useId:ey,useHostTransitionStatus:Wd,useFormState:Fg,useActionState:Fg,useOptimistic:function(e,n){var s=lt();return Qe!==null?kg(s,Qe,e,n):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Gd,useCacheRefresh:ty};iy.useEffectEvent=Gg;function tf(e,n,s,l){n=e.memoizedState,s=s(l,n),s=s==null?n:y({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var nf={enqueueSetState:function(e,n,s){e=e._reactInternals;var l=fn(),d=Xa(l);d.payload=n,s!=null&&(d.callback=s),n=Za(e,d,l),n!==null&&(Xt(n,e,l),ml(n,e,l))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var l=fn(),d=Xa(l);d.tag=1,d.payload=n,s!=null&&(d.callback=s),n=Za(e,d,l),n!==null&&(Xt(n,e,l),ml(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=fn(),l=Xa(s);l.tag=2,n!=null&&(l.callback=n),n=Za(e,l,s),n!==null&&(Xt(n,e,s),ml(n,e,s))}};function ly(e,n,s,l,d,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,b):n.prototype&&n.prototype.isPureReactComponent?!il(s,l)||!il(d,f):!0}function oy(e,n,s,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,l),n.state!==e&&nf.enqueueReplaceState(n,n.state,null)}function Ks(e,n){var s=n;if("ref"in n){s={};for(var l in n)l!=="ref"&&(s[l]=n[l])}if(e=e.defaultProps){s===n&&(s=y({},s));for(var d in e)s[d]===void 0&&(s[d]=e[d])}return s}function cy(e){Ao(e)}function uy(e){console.error(e)}function dy(e){Ao(e)}function Wo(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function fy(e,n,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function af(e,n,s){return s=Xa(s),s.tag=3,s.payload={element:null},s.callback=function(){Wo(e,n)},s}function hy(e){return e=Xa(e),e.tag=3,e}function my(e,n,s,l){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var f=l.value;e.payload=function(){return d(f)},e.callback=function(){fy(n,s,l)}}var b=s.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){fy(n,s,l),typeof d!="function"&&(ns===null?ns=new Set([this]):ns.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function tj(e,n,s,l,d){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=s.alternate,n!==null&&Qr(n,s,d,!0),s=on.current,s!==null){switch(s.tag){case 31:case 13:return _n===null?uc():s.alternate===null&&st===0&&(st=3),s.flags&=-257,s.flags|=65536,s.lanes=d,l===Po?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([l]):n.add(l),Af(e,l,d)),!1;case 22:return s.flags|=65536,l===Po?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([l]):s.add(l)),Af(e,l,d)),!1}throw Error(i(435,s.tag))}return Af(e,l,d),uc(),!1}if(De)return n=on.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,l!==wd&&(e=Error(i(422),{cause:l}),cl(En(e,s)))):(l!==wd&&(n=Error(i(423),{cause:l}),cl(En(n,s))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,l=En(l,s),d=af(e.stateNode,l,d),Od(e,d),st!==4&&(st=2)),!1;var f=Error(i(520),{cause:l});if(f=En(f,s),_l===null?_l=[f]:_l.push(f),st!==4&&(st=2),n===null)return!0;l=En(l,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=d&-d,s.lanes|=e,e=af(s.stateNode,l,e),Od(s,e),!1;case 1:if(n=s.type,f=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(ns===null||!ns.has(f))))return s.flags|=65536,d&=-d,s.lanes|=d,d=hy(d),my(d,e,s,l),Od(s,d),!1}s=s.return}while(s!==null);return!1}var sf=Error(i(461)),ut=!1;function _t(e,n,s,l){n.child=e===null?vg(n,null,s,l):Xs(n,e.child,s,l)}function py(e,n,s,l,d){s=s.render;var f=n.ref;if("ref"in l){var b={};for(var R in l)R!=="ref"&&(b[R]=l[R])}else b=l;return Qs(n),l=Pd(e,n,s,b,f,d),R=Fd(),e!==null&&!ut?(Hd(e,n,d),ya(e,n,d)):(De&&R&&xd(n),n.flags|=1,_t(e,n,l,d),n.child)}function gy(e,n,s,l,d){if(e===null){var f=s.type;return typeof f=="function"&&!yd(f)&&f.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=f,yy(e,n,f,l,d)):(e=Oo(s.type,null,l,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!hf(e,d)){var b=f.memoizedProps;if(s=s.compare,s=s!==null?s:il,s(b,l)&&e.ref===n.ref)return ya(e,n,d)}return n.flags|=1,e=da(f,l),e.ref=n.ref,e.return=n,n.child=e}function yy(e,n,s,l,d){if(e!==null){var f=e.memoizedProps;if(il(f,l)&&e.ref===n.ref)if(ut=!1,n.pendingProps=l=f,hf(e,d))(e.flags&131072)!==0&&(ut=!0);else return n.lanes=e.lanes,ya(e,n,d)}return rf(e,n,s,l,d)}function vy(e,n,s,l){var d=l.children,f=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(f=f!==null?f.baseLanes|s:s,e!==null){for(l=n.child=e.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~f}else l=0,n.child=null;return by(e,n,f,s,l)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bo(n,f!==null?f.cachePool:null),f!==null?Sg(n,f):Ld(),wg(n);else return l=n.lanes=536870912,by(e,n,f!==null?f.baseLanes|s:s,s,l)}else f!==null?(Bo(n,f.cachePool),Sg(n,f),Wa(),n.memoizedState=null):(e!==null&&Bo(n,null),Ld(),Wa());return _t(e,n,d,s),n.child}function Sl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function by(e,n,s,l,d){var f=Ad();return f=f===null?null:{parent:ot._currentValue,pool:f},n.memoizedState={baseLanes:s,cachePool:f},e!==null&&Bo(n,null),Ld(),wg(n),e!==null&&Qr(e,n,l,!0),n.childLanes=d,null}function Jo(e,n){return n=tc({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function xy(e,n,s){return Xs(n,e.child,null,s),e=Jo(n,n.pendingProps),e.flags|=2,cn(n),n.memoizedState=null,e}function nj(e,n,s){var l=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(De){if(l.mode==="hidden")return e=Jo(n,l),n.lanes=536870912,Sl(null,e);if(Bd(n),(e=Ke)?(e=Mv(e,Cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ia!==null?{id:Yn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},s=ag(e),s.return=n,n.child=s,Rt=n,Ke=null)):e=null,e===null)throw Va(n);return n.lanes=536870912,null}return Jo(n,l)}var f=e.memoizedState;if(f!==null){var b=f.dehydrated;if(Bd(n),d)if(n.flags&256)n.flags&=-257,n=xy(e,n,s);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(ut||Qr(e,n,s,!1),d=(s&e.childLanes)!==0,ut||d){if(l=$e,l!==null&&(b=up(l,s),b!==0&&b!==f.retryLane))throw f.retryLane=b,Hs(e,b),Xt(l,e,b),sf;uc(),n=xy(e,n,s)}else e=f.treeContext,Ke=An(b.nextSibling),Rt=n,De=!0,Qa=null,Cn=!1,e!==null&&ig(n,e),n=Jo(n,l),n.flags|=4096;return n}return e=da(e.child,{mode:l.mode,children:l.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ec(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(e===null||e.ref!==s)&&(n.flags|=4194816)}}function rf(e,n,s,l,d){return Qs(n),s=Pd(e,n,s,l,void 0,d),l=Fd(),e!==null&&!ut?(Hd(e,n,d),ya(e,n,d)):(De&&l&&xd(n),n.flags|=1,_t(e,n,s,d),n.child)}function Sy(e,n,s,l,d,f){return Qs(n),n.updateQueue=null,s=Eg(n,l,s,d),jg(e),l=Fd(),e!==null&&!ut?(Hd(e,n,f),ya(e,n,f)):(De&&l&&xd(n),n.flags|=1,_t(e,n,s,f),n.child)}function wy(e,n,s,l,d){if(Qs(n),n.stateNode===null){var f=Hr,b=s.contextType;typeof b=="object"&&b!==null&&(f=Ct(b)),f=new s(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=nf,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},kd(n),b=s.contextType,f.context=typeof b=="object"&&b!==null?Ct(b):Hr,f.state=n.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(tf(n,s,b,l),f.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&nf.enqueueReplaceState(f,f.state,null),gl(n,l,f,d),pl(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){f=n.stateNode;var R=n.memoizedProps,M=Ks(s,R);f.props=M;var I=f.context,$=s.contextType;b=Hr,typeof $=="object"&&$!==null&&(b=Ct($));var W=s.getDerivedStateFromProps;$=typeof W=="function"||typeof f.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,$||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(R||I!==b)&&oy(n,f,l,b),$a=!1;var Q=n.memoizedState;f.state=Q,gl(n,l,f,d),pl(),I=n.memoizedState,R||Q!==I||$a?(typeof W=="function"&&(tf(n,s,W,l),I=n.memoizedState),(M=$a||ly(n,s,M,l,Q,I,b))?($||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=I),f.props=l,f.state=I,f.context=b,l=M):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{f=n.stateNode,Md(e,n),b=n.memoizedProps,$=Ks(s,b),f.props=$,W=n.pendingProps,Q=f.context,I=s.contextType,M=Hr,typeof I=="object"&&I!==null&&(M=Ct(I)),R=s.getDerivedStateFromProps,(I=typeof R=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==W||Q!==M)&&oy(n,f,l,M),$a=!1,Q=n.memoizedState,f.state=Q,gl(n,l,f,d),pl();var Y=n.memoizedState;b!==W||Q!==Y||$a||e!==null&&e.dependencies!==null&&Lo(e.dependencies)?(typeof R=="function"&&(tf(n,s,R,l),Y=n.memoizedState),($=$a||ly(n,s,$,l,Q,Y,M)||e!==null&&e.dependencies!==null&&Lo(e.dependencies))?(I||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,Y,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,Y,M)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=Y),f.props=l,f.state=Y,f.context=M,l=$):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,ec(e,n),l=(n.flags&128)!==0,f||l?(f=n.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&l?(n.child=Xs(n,e.child,null,d),n.child=Xs(n,null,s,d)):_t(e,n,s,d),n.memoizedState=f.state,e=n.child):e=ya(e,n,d),e}function jy(e,n,s,l){return Gs(),n.flags|=256,_t(e,n,s,l),n.child}var lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function of(e){return{baseLanes:e,cachePool:fg()}}function cf(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=dn),e}function Ey(e,n,s){var l=n.pendingProps,d=!1,f=(n.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),b&&(d=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(De){if(d?Ka(n):Wa(),(e=Ke)?(e=Mv(e,Cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ia!==null?{id:Yn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},s=ag(e),s.return=n,n.child=s,Rt=n,Ke=null)):e=null,e===null)throw Va(n);return Qf(e)?n.lanes=32:n.lanes=536870912,null}var R=l.children;return l=l.fallback,d?(Wa(),d=n.mode,R=tc({mode:"hidden",children:R},d),l=qs(l,d,s,null),R.return=n,l.return=n,R.sibling=l,n.child=R,l=n.child,l.memoizedState=of(s),l.childLanes=cf(e,b,s),n.memoizedState=lf,Sl(null,l)):(Ka(n),uf(n,R))}var M=e.memoizedState;if(M!==null&&(R=M.dehydrated,R!==null)){if(f)n.flags&256?(Ka(n),n.flags&=-257,n=df(e,n,s)):n.memoizedState!==null?(Wa(),n.child=e.child,n.flags|=128,n=null):(Wa(),R=l.fallback,d=n.mode,l=tc({mode:"visible",children:l.children},d),R=qs(R,d,s,null),R.flags|=2,l.return=n,R.return=n,l.sibling=R,n.child=l,Xs(n,e.child,null,s),l=n.child,l.memoizedState=of(s),l.childLanes=cf(e,b,s),n.memoizedState=lf,n=Sl(null,l));else if(Ka(n),Qf(R)){if(b=R.nextSibling&&R.nextSibling.dataset,b)var I=b.dgst;b=I,l=Error(i(419)),l.stack="",l.digest=b,cl({value:l,source:null,stack:null}),n=df(e,n,s)}else if(ut||Qr(e,n,s,!1),b=(s&e.childLanes)!==0,ut||b){if(b=$e,b!==null&&(l=up(b,s),l!==0&&l!==M.retryLane))throw M.retryLane=l,Hs(e,l),Xt(b,e,l),sf;If(R)||uc(),n=df(e,n,s)}else If(R)?(n.flags|=192,n.child=e.child,n=null):(e=M.treeContext,Ke=An(R.nextSibling),Rt=n,De=!0,Qa=null,Cn=!1,e!==null&&ig(n,e),n=uf(n,l.children),n.flags|=4096);return n}return d?(Wa(),R=l.fallback,d=n.mode,M=e.child,I=M.sibling,l=da(M,{mode:"hidden",children:l.children}),l.subtreeFlags=M.subtreeFlags&65011712,I!==null?R=da(I,R):(R=qs(R,d,s,null),R.flags|=2),R.return=n,l.return=n,l.sibling=R,n.child=l,Sl(null,l),l=n.child,R=e.child.memoizedState,R===null?R=of(s):(d=R.cachePool,d!==null?(M=ot._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=fg(),R={baseLanes:R.baseLanes|s,cachePool:d}),l.memoizedState=R,l.childLanes=cf(e,b,s),n.memoizedState=lf,Sl(e.child,l)):(Ka(n),s=e.child,e=s.sibling,s=da(s,{mode:"visible",children:l.children}),s.return=n,s.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=s,n.memoizedState=null,s)}function uf(e,n){return n=tc({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function tc(e,n){return e=ln(22,e,null,n),e.lanes=0,e}function df(e,n,s){return Xs(n,e.child,null,s),e=uf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ny(e,n,s){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Nd(e.return,n,s)}function ff(e,n,s,l,d,f){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:d,treeForkCount:f}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=s,b.tailMode=d,b.treeForkCount=f)}function Ry(e,n,s){var l=n.pendingProps,d=l.revealOrder,f=l.tail;l=l.children;var b=it.current,R=(b&2)!==0;if(R?(b=b&1|2,n.flags|=128):b&=1,re(it,b),_t(e,n,l,s),l=De?ol:0,!R&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ny(e,s,n);else if(e.tag===19)Ny(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(s=n.child,d=null;s!==null;)e=s.alternate,e!==null&&Go(e)===null&&(d=s),s=s.sibling;s=d,s===null?(d=n.child,n.child=null):(d=s.sibling,s.sibling=null),ff(n,!1,d,s,f,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Go(e)===null){n.child=d;break}e=d.sibling,d.sibling=s,s=d,d=e}ff(n,!0,s,null,f,l);break;case"together":ff(n,!1,null,null,void 0,l);break;default:n.memoizedState=null}return n.child}function ya(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),ts|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(Qr(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,s=da(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=da(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function hf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Lo(e)))}function aj(e,n,s){switch(n.tag){case 3:Be(n,n.stateNode.containerInfo),Ya(n,ot,e.memoizedState.cache),Gs();break;case 27:case 5:zt(n);break;case 4:Be(n,n.stateNode.containerInfo);break;case 10:Ya(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Bd(n),null;break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(Ka(n),n.flags|=128,null):(s&n.child.childLanes)!==0?Ey(e,n,s):(Ka(n),e=ya(e,n,s),e!==null?e.sibling:null);Ka(n);break;case 19:var d=(e.flags&128)!==0;if(l=(s&n.childLanes)!==0,l||(Qr(e,n,s,!1),l=(s&n.childLanes)!==0),d){if(l)return Ry(e,n,s);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),re(it,it.current),l)break;return null;case 22:return n.lanes=0,vy(e,n,s,n.pendingProps);case 24:Ya(n,ot,e.memoizedState.cache)}return ya(e,n,s)}function Cy(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)ut=!0;else{if(!hf(e,s)&&(n.flags&128)===0)return ut=!1,aj(e,n,s);ut=(e.flags&131072)!==0}else ut=!1,De&&(n.flags&1048576)!==0&&rg(n,ol,n.index);switch(n.lanes=0,n.tag){case 16:e:{var l=n.pendingProps;if(e=Ys(n.elementType),n.type=e,typeof e=="function")yd(e)?(l=Ks(e,l),n.tag=1,n=wy(null,n,e,l,s)):(n.tag=0,n=rf(null,n,e,l,s));else{if(e!=null){var d=e.$$typeof;if(d===A){n.tag=11,n=py(null,n,e,l,s);break e}else if(d===k){n.tag=14,n=gy(null,n,e,l,s);break e}}throw n=te(e)||e,Error(i(306,n,""))}}return n;case 0:return rf(e,n,n.type,n.pendingProps,s);case 1:return l=n.type,d=Ks(l,n.pendingProps),wy(e,n,l,d,s);case 3:e:{if(Be(n,n.stateNode.containerInfo),e===null)throw Error(i(387));l=n.pendingProps;var f=n.memoizedState;d=f.element,Md(e,n),gl(n,l,null,s);var b=n.memoizedState;if(l=b.cache,Ya(n,ot,l),l!==f.cache&&Rd(n,[ot],s,!0),pl(),l=b.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=jy(e,n,l,s);break e}else if(l!==d){d=En(Error(i(424)),n),cl(d),n=jy(e,n,l,s);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=An(e.firstChild),Rt=n,De=!0,Qa=null,Cn=!0,s=vg(n,null,l,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Gs(),l===d){n=ya(e,n,s);break e}_t(e,n,l,s)}n=n.child}return n;case 26:return ec(e,n),e===null?(s=Uv(n.type,null,n.pendingProps,null))?n.memoizedState=s:De||(s=n.type,e=n.pendingProps,l=yc(he.current).createElement(s),l[Nt]=n,l[Gt]=e,At(l,s,e),xt(l),n.stateNode=l):n.memoizedState=Uv(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return zt(n),e===null&&De&&(l=n.stateNode=Lv(n.type,n.pendingProps,he.current),Rt=n,Cn=!0,d=Ke,is(n.type)?(Vf=d,Ke=An(l.firstChild)):Ke=d),_t(e,n,n.pendingProps.children,s),ec(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&De&&((d=l=Ke)&&(l=Oj(l,n.type,n.pendingProps,Cn),l!==null?(n.stateNode=l,Rt=n,Ke=An(l.firstChild),Cn=!1,d=!0):d=!1),d||Va(n)),zt(n),d=n.type,f=n.pendingProps,b=e!==null?e.memoizedProps:null,l=f.children,Hf(d,f)?l=null:b!==null&&Hf(d,b)&&(n.flags|=32),n.memoizedState!==null&&(d=Pd(e,n,$w,null,null,s),zl._currentValue=d),ec(e,n),_t(e,n,l,s),n.child;case 6:return e===null&&De&&((e=s=Ke)&&(s=Dj(s,n.pendingProps,Cn),s!==null?(n.stateNode=s,Rt=n,Ke=null,e=!0):e=!1),e||Va(n)),null;case 13:return Ey(e,n,s);case 4:return Be(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Xs(n,null,l,s):_t(e,n,l,s),n.child;case 11:return py(e,n,n.type,n.pendingProps,s);case 7:return _t(e,n,n.pendingProps,s),n.child;case 8:return _t(e,n,n.pendingProps.children,s),n.child;case 12:return _t(e,n,n.pendingProps.children,s),n.child;case 10:return l=n.pendingProps,Ya(n,n.type,l.value),_t(e,n,l.children,s),n.child;case 9:return d=n.type._context,l=n.pendingProps.children,Qs(n),d=Ct(d),l=l(d),n.flags|=1,_t(e,n,l,s),n.child;case 14:return gy(e,n,n.type,n.pendingProps,s);case 15:return yy(e,n,n.type,n.pendingProps,s);case 19:return Ry(e,n,s);case 31:return nj(e,n,s);case 22:return vy(e,n,s,n.pendingProps);case 24:return Qs(n),l=Ct(ot),e===null?(d=Ad(),d===null&&(d=$e,f=Cd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=s),d=f),n.memoizedState={parent:l,cache:d},kd(n),Ya(n,ot,d)):((e.lanes&s)!==0&&(Md(e,n),gl(n,null,null,s),pl()),d=e.memoizedState,f=n.memoizedState,d.parent!==l?(d={parent:l,cache:l},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Ya(n,ot,l)):(l=f.cache,Ya(n,ot,l),l!==d.cache&&Rd(n,[ot],s,!0))),_t(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function va(e){e.flags|=4}function mf(e,n,s,l,d){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(ev())e.flags|=8192;else throw $s=Po,Td}else e.flags&=-16777217}function _y(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gv(n))if(ev())e.flags|=8192;else throw $s=Po,Td}function nc(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?lp():536870912,e.lanes|=n,ai|=n)}function wl(e,n){if(!De)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function We(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(n)for(var d=e.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=l,e.childLanes=s,n}function sj(e,n,s){var l=n.pendingProps;switch(Sd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return s=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),ma(ot),ve(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ir(n)?va(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,jd())),We(n),null;case 26:var d=n.type,f=n.memoizedState;return e===null?(va(n),f!==null?(We(n),_y(n,f)):(We(n),mf(n,d,null,l,s))):f?f!==e.memoizedState?(va(n),We(n),_y(n,f)):(We(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&va(n),We(n),mf(n,d,e,l,s)),null;case 27:if(jt(n),s=he.current,d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&va(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return We(n),null}e=ie.current,Ir(n)?lg(n):(e=Lv(d,l,s),n.stateNode=e,va(n))}return We(n),null;case 5:if(jt(n),d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&va(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return We(n),null}if(f=ie.current,Ir(n))lg(n);else{var b=yc(he.current);switch(f){case 1:f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=b.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?b.createElement(d,{is:l.is}):b.createElement(d)}}f[Nt]=n,f[Gt]=l;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)f.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=f;e:switch(At(f,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&va(n)}}return We(n),mf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,s),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&va(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(e=he.current,Ir(n)){if(e=n.stateNode,s=n.memoizedProps,l=null,d=Rt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}e[Nt]=n,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Ev(e.nodeValue,s)),e||Va(n,!0)}else e=yc(e).createTextNode(l),e[Nt]=n,n.stateNode=e}return We(n),null;case 31:if(s=n.memoizedState,e===null||e.memoizedState!==null){if(l=Ir(n),s!==null){if(e===null){if(!l)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Nt]=n}else Gs(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),e=!1}else s=jd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return n.flags&256?(cn(n),n):(cn(n),null);if((n.flags&128)!==0)throw Error(i(558))}return We(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Ir(n),l!==null&&l.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Nt]=n}else Gs(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),d=!1}else d=jd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(cn(n),n):(cn(n),null)}return cn(n),(n.flags&128)!==0?(n.lanes=s,n):(s=l!==null,e=e!==null&&e.memoizedState!==null,s&&(l=n.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==d&&(l.flags|=2048)),s!==e&&s&&(n.child.flags|=8192),nc(n,n.updateQueue),We(n),null);case 4:return ve(),e===null&&zf(n.stateNode.containerInfo),We(n),null;case 10:return ma(n.type),We(n),null;case 19:if(Z(it),l=n.memoizedState,l===null)return We(n),null;if(d=(n.flags&128)!==0,f=l.rendering,f===null)if(d)wl(l,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=Go(e),f!==null){for(n.flags|=128,wl(l,!1),e=f.updateQueue,n.updateQueue=e,nc(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)ng(s,e),s=s.sibling;return re(it,it.current&1|2),De&&fa(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&Mt()>lc&&(n.flags|=128,d=!0,wl(l,!1),n.lanes=4194304)}else{if(!d)if(e=Go(f),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,nc(n,e),wl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!De)return We(n),null}else 2*Mt()-l.renderingStartTime>lc&&s!==536870912&&(n.flags|=128,d=!0,wl(l,!1),n.lanes=4194304);l.isBackwards?(f.sibling=n.child,n.child=f):(e=l.last,e!==null?e.sibling=f:n.child=f,l.last=f)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Mt(),e.sibling=null,s=it.current,re(it,d?s&1|2:s&1),De&&fa(n,l.treeForkCount),e):(We(n),null);case 22:case 23:return cn(n),zd(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(s&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),s=n.updateQueue,s!==null&&nc(n,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==s&&(n.flags|=2048),e!==null&&Z(Vs),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),ma(ot),We(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function rj(e,n){switch(Sd(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ma(ot),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return jt(n),null;case 31:if(n.memoizedState!==null){if(cn(n),n.alternate===null)throw Error(i(340));Gs()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(cn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Gs()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Z(it),null;case 4:return ve(),null;case 10:return ma(n.type),null;case 22:case 23:return cn(n),zd(),e!==null&&Z(Vs),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return ma(ot),null;case 25:return null;default:return null}}function Ay(e,n){switch(Sd(n),n.tag){case 3:ma(ot),ve();break;case 26:case 27:case 5:jt(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&cn(n);break;case 13:cn(n);break;case 19:Z(it);break;case 10:ma(n.type);break;case 22:case 23:cn(n),zd(),e!==null&&Z(Vs);break;case 24:ma(ot)}}function jl(e,n){try{var s=n.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var d=l.next;s=d;do{if((s.tag&e)===e){l=void 0;var f=s.create,b=s.inst;l=f(),b.destroy=l}s=s.next}while(s!==d)}}catch(R){Ge(n,n.return,R)}}function Ja(e,n,s){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var f=d.next;l=f;do{if((l.tag&e)===e){var b=l.inst,R=b.destroy;if(R!==void 0){b.destroy=void 0,d=n;var M=s,I=R;try{I()}catch($){Ge(d,M,$)}}}l=l.next}while(l!==f)}}catch($){Ge(n,n.return,$)}}function Ty(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{xg(n,s)}catch(l){Ge(e,e.return,l)}}}function ky(e,n,s){s.props=Ks(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){Ge(e,n,l)}}function El(e,n){try{var s=e.ref;if(s!==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 s=="function"?e.refCleanup=s(l):s.current=l}}catch(d){Ge(e,n,d)}}function Xn(e,n){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(d){Ge(e,n,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){Ge(e,n,d)}else s.current=null}function My(e){var n=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(d){Ge(e,e.return,d)}}function pf(e,n,s){try{var l=e.stateNode;Cj(l,e.type,s,n),l[Gt]=n}catch(d){Ge(e,e.return,d)}}function Oy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&is(e.type)||e.tag===4}function gf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oy(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&&is(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 yf(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,n):(n=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,n.appendChild(e),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=ca));else if(l!==4&&(l===27&&is(e.type)&&(s=e.stateNode,n=null),e=e.child,e!==null))for(yf(e,n,s),e=e.sibling;e!==null;)yf(e,n,s),e=e.sibling}function ac(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(l!==4&&(l===27&&is(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(ac(e,n,s),e=e.sibling;e!==null;)ac(e,n,s),e=e.sibling}function Dy(e){var n=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);At(n,l,s),n[Nt]=e,n[Gt]=s}catch(f){Ge(e,e.return,f)}}var ba=!1,dt=!1,vf=!1,Ly=typeof WeakSet=="function"?WeakSet:Set,St=null;function ij(e,n){if(e=e.containerInfo,Pf=Ec,e=Yp(e),ud(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var d=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{s.nodeType,f.nodeType}catch{s=null;break e}var b=0,R=-1,M=-1,I=0,$=0,W=e,Q=null;t:for(;;){for(var Y;W!==s||d!==0&&W.nodeType!==3||(R=b+d),W!==f||l!==0&&W.nodeType!==3||(M=b+l),W.nodeType===3&&(b+=W.nodeValue.length),(Y=W.firstChild)!==null;)Q=W,W=Y;for(;;){if(W===e)break t;if(Q===s&&++I===d&&(R=b),Q===f&&++$===l&&(M=b),(Y=W.nextSibling)!==null)break;W=Q,Q=W.parentNode}W=Y}s=R===-1||M===-1?null:{start:R,end:M}}else s=null}s=s||{start:0,end:0}}else s=null;for(Ff={focusedElem:e,selectionRange:s},Ec=!1,St=n;St!==null;)if(n=St,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,St=e;else for(;St!==null;){switch(n=St,f=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)d=e[s],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,s=n,d=f.memoizedProps,f=f.memoizedState,l=s.stateNode;try{var fe=Ks(s.type,d);e=l.getSnapshotBeforeUpdate(fe,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(be){Ge(s,s.return,be)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,s=e.nodeType,s===9)Gf(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=n.sibling,e!==null){e.return=n.return,St=e;break}St=n.return}}function zy(e,n,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:Sa(e,s),l&4&&jl(5,s);break;case 1:if(Sa(e,s),l&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(b){Ge(s,s.return,b)}else{var d=Ks(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(d,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ge(s,s.return,b)}}l&64&&Ty(s),l&512&&El(s,s.return);break;case 3:if(Sa(e,s),l&64&&(e=s.updateQueue,e!==null)){if(n=null,s.child!==null)switch(s.child.tag){case 27:case 5:n=s.child.stateNode;break;case 1:n=s.child.stateNode}try{xg(e,n)}catch(b){Ge(s,s.return,b)}}break;case 27:n===null&&l&4&&Dy(s);case 26:case 5:Sa(e,s),n===null&&l&4&&My(s),l&512&&El(s,s.return);break;case 12:Sa(e,s);break;case 31:Sa(e,s),l&4&&Py(e,s);break;case 13:Sa(e,s),l&4&&Fy(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=pj.bind(null,s),Lj(e,s))));break;case 22:if(l=s.memoizedState!==null||ba,!l){n=n!==null&&n.memoizedState!==null||dt,d=ba;var f=dt;ba=l,(dt=n)&&!f?wa(e,s,(s.subtreeFlags&8772)!==0):Sa(e,s),ba=d,dt=f}break;case 30:break;default:Sa(e,s)}}function By(e){var n=e.alternate;n!==null&&(e.alternate=null,By(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Yu(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,Qt=!1;function xa(e,n,s){for(s=s.child;s!==null;)Uy(e,n,s),s=s.sibling}function Uy(e,n,s){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount($i,s)}catch{}switch(s.tag){case 26:dt||Xn(s,n),xa(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:dt||Xn(s,n);var l=Je,d=Qt;is(s.type)&&(Je=s.stateNode,Qt=!1),xa(e,n,s),Ol(s.stateNode),Je=l,Qt=d;break;case 5:dt||Xn(s,n);case 6:if(l=Je,d=Qt,Je=null,xa(e,n,s),Je=l,Qt=d,Je!==null)if(Qt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(s.stateNode)}catch(f){Ge(s,n,f)}else try{Je.removeChild(s.stateNode)}catch(f){Ge(s,n,f)}break;case 18:Je!==null&&(Qt?(e=Je,Tv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),di(e)):Tv(Je,s.stateNode));break;case 4:l=Je,d=Qt,Je=s.stateNode.containerInfo,Qt=!0,xa(e,n,s),Je=l,Qt=d;break;case 0:case 11:case 14:case 15:Ja(2,s,n),dt||Ja(4,s,n),xa(e,n,s);break;case 1:dt||(Xn(s,n),l=s.stateNode,typeof l.componentWillUnmount=="function"&&ky(s,n,l)),xa(e,n,s);break;case 21:xa(e,n,s);break;case 22:dt=(l=dt)||s.memoizedState!==null,xa(e,n,s),dt=l;break;default:xa(e,n,s)}}function Py(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{di(e)}catch(s){Ge(n,n.return,s)}}}function Fy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{di(e)}catch(s){Ge(n,n.return,s)}}function lj(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Ly),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Ly),n;default:throw Error(i(435,e.tag))}}function sc(e,n){var s=lj(e);n.forEach(function(l){if(!s.has(l)){s.add(l);var d=gj.bind(null,e,l);l.then(d,d)}})}function Vt(e,n){var s=n.deletions;if(s!==null)for(var l=0;l<s.length;l++){var d=s[l],f=e,b=n,R=b;e:for(;R!==null;){switch(R.tag){case 27:if(is(R.type)){Je=R.stateNode,Qt=!1;break e}break;case 5:Je=R.stateNode,Qt=!1;break e;case 3:case 4:Je=R.stateNode.containerInfo,Qt=!0;break e}R=R.return}if(Je===null)throw Error(i(160));Uy(f,b,d),Je=null,Qt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Hy(n,e),n=n.sibling}var Pn=null;function Hy(e,n){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(n,e),Yt(e),l&4&&(Ja(3,e,e.return),jl(3,e),Ja(5,e,e.return));break;case 1:Vt(n,e),Yt(e),l&512&&(dt||s===null||Xn(s,s.return)),l&64&&ba&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var d=Pn;if(Vt(n,e),Yt(e),l&512&&(dt||s===null||Xn(s,s.return)),l&4){var f=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Ki]||f[Nt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(l),d.head.insertBefore(f,d.querySelector("head > title"))),At(f,l,s),f[Nt]=e,xt(f),l=f;break e;case"link":var b=Hv("link","href",d).get(l+(s.href||""));if(b){for(var R=0;R<b.length;R++)if(f=b[R],f.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&f.getAttribute("rel")===(s.rel==null?null:s.rel)&&f.getAttribute("title")===(s.title==null?null:s.title)&&f.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){b.splice(R,1);break t}}f=d.createElement(l),At(f,l,s),d.head.appendChild(f);break;case"meta":if(b=Hv("meta","content",d).get(l+(s.content||""))){for(R=0;R<b.length;R++)if(f=b[R],f.getAttribute("content")===(s.content==null?null:""+s.content)&&f.getAttribute("name")===(s.name==null?null:s.name)&&f.getAttribute("property")===(s.property==null?null:s.property)&&f.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&f.getAttribute("charset")===(s.charSet==null?null:s.charSet)){b.splice(R,1);break t}}f=d.createElement(l),At(f,l,s),d.head.appendChild(f);break;default:throw Error(i(468,l))}f[Nt]=e,xt(f),l=f}e.stateNode=l}else qv(d,e.type,e.stateNode);else e.stateNode=Fv(d,l,e.memoizedProps);else f!==l?(f===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):f.count--,l===null?qv(d,e.type,e.stateNode):Fv(d,l,e.memoizedProps)):l===null&&e.stateNode!==null&&pf(e,e.memoizedProps,s.memoizedProps)}break;case 27:Vt(n,e),Yt(e),l&512&&(dt||s===null||Xn(s,s.return)),s!==null&&l&4&&pf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Vt(n,e),Yt(e),l&512&&(dt||s===null||Xn(s,s.return)),e.flags&32){d=e.stateNode;try{Dr(d,"")}catch(fe){Ge(e,e.return,fe)}}l&4&&e.stateNode!=null&&(d=e.memoizedProps,pf(e,d,s!==null?s.memoizedProps:d)),l&1024&&(vf=!0);break;case 6:if(Vt(n,e),Yt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(fe){Ge(e,e.return,fe)}}break;case 3:if(xc=null,d=Pn,Pn=vc(n.containerInfo),Vt(n,e),Pn=d,Yt(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{di(n.containerInfo)}catch(fe){Ge(e,e.return,fe)}vf&&(vf=!1,qy(e));break;case 4:l=Pn,Pn=vc(e.stateNode.containerInfo),Vt(n,e),Yt(e),Pn=l;break;case 12:Vt(n,e),Yt(e);break;case 31:Vt(n,e),Yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,sc(e,l)));break;case 13:Vt(n,e),Yt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(ic=Mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,sc(e,l)));break;case 22:d=e.memoizedState!==null;var M=s!==null&&s.memoizedState!==null,I=ba,$=dt;if(ba=I||d,dt=$||M,Vt(n,e),dt=$,ba=I,Yt(e),l&8192)e:for(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(s===null||M||ba||dt||Ws(e)),s=null,n=e;;){if(n.tag===5||n.tag===26){if(s===null){M=s=n;try{if(f=M.stateNode,d)b=f.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{R=M.stateNode;var W=M.memoizedProps.style,Q=W!=null&&W.hasOwnProperty("display")?W.display:null;R.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(fe){Ge(M,M.return,fe)}}}else if(n.tag===6){if(s===null){M=n;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Ge(M,M.return,fe)}}}else if(n.tag===18){if(s===null){M=n;try{var Y=M.stateNode;d?kv(Y,!0):kv(M.stateNode,!1)}catch(fe){Ge(M,M.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,sc(e,s))));break;case 19:Vt(n,e),Yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,sc(e,l)));break;case 30:break;case 21:break;default:Vt(n,e),Yt(e)}}function Yt(e){var n=e.flags;if(n&2){try{for(var s,l=e.return;l!==null;){if(Oy(l)){s=l;break}l=l.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var d=s.stateNode,f=gf(e);ac(e,f,d);break;case 5:var b=s.stateNode;s.flags&32&&(Dr(b,""),s.flags&=-33);var R=gf(e);ac(e,R,b);break;case 3:case 4:var M=s.stateNode.containerInfo,I=gf(e);yf(e,I,M);break;default:throw Error(i(161))}}catch($){Ge(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function qy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;qy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Sa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)zy(e,n.alternate,n),n=n.sibling}function Ws(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ja(4,n,n.return),Ws(n);break;case 1:Xn(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&ky(n,n.return,s),Ws(n);break;case 27:Ol(n.stateNode);case 26:case 5:Xn(n,n.return),Ws(n);break;case 22:n.memoizedState===null&&Ws(n);break;case 30:Ws(n);break;default:Ws(n)}e=e.sibling}}function wa(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,d=e,f=n,b=f.flags;switch(f.tag){case 0:case 11:case 15:wa(d,f,s),jl(4,f);break;case 1:if(wa(d,f,s),l=f,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(I){Ge(l,l.return,I)}if(l=f,d=l.updateQueue,d!==null){var R=l.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)bg(M[d],R)}catch(I){Ge(l,l.return,I)}}s&&b&64&&Ty(f),El(f,f.return);break;case 27:Dy(f);case 26:case 5:wa(d,f,s),s&&l===null&&b&4&&My(f),El(f,f.return);break;case 12:wa(d,f,s);break;case 31:wa(d,f,s),s&&b&4&&Py(d,f);break;case 13:wa(d,f,s),s&&b&4&&Fy(d,f);break;case 22:f.memoizedState===null&&wa(d,f,s),El(f,f.return);break;case 30:break;default:wa(d,f,s)}n=n.sibling}}function bf(e,n){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&ul(s))}function xf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ul(e))}function Fn(e,n,s,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Gy(e,n,s,l),n=n.sibling}function Gy(e,n,s,l){var d=n.flags;switch(n.tag){case 0:case 11:case 15:Fn(e,n,s,l),d&2048&&jl(9,n);break;case 1:Fn(e,n,s,l);break;case 3:Fn(e,n,s,l),d&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ul(e)));break;case 12:if(d&2048){Fn(e,n,s,l),e=n.stateNode;try{var f=n.memoizedProps,b=f.id,R=f.onPostCommit;typeof R=="function"&&R(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ge(n,n.return,M)}}else Fn(e,n,s,l);break;case 31:Fn(e,n,s,l);break;case 13:Fn(e,n,s,l);break;case 23:break;case 22:f=n.stateNode,b=n.alternate,n.memoizedState!==null?f._visibility&2?Fn(e,n,s,l):Nl(e,n):f._visibility&2?Fn(e,n,s,l):(f._visibility|=2,ei(e,n,s,l,(n.subtreeFlags&10256)!==0||!1)),d&2048&&bf(b,n);break;case 24:Fn(e,n,s,l),d&2048&&xf(n.alternate,n);break;default:Fn(e,n,s,l)}}function ei(e,n,s,l,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var f=e,b=n,R=s,M=l,I=b.flags;switch(b.tag){case 0:case 11:case 15:ei(f,b,R,M,d),jl(8,b);break;case 23:break;case 22:var $=b.stateNode;b.memoizedState!==null?$._visibility&2?ei(f,b,R,M,d):Nl(f,b):($._visibility|=2,ei(f,b,R,M,d)),d&&I&2048&&bf(b.alternate,b);break;case 24:ei(f,b,R,M,d),d&&I&2048&&xf(b.alternate,b);break;default:ei(f,b,R,M,d)}n=n.sibling}}function Nl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,l=n,d=l.flags;switch(l.tag){case 22:Nl(s,l),d&2048&&bf(l.alternate,l);break;case 24:Nl(s,l),d&2048&&xf(l.alternate,l);break;default:Nl(s,l)}n=n.sibling}}var Rl=8192;function ti(e,n,s){if(e.subtreeFlags&Rl)for(e=e.child;e!==null;)Iy(e,n,s),e=e.sibling}function Iy(e,n,s){switch(e.tag){case 26:ti(e,n,s),e.flags&Rl&&e.memoizedState!==null&&Yj(s,Pn,e.memoizedState,e.memoizedProps);break;case 5:ti(e,n,s);break;case 3:case 4:var l=Pn;Pn=vc(e.stateNode.containerInfo),ti(e,n,s),Pn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Rl,Rl=16777216,ti(e,n,s),Rl=l):ti(e,n,s));break;default:ti(e,n,s)}}function Qy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Cl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];St=l,Yy(l,e)}Qy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vy(e),e=e.sibling}function Vy(e){switch(e.tag){case 0:case 11:case 15:Cl(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:Cl(e);break;case 12:Cl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,rc(e)):Cl(e);break;default:Cl(e)}}function rc(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];St=l,Yy(l,e)}Qy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ja(8,n,n.return),rc(n);break;case 22:s=n.stateNode,s._visibility&2&&(s._visibility&=-3,rc(n));break;default:rc(n)}e=e.sibling}}function Yy(e,n){for(;St!==null;){var s=St;switch(s.tag){case 0:case 11:case 15:Ja(8,s,n);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ul(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,St=l;else e:for(s=e;St!==null;){l=St;var d=l.sibling,f=l.return;if(By(l),l===s){St=null;break e}if(d!==null){d.return=f,St=d;break e}St=f}}}var oj={getCacheForType:function(e){var n=Ct(ot),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s},cacheSignal:function(){return Ct(ot).controller.signal}},cj=typeof WeakMap=="function"?WeakMap:Map,Fe=0,$e=null,Te=null,Me=0,qe=0,un=null,es=!1,ni=!1,Sf=!1,ja=0,st=0,ts=0,Js=0,wf=0,dn=0,ai=0,_l=null,$t=null,jf=!1,ic=0,$y=0,lc=1/0,oc=null,ns=null,mt=0,as=null,si=null,Ea=0,Ef=0,Nf=null,Xy=null,Al=0,Rf=null;function fn(){return(Fe&2)!==0&&Me!==0?Me&-Me:P.T!==null?Mf():dp()}function Zy(){if(dn===0)if((Me&536870912)===0||De){var e=go;go<<=1,(go&3932160)===0&&(go=262144),dn=e}else dn=536870912;return e=on.current,e!==null&&(e.flags|=32),dn}function Xt(e,n,s){(e===$e&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(ri(e,0),ss(e,Me,dn,!1)),Zi(e,s),((Fe&2)===0||e!==$e)&&(e===$e&&((Fe&2)===0&&(Js|=s),st===4&&ss(e,Me,dn,!1)),Zn(e))}function Ky(e,n,s){if((Fe&6)!==0)throw Error(i(327));var l=!s&&(n&127)===0&&(n&e.expiredLanes)===0||Xi(e,n),d=l?fj(e,n):_f(e,n,!0),f=l;do{if(d===0){ni&&!l&&ss(e,n,0,!1);break}else{if(s=e.current.alternate,f&&!uj(s)){d=_f(e,n,!1),f=!1;continue}if(d===2){if(f=n,e.errorRecoveryDisabledLanes&f)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var R=e;d=_l;var M=R.current.memoizedState.isDehydrated;if(M&&(ri(R,b).flags|=256),b=_f(R,b,!1),b!==2){if(Sf&&!M){R.errorRecoveryDisabledLanes|=f,Js|=f,d=4;break e}f=$t,$t=d,f!==null&&($t===null?$t=f:$t.push.apply($t,f))}d=b}if(f=!1,d!==2)continue}}if(d===1){ri(e,0),ss(e,n,0,!0);break}e:{switch(l=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:ss(l,n,dn,!es);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(d=ic+300-Mt(),10<d)){if(ss(l,n,dn,!es),vo(l,0,!0)!==0)break e;Ea=n,l.timeoutHandle=_v(Wy.bind(null,l,s,$t,oc,jf,n,dn,Js,ai,es,f,"Throttled",-0,0),d);break e}Wy(l,s,$t,oc,jf,n,dn,Js,ai,es,f,null,-0,0)}}break}while(!0);Zn(e)}function Wy(e,n,s,l,d,f,b,R,M,I,$,W,Q,Y){if(e.timeoutHandle=-1,W=n.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ca},Iy(n,f,W);var fe=(f&62914560)===f?ic-Mt():(f&4194048)===f?$y-Mt():0;if(fe=$j(W,fe),fe!==null){Ea=f,e.cancelPendingCommit=fe(iv.bind(null,e,n,f,s,l,d,b,R,M,$,W,null,Q,Y)),ss(e,f,b,!I);return}}iv(e,n,f,s,l,d,b,R,M)}function uj(e){for(var n=e;;){var s=n.tag;if((s===0||s===11||s===15)&&n.flags&16384&&(s=n.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var d=s[l],f=d.getSnapshot;d=d.value;try{if(!rn(f(),d))return!1}catch{return!1}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ss(e,n,s,l){n&=~wf,n&=~Js,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var d=n;0<d;){var f=31-sn(d),b=1<<f;l[f]=-1,d&=~b}s!==0&&op(e,s,n)}function cc(){return(Fe&6)===0?(Tl(0),!1):!0}function Cf(){if(Te!==null){if(qe===0)var e=Te.return;else e=Te,ha=Is=null,qd(e),Xr=null,fl=0,e=Te;for(;e!==null;)Ay(e.alternate,e),e=e.return;Te=null}}function ri(e,n){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,Tj(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Ea=0,Cf(),$e=e,Te=s=da(e.current,null),Me=n,qe=0,un=null,es=!1,ni=Xi(e,n),Sf=!1,ai=dn=wf=Js=ts=st=0,$t=_l=null,jf=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var d=31-sn(l),f=1<<d;n|=e[d],l&=~f}return ja=n,To(),s}function Jy(e,n){Ee=null,P.H=xl,n===$r||n===Uo?(n=pg(),qe=3):n===Td?(n=pg(),qe=4):qe=n===sf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,un=n,Te===null&&(st=1,Wo(e,En(n,e.current)))}function ev(){var e=on.current;return e===null?!0:(Me&4194048)===Me?_n===null:(Me&62914560)===Me||(Me&536870912)!==0?e===_n:!1}function tv(){var e=P.H;return P.H=xl,e===null?xl:e}function nv(){var e=P.A;return P.A=oj,e}function uc(){st=4,es||(Me&4194048)!==Me&&on.current!==null||(ni=!0),(ts&134217727)===0&&(Js&134217727)===0||$e===null||ss($e,Me,dn,!1)}function _f(e,n,s){var l=Fe;Fe|=2;var d=tv(),f=nv();($e!==e||Me!==n)&&(oc=null,ri(e,n)),n=!1;var b=st;e:do try{if(qe!==0&&Te!==null){var R=Te,M=un;switch(qe){case 8:Cf(),b=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(n=!0);var I=qe;if(qe=0,un=null,ii(e,R,M,I),s&&ni){b=0;break e}break;default:I=qe,qe=0,un=null,ii(e,R,M,I)}}dj(),b=st;break}catch($){Jy(e,$)}while(!0);return n&&e.shellSuspendCounter++,ha=Is=null,Fe=l,P.H=d,P.A=f,Te===null&&($e=null,Me=0,To()),b}function dj(){for(;Te!==null;)av(Te)}function fj(e,n){var s=Fe;Fe|=2;var l=tv(),d=nv();$e!==e||Me!==n?(oc=null,lc=Mt()+500,ri(e,n)):ni=Xi(e,n);e:do try{if(qe!==0&&Te!==null){n=Te;var f=un;t:switch(qe){case 1:qe=0,un=null,ii(e,n,f,1);break;case 2:case 9:if(hg(f)){qe=0,un=null,sv(n);break}n=function(){qe!==2&&qe!==9||$e!==e||(qe=7),Zn(e)},f.then(n,n);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:hg(f)?(qe=0,un=null,sv(n)):(qe=0,un=null,ii(e,n,f,7));break;case 5:var b=null;switch(Te.tag){case 26:b=Te.memoizedState;case 5:case 27:var R=Te;if(b?Gv(b):R.stateNode.complete){qe=0,un=null;var M=R.sibling;if(M!==null)Te=M;else{var I=R.return;I!==null?(Te=I,dc(I)):Te=null}break t}}qe=0,un=null,ii(e,n,f,5);break;case 6:qe=0,un=null,ii(e,n,f,6);break;case 8:Cf(),st=6;break e;default:throw Error(i(462))}}hj();break}catch($){Jy(e,$)}while(!0);return ha=Is=null,P.H=l,P.A=d,Fe=s,Te!==null?0:($e=null,Me=0,To(),st)}function hj(){for(;Te!==null&&!mo();)av(Te)}function av(e){var n=Cy(e.alternate,e,ja);e.memoizedProps=e.pendingProps,n===null?dc(e):Te=n}function sv(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=Sy(s,n,n.pendingProps,n.type,void 0,Me);break;case 11:n=Sy(s,n,n.pendingProps,n.type.render,n.ref,Me);break;case 5:qd(n);default:Ay(s,n),n=Te=ng(n,ja),n=Cy(s,n,ja)}e.memoizedProps=e.pendingProps,n===null?dc(e):Te=n}function ii(e,n,s,l){ha=Is=null,qd(n),Xr=null,fl=0;var d=n.return;try{if(tj(e,d,n,s,Me)){st=1,Wo(e,En(s,e.current)),Te=null;return}}catch(f){if(d!==null)throw Te=d,f;st=1,Wo(e,En(s,e.current)),Te=null;return}n.flags&32768?(De||l===1?e=!0:ni||(Me&536870912)!==0?e=!1:(es=e=!0,(l===2||l===9||l===3||l===6)&&(l=on.current,l!==null&&l.tag===13&&(l.flags|=16384))),rv(n,e)):dc(n)}function dc(e){var n=e;do{if((n.flags&32768)!==0){rv(n,es);return}e=n.return;var s=sj(n.alternate,n,ja);if(s!==null){Te=s;return}if(n=n.sibling,n!==null){Te=n;return}Te=n=e}while(n!==null);st===0&&(st=5)}function rv(e,n){do{var s=rj(e.alternate,e);if(s!==null){s.flags&=32767,Te=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){Te=e;return}Te=e=s}while(e!==null);st=6,Te=null}function iv(e,n,s,l,d,f,b,R,M){e.cancelPendingCommit=null;do fc();while(mt!==0);if((Fe&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(f=n.lanes|n.childLanes,f|=pd,VS(e,s,f,b,R,M),e===$e&&(Te=$e=null,Me=0),si=n,as=e,Ea=s,Ef=f,Nf=d,Xy=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yj(Cr,function(){return dv(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=P.T,P.T=null,d=V.p,V.p=2,b=Fe,Fe|=4;try{ij(e,n,s)}finally{Fe=b,V.p=d,P.T=l}}mt=1,lv(),ov(),cv()}}function lv(){if(mt===1){mt=0;var e=as,n=si,s=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var l=V.p;V.p=2;var d=Fe;Fe|=4;try{Hy(n,e);var f=Ff,b=Yp(e.containerInfo),R=f.focusedElem,M=f.selectionRange;if(b!==R&&R&&R.ownerDocument&&Vp(R.ownerDocument.documentElement,R)){if(M!==null&&ud(R)){var I=M.start,$=M.end;if($===void 0&&($=I),"selectionStart"in R)R.selectionStart=I,R.selectionEnd=Math.min($,R.value.length);else{var W=R.ownerDocument||document,Q=W&&W.defaultView||window;if(Q.getSelection){var Y=Q.getSelection(),fe=R.textContent.length,be=Math.min(M.start,fe),Ye=M.end===void 0?be:Math.min(M.end,fe);!Y.extend&&be>Ye&&(b=Ye,Ye=be,be=b);var F=Qp(R,be),U=Qp(R,Ye);if(F&&U&&(Y.rangeCount!==1||Y.anchorNode!==F.node||Y.anchorOffset!==F.offset||Y.focusNode!==U.node||Y.focusOffset!==U.offset)){var G=W.createRange();G.setStart(F.node,F.offset),Y.removeAllRanges(),be>Ye?(Y.addRange(G),Y.extend(U.node,U.offset)):(G.setEnd(U.node,U.offset),Y.addRange(G))}}}}for(W=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&W.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<W.length;R++){var K=W[R];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Ec=!!Pf,Ff=Pf=null}finally{Fe=d,V.p=l,P.T=s}}e.current=n,mt=2}}function ov(){if(mt===2){mt=0;var e=as,n=si,s=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var l=V.p;V.p=2;var d=Fe;Fe|=4;try{zy(e,n.alternate,n)}finally{Fe=d,V.p=l,P.T=s}}mt=3}}function cv(){if(mt===4||mt===3){mt=0,qu();var e=as,n=si,s=Ea,l=Xy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?mt=5:(mt=0,si=as=null,uv(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(ns=null),Qu(s),n=n.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot($i,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=P.T,d=V.p,V.p=2,P.T=null;try{for(var f=e.onRecoverableError,b=0;b<l.length;b++){var R=l[b];f(R.value,{componentStack:R.stack})}}finally{P.T=n,V.p=d}}(Ea&3)!==0&&fc(),Zn(e),d=e.pendingLanes,(s&261930)!==0&&(d&42)!==0?e===Rf?Al++:(Al=0,Rf=e):Al=0,Tl(0)}}function uv(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ul(n)))}function fc(){return lv(),ov(),cv(),dv()}function dv(){if(mt!==5)return!1;var e=as,n=Ef;Ef=0;var s=Qu(Ea),l=P.T,d=V.p;try{V.p=32>s?32:s,P.T=null,s=Nf,Nf=null;var f=as,b=Ea;if(mt=0,si=as=null,Ea=0,(Fe&6)!==0)throw Error(i(331));var R=Fe;if(Fe|=4,Vy(f.current),Gy(f,f.current,b,s),Fe=R,Tl(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot($i,f)}catch{}return!0}finally{V.p=d,P.T=l,uv(e,n)}}function fv(e,n,s){n=En(s,n),n=af(e.stateNode,n,2),e=Za(e,n,2),e!==null&&(Zi(e,2),Zn(e))}function Ge(e,n,s){if(e.tag===3)fv(e,e,s);else for(;n!==null;){if(n.tag===3){fv(n,e,s);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ns===null||!ns.has(l))){e=En(s,e),s=hy(2),l=Za(n,s,2),l!==null&&(my(s,l,n,e),Zi(l,2),Zn(l));break}}n=n.return}}function Af(e,n,s){var l=e.pingCache;if(l===null){l=e.pingCache=new cj;var d=new Set;l.set(n,d)}else d=l.get(n),d===void 0&&(d=new Set,l.set(n,d));d.has(s)||(Sf=!0,d.add(s),e=mj.bind(null,e,n,s),n.then(e,e))}function mj(e,n,s){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,$e===e&&(Me&s)===s&&(st===4||st===3&&(Me&62914560)===Me&&300>Mt()-ic?(Fe&2)===0&&ri(e,0):wf|=s,ai===Me&&(ai=0)),Zn(e)}function hv(e,n){n===0&&(n=lp()),e=Hs(e,n),e!==null&&(Zi(e,n),Zn(e))}function pj(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),hv(e,s)}function gj(e,n){var s=0;switch(e.tag){case 31:case 13:var l=e.stateNode,d=e.memoizedState;d!==null&&(s=d.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(n),hv(e,s)}function yj(e,n){return Bn(e,n)}var hc=null,li=null,Tf=!1,mc=!1,kf=!1,rs=0;function Zn(e){e!==li&&e.next===null&&(li===null?hc=li=e:li=li.next=e),mc=!0,Tf||(Tf=!0,bj())}function Tl(e,n){if(!kf&&mc){kf=!0;do for(var s=!1,l=hc;l!==null;){if(e!==0){var d=l.pendingLanes;if(d===0)var f=0;else{var b=l.suspendedLanes,R=l.pingedLanes;f=(1<<31-sn(42|e)+1)-1,f&=d&~(b&~R),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(s=!0,yv(l,f))}else f=Me,f=vo(l,l===$e?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||Xi(l,f)||(s=!0,yv(l,f));l=l.next}while(s);kf=!1}}function vj(){mv()}function mv(){mc=Tf=!1;var e=0;rs!==0&&Aj()&&(e=rs);for(var n=Mt(),s=null,l=hc;l!==null;){var d=l.next,f=pv(l,n);f===0?(l.next=null,s===null?hc=d:s.next=d,d===null&&(li=s)):(s=l,(e!==0||(f&3)!==0)&&(mc=!0)),l=d}mt!==0&&mt!==5||Tl(e),rs!==0&&(rs=0)}function pv(e,n){for(var s=e.suspendedLanes,l=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var b=31-sn(f),R=1<<b,M=d[b];M===-1?((R&s)===0||(R&l)!==0)&&(d[b]=QS(R,n)):M<=n&&(e.expiredLanes|=R),f&=~R}if(n=$e,s=Me,s=vo(e,e===n?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===n&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Yi(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Xi(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(l!==null&&Yi(l),Qu(s)){case 2:case 8:s=Vn;break;case 32:s=Cr;break;case 268435456:s=ip;break;default:s=Cr}return l=gv.bind(null,e),s=Bn(s,l),e.callbackPriority=n,e.callbackNode=s,n}return l!==null&&l!==null&&Yi(l),e.callbackPriority=2,e.callbackNode=null,2}function gv(e,n){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(fc()&&e.callbackNode!==s)return null;var l=Me;return l=vo(e,e===$e?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ky(e,l,n),pv(e,Mt()),e.callbackNode!=null&&e.callbackNode===s?gv.bind(null,e):null)}function yv(e,n){if(fc())return null;Ky(e,n,!0)}function bj(){kj(function(){(Fe&6)!==0?Bn(Et,vj):mv()})}function Mf(){if(rs===0){var e=Vr;e===0&&(e=po,po<<=1,(po&261888)===0&&(po=256)),rs=e}return rs}function vv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wo(""+e)}function bv(e,n){var s=n.ownerDocument.createElement("input");return s.name=n.name,s.value=n.value,e.id&&s.setAttribute("form",e.id),n.parentNode.insertBefore(s,n),e=new FormData(e),s.parentNode.removeChild(s),e}function xj(e,n,s,l,d){if(n==="submit"&&s&&s.stateNode===d){var f=vv((d[Gt]||null).action),b=l.submitter;b&&(n=(n=b[Gt]||null)?vv(n.formAction):b.getAttribute("formAction"),n!==null&&(f=n,b=null));var R=new Ro("action","action",null,l,d);e.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(rs!==0){var M=b?bv(d,b):new FormData(d);Kd(s,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(R.preventDefault(),M=b?bv(d,b):new FormData(d),Kd(s,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Of=0;Of<md.length;Of++){var Df=md[Of],Sj=Df.toLowerCase(),wj=Df[0].toUpperCase()+Df.slice(1);Un(Sj,"on"+wj)}Un(Zp,"onAnimationEnd"),Un(Kp,"onAnimationIteration"),Un(Wp,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(Uw,"onTransitionRun"),Un(Pw,"onTransitionStart"),Un(Fw,"onTransitionCancel"),Un(Jp,"onTransitionEnd"),Mr("onMouseEnter",["mouseout","mouseover"]),Mr("onMouseLeave",["mouseout","mouseover"]),Mr("onPointerEnter",["pointerout","pointerover"]),Mr("onPointerLeave",["pointerout","pointerover"]),Bs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="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(" "),jj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function xv(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],d=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var b=l.length-1;0<=b;b--){var R=l[b],M=R.instance,I=R.currentTarget;if(R=R.listener,M!==f&&d.isPropagationStopped())break e;f=R,d.currentTarget=I;try{f(d)}catch($){Ao($)}d.currentTarget=null,f=M}else for(b=0;b<l.length;b++){if(R=l[b],M=R.instance,I=R.currentTarget,R=R.listener,M!==f&&d.isPropagationStopped())break e;f=R,d.currentTarget=I;try{f(d)}catch($){Ao($)}d.currentTarget=null,f=M}}}}function ke(e,n){var s=n[Vu];s===void 0&&(s=n[Vu]=new Set);var l=e+"__bubble";s.has(l)||(Sv(n,e,2,!1),s.add(l))}function Lf(e,n,s){var l=0;n&&(l|=4),Sv(s,e,l,n)}var pc="_reactListening"+Math.random().toString(36).slice(2);function zf(e){if(!e[pc]){e[pc]=!0,mp.forEach(function(s){s!=="selectionchange"&&(jj.has(s)||Lf(s,!1,e),Lf(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[pc]||(n[pc]=!0,Lf("selectionchange",!1,n))}}function Sv(e,n,s,l){switch(Zv(n)){case 2:var d=Kj;break;case 8:d=Wj;break;default:d=Kf}s=d.bind(null,n,s,e),d=void 0,!td||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),l?d!==void 0?e.addEventListener(n,s,{capture:!0,passive:d}):e.addEventListener(n,s,!0):d!==void 0?e.addEventListener(n,s,{passive:d}):e.addEventListener(n,s,!1)}function Bf(e,n,s,l,d){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var R=l.stateNode.containerInfo;if(R===d)break;if(b===4)for(b=l.return;b!==null;){var M=b.tag;if((M===3||M===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;R!==null;){if(b=Ar(R),b===null)return;if(M=b.tag,M===5||M===6||M===26||M===27){l=f=b;continue e}R=R.parentNode}}l=l.return}Rp(function(){var I=f,$=Ju(s),W=[];e:{var Q=eg.get(e);if(Q!==void 0){var Y=Ro,fe=e;switch(e){case"keypress":if(Eo(s)===0)break e;case"keydown":case"keyup":Y=gw;break;case"focusin":fe="focus",Y=rd;break;case"focusout":fe="blur",Y=rd;break;case"beforeblur":case"afterblur":Y=rd;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=sw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=bw;break;case Zp:case Kp:case Wp:Y=lw;break;case Jp:Y=Sw;break;case"scroll":case"scrollend":Y=nw;break;case"wheel":Y=jw;break;case"copy":case"cut":case"paste":Y=cw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=kp;break;case"toggle":case"beforetoggle":Y=Nw}var be=(n&4)!==0,Ye=!be&&(e==="scroll"||e==="scrollend"),F=be?Q!==null?Q+"Capture":null:Q;be=[];for(var U=I,G;U!==null;){var K=U;if(G=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||G===null||F===null||(K=Ji(U,F),K!=null&&be.push(Ml(U,K,G))),Ye)break;U=U.return}0<be.length&&(Q=new Y(Q,fe,null,s,$),W.push({event:Q,listeners:be}))}}if((n&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",Q&&s!==Wu&&(fe=s.relatedTarget||s.fromElement)&&(Ar(fe)||fe[_r]))break e;if((Y||Q)&&(Q=$.window===$?$:(Q=$.ownerDocument)?Q.defaultView||Q.parentWindow:window,Y?(fe=s.relatedTarget||s.toElement,Y=I,fe=fe?Ar(fe):null,fe!==null&&(Ye=u(fe),be=fe.tag,fe!==Ye||be!==5&&be!==27&&be!==6)&&(fe=null)):(Y=null,fe=I),Y!==fe)){if(be=Ap,K="onMouseLeave",F="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(be=kp,K="onPointerLeave",F="onPointerEnter",U="pointer"),Ye=Y==null?Q:Wi(Y),G=fe==null?Q:Wi(fe),Q=new be(K,U+"leave",Y,s,$),Q.target=Ye,Q.relatedTarget=G,K=null,Ar($)===I&&(be=new be(F,U+"enter",fe,s,$),be.target=G,be.relatedTarget=Ye,K=be),Ye=K,Y&&fe)t:{for(be=Ej,F=Y,U=fe,G=0,K=F;K;K=be(K))G++;K=0;for(var ge=U;ge;ge=be(ge))K++;for(;0<G-K;)F=be(F),G--;for(;0<K-G;)U=be(U),K--;for(;G--;){if(F===U||U!==null&&F===U.alternate){be=F;break t}F=be(F),U=be(U)}be=null}else be=null;Y!==null&&wv(W,Q,Y,be,!1),fe!==null&&Ye!==null&&wv(W,Ye,fe,be,!0)}}e:{if(Q=I?Wi(I):window,Y=Q.nodeName&&Q.nodeName.toLowerCase(),Y==="select"||Y==="input"&&Q.type==="file")var Ue=Pp;else if(Bp(Q))if(Fp)Ue=Lw;else{Ue=Ow;var me=Mw}else Y=Q.nodeName,!Y||Y.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?I&&Ku(I.elementType)&&(Ue=Pp):Ue=Dw;if(Ue&&(Ue=Ue(e,I))){Up(W,Ue,s,$);break e}me&&me(e,Q,I),e==="focusout"&&I&&Q.type==="number"&&I.memoizedProps.value!=null&&Zu(Q,"number",Q.value)}switch(me=I?Wi(I):window,e){case"focusin":(Bp(me)||me.contentEditable==="true")&&(Ur=me,dd=I,ll=null);break;case"focusout":ll=dd=Ur=null;break;case"mousedown":fd=!0;break;case"contextmenu":case"mouseup":case"dragend":fd=!1,$p(W,s,$);break;case"selectionchange":if(Bw)break;case"keydown":case"keyup":$p(W,s,$)}var Ne;if(ld)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Br?Lp(e,s)&&(Oe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Oe="onCompositionStart");Oe&&(Mp&&s.locale!=="ko"&&(Br||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Br&&(Ne=Cp()):(Ga=$,nd="value"in Ga?Ga.value:Ga.textContent,Br=!0)),me=gc(I,Oe),0<me.length&&(Oe=new Tp(Oe,e,null,s,$),W.push({event:Oe,listeners:me}),Ne?Oe.data=Ne:(Ne=zp(s),Ne!==null&&(Oe.data=Ne)))),(Ne=Cw?_w(e,s):Aw(e,s))&&(Oe=gc(I,"onBeforeInput"),0<Oe.length&&(me=new Tp("onBeforeInput","beforeinput",null,s,$),W.push({event:me,listeners:Oe}),me.data=Ne)),xj(W,e,I,s,$)}xv(W,n)})}function Ml(e,n,s){return{instance:e,listener:n,currentTarget:s}}function gc(e,n){for(var s=n+"Capture",l=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Ji(e,s),d!=null&&l.unshift(Ml(e,d,f)),d=Ji(e,n),d!=null&&l.push(Ml(e,d,f))),e.tag===3)return l;e=e.return}return[]}function Ej(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wv(e,n,s,l,d){for(var f=n._reactName,b=[];s!==null&&s!==l;){var R=s,M=R.alternate,I=R.stateNode;if(R=R.tag,M!==null&&M===l)break;R!==5&&R!==26&&R!==27||I===null||(M=I,d?(I=Ji(s,f),I!=null&&b.unshift(Ml(s,I,M))):d||(I=Ji(s,f),I!=null&&b.push(Ml(s,I,M)))),s=s.return}b.length!==0&&e.push({event:n,listeners:b})}var Nj=/\r\n?/g,Rj=/\u0000|\uFFFD/g;function jv(e){return(typeof e=="string"?e:""+e).replace(Nj,`
49
- `).replace(Rj,"")}function Ev(e,n){return n=jv(n),jv(e)===n}function Ve(e,n,s,l,d,f){switch(s){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Dr(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Dr(e,""+l);break;case"className":xo(e,"class",l);break;case"tabIndex":xo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":xo(e,s,l);break;case"style":Ep(e,l,f);break;case"data":if(n!=="object"){xo(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=wo(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"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 f=="function"&&(s==="formAction"?(n!=="input"&&Ve(e,n,"name",d.name,d,null),Ve(e,n,"formEncType",d.formEncType,d,null),Ve(e,n,"formMethod",d.formMethod,d,null),Ve(e,n,"formTarget",d.formTarget,d,null)):(Ve(e,n,"encType",d.encType,d,null),Ve(e,n,"method",d.method,d,null),Ve(e,n,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=wo(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=ca);break;case"onScroll":l!=null&&ke("scroll",e);break;case"onScrollEnd":l!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=s}}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}s=wo(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);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(s,""+l):e.removeAttribute(s);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(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":ke("beforetoggle",e),ke("toggle",e),bo(e,"popover",l);break;case"xlinkActuate":oa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":oa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":oa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":oa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":oa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":oa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":oa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":oa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":oa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":bo(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=ew.get(s)||s,bo(e,s,l))}}function Uf(e,n,s,l,d,f){switch(s){case"style":Ep(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=s}}break;case"children":typeof l=="string"?Dr(e,l):(typeof l=="number"||typeof l=="bigint")&&Dr(e,""+l);break;case"onScroll":l!=null&&ke("scroll",e);break;case"onScrollEnd":l!=null&&ke("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pp.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(d=s.endsWith("Capture"),n=s.slice(2,d?s.length-7:void 0),f=e[Gt]||null,f=f!=null?f[s]:null,typeof f=="function"&&e.removeEventListener(n,f,d),typeof l=="function")){typeof f!="function"&&f!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,l,d);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):bo(e,s,l)}}}function At(e,n,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var l=!1,d=!1,f;for(f in s)if(s.hasOwnProperty(f)){var b=s[f];if(b!=null)switch(f){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ve(e,n,f,b,s,null)}}d&&Ve(e,n,"srcSet",s.srcSet,s,null),l&&Ve(e,n,"src",s.src,s,null);return;case"input":ke("invalid",e);var R=f=b=d=null,M=null,I=null;for(l in s)if(s.hasOwnProperty(l)){var $=s[l];if($!=null)switch(l){case"name":d=$;break;case"type":b=$;break;case"checked":M=$;break;case"defaultChecked":I=$;break;case"value":f=$;break;case"defaultValue":R=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:Ve(e,n,l,$,s,null)}}xp(e,f,R,M,I,b,d,!1);return;case"select":ke("invalid",e),l=b=f=null;for(d in s)if(s.hasOwnProperty(d)&&(R=s[d],R!=null))switch(d){case"value":f=R;break;case"defaultValue":b=R;break;case"multiple":l=R;default:Ve(e,n,d,R,s,null)}n=f,s=b,e.multiple=!!l,n!=null?Or(e,!!l,n,!1):s!=null&&Or(e,!!l,s,!0);return;case"textarea":ke("invalid",e),f=d=l=null;for(b in s)if(s.hasOwnProperty(b)&&(R=s[b],R!=null))switch(b){case"value":l=R;break;case"defaultValue":d=R;break;case"children":f=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Ve(e,n,b,R,s,null)}wp(e,l,d,f);return;case"option":for(M in s)if(s.hasOwnProperty(M)&&(l=s[M],l!=null))switch(M){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ve(e,n,M,l,s,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(l=0;l<kl.length;l++)ke(kl[l],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("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(I in s)if(s.hasOwnProperty(I)&&(l=s[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ve(e,n,I,l,s,null)}return;default:if(Ku(n)){for($ in s)s.hasOwnProperty($)&&(l=s[$],l!==void 0&&Uf(e,n,$,l,s,void 0));return}}for(R in s)s.hasOwnProperty(R)&&(l=s[R],l!=null&&Ve(e,n,R,l,s,null))}function Cj(e,n,s,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,b=null,R=null,M=null,I=null,$=null;for(Y in s){var W=s[Y];if(s.hasOwnProperty(Y)&&W!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":M=W;default:l.hasOwnProperty(Y)||Ve(e,n,Y,null,l,W)}}for(var Q in l){var Y=l[Q];if(W=s[Q],l.hasOwnProperty(Q)&&(Y!=null||W!=null))switch(Q){case"type":f=Y;break;case"name":d=Y;break;case"checked":I=Y;break;case"defaultChecked":$=Y;break;case"value":b=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,n));break;default:Y!==W&&Ve(e,n,Q,Y,l,W)}}Xu(e,b,R,M,I,$,f,d);return;case"select":Y=b=R=Q=null;for(f in s)if(M=s[f],s.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":Y=M;default:l.hasOwnProperty(f)||Ve(e,n,f,null,l,M)}for(d in l)if(f=l[d],M=s[d],l.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":Q=f;break;case"defaultValue":R=f;break;case"multiple":b=f;default:f!==M&&Ve(e,n,d,f,l,M)}n=R,s=b,l=Y,Q!=null?Or(e,!!s,Q,!1):!!l!=!!s&&(n!=null?Or(e,!!s,n,!0):Or(e,!!s,s?[]:"",!1));return;case"textarea":Y=Q=null;for(R in s)if(d=s[R],s.hasOwnProperty(R)&&d!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ve(e,n,R,null,l,d)}for(b in l)if(d=l[b],f=s[b],l.hasOwnProperty(b)&&(d!=null||f!=null))switch(b){case"value":Q=d;break;case"defaultValue":Y=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&Ve(e,n,b,d,l,f)}Sp(e,Q,Y);return;case"option":for(var fe in s)if(Q=s[fe],s.hasOwnProperty(fe)&&Q!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ve(e,n,fe,null,l,Q)}for(M in l)if(Q=l[M],Y=s[M],l.hasOwnProperty(M)&&Q!==Y&&(Q!=null||Y!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Ve(e,n,M,Q,l,Y)}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 be in s)Q=s[be],s.hasOwnProperty(be)&&Q!=null&&!l.hasOwnProperty(be)&&Ve(e,n,be,null,l,Q);for(I in l)if(Q=l[I],Y=s[I],l.hasOwnProperty(I)&&Q!==Y&&(Q!=null||Y!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,n));break;default:Ve(e,n,I,Q,l,Y)}return;default:if(Ku(n)){for(var Ye in s)Q=s[Ye],s.hasOwnProperty(Ye)&&Q!==void 0&&!l.hasOwnProperty(Ye)&&Uf(e,n,Ye,void 0,l,Q);for($ in l)Q=l[$],Y=s[$],!l.hasOwnProperty($)||Q===Y||Q===void 0&&Y===void 0||Uf(e,n,$,Q,l,Y);return}}for(var F in s)Q=s[F],s.hasOwnProperty(F)&&Q!=null&&!l.hasOwnProperty(F)&&Ve(e,n,F,null,l,Q);for(W in l)Q=l[W],Y=s[W],!l.hasOwnProperty(W)||Q===Y||Q==null&&Y==null||Ve(e,n,W,Q,l,Y)}function Nv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _j(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var d=s[l],f=d.transferSize,b=d.initiatorType,R=d.duration;if(f&&R&&Nv(b)){for(b=0,R=d.responseEnd,l+=1;l<s.length;l++){var M=s[l],I=M.startTime;if(I>R)break;var $=M.transferSize,W=M.initiatorType;$&&Nv(W)&&(M=M.responseEnd,b+=$*(M<R?1:(R-I)/(M-I)))}if(--l,n+=8*(f+b)/(d.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Pf=null,Ff=null;function yc(e){return e.nodeType===9?e:e.ownerDocument}function Rv(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 Cv(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Hf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var qf=null;function Aj(){var e=window.event;return e&&e.type==="popstate"?e===qf?!1:(qf=e,!0):(qf=null,!1)}var _v=typeof setTimeout=="function"?setTimeout:void 0,Tj=typeof clearTimeout=="function"?clearTimeout:void 0,Av=typeof Promise=="function"?Promise:void 0,kj=typeof queueMicrotask=="function"?queueMicrotask:typeof Av<"u"?function(e){return Av.resolve(null).then(e).catch(Mj)}:_v;function Mj(e){setTimeout(function(){throw e})}function is(e){return e==="head"}function Tv(e,n){var s=n,l=0;do{var d=s.nextSibling;if(e.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"||s==="/&"){if(l===0){e.removeChild(d),di(n);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Ol(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Ol(s);for(var f=s.firstChild;f;){var b=f.nextSibling,R=f.nodeName;f[Ki]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&f.rel.toLowerCase()==="stylesheet"||s.removeChild(f),f=b}}else s==="body"&&Ol(e.ownerDocument.body);s=d}while(s);di(n)}function kv(e,n){var s=e;e=0;do{var l=s.nextSibling;if(s.nodeType===1?n?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(n?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=l}while(s)}function Gf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var s=n;switch(n=n.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Gf(s),Yu(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function Oj(e,n,s,l){for(;e.nodeType===1;){var d=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ki])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=An(e.nextSibling),e===null)break}return null}function Dj(e,n,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=An(e.nextSibling),e===null))return null;return e}function Mv(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=An(e.nextSibling),e===null))return null;return e}function If(e){return e.data==="$?"||e.data==="$~"}function Qf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lj(e,n){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||s.readyState!=="loading")n();else{var l=function(){n(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function An(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Vf=null;function Ov(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(n===0)return An(e.nextSibling);n--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||n++}e=e.nextSibling}return null}function Dv(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(n===0)return e;n--}else s!=="/$"&&s!=="/&"||n++}e=e.previousSibling}return null}function Lv(e,n,s){switch(n=yc(s),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ol(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Yu(e)}var Tn=new Map,zv=new Set;function vc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Na=V.d;V.d={f:zj,r:Bj,D:Uj,C:Pj,L:Fj,m:Hj,X:Gj,S:qj,M:Ij};function zj(){var e=Na.f(),n=cc();return e||n}function Bj(e){var n=Tr(e);n!==null&&n.tag===5&&n.type==="form"?Jg(n):Na.r(e)}var oi=typeof document>"u"?null:document;function Bv(e,n,s){var l=oi;if(l&&typeof n=="string"&&n){var d=wn(n);d='link[rel="'+e+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),zv.has(d)||(zv.add(d),e={rel:e,crossOrigin:s,href:n},l.querySelector(d)===null&&(n=l.createElement("link"),At(n,"link",e),xt(n),l.head.appendChild(n)))}}function Uj(e){Na.D(e),Bv("dns-prefetch",e,null)}function Pj(e,n){Na.C(e,n),Bv("preconnect",e,n)}function Fj(e,n,s){Na.L(e,n,s);var l=oi;if(l&&e&&n){var d='link[rel="preload"][as="'+wn(n)+'"]';n==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+wn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+wn(s.imageSizes)+'"]')):d+='[href="'+wn(e)+'"]';var f=d;switch(n){case"style":f=ci(e);break;case"script":f=ui(e)}Tn.has(f)||(e=y({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),Tn.set(f,e),l.querySelector(d)!==null||n==="style"&&l.querySelector(Dl(f))||n==="script"&&l.querySelector(Ll(f))||(n=l.createElement("link"),At(n,"link",e),xt(n),l.head.appendChild(n)))}}function Hj(e,n){Na.m(e,n);var s=oi;if(s&&e){var l=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+wn(l)+'"][href="'+wn(e)+'"]',f=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ui(e)}if(!Tn.has(f)&&(e=y({rel:"modulepreload",href:e},n),Tn.set(f,e),s.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Ll(f)))return}l=s.createElement("link"),At(l,"link",e),xt(l),s.head.appendChild(l)}}}function qj(e,n,s){Na.S(e,n,s);var l=oi;if(l&&e){var d=kr(l).hoistableStyles,f=ci(e);n=n||"default";var b=d.get(f);if(!b){var R={loading:0,preload:null};if(b=l.querySelector(Dl(f)))R.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},s),(s=Tn.get(f))&&Yf(e,s);var M=b=l.createElement("link");xt(M),At(M,"link",e),M._p=new Promise(function(I,$){M.onload=I,M.onerror=$}),M.addEventListener("load",function(){R.loading|=1}),M.addEventListener("error",function(){R.loading|=2}),R.loading|=4,bc(b,n,l)}b={type:"stylesheet",instance:b,count:1,state:R},d.set(f,b)}}}function Gj(e,n){Na.X(e,n);var s=oi;if(s&&e){var l=kr(s).hoistableScripts,d=ui(e),f=l.get(d);f||(f=s.querySelector(Ll(d)),f||(e=y({src:e,async:!0},n),(n=Tn.get(d))&&$f(e,n),f=s.createElement("script"),xt(f),At(f,"link",e),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(d,f))}}function Ij(e,n){Na.M(e,n);var s=oi;if(s&&e){var l=kr(s).hoistableScripts,d=ui(e),f=l.get(d);f||(f=s.querySelector(Ll(d)),f||(e=y({src:e,async:!0,type:"module"},n),(n=Tn.get(d))&&$f(e,n),f=s.createElement("script"),xt(f),At(f,"link",e),s.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(d,f))}}function Uv(e,n,s,l){var d=(d=he.current)?vc(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=ci(s.href),s=kr(d).hoistableStyles,l=s.get(n),l||(l={type:"style",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=ci(s.href);var f=kr(d).hoistableStyles,b=f.get(e);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,b),(f=d.querySelector(Dl(e)))&&!f._p&&(b.instance=f,b.state.loading=5),Tn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Tn.set(e,s),f||Qj(d,e,s,b.state))),n&&l===null)throw Error(i(528,""));return b}if(n&&l!==null)throw Error(i(529,""));return null;case"script":return n=s.async,s=s.src,typeof s=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ui(s),s=kr(d).hoistableScripts,l=s.get(n),l||(l={type:"script",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ci(e){return'href="'+wn(e)+'"'}function Dl(e){return'link[rel="stylesheet"]['+e+"]"}function Pv(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Qj(e,n,s,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),At(n,"link",s),xt(n),e.head.appendChild(n))}function ui(e){return'[src="'+wn(e)+'"]'}function Ll(e){return"script[async]"+e}function Fv(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+wn(s.href)+'"]');if(l)return n.instance=l,xt(l),l;var d=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),xt(l),At(l,"style",d),bc(l,s.precedence,e),n.instance=l;case"stylesheet":d=ci(s.href);var f=e.querySelector(Dl(d));if(f)return n.state.loading|=4,n.instance=f,xt(f),f;l=Pv(s),(d=Tn.get(d))&&Yf(l,d),f=(e.ownerDocument||e).createElement("link"),xt(f);var b=f;return b._p=new Promise(function(R,M){b.onload=R,b.onerror=M}),At(f,"link",l),n.state.loading|=4,bc(f,s.precedence,e),n.instance=f;case"script":return f=ui(s.src),(d=e.querySelector(Ll(f)))?(n.instance=d,xt(d),d):(l=s,(d=Tn.get(f))&&(l=y({},s),$f(l,d)),e=e.ownerDocument||e,d=e.createElement("script"),xt(d),At(d,"link",l),e.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,bc(l,s.precedence,e));return n.instance}function bc(e,n,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,f=d,b=0;b<l.length;b++){var R=l[b];if(R.dataset.precedence===n)f=R;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function Yf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function $f(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var xc=null;function Hv(e,n,s){if(xc===null){var l=new Map,d=xc=new Map;d.set(s,l)}else d=xc,l=d.get(s),l||(l=new Map,d.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),d=0;d<s.length;d++){var f=s[d];if(!(f[Ki]||f[Nt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var b=f.getAttribute(n)||"";b=e+b;var R=l.get(b);R?R.push(f):l.set(b,[f])}}return l}function qv(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function Vj(e,n,s){if(s===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Gv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Yj(e,n,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var d=ci(l.href),f=n.querySelector(Dl(d));if(f){n=f._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Sc.bind(e),n.then(e,e)),s.state.loading|=4,s.instance=f,xt(f);return}f=n.ownerDocument||n,l=Pv(l),(d=Tn.get(d))&&Yf(l,d),f=f.createElement("link"),xt(f);var b=f;b._p=new Promise(function(R,M){b.onload=R,b.onerror=M}),At(f,"link",l),s.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,n),(n=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Sc.bind(e),n.addEventListener("load",s),n.addEventListener("error",s))}}var Xf=0;function $j(e,n){return e.stylesheets&&e.count===0&&jc(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var l=setTimeout(function(){if(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+n);0<e.imgBytes&&Xf===0&&(Xf=62500*_j());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Xf?50:800)+n);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function Sc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wc=null;function jc(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wc=new Map,n.forEach(Xj,e),wc=null,Sc.call(e))}function Xj(e,n){if(!(n.state.loading&4)){var s=wc.get(e);if(s)var l=s.get(null);else{s=new Map,wc.set(e,s);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var b=d[f];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(s.set(b.dataset.precedence,b),l=b)}l&&s.set(null,l)}d=n.instance,b=d.getAttribute("data-precedence"),f=s.get(b)||l,f===l&&s.set(null,d),s.set(b,d),this.count++,l=Sc.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),n.state.loading|=4}}var zl={$$typeof:T,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Zj(e,n,s,l,d,f,b,R,M){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=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function Iv(e,n,s,l,d,f,b,R,M,I,$,W){return e=new Zj(e,n,s,b,M,I,$,W,R),n=1,f===!0&&(n|=24),f=ln(3,null,null,n),e.current=f,f.stateNode=e,n=Cd(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:s,cache:n},kd(f),e}function Qv(e){return e?(e=Hr,e):Hr}function Vv(e,n,s,l,d,f){d=Qv(d),l.context===null?l.context=d:l.pendingContext=d,l=Xa(n),l.payload={element:s},f=f===void 0?null:f,f!==null&&(l.callback=f),s=Za(e,l,n),s!==null&&(Xt(s,e,n),ml(s,e,n))}function Yv(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function Zf(e,n){Yv(e,n),(e=e.alternate)&&Yv(e,n)}function $v(e){if(e.tag===13||e.tag===31){var n=Hs(e,67108864);n!==null&&Xt(n,e,67108864),Zf(e,67108864)}}function Xv(e){if(e.tag===13||e.tag===31){var n=fn();n=Iu(n);var s=Hs(e,n);s!==null&&Xt(s,e,n),Zf(e,n)}}var Ec=!0;function Kj(e,n,s,l){var d=P.T;P.T=null;var f=V.p;try{V.p=2,Kf(e,n,s,l)}finally{V.p=f,P.T=d}}function Wj(e,n,s,l){var d=P.T;P.T=null;var f=V.p;try{V.p=8,Kf(e,n,s,l)}finally{V.p=f,P.T=d}}function Kf(e,n,s,l){if(Ec){var d=Wf(l);if(d===null)Bf(e,n,l,Nc,s),Kv(e,l);else if(eE(d,e,n,s,l))l.stopPropagation();else if(Kv(e,l),n&4&&-1<Jj.indexOf(e)){for(;d!==null;){var f=Tr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var b=zs(f.pendingLanes);if(b!==0){var R=f;for(R.pendingLanes|=2,R.entangledLanes|=2;b;){var M=1<<31-sn(b);R.entanglements[1]|=M,b&=~M}Zn(f),(Fe&6)===0&&(lc=Mt()+500,Tl(0))}}break;case 31:case 13:R=Hs(f,2),R!==null&&Xt(R,f,2),cc(),Zf(f,2)}if(f=Wf(l),f===null&&Bf(e,n,l,Nc,s),f===d)break;d=f}d!==null&&l.stopPropagation()}else Bf(e,n,l,null,s)}}function Wf(e){return e=Ju(e),Jf(e)}var Nc=null;function Jf(e){if(Nc=null,e=Ar(e),e!==null){var n=u(e);if(n===null)e=null;else{var s=n.tag;if(s===13){if(e=h(n),e!==null)return e;e=null}else if(s===31){if(e=m(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Nc=e,null}function Zv(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(Ie()){case Et:return 2;case Vn:return 8;case Cr:case PS:return 32;case ip:return 268435456;default:return 32}default:return 32}}var eh=!1,ls=null,os=null,cs=null,Bl=new Map,Ul=new Map,us=[],Jj="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 Kv(e,n){switch(e){case"focusin":case"focusout":ls=null;break;case"dragenter":case"dragleave":os=null;break;case"mouseover":case"mouseout":cs=null;break;case"pointerover":case"pointerout":Bl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(n.pointerId)}}function Pl(e,n,s,l,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:s,eventSystemFlags:l,nativeEvent:f,targetContainers:[d]},n!==null&&(n=Tr(n),n!==null&&$v(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function eE(e,n,s,l,d){switch(n){case"focusin":return ls=Pl(ls,e,n,s,l,d),!0;case"dragenter":return os=Pl(os,e,n,s,l,d),!0;case"mouseover":return cs=Pl(cs,e,n,s,l,d),!0;case"pointerover":var f=d.pointerId;return Bl.set(f,Pl(Bl.get(f)||null,e,n,s,l,d)),!0;case"gotpointercapture":return f=d.pointerId,Ul.set(f,Pl(Ul.get(f)||null,e,n,s,l,d)),!0}return!1}function Wv(e){var n=Ar(e.target);if(n!==null){var s=u(n);if(s!==null){if(n=s.tag,n===13){if(n=h(s),n!==null){e.blockedOn=n,fp(e.priority,function(){Xv(s)});return}}else if(n===31){if(n=m(s),n!==null){e.blockedOn=n,fp(e.priority,function(){Xv(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Wf(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Wu=l,s.target.dispatchEvent(l),Wu=null}else return n=Tr(s),n!==null&&$v(n),e.blockedOn=s,!1;n.shift()}return!0}function Jv(e,n,s){Rc(e)&&s.delete(n)}function tE(){eh=!1,ls!==null&&Rc(ls)&&(ls=null),os!==null&&Rc(os)&&(os=null),cs!==null&&Rc(cs)&&(cs=null),Bl.forEach(Jv),Ul.forEach(Jv)}function Cc(e,n){e.blockedOn===n&&(e.blockedOn=null,eh||(eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,tE)))}var _c=null;function eb(e){_c!==e&&(_c=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){_c===e&&(_c=null);for(var n=0;n<e.length;n+=3){var s=e[n],l=e[n+1],d=e[n+2];if(typeof l!="function"){if(Jf(l||s)===null)continue;break}var f=Tr(s);f!==null&&(e.splice(n,3),n-=3,Kd(f,{pending:!0,data:d,method:s.method,action:l},l,d))}}))}function di(e){function n(M){return Cc(M,e)}ls!==null&&Cc(ls,e),os!==null&&Cc(os,e),cs!==null&&Cc(cs,e),Bl.forEach(n),Ul.forEach(n);for(var s=0;s<us.length;s++){var l=us[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<us.length&&(s=us[0],s.blockedOn===null);)Wv(s),s.blockedOn===null&&us.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var d=s[l],f=s[l+1],b=d[Gt]||null;if(typeof f=="function")b||eb(s);else if(b){var R=null;if(f&&f.hasAttribute("formAction")){if(d=f,b=f[Gt]||null)R=b.formAction;else if(Jf(d)!==null)continue}else R=b.action;typeof R=="function"?s[l+1]=R:(s.splice(l,3),l-=3),eb(s)}}}function tb(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function th(e){this._internalRoot=e}Ac.prototype.render=th.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var s=n.current,l=fn();Vv(s,l,e,n,null,null)},Ac.prototype.unmount=th.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Vv(e.current,2,null,e,null,null),cc(),n[_r]=null}};function Ac(e){this._internalRoot=e}Ac.prototype.unstable_scheduleHydration=function(e){if(e){var n=dp();e={blockedOn:null,target:e,priority:n};for(var s=0;s<us.length&&n!==0&&n<us[s].priority;s++);us.splice(s,0,e),s===0&&Wv(e)}};var nb=a.version;if(nb!=="19.2.7")throw Error(i(527,nb,"19.2.7"));V.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var nE={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tc.isDisabled&&Tc.supportsFiber)try{$i=Tc.inject(nE),an=Tc}catch{}}return Hl.createRoot=function(e,n){if(!o(e))throw Error(i(299));var s=!1,l="",d=cy,f=uy,b=dy;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Iv(e,1,!1,null,null,s,l,null,d,f,b,tb),e[_r]=n.current,zf(e),new th(n)},Hl.hydrateRoot=function(e,n,s){if(!o(e))throw Error(i(299));var l=!1,d="",f=cy,b=uy,R=dy,M=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError),s.formState!==void 0&&(M=s.formState)),n=Iv(e,1,!0,n,s??null,l,d,M,f,b,R,tb),n.context=Qv(null),s=n.current,l=fn(),l=Iu(l),d=Xa(l),d.callback=null,Za(s,d,l),s=l,n.current.lanes=s,Zi(n,s),Zn(n),e[_r]=n.current,zf(e),new Ac(n)},Hl.version="19.2.7",Hl}var hb;function fE(){if(hb)return rh.exports;hb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),rh.exports=dE(),rh.exports}var hE=fE();const mE=bm(hE);var Yl=typeof window<"u"?N.useLayoutEffect:N.useEffect;function ch(t){const a=N.useRef({value:t,prev:null}),r=a.current.value;return t!==r&&(a.current={value:t,prev:r}),a.current.prev}function pE(t,a,r={},i={}){N.useEffect(()=>{if(!t.current||i.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([u])=>{a(u)},r);return o.observe(t.current),()=>{o.disconnect()}},[a,r,i.disabled,t])}function gE(t){const a=N.useRef(null);return N.useImperativeHandle(t,()=>a.current,[]),a}const l0=!1;function Xl(t){return t[t.length-1]}function yE(t){return typeof t=="function"}function ar(t,a){return yE(t)?t(a):t}const o0=Object.prototype.hasOwnProperty,mb=Object.prototype.propertyIsEnumerable;function c0(t){for(const a in t)if(o0.call(t,a))return!0;return!1}const vE=()=>Object.create(null),er=(t,a)=>sr(t,a,vE);function sr(t,a,r=()=>({}),i=0){if(t===a)return t;if(i>500)return a;const o=a,u=yb(t)&&yb(o);if(!u&&!(nu(t)&&nu(o)))return o;const h=u?t:pb(t);if(!h)return o;const m=u?o:pb(o);if(!m)return o;const g=h.length,p=m.length,v=u?new Array(p):r();let y=0;for(let x=0;x<p;x++){const j=u?x:m[x],w=t[j],S=o[j];if(w===S){v[j]=w,(u?x<g:o0.call(t,j))&&y++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){v[j]=S;continue}const E=sr(w,S,r,i+1);v[j]=E,E===w&&y++}return g===p&&y===g?t:v}function pb(t){const a=Object.getOwnPropertyNames(t);for(const o of a)if(!mb.call(t,o))return!1;const r=Object.getOwnPropertySymbols(t);if(r.length===0)return a;const i=a;for(const o of r){if(!mb.call(t,o))return!1;i.push(o)}return i}function nu(t){if(!gb(t))return!1;const a=t.constructor;if(typeof a>"u")return!0;const r=a.prototype;return!(!gb(r)||!r.hasOwnProperty("isPrototypeOf"))}function gb(t){return Object.prototype.toString.call(t)==="[object Object]"}function yb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function gr(t,a,r){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(Array.isArray(t)&&Array.isArray(a)){if(t.length!==a.length)return!1;for(let i=0,o=t.length;i<o;i++)if(!gr(t[i],a[i],r))return!1;return!0}if(nu(t)&&nu(a)){const i=(r==null?void 0:r.ignoreUndefined)??!0;if(r!=null&&r.partial){for(const h in a)if((!i||a[h]!==void 0)&&!gr(t[h],a[h],r))return!1;return!0}let o=0;if(!i)o=Object.keys(t).length;else for(const h in t)t[h]!==void 0&&o++;let u=0;for(const h in a)if((!i||a[h]!==void 0)&&(u++,u>o||!gr(t[h],a[h],r)))return!1;return o===u}return!1}function Li(t){let a,r;const i=new Promise((o,u)=>{a=o,r=u});return i.status="pending",i.resolve=o=>{i.status="resolved",i.value=o,a(o),t==null||t(o)},i.reject=o=>{i.status="rejected",r(o)},i}function Zl(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function bE(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function vb(t){let a;try{a=decodeURI(t)}catch{a=t.replaceAll(/%[0-9A-F]{2}/gi,r=>{try{return decodeURI(r)}catch{return r}})}return bE(a)}const xE=["http:","https:","mailto:","tel:"];function au(t,a){if(!t)return!1;try{const r=new URL(t);return!a.has(r.protocol)}catch{return!1}}function ql(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let r=0,i="",o;for(;(o=a.exec(t))!==null;)i+=vb(t.slice(r,o.index))+o[0],r=a.lastIndex;i=i+vb(r?t.slice(r):t);let u=!1;return i.startsWith("//")&&(u=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:u}}function SE(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function wE(t,a){if(t===a)return!0;if(t.length!==a.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==a[r])return!1;return!0}function Da(){throw new Error("Invariant failed")}function Kl(t){const a=new Map;let r,i;const o=u=>{u.next&&(u.prev?(u.prev.next=u.next,u.next.prev=u.prev,u.next=void 0,i&&(i.next=u,u.prev=i)):(u.next.prev=void 0,r=u.next,u.next=void 0,i&&(u.prev=i,i.next=u)),i=u)};return{get(u){const h=a.get(u);if(h)return o(h),h.value},set(u,h){if(a.size>=t&&r){const g=r;a.delete(g.key),g.next&&(r=g.next,g.next.prev=void 0),g===i&&(i=void 0)}const m=a.get(u);if(m)m.value=h,o(m);else{const g={key:u,value:h,prev:i};i&&(i.next=g),i=g,r||(r=g),a.set(u,g)}},clear(){a.clear(),r=void 0,i=void 0}}}const Rs=4,u0=5;function jE(t){const a=t.indexOf("{");if(a===-1)return null;const r=t.indexOf("}",a);return r===-1||a+1>=t.length?null:[a,r]}function d0(t,a,r=new Uint16Array(6)){const i=t.indexOf("/",a),o=i===-1?t.length:i,u=t.substring(a,o);if(!u||!u.includes("$"))return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r;if(u==="$"){const m=t.length;return r[0]=2,r[1]=a,r[2]=a,r[3]=m,r[4]=m,r[5]=m,r}if(u.charCodeAt(0)===36)return r[0]=1,r[1]=a,r[2]=a+1,r[3]=o,r[4]=o,r[5]=o,r;const h=jE(u);if(h){const[m,g]=h,p=u.charCodeAt(m+1);if(p===45){if(m+2<u.length&&u.charCodeAt(m+2)===36){const v=m+3,y=g;if(v<y)return r[0]=3,r[1]=a+m,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=o,r}}else if(p===36){const v=m+1,y=m+2;return y===g?(r[0]=2,r[1]=a+m,r[2]=a+v,r[3]=a+y,r[4]=a+g+1,r[5]=t.length,r):(r[0]=1,r[1]=a+m,r[2]=a+y,r[3]=a+g,r[4]=a+g+1,r[5]=o,r)}}return r[0]=0,r[1]=a,r[2]=a,r[3]=o,r[4]=o,r[5]=o,r}function Su(t,a,r,i,o,u,h){var g,p,v,y,x,j,w,S,E,_;h==null||h(r);let m=i;{const C=r.fullPath??r.from,T=C.length,A=((g=r.options)==null?void 0:g.caseSensitive)??t,B=((v=(p=r.options)==null?void 0:p.params)==null?void 0:v.parse)??((y=r.options)==null?void 0:y.parseParams);for(;m<T;){const k=d0(C,m,a);let D;const z=m,H=k[5];switch(m=H+1,u++,k[0]){case 0:{const X=C.substring(k[2],k[3]);if(A){const ne=(x=o.static)==null?void 0:x.get(X);if(ne)D=ne;else{o.static??(o.static=new Map);const se=rr(r.fullPath??r.from);se.parent=o,se.depth=u,D=se,o.static.set(X,se)}}else{const ne=X.toLowerCase(),se=(j=o.staticInsensitive)==null?void 0:j.get(ne);if(se)D=se;else{o.staticInsensitive??(o.staticInsensitive=new Map);const te=rr(r.fullPath??r.from);te.parent=o,te.depth=u,D=te,o.staticInsensitive.set(ne,te)}}break}case 1:{const X=C.substring(z,k[1]),ne=C.substring(k[4],H),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,P=!B&&((w=o.dynamic)==null?void 0:w.find(V=>!V.parse&&V.caseSensitive===se&&V.prefix===te&&V.suffix===ce));if(P)D=P;else{const V=dh(1,r.fullPath??r.from,se,te,ce);D=V,V.depth=u,V.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(V)}break}case 3:{const X=C.substring(z,k[1]),ne=C.substring(k[4],H),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,P=!B&&((S=o.optional)==null?void 0:S.find(V=>!V.parse&&V.caseSensitive===se&&V.prefix===te&&V.suffix===ce));if(P)D=P;else{const V=dh(3,r.fullPath??r.from,se,te,ce);D=V,V.parent=o,V.depth=u,o.optional??(o.optional=[]),o.optional.push(V)}break}case 2:{const X=C.substring(z,k[1]),ne=C.substring(k[4],H),se=A&&!!(X||ne),te=X?se?X:X.toLowerCase():void 0,ce=ne?se?ne:ne.toLowerCase():void 0,P=dh(2,r.fullPath??r.from,se,te,ce);D=P,P.parent=o,P.depth=u,o.wildcard??(o.wildcard=[]),o.wildcard.push(P)}}o=D}if(B&&r.children&&!r.isRoot&&r.id&&r.id.charCodeAt(r.id.lastIndexOf("/")+1)===95){const k=rr(r.fullPath??r.from);k.kind=u0,k.parent=o,u++,k.depth=u,o.pathless??(o.pathless=[]),o.pathless.push(k),o=k}const q=(r.path||!r.children)&&!r.isRoot;if(q&&C.endsWith("/")){const k=rr(r.fullPath??r.from);k.kind=Rs,k.parent=o,u++,k.depth=u,o.index=k,o=k}o.parse=B??null,o.priority=((_=(E=r.options)==null?void 0:E.params)==null?void 0:_.priority)??0,q&&!o.route&&(o.route=r,o.fullPath=r.fullPath??r.from)}if(r.children)for(const C of r.children)Su(t,a,C,m,o,u,h)}function uh(t,a){if(t.parse&&!a.parse)return-1;if(!t.parse&&a.parse)return 1;if(t.parse&&a.parse&&(t.priority||a.priority))return a.priority-t.priority;if(t.prefix&&a.prefix&&t.prefix!==a.prefix){if(t.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(t.prefix))return 1}if(t.suffix&&a.suffix&&t.suffix!==a.suffix){if(t.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(t.suffix))return 1}return t.prefix&&!a.prefix?-1:!t.prefix&&a.prefix?1:t.suffix&&!a.suffix?-1:!t.suffix&&a.suffix?1:t.caseSensitive&&!a.caseSensitive?-1:!t.caseSensitive&&a.caseSensitive?1:0}function gs(t){var a,r,i;if(t.pathless)for(const o of t.pathless)gs(o);if(t.static)for(const o of t.static.values())gs(o);if(t.staticInsensitive)for(const o of t.staticInsensitive.values())gs(o);if((a=t.dynamic)!=null&&a.length){t.dynamic.sort(uh);for(const o of t.dynamic)gs(o)}if((r=t.optional)!=null&&r.length){t.optional.sort(uh);for(const o of t.optional)gs(o)}if((i=t.wildcard)!=null&&i.length){t.wildcard.sort(uh);for(const o of t.wildcard)gs(o)}}function rr(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0}}function dh(t,a,r,i,o){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0,caseSensitive:r,prefix:i,suffix:o}}function EE(t,a){const r=rr("/"),i=new Uint16Array(6);for(const o of t)Su(!1,i,o,1,r,0);gs(r),a.masksTree=r,a.flatCache=Kl(1e3)}function NE(t,a){t||(t="/");const r=a.flatCache.get(t);if(r)return r;const i=Sm(t,a.masksTree);return a.flatCache.set(t,i),i}function RE(t,a,r,i,o){t||(t="/"),i||(i="/");const u=a?`case\0${t}`:t;let h=o.singleCache.get(u);return h||(h=rr("/"),Su(a,new Uint16Array(6),{from:t},1,h,0),o.singleCache.set(u,h)),Sm(i,h,r)}function CE(t,a,r=!1){const i=r?t:`nofuzz\0${t}`,o=a.matchCache.get(i);if(o!==void 0)return o;t||(t="/");let u;try{u=Sm(t,a.segmentTree,r)}catch(h){if(h instanceof URIError)u=null;else throw h}return u&&(u.branch=h0(u.route)),a.matchCache.set(i,u),u}function _E(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function AE(t,a=!1,r){const i=rr(t.fullPath),o=new Uint16Array(6),u={},h={};let m=0;return Su(a,o,t,1,i,0,g=>{if(r==null||r(g,m),g.id in u&&Da(),u[g.id]=g,m!==0&&g.path){const p=_E(g.fullPath);(!h[p]||g.fullPath.endsWith("/"))&&(h[p]=g)}m++}),gs(i),{processedTree:{segmentTree:i,singleCache:Kl(1e3),matchCache:Kl(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:h}}function Sm(t,a,r=!1){const i=t.split("/"),o=kE(t,i,a,r);if(!o)return null;const[u]=f0(t,i,o);return{route:o.node.route,rawParams:u}}function f0(t,a,r){var v,y,x,j,w,S,E,_,C,T;const i=TE(r.node);let o=null;const u=Object.create(null);let h=((v=r.extract)==null?void 0:v.part)??0,m=((y=r.extract)==null?void 0:y.node)??0,g=((x=r.extract)==null?void 0:x.path)??0,p=((j=r.extract)==null?void 0:j.segment)??0;for(;m<i.length;h++,m++,g++,p++){const A=i[m];if(A.kind===Rs)break;if(A.kind===u0){p--,h--,g--;continue}const B=a[h],q=g;if(B&&(g+=B.length),A.kind===1){o??(o=r.node.fullPath.split("/"));const k=o[p],D=((w=A.prefix)==null?void 0:w.length)??0;if(k.charCodeAt(D)===123){const z=((S=A.suffix)==null?void 0:S.length)??0,H=k.substring(D+2,k.length-z-1),X=B.substring(D,B.length-z);u[H]=decodeURIComponent(X)}else{const z=k.substring(1);u[z]=decodeURIComponent(B)}}else if(A.kind===3){if(r.skipped&1<<m){h--,g=q-1;continue}o??(o=r.node.fullPath.split("/"));const k=o[p],D=((E=A.prefix)==null?void 0:E.length)??0,z=((_=A.suffix)==null?void 0:_.length)??0,H=k.substring(D+3,k.length-z-1),X=A.suffix||A.prefix?B.substring(D,B.length-z):B;X&&(u[H]=decodeURIComponent(X))}else if(A.kind===2){const k=A,D=t.substring(q+(((C=k.prefix)==null?void 0:C.length)??0),t.length-(((T=k.suffix)==null?void 0:T.length)??0)),z=decodeURIComponent(D);u["*"]=z,u._splat=z;break}}return r.rawParams&&Object.assign(u,r.rawParams),[u,{part:h,node:m,path:g,segment:p}]}function h0(t){const a=[t];for(;t.parentRoute;)t=t.parentRoute,a.push(t);return a.reverse(),a}function TE(t){const a=Array(t.depth+1);do a[t.depth]=t,t=t.parent;while(t);return a}function kE(t,a,r,i){if(t==="/"&&r.index)return{node:r.index,skipped:0};const o=!Xl(a),u=o&&t!=="/",h=a.length-(o?1:0),m=[{node:r,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let g=null,p=null;for(;m.length;){const v=m.pop(),{node:y,index:x,skipped:j,depth:w,statics:S,dynamics:E,optionals:_}=v;let{extract:C,rawParams:T}=v;if(y.kind===2&&y.route&&!Oc(p,v))continue;if(y.parse){if(!bb(t,a,v))continue;T=v.rawParams,C=v.extract}i&&y.route&&y.kind!==Rs&&Oc(g,v)&&(g=v);const A=x===h;if(A&&(y.route&&(!u||y.kind===Rs||y.kind===2)&&Oc(p,v)&&(p=v),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const B=A?void 0:a[x];let q;if(A&&y.index){const k={node:y.index,index:x,skipped:j,depth:w+1,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T};let D=!0;if(y.index.parse&&(bb(t,a,k)||(D=!1)),D){if(!E&&!_&&!j&&ME(S,h))return k;Oc(p,k)&&(p=k)}}if(y.wildcard)for(let k=y.wildcard.length-1;k>=0;k--){const D=y.wildcard[k],{prefix:z,suffix:H}=D;if(!(z&&(A||!(D.caseSensitive?B:q??(q=B.toLowerCase())).startsWith(z)))){if(H){if(A)continue;const X=a.slice(x).join("/").slice(-H.length);if((D.caseSensitive?X:X.toLowerCase())!==H)continue}m.push({node:D,index:h,skipped:j,depth:w+1,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T})}}if(y.optional){const k=j|1<<w,D=w+1;for(let z=y.optional.length-1;z>=0;z--){const H=y.optional[z];m.push({node:H,index:x,skipped:k,depth:D,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T})}if(!A)for(let z=y.optional.length-1;z>=0;z--){const H=y.optional[z],{prefix:X,suffix:ne}=H;if(X||ne){const se=H.caseSensitive?B:q??(q=B.toLowerCase());if(X&&!se.startsWith(X)||ne&&!se.endsWith(ne))continue}m.push({node:H,index:x+1,skipped:j,depth:D,statics:S,dynamics:E,optionals:_+Mc(h,x),extract:C,rawParams:T})}}if(!A&&y.dynamic&&B)for(let k=y.dynamic.length-1;k>=0;k--){const D=y.dynamic[k],{prefix:z,suffix:H}=D;if(z||H){const X=D.caseSensitive?B:q??(q=B.toLowerCase());if(z&&!X.startsWith(z)||H&&!X.endsWith(H))continue}m.push({node:D,index:x+1,skipped:j,depth:w+1,statics:S,dynamics:E+Mc(h,x),optionals:_,extract:C,rawParams:T})}if(!A&&y.staticInsensitive){const k=y.staticInsensitive.get(q??(q=B.toLowerCase()));k&&m.push({node:k,index:x+1,skipped:j,depth:w+1,statics:S+Mc(h,x),dynamics:E,optionals:_,extract:C,rawParams:T})}if(!A&&y.static){const k=y.static.get(B);k&&m.push({node:k,index:x+1,skipped:j,depth:w+1,statics:S+Mc(h,x),dynamics:E,optionals:_,extract:C,rawParams:T})}if(y.pathless){const k=w+1;for(let D=y.pathless.length-1;D>=0;D--){const z=y.pathless[D];m.push({node:z,index:x,skipped:j,depth:k,statics:S,dynamics:E,optionals:_,extract:C,rawParams:T})}}}if(p)return p;if(i&&g){let v=g.index;for(let x=0;x<g.index;x++)v+=a[x].length;const y=v===t.length?"/":t.slice(v);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(y),g}return null}function Mc(t,a){return 2**(t-a-1)}function ME(t,a){return t===2**(a-1)-1}function bb(t,a,r){let i,o;try{[i,o]=f0(t,a,r)}catch{return null}if(r.rawParams=i,r.extract=o,!r.node.parse)return!0;try{if(r.node.parse(i)===!1)return null}catch{}return!0}function Oc(t,a){return t?a.statics>t.statics||a.statics===t.statics&&(a.dynamics>t.dynamics||a.dynamics===t.dynamics&&(a.optionals>t.optionals||a.optionals===t.optionals&&((a.node.kind===Rs)>(t.node.kind===Rs)||a.node.kind===Rs==(t.node.kind===Rs)&&a.depth>t.depth))):!0}function Yc(t){return wm(t.filter(a=>a!==void 0).join("/"))}function wm(t){return t.replace(/\/{2,}/g,"/")}function m0(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function Oa(t){const a=t.length;return a>1&&t[a-1]==="/"?t.replace(/\/{1,}$/,""):t}function p0(t){return Oa(m0(t))}function su(t,a){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${a}/`?t.slice(0,-1):t}function OE(t,a,r){return su(t,r)===su(a,r)}function DE({base:t,to:a,trailingSlash:r="never",cache:i}){const o=a.startsWith("/"),u=!o&&a===".";let h;if(i){h=o?a:u?t:t+"\0"+a;const p=i.get(h);if(p)return p}let m;if(u)m=t.split("/");else if(o)m=a.split("/");else{for(m=t.split("/");m.length>1&&Xl(m)==="";)m.pop();const p=a.split("/");for(let v=0,y=p.length;v<y;v++){const x=p[v];x===""?v?v===y-1&&m.push(x):m=[x]:x===".."?m.pop():x==="."||m.push(x)}}m.length>1&&(Xl(m)===""?r==="never"&&m.pop():r==="always"&&m.push(""));const g=wm(m.join("/"))||"/";return h&&i&&i.set(h,g),g}function LE(t){const a=new Map(t.map(o=>[encodeURIComponent(o),o])),r=Array.from(a.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(r,"g");return o=>o.replace(i,u=>a.get(u)??u)}function fh(t,a,r){const i=a[t];return typeof i!="string"?i:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(o=>Sb(o,r)).join("/"):Sb(i,r)}function xb({path:t,params:a,decoder:r,...i}){let o=!1;const u=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:u,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:u,isMissingParams:o};const h=t.length;let m=0,g,p="";for(;m<h;){const v=m;g=d0(t,v,g);const y=g[5];if(m=y+1,v===y)continue;const x=g[0];if(x===0){p+="/"+t.substring(v,y);continue}if(x===2){const j=a._splat;u._splat=j,u["*"]=j;const w=t.substring(v,g[1]),S=t.substring(g[4],y);if(!j){o=!0,(w||S)&&(p+="/"+w+S);continue}const E=fh("_splat",a,r);p+="/"+w+E+S;continue}if(x===1){const j=t.substring(g[2],g[3]);!o&&!(j in a)&&(o=!0),u[j]=a[j];const w=t.substring(v,g[1]),S=t.substring(g[4],y),E=fh(j,a,r)??"undefined";p+="/"+w+E+S;continue}if(x===3){const j=t.substring(g[2],g[3]),w=a[j];if(w==null)continue;u[j]=w;const S=t.substring(v,g[1]),E=t.substring(g[4],y),_=fh(j,a,r)??"";p+="/"+S+_+E;continue}}return t.endsWith("/")&&(p+="/"),{usedParams:u,interpolatedPath:p||"/",isMissingParams:o}}function Sb(t,a){const r=encodeURIComponent(t);return(a==null?void 0:a(r))??r}function Lt(t){return(t==null?void 0:t.isNotFound)===!0}function zE(t,a=String){const r=new URLSearchParams;for(const i in t){const o=t[i];o!==void 0&&r.set(i,a(o))}return r.toString()}function hh(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function BE(t){const a=new URLSearchParams(t),r=Object.create(null);for(const[i,o]of a.entries()){const u=r[i];u==null?r[i]=hh(o):Array.isArray(u)?u.push(hh(o)):r[i]=[u,hh(o)]}return r}const UE=FE(JSON.parse),PE=HE(JSON.stringify,JSON.parse);function FE(t){return a=>{a[0]==="?"&&(a=a.substring(1));const r=BE(a);for(const i in r){const o=r[i];if(typeof o=="string")try{r[i]=t(o)}catch{}}return r}}function HE(t,a){const r=typeof a=="function";function i(o){if(typeof o=="object"&&o!==null)try{return t(o)}catch{}else if(r&&typeof o=="string")try{return a(o),t(o)}catch{}return o}return o=>{const u=zE(o,i);return u?`?${u}`:""}}const yr="__root__";function qE(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const a=new Headers(t.headers);t.href&&a.get("Location")===null&&a.set("Location",t.href);const r=new Response(null,{status:t.statusCode,headers:a});if(r.options=t,t.throw)throw r;return r}function Jt(t){return t instanceof Response&&!!t.options}const Ph=t=>{var a;if(!t.rendered)return t.rendered=!0,(a=t.onReady)==null?void 0:a.call(t)},GE=t=>t.stores.matchesId.get().some(a=>{var r;return(r=t.stores.matchStores.get(a))==null?void 0:r.get()._forcePending}),wu=(t,a)=>!!(t.preload&&!t.router.stores.matchStores.has(a)),vr=(t,a,r=!0)=>{const i={...t.router.options.context??{}},o=r?a:a-1;for(let u=0;u<=o;u++){const h=t.matches[u];if(!h)continue;const m=t.router.getMatch(h.id);m&&Object.assign(i,m.__routeContext,m.__beforeLoadContext)}return i},wb=(t,a)=>{if(!t.matches.length)return;const r=a.routeId,i=t.matches.findIndex(h=>h.routeId===t.router.routeTree.id),o=i>=0?i:0;let u=r?t.matches.findIndex(h=>h.routeId===r):t.firstBadMatchIndex??t.matches.length-1;u<0&&(u=o);for(let h=u;h>=0;h--){const m=t.matches[h];if(t.router.looseRoutesById[m.routeId].options.notFoundComponent)return h}return r?u:o},Cs=(t,a,r)=>{var i,o,u;if(!(!Jt(r)&&!Lt(r)))throw Jt(r)&&r.redirectHandled&&!r.options.reloadDocument||(a&&((i=a._nonReactive.beforeLoadPromise)==null||i.resolve(),(o=a._nonReactive.loaderPromise)==null||o.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0,a._nonReactive.error=r,t.updateMatch(a.id,h=>({...h,status:Jt(r)?"redirected":Lt(r)?"notFound":h.status==="pending"?"success":h.status,context:vr(t,a.index),isFetching:!1,error:r})),Lt(r)&&!r.routeId&&(r.routeId=a.routeId),(u=a._nonReactive.loadPromise)==null||u.resolve()),Jt(r)&&(t.rendered=!0,r.options._fromLocation=t.location,r.redirectHandled=!0,r=t.router.resolveRedirect(r))),r},g0=(t,a)=>{const r=t.router.getMatch(a);return!!(!r||r._nonReactive.dehydrated)},jb=(t,a,r)=>{const i=vr(t,r);t.updateMatch(a,o=>({...o,context:i}))},Gl=(t,a,r)=>{var h,m;const{id:i,routeId:o}=t.matches[a],u=t.router.looseRoutesById[o];if(r instanceof Promise)throw r;t.firstBadMatchIndex??(t.firstBadMatchIndex=a),Cs(t,t.router.getMatch(i),r);try{(m=(h=u.options).onError)==null||m.call(h,r)}catch(g){r=g,Cs(t,t.router.getMatch(i),r)}t.updateMatch(i,g=>{var p,v;return(p=g._nonReactive.beforeLoadPromise)==null||p.resolve(),g._nonReactive.beforeLoadPromise=void 0,(v=g._nonReactive.loadPromise)==null||v.resolve(),{...g,error:r,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!t.preload&&!Jt(r)&&!Lt(r)&&(t.serialError??(t.serialError=r))},y0=(t,a,r,i)=>{var u;if(i._nonReactive.pendingTimeout!==void 0)return;const o=r.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!wu(t,a)&&(r.options.loader||r.options.beforeLoad||b0(r))&&typeof o=="number"&&o!==1/0&&(r.options.pendingComponent??((u=t.router.options)==null?void 0:u.defaultPendingComponent))){const h=setTimeout(()=>{Ph(t)},o);i._nonReactive.pendingTimeout=h}},IE=(t,a,r)=>{const i=t.router.getMatch(a);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;y0(t,a,r,i);const o=()=>{const u=t.router.getMatch(a);u.preload&&(u.status==="redirected"||u.status==="notFound")&&Cs(t,u,u.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(o):o()},QE=(t,a,r,i)=>{const o=t.router.getMatch(a);let u=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Li(()=>{u==null||u.resolve(),u=void 0});const{paramsError:h,searchError:m}=o;h&&Gl(t,r,h),m&&Gl(t,r,m),y0(t,a,i,o);const g=new AbortController;let p=!1;const v=()=>{p||(p=!0,t.updateMatch(a,A=>({...A,isFetching:"beforeLoad",fetchCount:A.fetchCount+1,abortController:g})))},y=()=>{var A;(A=o._nonReactive.beforeLoadPromise)==null||A.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(a,B=>({...B,isFetching:!1}))};if(!i.options.beforeLoad){t.router.batch(()=>{v(),y()});return}o._nonReactive.beforeLoadPromise=Li();const x={...vr(t,r,!1),...o.__routeContext},{search:j,params:w,cause:S}=o,E=wu(t,a),_={search:j,abortController:g,params:w,preload:E,context:x,location:t.location,navigate:A=>t.router.navigate({...A,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:E?"preload":S,matches:t.matches,routeId:i.id,...t.router.options.additionalContext},C=A=>{if(A===void 0){t.router.batch(()=>{v(),y()});return}(Jt(A)||Lt(A))&&(v(),Gl(t,r,A)),t.router.batch(()=>{v(),t.updateMatch(a,B=>({...B,__beforeLoadContext:A})),y()})};let T;try{if(T=i.options.beforeLoad(_),Zl(T))return v(),T.catch(A=>{Gl(t,r,A)}).then(C)}catch(A){v(),Gl(t,r,A)}C(T)},VE=(t,a)=>{const{id:r,routeId:i}=t.matches[a],o=t.router.looseRoutesById[i],u=()=>m(),h=()=>QE(t,r,a,o),m=()=>{if(g0(t,r))return;const g=IE(t,r,o);return Zl(g)?g.then(h):h()};return u()},YE=(t,a,r)=>{var u,h,m,g,p,v;const i=t.router.getMatch(a);if(!i||!r.options.head&&!r.options.scripts&&!r.options.headers)return;const o={ssr:t.router.options.ssr,matches:t.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(h=(u=r.options).head)==null?void 0:h.call(u,o),(g=(m=r.options).scripts)==null?void 0:g.call(m,o),(v=(p=r.options).headers)==null?void 0:v.call(p,o)]).then(([y,x,j])=>({meta:y==null?void 0:y.meta,links:y==null?void 0:y.links,headScripts:y==null?void 0:y.scripts,headers:j,scripts:x,styles:y==null?void 0:y.styles}))},v0=(t,a,r,i,o)=>{const u=a[i-1],{params:h,loaderDeps:m,abortController:g,cause:p}=t.router.getMatch(r),v=vr(t,i),y=wu(t,r);return{params:h,deps:m,preload:!!y,parentMatchPromise:u,abortController:g,context:v,location:t.location,navigate:x=>t.router.navigate({...x,_fromLocation:t.location}),cause:y?"preload":p,route:o,...t.router.options.additionalContext}},Eb=async(t,a,r,i,o)=>{var u,h,m,g,p;try{const v=t.router.getMatch(r);try{(!(l0??t.router.isServer)||v.ssr===!0)&&Wl(o);const y=o.options.loader,x=typeof y=="function"?y:y==null?void 0:y.handler,j=x==null?void 0:x(v0(t,a,r,i,o)),w=!!x&&Zl(j);if((w||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||v._nonReactive.minPendingPromise)&&t.updateMatch(r,E=>({...E,isFetching:"loader"})),x){const E=w?await j:j;Cs(t,t.router.getMatch(r),E),E!==void 0&&t.updateMatch(r,_=>({..._,loaderData:E}))}o._lazyPromise&&await o._lazyPromise;const S=v._nonReactive.minPendingPromise;S&&await S,o._componentsPromise&&await o._componentsPromise,t.updateMatch(r,E=>({...E,error:void 0,context:vr(t,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(y){let x=y;if((x==null?void 0:x.name)==="AbortError"){if(v.abortController.signal.aborted){(u=v._nonReactive.loaderPromise)==null||u.resolve(),v._nonReactive.loaderPromise=void 0;return}t.updateMatch(r,w=>({...w,status:w.status==="pending"?"success":w.status,isFetching:!1,context:vr(t,i)}));return}const j=v._nonReactive.minPendingPromise;j&&await j,Lt(y)&&await((m=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:m.call(h)),Cs(t,t.router.getMatch(r),y);try{(p=(g=o.options).onError)==null||p.call(g,y)}catch(w){x=w,Cs(t,t.router.getMatch(r),w)}!Jt(x)&&!Lt(x)&&await Wl(o,["errorComponent"]),t.updateMatch(r,w=>({...w,error:x,context:vr(t,i),status:"error",isFetching:!1}))}}catch(v){const y=t.router.getMatch(r);y&&(y._nonReactive.loaderPromise=void 0),Cs(t,y,v)}},$E=async(t,a,r)=>{var j,w,S,E;async function i(_,C,T,A,B){const q=Date.now()-C.updatedAt,k=_?B.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:B.options.staleTime??t.router.options.defaultStaleTime??0,D=B.options.shouldReload,z=typeof D=="function"?D(v0(t,a,o,r,B)):D,{status:H,invalid:X}=A,ne=q>=k&&(!!t.forceStaleReload||A.cause==="enter"||T!==void 0&&T!==A.id);h=H==="success"&&(X||(z??ne)),_&&B.options.preload===!1||(h&&!t.sync&&v?(m=!0,(async()=>{var se,te;try{await Eb(t,a,o,r,B);const ce=t.router.getMatch(o);(se=ce._nonReactive.loaderPromise)==null||se.resolve(),(te=ce._nonReactive.loadPromise)==null||te.resolve(),ce._nonReactive.loaderPromise=void 0,ce._nonReactive.loadPromise=void 0}catch(ce){Jt(ce)&&await t.router.navigate(ce.options)}})()):H!=="success"||h?await Eb(t,a,o,r,B):jb(t,o,r))}const{id:o,routeId:u}=t.matches[r];let h=!1,m=!1;const g=t.router.looseRoutesById[u],p=g.options.loader,v=((typeof p=="function"||p==null?void 0:p.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(g0(t,o)){if(!t.router.getMatch(o))return t.matches[r];jb(t,o,r)}else{const _=t.router.getMatch(o),C=t.router.stores.matchesId.get()[r],T=((j=C&&t.router.stores.matchStores.get(C)||null)==null?void 0:j.routeId)===u?C:(w=t.router.stores.matches.get().find(B=>B.routeId===u))==null?void 0:w.id,A=wu(t,o);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!t.sync&&!_.preload&&v)return _;await _._nonReactive.loaderPromise;const B=t.router.getMatch(o),q=B._nonReactive.error||B.error;q&&Cs(t,B,q),B.status==="pending"&&await i(A,_,T,B,g)}else{const B=A&&!t.router.stores.matchStores.has(o),q=t.router.getMatch(o);q._nonReactive.loaderPromise=Li(),B!==q.preload&&t.updateMatch(o,k=>({...k,preload:B})),await i(A,_,T,q,g)}}const y=t.router.getMatch(o);m||((S=y._nonReactive.loaderPromise)==null||S.resolve(),(E=y._nonReactive.loadPromise)==null||E.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,m||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const x=m?y.isFetching:!1;return x!==y.isFetching||y.invalid!==!1?(t.updateMatch(o,_=>({..._,isFetching:x,invalid:!1})),t.router.getMatch(o)):y};async function Nb(t){var x,j;const a=t,r=[];GE(a.router)&&Ph(a);let i;for(let w=0;w<a.matches.length;w++){try{const S=VE(a,w);Zl(S)&&await S}catch(S){if(Jt(S))throw S;if(Lt(S))i=S;else if(!a.preload)throw S;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const o=a.firstBadMatchIndex??a.matches.length,u=i&&!a.preload?wb(a,i):void 0,h=i&&a.preload?0:u!==void 0?Math.min(u+1,o):o;let m,g;for(let w=0;w<h;w++)r.push($E(a,r,w));try{await Promise.all(r)}catch{const w=await Promise.allSettled(r);for(const S of w){if(S.status!=="rejected")continue;const E=S.reason;if(Jt(E))throw E;Lt(E)?m??(m=E):g??(g=E)}if(g!==void 0)throw g}const p=m??(i&&!a.preload?i:void 0);let v=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!p&&i&&a.preload)return a.matches;if(p){const w=wb(a,p);w===void 0&&Da();const S=a.matches[w],E=a.router.looseRoutesById[S.routeId],_=(x=a.router.options)==null?void 0:x.defaultNotFoundComponent;!E.options.notFoundComponent&&_&&(E.options.notFoundComponent=_),p.routeId=S.routeId;const C=S.routeId===a.router.routeTree.id;a.updateMatch(S.id,T=>({...T,...C?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:p},isFetching:!1})),v=w,await Wl(E,["notFoundComponent"])}else if(!a.preload){const w=a.matches[0];w.globalNotFound||(j=a.router.getMatch(w.id))!=null&&j.globalNotFound&&a.updateMatch(w.id,S=>({...S,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const w=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await Wl(w,["errorComponent"])}for(let w=0;w<=v;w++){const{id:S,routeId:E}=a.matches[w],_=a.router.looseRoutesById[E];try{const C=YE(a,S,_);if(C){const T=await C;a.updateMatch(S,A=>({...A,...T}))}}catch(C){console.error(`Error executing head for route ${E}:`,C)}}const y=Ph(a);if(Zl(y)&&await y,p)throw p;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function Rb(t,a){const r=a.map(i=>{var o,u;return(u=(o=t.options[i])==null?void 0:o.preload)==null?void 0:u.call(o)}).filter(Boolean);if(r.length!==0)return Promise.all(r)}function Wl(t,a=$c){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(i=>{const{id:o,...u}=i.options;Object.assign(t.options,u),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const r=()=>t._componentsLoaded?void 0:a===$c?(()=>{if(t._componentsPromise===void 0){const i=Rb(t,$c);i?t._componentsPromise=i.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():Rb(t,a);return t._lazyPromise?t._lazyPromise.then(r):r()}function b0(t){var a;for(const r of $c)if((a=t.options[r])!=null&&a.preload)return!0;return!1}const $c=["component","errorComponent","pendingComponent","notFoundComponent"];function XE(t){return{input:({url:a})=>{for(const r of t)a=Fh(r,a);return a},output:({url:a})=>{for(let r=t.length-1;r>=0;r--)a=x0(t[r],a);return a}}}function ZE(t){const a=p0(t.basepath),r=`/${a}`,i=t.caseSensitive?r:r.toLowerCase(),o=`${i}/`;return{input:({url:u})=>{const h=t.caseSensitive?u.pathname:u.pathname.toLowerCase();return h===i?u.pathname="/":h.startsWith(o)&&(u.pathname=u.pathname.slice(r.length)),u},output:({url:u})=>(u.pathname=Yc(["/",a,u.pathname]),u)}}function Fh(t,a){var i;const r=(i=t==null?void 0:t.input)==null?void 0:i.call(t,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function x0(t,a){var i;const r=(i=t==null?void 0:t.output)==null?void 0:i.call(t,{url:a});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return a}function KE(t,a){const{createMutableStore:r,createReadonlyStore:i,batch:o,init:u}=a,h=new Map,m=new Map,g=new Map,p=r(t.status),v=r(t.loadedAt),y=r(t.isLoading),x=r(t.isTransitioning),j=r(t.location),w=r(t.resolvedLocation),S=r(t.statusCode),E=r(t.redirect),_=r([]),C=r([]),T=r([]),A=i(()=>mh(h,_.get())),B=i(()=>mh(m,C.get())),q=i(()=>mh(g,T.get())),k=i(()=>_.get()[0]),D=i(()=>_.get().some(V=>{var ee;return((ee=h.get(V))==null?void 0:ee.get().status)==="pending"})),z=i(()=>{var V;return{locationHref:j.get().href,resolvedLocationHref:(V=w.get())==null?void 0:V.href,status:p.get()}}),H=i(()=>({status:p.get(),loadedAt:v.get(),isLoading:y.get(),isTransitioning:x.get(),matches:A.get(),location:j.get(),resolvedLocation:w.get(),statusCode:S.get(),redirect:E.get()})),X=Kl(64);function ne(V){let ee=X.get(V);return ee||(ee=i(()=>{const ye=_.get();for(const ae of ye){const L=h.get(ae);if(L&&L.routeId===V)return L.get()}}),X.set(V,ee)),ee}const se={status:p,loadedAt:v,isLoading:y,isTransitioning:x,location:j,resolvedLocation:w,statusCode:S,redirect:E,matchesId:_,pendingIds:C,cachedIds:T,matches:A,pendingMatches:B,cachedMatches:q,firstId:k,hasPending:D,matchRouteDeps:z,matchStores:h,pendingMatchStores:m,cachedMatchStores:g,__store:H,getRouteMatchStore:ne,setMatches:te,setPending:ce,setCached:P};te(t.matches),u==null||u(se);function te(V){ph(V,h,_,r,o)}function ce(V){ph(V,m,C,r,o)}function P(V){ph(V,g,T,r,o)}return se}function mh(t,a){const r=[];for(const i of a){const o=t.get(i);o&&r.push(o.get())}return r}function ph(t,a,r,i,o){const u=t.map(m=>m.id),h=new Set(u);o(()=>{for(const m of a.keys())h.has(m)||a.delete(m);for(const m of t){const g=a.get(m.id);if(!g){const p=i(m);p.routeId=m.routeId,a.set(m.id,p);continue}g.routeId=m.routeId,g.get()!==m&&g.set(m)}wE(r.get(),u)||r.set(u)})}var _s="__TSR_index",Cb="popstate",_b="beforeunload";function WE(t){let a=t.getLocation();const r=new Set,i=h=>{a=t.getLocation(),r.forEach(m=>m({location:a,action:h}))},o=h=>{t.notifyOnIndexChange??!0?i(h):a=t.getLocation()},u=async({task:h,navigateOpts:m,...g})=>{var y,x;if((m==null?void 0:m.ignoreBlocker)??!1){h();return}const p=((y=t.getBlockers)==null?void 0:y.call(t))??[],v=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&p.length&&v)for(const j of p){const w=ru(g.path,g.state);if(await j.blockerFn({currentLocation:a,nextLocation:w,action:g.type})){(x=t.onBlocked)==null||x.call(t);return}}h()};return{get location(){return a},get length(){return t.getLength()},subscribers:r,subscribe:h=>(r.add(h),()=>{r.delete(h)}),push:(h,m,g)=>{const p=a.state[_s];m=Ab(p+1,m),u({task:()=>{t.pushState(h,m),i({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:h,state:m})},replace:(h,m,g)=>{const p=a.state[_s];m=Ab(p,m),u({task:()=>{t.replaceState(h,m),i({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:h,state:m})},go:(h,m)=>{u({task:()=>{t.go(h),o({type:"GO",index:h})},navigateOpts:m,type:"GO"})},back:h=>{u({task:()=>{t.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{u({task:()=>{t.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>a.state[_s]!==0,createHref:h=>t.createHref(h),block:h=>{var g;if(!t.setBlockers)return()=>{};const m=((g=t.getBlockers)==null?void 0:g.call(t))??[];return t.setBlockers([...m,h]),()=>{var v,y;const p=((v=t.getBlockers)==null?void 0:v.call(t))??[];(y=t.setBlockers)==null||y.call(t,p.filter(x=>x!==h))}},flush:()=>{var h;return(h=t.flush)==null?void 0:h.call(t)},destroy:()=>{var h;return(h=t.destroy)==null?void 0:h.call(t)},notify:i}}function Ab(t,a){a||(a={});const r=jm();return{...a,key:r,__TSR_key:r,[_s]:t}}function JE(t){var D,z;const a=typeof document<"u"?window:void 0,r=a.history.pushState,i=a.history.replaceState;let o=[];const u=()=>o,h=H=>o=H,m=(H=>H),g=(()=>ru(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!((D=a.history.state)!=null&&D.__TSR_key)&&!((z=a.history.state)!=null&&z.key)){const H=jm();a.history.replaceState({[_s]:0,key:H,__TSR_key:H},"")}let p=g(),v,y=!1,x=!1,j=!1,w=!1;const S=()=>p;let E,_;const C=()=>{E&&(k._ignoreSubscribers=!0,(E.isPush?a.history.pushState:a.history.replaceState)(E.state,"",E.href),k._ignoreSubscribers=!1,E=void 0,_=void 0,v=void 0)},T=(H,X,ne)=>{const se=m(X);_||(v=p),p=ru(X,ne),E={href:se,state:ne,isPush:(E==null?void 0:E.isPush)||H==="push"},_||(_=Promise.resolve().then(()=>C()))},A=H=>{p=g(),k.notify({type:H})},B=async()=>{if(x){x=!1;return}const H=g(),X=H.state[_s]-p.state[_s],ne=X===1,se=X===-1,te=!ne&&!se||y;y=!1;const ce=te?"GO":se?"BACK":"FORWARD",P=te?{type:"GO",index:X}:{type:se?"BACK":"FORWARD"};if(j)j=!1;else{const V=u();if(typeof document<"u"&&V.length){for(const ee of V)if(await ee.blockerFn({currentLocation:p,nextLocation:H,action:ce})){x=!0,a.history.go(1),k.notify(P);return}}}p=g(),k.notify(P)},q=H=>{if(w){w=!1;return}let X=!1;const ne=u();if(typeof document<"u"&&ne.length)for(const se of ne){const te=se.enableBeforeUnload??!0;if(te===!0){X=!0;break}if(typeof te=="function"&&te()===!0){X=!0;break}}if(X)return H.preventDefault(),H.returnValue=""},k=WE({getLocation:S,getLength:()=>a.history.length,pushState:(H,X)=>T("push",H,X),replaceState:(H,X)=>T("replace",H,X),back:H=>(H&&(j=!0),w=!0,a.history.back()),forward:H=>{H&&(j=!0),w=!0,a.history.forward()},go:H=>{y=!0,a.history.go(H)},createHref:H=>m(H),flush:C,destroy:()=>{a.history.pushState=r,a.history.replaceState=i,a.removeEventListener(_b,q,{capture:!0}),a.removeEventListener(Cb,B)},onBlocked:()=>{v&&p!==v&&(p=v)},getBlockers:u,setBlockers:h,notifyOnIndexChange:!1});return a.addEventListener(_b,q,{capture:!0}),a.addEventListener(Cb,B),a.history.pushState=function(...H){const X=r.apply(a.history,H);return k._ignoreSubscribers||A("PUSH"),X},a.history.replaceState=function(...H){const X=i.apply(a.history,H);return k._ignoreSubscribers||A("REPLACE"),X},k}function e2(t){let a=t.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function ru(t,a){const r=e2(t),i=r.indexOf("#"),o=r.indexOf("?"),u=jm();return{href:r,pathname:r.substring(0,i>0?o>0?Math.min(i,o):i:o>0?o:r.length),hash:i>-1?r.substring(i):"",search:o>-1?r.slice(o,i===-1?void 0:i):"",state:a||{[_s]:0,key:u,__TSR_key:u}}}function jm(){return(Math.random()+1).toString(36).substring(7)}function vi(t,a){const r=a,i=t;return{fromLocation:r,toLocation:i,pathChanged:(r==null?void 0:r.pathname)!==i.pathname,hrefChanged:(r==null?void 0:r.href)!==i.href,hashChanged:(r==null?void 0:r.hash)!==i.hash}}const Hh=new WeakMap;var t2=class{constructor(t,a){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.routeBranchCache=new WeakMap,this.startTransition=r=>r(),this.update=r=>{var v;const i=this.options,o=this.basepath??(i==null?void 0:i.basepath)??"/",u=this.basepath===void 0,h=i==null?void 0:i.rewrite;if(this.options={...i,...r},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=LE(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=JE()),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 y;this.resolvePathCache=Kl(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=KE(a2(this.latestLocation),y),m2(this)}let m=!1;const g=this.options.basepath??"/",p=this.options.rewrite;if(u||o!==g||h!==p){this.basepath=g;const y=[],x=p0(g);x&&x!=="/"&&y.push(ZE({basepath:g})),p&&y.push(p),this.rewrite=y.length===0?void 0:y.length===1?y[0]:XE(y),this.history&&this.updateLatestLocation(),m=!0}m&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((v=window.CSS)==null?void 0:v.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 r=AE(this.routeTree,this.options.caseSensitive,(i,o)=>{i.init({originalIndex:o})});return this.options.routeMasks&&EE(this.options.routeMasks,r.processedTree),r},this.subscribe=(r,i)=>{const o={eventType:r,fn:i};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=r=>{this.subscribers.forEach(i=>{i.eventType===r.type&&i.fn(r)})},this.parseLocation=(r,i)=>{const o=({pathname:g,search:p,hash:v,href:y,state:x})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(g)){const _=this.options.parseSearch(p),C=this.options.stringifySearch(_);return{href:g+C+v,publicHref:g+C+v,pathname:ql(g).path,external:!1,searchStr:C,search:er(i==null?void 0:i.search,_),hash:ql(v.slice(1)).path,state:sr(i==null?void 0:i.state,x)}}const j=new URL(y,this.origin),w=Fh(this.rewrite,j),S=this.options.parseSearch(w.search),E=this.options.stringifySearch(S);return w.search=E,{href:w.href.replace(w.origin,""),publicHref:y,pathname:ql(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:E,search:er(i==null?void 0:i.search,S),hash:ql(w.hash.slice(1)).path,state:sr(i==null?void 0:i.state,x)}},u=o(r),{__tempLocation:h,__tempKey:m}=u.state;if(h&&(!m||m===this.tempLocationKey)){const g=o(h);return g.state.key=u.state.key,g.state.__TSR_key=u.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:u}}return u},this.resolvePathWithBase=(r,i)=>DE({base:r,to:i.includes("//")?wm(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(r,i,o)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:i},o):this.matchRoutesInternal(r,i),this.getMatchedRoutes=r=>s2({pathname:r,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=r=>{const i=this.getMatch(r);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(r=>{this.cancelMatch(r)}),this.stores.matchesId.get().forEach(r=>{var o;if(this.stores.pendingMatchStores.has(r))return;const i=(o=this.stores.matchStores.get(r))==null?void 0:o.get();i&&(i.status==="pending"||i.isFetching==="loader")&&this.cancelMatch(r)})},this.buildLocation=r=>{const i=(u={})=>{var X,ne;const h=u._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(h);u.from;const g=u.unsafeRelative==="path"?h.pathname:u.from??m.fullPath,p=u.to?`${u.to}`:void 0,v=m.search,y=Object.assign(Object.create(null),m.params),x=(p==null?void 0:p.charCodeAt(0))===47?"/":this.resolvePathWithBase(g,"."),j=p?this.resolvePathWithBase(x,p):x,w=u.params===!1||u.params===null?Object.create(null):(u.params??!0)===!0?y:Object.assign(y,ar(u.params,y)),S=this.routesByPath[Oa(j)];let E;if(S)E=this.getRouteBranch(S);else if(j.includes("$"))E=[];else{const se=this.getMatchedRoutes(j);E=se.matchedRoutes,this.options.notFoundRoute&&(!se.foundRoute||se.foundRoute.path!=="/"&&se.routeParams["**"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&c0(w))for(const se of E){const te=((X=se.options.params)==null?void 0:X.stringify)??se.options.stringifyParams;if(te)try{Object.assign(w,te(w))}catch{}}const _=r.leaveParams?j:ql(xb({path:j,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=v;if(r._includeValidateSearch&&((ne=this.options.search)!=null&&ne.strict)){const se={};E.forEach(te=>{if(te.options.validateSearch)try{Object.assign(se,Xc(te.options.validateSearch,{...se,...C}))}catch{}}),C=se}C=r2({search:C,dest:u,destRoutes:E,_includeValidateSearch:r._includeValidateSearch}),C=er(v,C);const T=this.options.stringifySearch(C),A=u.hash===!0?h.hash:u.hash?ar(u.hash,h.hash):void 0,B=A?`#${A}`:"";let q=u.state===!0?h.state:u.state?ar(u.state,h.state):{};q=sr(h.state,q);const k=`${_}${T}${B}`;let D,z,H=!1;if(this.rewrite){const se=new URL(k,this.origin),te=x0(this.rewrite,se);D=se.href.replace(se.origin,""),te.origin!==this.origin?(z=te.href,H=!0):z=te.pathname+te.search+te.hash}else D=SE(k),z=D;return{publicHref:z,href:D,pathname:_,search:C,searchStr:T,state:q,hash:A??"",external:H,unmaskOnReload:u.unmaskOnReload}},o=(u={},h)=>{const m=i(u);let g=h?i(h):void 0;if(!g){const p=Object.create(null);if(this.options.routeMasks){const v=NE(m.pathname,this.processedTree);if(v){Object.assign(p,v.rawParams);const{from:y,params:x,...j}=v.route,w=x===!1||x===null?Object.create(null):(x??!0)===!0?p:Object.assign(p,ar(x,p));h={from:r.from,...j,params:w},g=i(h)}}}return g&&(m.maskedLocation=g),m};return r.mask?o(r,{from:r.from,...r.mask}):o(r)},this.commitLocation=async({viewTransition:r,ignoreBlocker:i,...o})=>{let u;const h=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const v=gr(o.state,this.latestLocation.state);return p.forEach(y=>{delete o.state[y]}),v},m=Oa(this.latestLocation.href)===Oa(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=Li(()=>{g==null||g.resolve(),g=void 0}),m&&h())this.load();else{let{maskedLocation:p,hashScrollIntoView:v,...y}=o;p&&(y={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,u=o.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(u?{action:{type:u}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:i,hashScrollIntoView:o,viewTransition:u,ignoreBlocker:h,href:m,...g}={})=>{if(m){const y=this.history.location.state.__TSR_index,x=ru(m,{__TSR_index:r?y:y+1}),j=new URL(x.pathname,this.origin);g.to=Fh(this.rewrite,j).pathname,g.search=this.options.parseSearch(x.search),g.hash=x.hash.slice(1)}const p=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const v=this.commitLocation({...p,viewTransition:u,replace:r,resetScroll:i,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:r,reloadDocument:i,href:o,publicHref:u,...h})=>{var g,p;let m=!1;if(o)try{new URL(`${o}`),m=!0}catch{}if(m&&!i&&(i=!0),i){if(r!==void 0||!o){const y=this.buildLocation({to:r,...h});o=o??y.publicHref,u=u??y.publicHref}const v=!m&&u?u:o;if(au(v,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const y=((p=(g=this.history).getBlockers)==null?void 0:p.call(g))??[];for(const x of y)if(x!=null&&x.blockerFn&&await x.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...h,href:o,to:r,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const r=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter(o=>!r.some(u=>u.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(r),this.stores.setCached(i)})},this.load=async r=>{var p;const i=(p=r==null?void 0:r.action)==null?void 0:p.type;let o,u,h;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(h=new Promise(v=>{this.startTransition(async()=>{var y;try{this.beforeLoad(),i?Hh.set(this.latestLocation,i):Hh.delete(this.latestLocation);const x=this.latestLocation,j=vi(x,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...j}),this.emit({type:"onBeforeLoad",...j}),await Nb({router:this,sync:r==null?void 0:r.sync,forceStaleReload:m.href===x.href,matches:this.stores.pendingMatches.get(),location:x,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var C,T;let w=null,S=null,E=null,_=null;this.batch(()=>{const A=this.stores.pendingMatches.get(),B=A.length,q=this.stores.matches.get();w=B?q.filter(z=>!this.stores.pendingMatchStores.has(z.id)):null;const k=new Set;for(const z of this.stores.pendingMatchStores.values())z.routeId&&k.add(z.routeId);const D=new Set;for(const z of this.stores.matchStores.values())z.routeId&&D.add(z.routeId);S=B?q.filter(z=>!k.has(z.routeId)):null,E=B?A.filter(z=>!D.has(z.routeId)):null,_=B?A.filter(z=>D.has(z.routeId)):q,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),B&&(this.stores.setMatches(A),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...w.filter(z=>z.status!=="error"&&z.status!=="notFound"&&z.status!=="redirected")]),this.clearExpiredCache())});for(const[A,B]of[[S,"onLeave"],[E,"onEnter"],[_,"onStay"]])if(A)for(const q of A)(T=(C=this.looseRoutesById[q.routeId].options)[B])==null||T.call(C,q)})})}})}catch(x){Jt(x)?(o=x,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Lt(x)&&(u=x);const j=o?o.status:u?404:this.stores.matches.get().some(w=>w.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(j),this.stores.redirect.set(o)})}this.latestLoadPromise===h&&((y=this.commitLocationPromise)==null||y.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),v()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.matches.get().some(v=>v.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.set(g)},this.startViewTransition=r=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const u=this.latestLocation,h=this.stores.resolvedLocation.get(),m=typeof i.types=="function"?i.types(vi(u,h)):i.types;if(m===!1){r();return}o={update:r,types:m}}else o=r;document.startViewTransition(o)}else r()},this.updateMatch=(r,i)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(r);if(o){o.set(i);return}const u=this.stores.matchStores.get(r);if(u){u.set(i);return}const h=this.stores.cachedMatchStores.get(r);if(h){const m=i(h.get());m.status==="redirected"?this.stores.cachedMatchStores.delete(r)&&this.stores.cachedIds.set(g=>g.filter(p=>p!==r)):h.set(m)}})},this.getMatch=r=>{var i,o,u;return((i=this.stores.cachedMatchStores.get(r))==null?void 0:i.get())??((o=this.stores.pendingMatchStores.get(r))==null?void 0:o.get())??((u=this.stores.matchStores.get(r))==null?void 0:u.get())},this.invalidate=r=>{const i=o=>{var u;return((u=r==null?void 0:r.filter)==null?void 0:u.call(r,o))??!0?{...o,invalid:!0,...r!=null&&r.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.getParsedLocationHref=r=>r.publicHref||"/",this.resolveRedirect=r=>{const i=r.headers.get("Location");if(!r.options.href||r.options._builtLocation){const o=r.options._builtLocation??this.buildLocation(r.options),u=this.getParsedLocationHref(o);r.options.href=u,r.headers.set("Location",u)}else if(i)try{const o=new URL(i);if(this.origin&&o.origin===this.origin){const u=o.pathname+o.search+o.hash;r.options.href=u,r.headers.set("Location",u)}}catch{}if(r.options.href&&!r.options._builtLocation&&au(r.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return r.headers.get("Location")||r.headers.set("Location",r.options.href),r},this.clearCache=r=>{const i=r==null?void 0:r.filter;i!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!i(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const r=Date.now(),i=o=>{const u=this.looseRoutesById[o.routeId];if(!u.options.loader)return!0;const h=(o.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:r-o.updatedAt>=h};this.clearCache({filter:i})},this.loadRouteChunk=Wl,this.preloadRoute=async r=>{const i=r._builtLocation??this.buildLocation(r);let o=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:r});const u=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),h=new Set([...u,...this.stores.cachedIds.get()]),m=o.filter(g=>!h.has(g.id));if(m.length){const g=this.stores.cachedMatches.get();this.stores.setCached([...g,...m])}try{return o=await Nb({router:this,matches:o,location:i,preload:!0,updateMatch:(g,p)=>{u.has(g)?o=o.map(v=>v.id===g?p(v):v):this.updateMatch(g,p)}}),o}catch(g){if(Jt(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:i});Lt(g)||console.error(g);return}},this.matchRoute=(r,i)=>{const o={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},u=this.buildLocation(o);if(i!=null&&i.pending&&this.stores.status.get()!=="pending")return!1;const h=((i==null?void 0:i.pending)===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),m=RE(u.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,h.pathname,this.processedTree);return!m||r.params&&!gr(m.rawParams,r.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?gr(h.search,u.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(r=>r.status==="notFound"||r.globalNotFound),this.getStoreConfig=a,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??PE,parseSearch:t.parseSearch??UE,protocolAllowlist:t.protocolAllowlist??xE}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:a,processedTree:r}){this.routesById=t,this.routesByPath=a,this.processedTree=r;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(t){let a=this.routeBranchCache.get(t);return a||(a=h0(t),this.routeBranchCache.set(t,a)),a}get looseRoutesById(){return this.routesById}getParentContext(t){return t!=null&&t.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,a){var v,y;const r=this.getMatchedRoutes(t.pathname),{foundRoute:i,routeParams:o}=r;let{matchedRoutes:u}=r,h=!1;(i?i.path!=="/"&&o["**"]:Oa(t.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:h=!0);const m=h?l2(this.options.notFoundMode,u):void 0,g=new Array(u.length),p=new Map;for(const x of this.stores.matchStores.values())x.routeId&&p.set(x.routeId,x.get());for(let x=0;x<u.length;x++){const j=u[x],w=g[x-1];let S,E,_;{const te=(w==null?void 0:w.search)??t.search,ce=(w==null?void 0:w._strictSearch)??void 0;try{const P=Xc(j.options.validateSearch,{...te})??void 0;S={...te,...P},E={...ce,...P},_=void 0}catch(P){let V=P;if(P instanceof iu||(V=new iu(P.message,{cause:P})),a!=null&&a.throwOnError)throw V;S=te,E={},_=V}}const C=((y=(v=j.options).loaderDeps)==null?void 0:y.call(v,{search:S}))??"",T=C?JSON.stringify(C):"",{interpolatedPath:A,usedParams:B}=xb({path:j.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),q=j.id+A+T,k=this.getMatch(q),D=p.get(j.id),z=(k==null?void 0:k._strictParams)??B;let H;if(!k)try{Tb(j,z)}catch(te){if(Lt(te)||Jt(te)?H=te:H=new n2(te.message,{cause:te}),a!=null&&a.throwOnError)throw H}Object.assign(o,z);const X=D?"stay":"enter";let ne;if(k)ne={...k,cause:X,params:(D==null?void 0:D.params)??o,_strictParams:z,search:er(D?D.search:k.search,S),_strictSearch:E};else{const te=j.options.loader||j.options.beforeLoad||j.lazyFn||b0(j)?"pending":"success";ne={id:q,ssr:j.options.ssr,index:x,routeId:j.id,params:(D==null?void 0:D.params)??o,_strictParams:z,pathname:A,updatedAt:Date.now(),search:D?er(D.search,S):S,_strictSearch:E,searchError:void 0,status:te,isFetching:!1,error:void 0,paramsError:H,__routeContext:void 0,_nonReactive:{loadPromise:Li()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:X,loaderDeps:D?sr(D.loaderDeps,C):C,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:j.options.staticData||{},fullPath:j.fullPath}}a!=null&&a.preload||(ne.globalNotFound=m===j.id),ne.searchError=_;const se=this.getParentContext(w);ne.context={...se,...ne.__routeContext,...ne.__beforeLoadContext},g[x]=ne}for(let x=0;x<g.length;x++){const j=g[x],w=this.looseRoutesById[j.routeId],S=this.getMatch(j.id),E=p.get(j.routeId);if(j.params=E?er(E.params,o):o,!S){const _=g[x-1],C=this.getParentContext(_);if(w.options.context){const T={deps:j.loaderDeps,params:j.params,context:C??{},location:t,navigate:A=>this.navigate({...A,_fromLocation:t}),buildLocation:this.buildLocation,cause:j.cause,abortController:j.abortController,preload:!!j.preload,matches:g,routeId:w.id};j.__routeContext=w.options.context(T)??void 0}j.context={...C,...j.__routeContext,...j.__beforeLoadContext}}}return g}matchRoutesLightweight(t){var p;const{matchedRoutes:a,routeParams:r}=this.getMatchedRoutes(t.pathname),i=Xl(a),o={...t.search};for(const v of a)try{Object.assign(o,Xc(v.options.validateSearch,o))}catch{}const u=Xl(this.stores.matchesId.get()),h=u&&((p=this.stores.matchStores.get(u))==null?void 0:p.get()),m=h&&h.routeId===i.id&&h.pathname===t.pathname;let g;if(m)g=h.params;else{const v=Object.assign(Object.create(null),r);for(const y of a)try{Tb(y,v)}catch{}g=v}return{matchedRoutes:a,fullPath:i.fullPath,search:o,params:g}}},iu=class extends Error{},n2=class extends Error{};function a2(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Xc(t,a){if(t==null)return{};if("~standard"in t){const r=t["~standard"].validate(a);if(r instanceof Promise)throw new iu("Async validation not supported");if(r.issues)throw new iu(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in t?t.parse(a):typeof t=="function"?t(a):{}}function s2({pathname:t,routesById:a,processedTree:r}){const i=Object.create(null),o=Oa(t);let u;const h=CE(o,r,!0);return h&&(u=h.route,Object.assign(i,h.rawParams)),{matchedRoutes:(h==null?void 0:h.branch)||[a.__root__],routeParams:i,foundRoute:u}}function r2({search:t,dest:a,destRoutes:r,_includeValidateSearch:i}){return i2(r)(t,a,i??!1)}function i2(t){var o;const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const u of t){if("search"in u.options)(o=u.options.search)!=null&&o.middlewares&&a.middlewares.push(...u.options.search.middlewares);else if(u.options.preSearchFilters||u.options.postSearchFilters){const h=({search:m,next:g})=>{let p=m;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(p=u.options.preSearchFilters.reduce((y,x)=>x(y),m));const v=g(p);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((y,x)=>x(y),v):v};a.middlewares.push(h)}if(u.options.validateSearch){const h=({search:m,next:g})=>{const p=g(m);if(!a._includeValidateSearch)return p;try{return{...p,...Xc(u.options.validateSearch,p)??void 0}}catch{return p}};a.middlewares.push(h)}}const r=({search:u})=>{const h=a.dest;return h.search?h.search===!0?u:ar(h.search,u):{}};a.middlewares.push(r);const i=(u,h,m)=>{if(u>=m.length)return h;const g=m[u];return g({search:h,next:v=>i(u+1,v,m)})};return function(h,m,g){return a.dest=m,a._includeValidateSearch=g,i(0,h,a.middlewares)}}function l2(t,a){if(t!=="root")for(let r=a.length-1;r>=0;r--){const i=a[r];if(i.children)return i.id}return yr}function Tb(t,a){var i;const r=((i=t.options.params)==null?void 0:i.parse)??t.options.parseParams;if(r){const o=r(a);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(a,o)}}function o2(){try{return sessionStorage}catch{return}}const c2="tsr-scroll-restoration-v1_3",bi=o2();function u2(){try{return JSON.parse((bi==null?void 0:bi.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function d2(){try{bi==null||bi.setItem(c2,JSON.stringify(hs))}catch{}}const hs=u2(),kb="data-scroll-restoration-id",f2=t=>t.state.__TSR_key||t.href;function h2(t){const a=t.getAttribute(kb);if(a)return`[${kb}="${a}"]`;let r="",i=t,o;for(;o=i.parentNode;){let u=1,h=i;for(;h=h.previousElementSibling;)u++;const m=`${i.localName}:nth-child(${u})`;r=r?`${m} > ${r}`:m,i=o}return r}let Dc=!1;const gi="window";function qh(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function Mb(t){const a=[];for(const r of t){if(r===gi)continue;const i=qh(r);i&&a.push(i)}return a}function m2(t,a){if(t.options.scrollRestoration&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,Dc=!1;const r=t.options.getScrollRestorationKey||f2,i=new Map,o=(m,g,p)=>{const v=i.get(m)||{};v.scrollX=g,v.scrollY=p,i.set(m,v)};history.scrollRestoration="manual";const u=m=>{if(!(Dc||!t.isScrollRestoring))if(m.target===document)o(gi,scrollX,scrollY);else{const g=m.target;o(g,g.scrollLeft,g.scrollTop)}},h=m=>{if(!t.isScrollRestoring)return;const g=hs[m]||(hs[m]={});for(const[p,v]of i)p===gi?g[gi]=v:p.isConnected&&(g[h2(p)]=v)};document.addEventListener("scroll",u,!0),t.subscribe("onBeforeLoad",m=>{m.fromLocation&&h(r(m.fromLocation)),i.clear()}),addEventListener("pagehide",()=>{h(r(t.stores.resolvedLocation.get()??t.stores.location.get())),d2()}),t.subscribe("onRendered",m=>{var w;const g=t.options.scrollRestorationBehavior,p=t.options.scrollToTopSelectors,v=t.resetNextScroll;let y;if(i.clear(),v||(t.resetNextScroll=!0),typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const x=r(m.toLocation),j=m.fromLocation&&r(m.fromLocation);if(t.isScrollRestoring&&j&&j!==x){const S=hs[j];if(S){let E=hs[x];for(const _ in S){if(_===gi){if(v)continue}else{const C=qh(_);if(!C||v&&p&&(y??(y=Mb(p)),y.includes(C)))continue}E||(E=hs[x]={}),E[_]??(E[_]=S[_])}}}Dc=!0;try{const S=m.toLocation.hash,E=m.toLocation.state.__hashScrollIntoViewOptions??!0;let _=!1;if(v){const C=Hh.get(m.toLocation),T=S&&E&&(C==="PUSH"||C==="REPLACE"),A=t.isScrollRestoring?hs[x]:void 0;if(A)for(const B in A){const{scrollX:q,scrollY:k}=A[B];if(B===gi){if(T)continue;scrollTo({top:k,left:q,behavior:g}),_=!0}else{const D=qh(B);D&&(D.scrollLeft=q,D.scrollTop=k)}}if(!_&&!S){const B={top:0,left:0,behavior:g};if(scrollTo(B),p){y??(y=Mb(p));for(const q of y)q.scrollTo(B)}}}!_&&S&&E&&((w=document.getElementById(S))==null||w.scrollIntoView(E))}finally{Dc=!1}})}const p2="Error preloading route! ☝️";var S0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=a=>{var g,p;this.originalIndex=a.originalIndex;const r=this.options,i=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(p=(g=this.options).getParentRoute)==null?void 0:p.call(g),i?this._path=yr:this.parentRoute||Da();let o=i?yr:r==null?void 0:r.path;o&&o!=="/"&&(o=m0(o));const u=(r==null?void 0:r.id)||o;let h=i?yr:Yc([this.parentRoute.id==="__root__"?"":this.parentRoute.id,u]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=Yc(["/",h]));const m=h==="__root__"?"/":Yc([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=m,this._to=Oa(m)},this.addChildren=a=>this._addFileChildren(a),this._addFileChildren=a=>(Array.isArray(a)&&(this.children=a),typeof a=="object"&&a!==null&&(this.children=Object.values(a)),this),this._addFileTypes=()=>this,this.updateLoader=a=>(Object.assign(this.options,a),this),this.update=a=>(Object.assign(this.options,a),this),this.lazy=a=>(this.lazyFn=a,this),this.redirect=a=>qE({from:this.fullPath,...a}),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},g2=class extends S0{constructor(t){super(t)}};function Em(t){const a=t.errorComponent??Nm;return c.jsx(y2,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:r,reset:i})=>r?N.createElement(a,{error:r,reset:i}):t.children})}var y2=class extends N.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,a){const r=t.getResetKey();return a.error&&a.resetKey!==r?{resetKey:r,error:null}:{resetKey:r}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,a){this.props.onCatch&&this.props.onCatch(t,a)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Nm({error:t}){const[a,r]=N.useState(!1);return c.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[c.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),c.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(i=>!i),children:a?"Hide Error":"Show Error"})]}),c.jsx("div",{style:{height:".25rem"}}),a?c.jsx("div",{children:c.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?c.jsx("code",{children:t.message}):null})}):null]})}function v2({children:t,fallback:a=null}){return w0()?c.jsx(br.Fragment,{children:t}):c.jsx(br.Fragment,{children:a})}function w0(){return br.useSyncExternalStore(b2,()=>!0,()=>!1)}function b2(){return()=>{}}var j0=N.createContext(null);function vn(t){return N.useContext(j0)}var ju=N.createContext(void 0),x2=N.createContext(void 0),et=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(et||{});function S2({update:t,notify:a,unwatched:r}){return{link:i,unlink:o,propagate:u,checkDirty:h,shallowPropagate:m};function i(p,v,y){const x=v.depsTail;if(x!==void 0&&x.dep===p)return;const j=x!==void 0?x.nextDep:v.deps;if(j!==void 0&&j.dep===p){j.version=y,v.depsTail=j;return}const w=p.subsTail;if(w!==void 0&&w.version===y&&w.sub===v)return;const S=v.depsTail=p.subsTail={version:y,dep:p,sub:v,prevDep:x,nextDep:j,prevSub:w,nextSub:void 0};j!==void 0&&(j.prevDep=S),x!==void 0?x.nextDep=S:v.deps=S,w!==void 0?w.nextSub=S:p.subs=S}function o(p,v=p.sub){const y=p.dep,x=p.prevDep,j=p.nextDep,w=p.nextSub,S=p.prevSub;return j!==void 0?j.prevDep=x:v.depsTail=x,x!==void 0?x.nextDep=j:v.deps=j,w!==void 0?w.prevSub=S:y.subsTail=S,S!==void 0?S.nextSub=w:(y.subs=w)===void 0&&r(y),j}function u(p){let v=p.nextSub,y;e:do{const x=p.sub;let j=x.flags;if(j&60?j&12?j&4?!(j&48)&&g(p,x)?(x.flags=j|40,j&=1):j=0:x.flags=j&-9|32:j=0:x.flags=j|32,j&2&&a(x),j&1){const w=x.subs;if(w!==void 0){const S=(p=w).nextSub;S!==void 0&&(y={value:v,prev:y},v=S);continue}}if((p=v)!==void 0){v=p.nextSub;continue}for(;y!==void 0;)if(p=y.value,y=y.prev,p!==void 0){v=p.nextSub;continue e}break}while(!0)}function h(p,v){let y,x=0,j=!1;e:do{const w=p.dep,S=w.flags;if(v.flags&16)j=!0;else if((S&17)===17){if(t(w)){const E=w.subs;E.nextSub!==void 0&&m(E),j=!0}}else if((S&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(y={value:p,prev:y}),p=w.deps,v=w,++x;continue}if(!j){const E=p.nextDep;if(E!==void 0){p=E;continue}}for(;x--;){const E=v.subs,_=E.nextSub!==void 0;if(_?(p=y.value,y=y.prev):p=E,j){if(t(v)){_&&m(E),v=p.sub;continue}j=!1}else v.flags&=-33;v=p.sub;const C=p.nextDep;if(C!==void 0){p=C;continue e}}return j}while(!0)}function m(p){do{const v=p.sub,y=v.flags;(y&48)===32&&(v.flags=y|16,(y&6)===2&&a(v))}while((p=p.nextSub)!==void 0)}function g(p,v){let y=v.depsTail;for(;y!==void 0;){if(y===p)return!0;y=y.prevDep}return!1}}function w2(t,a,r){var u,h,m;const i=typeof t=="object",o=i?t:void 0;return{next:(u=i?t.next:t)==null?void 0:u.bind(o),error:(h=i?t.error:a)==null?void 0:h.bind(o),complete:(m=i?t.complete:r)==null?void 0:m.bind(o)}}const Gh=[];let Zc=0;const{link:Ob,unlink:j2,propagate:E2,checkDirty:E0,shallowPropagate:Db}=S2({update(t){return t._update()},notify(t){Gh[Ih++]=t,t.flags&=~et.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=et.Mutable|et.Dirty,lu(t))}});let Lc=0,Ih=0,Wn,Qh=0;function N0(t){try{++Qh,t()}finally{--Qh||R0()}}function lu(t){const a=t.depsTail;let r=a!==void 0?a.nextDep:t.deps;for(;r!==void 0;)r=j2(r,t)}function R0(){if(!(Qh>0)){for(;Lc<Ih;){const t=Gh[Lc];Gh[Lc++]=void 0,t.notify()}Lc=0,Ih=0}}function Lb(t,a){const r=typeof t=="function",i=t,o={_snapshot:r?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:r?et.None:et.Mutable,get(){return Wn!==void 0&&Ob(o,Wn,Zc),o._snapshot},subscribe(u){const h=w2(u),m={current:!1},g=N2(()=>{var p;o.get(),m.current?(p=h.next)==null||p.call(h,o._snapshot):m.current=!0});return{unsubscribe:()=>{g.stop()}}},_update(u){const h=Wn,m=(a==null?void 0:a.compare)??Object.is;if(r)Wn=o,++Zc,o.depsTail=void 0;else if(u===void 0)return!1;r&&(o.flags=et.Mutable|et.RecursedCheck);try{const g=o._snapshot,p=typeof u=="function"?u(g):u===void 0&&r?i(g):u;return g===void 0||!m(g,p)?(o._snapshot=p,!0):!1}finally{Wn=h,r&&(o.flags&=~et.RecursedCheck),lu(o)}}};return r?(o.flags=et.Mutable|et.Dirty,o.get=function(){const u=o.flags;if(u&et.Dirty||u&et.Pending&&E0(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&Db(h)}}else u&et.Pending&&(o.flags=u&~et.Pending);return Wn!==void 0&&Ob(o,Wn,Zc),o._snapshot}):o.set=function(u){if(o._update(u)){const h=o.subs;h!==void 0&&(E2(h),Db(h),R0())}},o}function N2(t){const a=()=>{const i=Wn;Wn=r,++Zc,r.depsTail=void 0,r.flags=et.Watching|et.RecursedCheck;try{return t()}finally{Wn=i,r.flags&=~et.RecursedCheck,lu(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:et.Watching|et.RecursedCheck,notify(){const i=this.flags;i&et.Dirty||i&et.Pending&&E0(this.deps,this)?a():this.flags=et.Watching},stop(){this.flags=et.None,this.depsTail=void 0,lu(this)}};return a(),r}var gh={exports:{}},yh={},vh={exports:{}},bh={};/**
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 zb;function R2(){if(zb)return bh;zb=1;var t=co();function a(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var r=typeof Object.is=="function"?Object.is:a,i=t.useState,o=t.useEffect,u=t.useLayoutEffect,h=t.useDebugValue;function m(y,x){var j=x(),w=i({inst:{value:j,getSnapshot:x}}),S=w[0].inst,E=w[1];return u(function(){S.value=j,S.getSnapshot=x,g(S)&&E({inst:S})},[y,j,x]),o(function(){return g(S)&&E({inst:S}),y(function(){g(S)&&E({inst:S})})},[y]),h(j),j}function g(y){var x=y.getSnapshot;y=y.value;try{var j=x();return!r(y,j)}catch{return!0}}function p(y,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return bh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,bh}var Bb;function C2(){return Bb||(Bb=1,vh.exports=R2()),vh.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 Ub;function _2(){if(Ub)return yh;Ub=1;var t=co(),a=C2();function r(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:r,o=a.useSyncExternalStore,u=t.useRef,h=t.useEffect,m=t.useMemo,g=t.useDebugValue;return yh.useSyncExternalStoreWithSelector=function(p,v,y,x,j){var w=u(null);if(w.current===null){var S={hasValue:!1,value:null};w.current=S}else S=w.current;w=m(function(){function _(q){if(!C){if(C=!0,T=q,q=x(q),j!==void 0&&S.hasValue){var k=S.value;if(j(k,q))return A=k}return A=q}if(k=A,i(T,q))return k;var D=x(q);return j!==void 0&&j(k,D)?(T=q,k):(T=q,A=D)}var C=!1,T,A,B=y===void 0?null:y;return[function(){return _(v())},B===null?void 0:function(){return _(B())}]},[v,y,x,j]);var E=o(p,w[0],w[1]);return h(function(){S.hasValue=!0,S.value=E},[E]),g(E),E},yh}var Pb;function A2(){return Pb||(Pb=1,gh.exports=_2()),gh.exports}var T2=A2();function k2(t,a){return t===a}function en(t,a,r=k2){const i=N.useCallback(h=>{if(!t)return()=>{};const{unsubscribe:m}=t.subscribe(h);return m},[t]),o=N.useCallback(()=>t==null?void 0:t.get(),[t]);return T2.useSyncExternalStoreWithSelector(i,o,o,a,r)}var M2={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function jr(t){const a=vn(),r=N.useContext(t.from?x2:ju),i=t.from??r,o=i?t.from?a.stores.getRouteMatchStore(i):a.stores.matchStores.get(i):void 0,u=N.useRef(void 0);return en(o??M2,h=>{if((t.shouldThrow??!0)&&!h&&Da(),h===void 0)return;const m=t.select?t.select(h):h;if(t.structuralSharing??a.options.defaultStructuralSharing){const g=sr(u.current,m);return u.current=g,g}return m})}function C0(t){return jr({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.loaderData):a.loaderData})}function _0(t){const{select:a,...r}=t;return jr({...r,select:i=>a?a(i.loaderDeps):i.loaderDeps})}function Eu(t){return jr({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:a=>{const r=t.strict===!1?a.params:a._strictParams;return t.select?t.select(r):r}})}function qi(t){return jr({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:a=>t.select?t.select(a.search):a.search})}function Rm(t){const a=vn();return N.useCallback(r=>a.navigate({...r,from:r.from??(t==null?void 0:t.from)}),[t==null?void 0:t.from,a])}function A0(t){return jr({...t,select:a=>t.select?t.select(a.context):a.context})}var Nu=i0();const O2=bm(Nu);function D2(t,a){const r=vn(),i=gE(a),{activeProps:o,inactiveProps:u,activeOptions:h,to:m,preload:g,preloadDelay:p,preloadIntentProximity:v,hashScrollIntoView:y,replace:x,startTransition:j,resetScroll:w,viewTransition:S,children:E,target:_,disabled:C,style:T,className:A,onClick:B,onBlur:q,onFocus:k,onMouseEnter:D,onMouseLeave:z,onTouchStart:H,ignoreBlocker:X,params:ne,search:se,hash:te,state:ce,mask:P,reloadDocument:V,unsafeRelative:ee,from:ye,_fromLocation:ae,...L}=t,Z=w0(),re=N.useMemo(()=>t,[r,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),ie=en(r.stores.location,Ie=>Ie,(Ie,Et)=>Ie.href===Et.href),le=N.useMemo(()=>{const Ie={_fromLocation:ie,...re};return r.buildLocation(Ie)},[r,ie,re]),he=le.maskedLocation?le.maskedLocation.publicHref:le.publicHref,xe=le.maskedLocation?le.maskedLocation.external:le.external,Be=N.useMemo(()=>F2(he,xe,r.history,C),[C,xe,he,r.history]),ve=N.useMemo(()=>{if(Be!=null&&Be.external)return au(Be.href,r.protocolAllowlist)?void 0:Be.href;if(!H2(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),au(m,r.protocolAllowlist)?void 0:m}catch{}},[m,Be,r.protocolAllowlist]),zt=N.useMemo(()=>{if(ve)return!1;if(h!=null&&h.exact){if(!OE(ie.pathname,le.pathname,r.basepath))return!1}else{const Ie=su(ie.pathname,r.basepath),Et=su(le.pathname,r.basepath);if(!(Ie.startsWith(Et)&&(Ie.length===Et.length||Ie[Et.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!gr(ie.search,le.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?Z&&ie.hash===le.hash:!0},[h==null?void 0:h.exact,h==null?void 0:h.explicitUndefined,h==null?void 0:h.includeHash,h==null?void 0:h.includeSearch,ie,ve,Z,le.hash,le.pathname,le.search,r.basepath]),jt=zt?ar(o,{})??L2:xh,kt=zt?xh:ar(u,{})??xh,Bt=[A,jt.className,kt.className].filter(Boolean).join(" "),bt=(T||jt.style||kt.style)&&{...T,...jt.style,...kt.style},[Ls,Fa]=N.useState(!1),Rr=N.useRef(!1),zn=t.reloadDocument||ve?!1:g??r.options.defaultPreload,xn=p??r.options.defaultPreloadDelay??0,Bn=N.useCallback(()=>{r.preloadRoute({...re,_builtLocation:le}).catch(Ie=>{console.warn(Ie),console.warn(p2)})},[r,re,le]);pE(i,N.useCallback(Ie=>{Ie!=null&&Ie.isIntersecting&&Bn()},[Bn]),P2,{disabled:!!C||zn!=="viewport"}),N.useEffect(()=>{Rr.current||!C&&zn==="render"&&(Bn(),Rr.current=!0)},[C,Bn,zn]);const Yi=Ie=>{const Et=Ie.currentTarget.getAttribute("target"),Vn=_!==void 0?_:Et;if(!C&&!q2(Ie)&&!Ie.defaultPrevented&&(!Vn||Vn==="_self")&&Ie.button===0){Ie.preventDefault(),Nu.flushSync(()=>{Fa(!0)});const Cr=r.subscribe("onResolved",()=>{Cr(),Fa(!1)});r.navigate({...re,replace:x,resetScroll:w,hashScrollIntoView:y,startTransition:j,viewTransition:S,ignoreBlocker:X})}};if(ve)return{...L,ref:i,href:ve,...E&&{children:E},..._&&{target:_},...C&&{disabled:C},...T&&{style:T},...A&&{className:A},...B&&{onClick:B},...q&&{onBlur:q},...k&&{onFocus:k},...D&&{onMouseEnter:D},...z&&{onMouseLeave:z},...H&&{onTouchStart:H}};const mo=Ie=>{if(C||zn!=="intent")return;if(!xn){Bn();return}const Et=Ie.currentTarget;if(Il.has(Et))return;const Vn=setTimeout(()=>{Il.delete(Et),Bn()},xn);Il.set(Et,Vn)},qu=Ie=>{C||zn!=="intent"||Bn()},Mt=Ie=>{if(C||!zn||!xn)return;const Et=Ie.currentTarget,Vn=Il.get(Et);Vn&&(clearTimeout(Vn),Il.delete(Et))};return{...L,...jt,...kt,href:Be==null?void 0:Be.href,ref:i,onClick:fi([B,Yi]),onBlur:fi([q,Mt]),onFocus:fi([k,mo]),onMouseEnter:fi([D,mo]),onMouseLeave:fi([z,Mt]),onTouchStart:fi([H,qu]),disabled:!!C,target:_,...bt&&{style:bt},...Bt&&{className:Bt},...C&&z2,...zt&&B2,...Z&&Ls&&U2}}var xh={},L2={className:"active"},z2={role:"link","aria-disabled":!0},B2={"data-status":"active","aria-current":"page"},U2={"data-transitioning":"transitioning"},Il=new WeakMap,P2={rootMargin:"100px"},fi=t=>a=>{for(const r of t)if(r){if(a.defaultPrevented)return;r(a)}};function F2(t,a,r,i){if(!i)return a?{href:t,external:!0}:{href:r.createHref(t)||"/",external:!1}}function H2(t){if(typeof t!="string")return!1;const a=t.charCodeAt(0);return a===47?t.charCodeAt(1)!==47:a===46}var yt=N.forwardRef((t,a)=>{const{_asChild:r,...i}=t,{type:o,...u}=D2(i,a),h=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;if(!r){const{disabled:m,...g}=u;return N.createElement("a",g,h)}return N.createElement(r,u,h)});function q2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var G2=class extends S0{constructor(a){super(a),this.useMatch=r=>jr({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>A0({...r,from:this.id}),this.useSearch=r=>qi({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>Eu({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>_0({...r,from:this.id}),this.useLoaderData=r=>C0({...r,from:this.id}),this.useNavigate=()=>Rm({from:this.fullPath}),this.Link=br.forwardRef((r,i)=>c.jsx(yt,{ref:i,from:this.fullPath,...r}))}};function I2(t){return new G2(t)}function Q2(){return t=>Y2(t)}var V2=class extends g2{constructor(t){super(t),this.useMatch=a=>jr({select:a==null?void 0:a.select,from:this.id,structuralSharing:a==null?void 0:a.structuralSharing}),this.useRouteContext=a=>A0({...a,from:this.id}),this.useSearch=a=>qi({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useParams=a=>Eu({select:a==null?void 0:a.select,structuralSharing:a==null?void 0:a.structuralSharing,from:this.id}),this.useLoaderDeps=a=>_0({...a,from:this.id}),this.useLoaderData=a=>C0({...a,from:this.id}),this.useNavigate=()=>Rm({from:this.fullPath}),this.Link=br.forwardRef((a,r)=>c.jsx(yt,{ref:r,from:this.fullPath,...a}))}};function Y2(t){return new V2(t)}function bn(t){return new $2(t,{silent:!0}).createRoute}var $2=class{constructor(t,a){this.path=t,this.createRoute=r=>{const i=I2(r);return i.isRoot=!1,i},this.silent=a==null?void 0:a.silent}};function X2(t){const a=vn(),r=`not-found-${en(a.stores.location,i=>i.pathname)}-${en(a.stores.status,i=>i)}`;return c.jsx(Em,{getResetKey:()=>r,onCatch:(i,o)=>{var u;if(Lt(i))(u=t.onCatch)==null||u.call(t,i,o);else throw i},errorComponent:({error:i})=>{var o;if(Lt(i))return(o=t.fallback)==null?void 0:o.call(t,i);throw i},children:t.children})}function Z2(){return c.jsx("p",{children:"Not Found"})}function yi(t){return c.jsx(c.Fragment,{children:t.children})}function T0(t,a,r){return a.options.notFoundComponent?c.jsx(a.options.notFoundComponent,{...r}):t.options.defaultNotFoundComponent?c.jsx(t.options.defaultNotFoundComponent,{...r}):c.jsx(Z2,{})}function K2(t){return null}function W2(){return K2(vn()),null}var k0=N.memo(function({matchId:a}){const r=vn(),i=r.stores.matchStores.get(a);i||Da();const o=en(r.stores.loadedAt,h=>h),u=en(i,h=>h);return c.jsx(J2,{router:r,matchId:a,resetKey:o,matchState:N.useMemo(()=>{var g;const h=u.routeId,m=(g=r.routesById[h].parentRoute)==null?void 0:g.id;return{routeId:h,ssr:u.ssr,_displayPending:u._displayPending,parentRouteId:m}},[u._displayPending,u.routeId,u.ssr,r.routesById])})});function J2({router:t,matchId:a,resetKey:r,matchState:i}){var w,S;const o=t.routesById[i.routeId],u=o.options.pendingComponent??t.options.defaultPendingComponent,h=u?c.jsx(u,{}):null,m=o.options.errorComponent??t.options.defaultErrorComponent,g=o.options.onCatch??t.options.defaultOnCatch,p=o.isRoot?o.options.notFoundComponent??((w=t.options.notFoundRoute)==null?void 0:w.options.component):o.options.notFoundComponent,v=i.ssr===!1||i.ssr==="data-only",y=(!o.isRoot||o.options.wrapInSuspense||v)&&(o.options.wrapInSuspense??u??(((S=o.options.errorComponent)==null?void 0:S.preload)||v))?N.Suspense:yi,x=m?Em:yi,j=p?X2:yi;return c.jsxs(o.isRoot?o.options.shellComponent??yi:yi,{children:[c.jsx(ju.Provider,{value:a,children:c.jsx(y,{fallback:h,children:c.jsx(x,{getResetKey:()=>r,errorComponent:m||Nm,onCatch:(E,_)=>{if(Lt(E))throw E.routeId??(E.routeId=i.routeId),E;g==null||g(E,_)},children:c.jsx(j,{fallback:E=>{if(E.routeId??(E.routeId=i.routeId),!p||E.routeId&&E.routeId!==i.routeId||!E.routeId&&!o.isRoot)throw E;return N.createElement(p,E)},children:v||i._displayPending?c.jsx(v2,{fallback:h,children:c.jsx(Fb,{matchId:a})}):c.jsx(Fb,{matchId:a})})})})}),i.parentRouteId===yr?c.jsxs(c.Fragment,{children:[c.jsx(eN,{resetKey:r}),t.options.scrollRestoration&&l0?c.jsx(W2,{}):null]}):null]})}function eN({resetKey:t}){const a=vn(),r=N.useRef(void 0);return Yl(()=>{const i=a.latestLocation.href;(r.current===void 0||r.current!==i)&&(a.emit({type:"onRendered",...vi(a.stores.location.get(),a.stores.resolvedLocation.get())}),r.current=i)},[a.latestLocation.state.__TSR_key,t,a]),null}var Fb=N.memo(function({matchId:a}){const r=vn(),i=(v,y)=>{var x;return((x=r.getMatch(v.id))==null?void 0:x._nonReactive[y])??v._nonReactive[y]},o=r.stores.matchStores.get(a);o||Da();const u=en(o,v=>v),h=u.routeId,m=r.routesById[h],g=N.useMemo(()=>{var y;const v=(y=r.routesById[h].options.remountDeps??r.options.defaultRemountDeps)==null?void 0:y({routeId:h,loaderDeps:u.loaderDeps,params:u._strictParams,search:u._strictSearch});return v?JSON.stringify(v):void 0},[h,u.loaderDeps,u._strictParams,u._strictSearch,r.options.defaultRemountDeps,r.routesById]),p=N.useMemo(()=>{const v=m.options.component??r.options.defaultComponent;return v?c.jsx(v,{},g):c.jsx(Ru,{})},[g,m.options.component,r.options.defaultComponent]);if(u._displayPending)throw i(u,"displayPendingPromise");if(u._forcePending)throw i(u,"minPendingPromise");if(u.status==="pending"){const v=m.options.pendingMinMs??r.options.defaultPendingMinMs;if(v){const y=r.getMatch(u.id);if(y&&!y._nonReactive.minPendingPromise){const x=Li();y._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),y._nonReactive.minPendingPromise=void 0},v)}}throw i(u,"loadPromise")}if(u.status==="notFound")return Lt(u.error)||Da(),T0(r,m,u.error);if(u.status==="redirected")throw Jt(u.error)||Da(),i(u,"loadPromise");if(u.status==="error")throw u.error;return p}),Ru=N.memo(function(){const a=vn(),r=N.useContext(ju);let i,o=!1,u;{const p=r?a.stores.matchStores.get(r):void 0;[i,o]=en(p,v=>[v==null?void 0:v.routeId,(v==null?void 0:v.globalNotFound)??!1]),u=en(a.stores.matchesId,v=>v[v.findIndex(y=>y===r)+1])}const h=i?a.routesById[i]:void 0,m=a.options.defaultPendingComponent?c.jsx(a.options.defaultPendingComponent,{}):null;if(o)return h||Da(),T0(a,h,void 0);if(!u)return null;const g=c.jsx(k0,{matchId:u});return i===yr?c.jsx(N.Suspense,{fallback:m,children:g}):g});function tN(){const t=vn(),a=N.useRef({router:t,mounted:!1}),[r,i]=N.useState(!1),o=en(t.stores.isLoading,y=>y),u=en(t.stores.hasPending,y=>y),h=ch(o),m=o||r||u,g=ch(m),p=o||u,v=ch(p);return t.startTransition=y=>{i(!0),N.startTransition(()=>{y(),i(!1)})},N.useEffect(()=>{const y=t.history.subscribe(t.load),x=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Oa(t.latestLocation.publicHref)!==Oa(x.publicHref)&&t.commitLocation({...x,replace:!0}),()=>{y()}},[t,t.history]),Yl(()=>{if(typeof window<"u"&&t.ssr||a.current.router===t&&a.current.mounted)return;a.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(x){console.error(x)}})()},[t]),Yl(()=>{h&&!o&&t.emit({type:"onLoad",...vi(t.stores.location.get(),t.stores.resolvedLocation.get())})},[h,t,o]),Yl(()=>{v&&!p&&t.emit({type:"onBeforeRouteMount",...vi(t.stores.location.get(),t.stores.resolvedLocation.get())})},[p,v,t]),Yl(()=>{if(g&&!m){const y=vi(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...y}),N0(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[m,g,t]),null}function nN(){const t=vn(),a=t.routesById[yr].options.pendingComponent??t.options.defaultPendingComponent,r=a?c.jsx(a,{}):null,i=c.jsxs(typeof document<"u"&&t.ssr?yi:N.Suspense,{fallback:r,children:[c.jsx(tN,{}),c.jsx(aN,{})]});return t.options.InnerWrap?c.jsx(t.options.InnerWrap,{children:i}):i}function aN(){const t=vn(),a=en(t.stores.firstId,o=>o),r=en(t.stores.loadedAt,o=>o),i=a?c.jsx(k0,{matchId:a}):null;return c.jsx(ju.Provider,{value:a,children:t.options.disableGlobalCatchBoundary?i:c.jsx(Em,{getResetKey:()=>r,errorComponent:Nm,onCatch:void 0,children:i})})}function sN(){const t=vn();return en(t.stores.matchRouteDeps,a=>a),N.useCallback(a=>{const{pending:r,caseSensitive:i,fuzzy:o,includeSearch:u,...h}=a;return t.matchRoute(h,{pending:r,caseSensitive:i,fuzzy:o,includeSearch:u})},[t])}var rN=t=>({createMutableStore:Lb,createReadonlyStore:Lb,batch:N0}),iN=t=>new lN(t),lN=class extends t2{constructor(t){super(t,rN)}};function oN({router:t,children:a,...r}){c0(r)&&t.update({...t.options,...r,context:{...t.options.context,...r.context}});const i=c.jsx(j0.Provider,{value:t,children:a});return t.options.Wrap?c.jsx(t.options.Wrap,{children:i}):i}function cN({router:t,...a}){return c.jsx(oN,{router:t,...a,children:c.jsx(nN,{})})}var Gi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lr,ys,wi,Xx,uN=(Xx=class extends Gi{constructor(){super();pe(this,lr);pe(this,ys);pe(this,wi);oe(this,wi,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){O(this,ys)||this.setEventListener(O(this,wi))}onUnsubscribe(){var a;this.hasListeners()||((a=O(this,ys))==null||a.call(this),oe(this,ys,void 0))}setEventListener(a){var r;oe(this,wi,a),(r=O(this,ys))==null||r.call(this),oe(this,ys,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){O(this,lr)!==a&&(oe(this,lr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof O(this,lr)=="boolean"?O(this,lr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},lr=new WeakMap,ys=new WeakMap,wi=new WeakMap,Xx),Cm=new uN,dN={setTimeout:(t,a)=>setTimeout(t,a),clearTimeout:t=>clearTimeout(t),setInterval:(t,a)=>setInterval(t,a),clearInterval:t=>clearInterval(t)},vs,vm,Zx,fN=(Zx=class{constructor(){pe(this,vs,dN);pe(this,vm,!1)}setTimeoutProvider(t){oe(this,vs,t)}setTimeout(t,a){return O(this,vs).setTimeout(t,a)}clearTimeout(t){O(this,vs).clearTimeout(t)}setInterval(t,a){return O(this,vs).setInterval(t,a)}clearInterval(t){O(this,vs).clearInterval(t)}},vs=new WeakMap,vm=new WeakMap,Zx),ir=new fN;function hN(t){setTimeout(t,0)}var mN=typeof window>"u"||"Deno"in globalThis;function Ft(){}function pN(t,a){return typeof t=="function"?t(a):t}function Vh(t){return typeof t=="number"&&t>=0&&t!==1/0}function M0(t,a){return Math.max(t+(a||0)-Date.now(),0)}function As(t,a){return typeof t=="function"?t(a):t}function pn(t,a){return typeof t=="function"?t(a):t}function Hb(t,a){const{type:r="all",exact:i,fetchStatus:o,predicate:u,queryKey:h,stale:m}=t;if(h){if(i){if(a.queryHash!==_m(h,a.options))return!1}else if(!Jl(a.queryKey,h))return!1}if(r!=="all"){const g=a.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||u&&!u(a))}function qb(t,a){const{exact:r,status:i,predicate:o,mutationKey:u}=t;if(u){if(!a.options.mutationKey)return!1;if(r){if(xr(a.options.mutationKey)!==xr(u))return!1}else if(!Jl(a.options.mutationKey,u))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function _m(t,a){return((a==null?void 0:a.queryKeyHashFn)||xr)(t)}function xr(t){return JSON.stringify(t,(a,r)=>Yh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Jl(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(r=>Jl(t[r],a[r])):!1}var gN=Object.prototype.hasOwnProperty;function O0(t,a,r=0){if(t===a)return t;if(r>500)return a;const i=Gb(t)&&Gb(a);if(!i&&!(Yh(t)&&Yh(a)))return a;const u=(i?t:Object.keys(t)).length,h=i?a:Object.keys(a),m=h.length,g=i?new Array(m):{};let p=0;for(let v=0;v<m;v++){const y=i?v:h[v],x=t[y],j=a[y];if(x===j){g[y]=x,(i?v<u:gN.call(t,y))&&p++;continue}if(x===null||j===null||typeof x!="object"||typeof j!="object"){g[y]=j;continue}const w=O0(x,j,r+1);g[y]=w,w===x&&p++}return u===m&&p===u?t:g}function ou(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const r in t)if(t[r]!==a[r])return!1;return!0}function Gb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Yh(t){if(!Ib(t))return!1;const a=t.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!Ib(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ib(t){return Object.prototype.toString.call(t)==="[object Object]"}function yN(t){return new Promise(a=>{ir.setTimeout(a,t)})}function $h(t,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,a):r.structuralSharing!==!1?O0(t,a):a}function vN(t,a,r=0){const i=[...t,a];return r&&i.length>r?i.slice(1):i}function bN(t,a,r=0){const i=[a,...t];return r&&i.length>r?i.slice(0,-1):i}var Am=Symbol();function D0(t,a){return!t.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!t.queryFn||t.queryFn===Am?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Tm(t,a){return typeof t=="function"?t(...a):!!t}function xN(t,a,r){let i=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??(o=a()),i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),t}var eo=(()=>{let t=()=>mN;return{isServer(){return t()},setIsServer(a){t=a}}})();function Xh(){let t,a;const r=new Promise((o,u)=>{t=o,a=u});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},r.reject=o=>{i({status:"rejected",reason:o}),a(o)},r}var SN=hN;function wN(){let t=[],a=0,r=m=>{m()},i=m=>{m()},o=SN;const u=m=>{a?t.push(m):o(()=>{r(m)})},h=()=>{const m=t;t=[],m.length&&o(()=>{i(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;a++;try{g=m()}finally{a--,a||h()}return g},batchCalls:m=>(...g)=>{u(()=>{m(...g)})},schedule:u,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{o=m}}}var gt=wN(),ji,bs,Ei,Kx,jN=(Kx=class extends Gi{constructor(){super();pe(this,ji,!0);pe(this,bs);pe(this,Ei);oe(this,Ei,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){O(this,bs)||this.setEventListener(O(this,Ei))}onUnsubscribe(){var a;this.hasListeners()||((a=O(this,bs))==null||a.call(this),oe(this,bs,void 0))}setEventListener(a){var r;oe(this,Ei,a),(r=O(this,bs))==null||r.call(this),oe(this,bs,a(this.setOnline.bind(this)))}setOnline(a){O(this,ji)!==a&&(oe(this,ji,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return O(this,ji)}},ji=new WeakMap,bs=new WeakMap,Ei=new WeakMap,Kx),cu=new jN;function EN(t){return Math.min(1e3*2**t,3e4)}function L0(t){return(t??"online")==="online"?cu.isOnline():!0}var Zh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function z0(t){let a=!1,r=0,i;const o=Xh(),u=()=>o.status!=="pending",h=S=>{var E;if(!u()){const _=new Zh(S);x(_),(E=t.onCancel)==null||E.call(t,_)}},m=()=>{a=!0},g=()=>{a=!1},p=()=>Cm.isFocused()&&(t.networkMode==="always"||cu.isOnline())&&t.canRun(),v=()=>L0(t.networkMode)&&t.canRun(),y=S=>{u()||(i==null||i(),o.resolve(S))},x=S=>{u()||(i==null||i(),o.reject(S))},j=()=>new Promise(S=>{var E;i=_=>{(u()||p())&&S(_)},(E=t.onPause)==null||E.call(t)}).then(()=>{var S;i=void 0,u()||(S=t.onContinue)==null||S.call(t)}),w=()=>{if(u())return;let S;const E=r===0?t.initialPromise:void 0;try{S=E??t.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(y).catch(_=>{var q;if(u())return;const C=t.retry??(eo.isServer()?0:3),T=t.retryDelay??EN,A=typeof T=="function"?T(r,_):T,B=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,_);if(a||!B){x(_);return}r++,(q=t.onFail)==null||q.call(t,r,_),yN(A).then(()=>p()?void 0:j()).then(()=>{a?x(_):w()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(i==null||i(),o),cancelRetry:m,continueRetry:g,canStart:v,start:()=>(v()?w():j().then(w),o)}}var or,Wx,B0=(Wx=class{constructor(){pe(this,or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vh(this.gcTime)&&oe(this,or,ir.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(eo.isServer()?1/0:300*1e3))}clearGcTimeout(){O(this,or)!==void 0&&(ir.clearTimeout(O(this,or)),oe(this,or,void 0))}},or=new WeakMap,Wx);function NN(t){return{onFetch:(a,r)=>{var v,y,x,j,w;const i=a.options,o=(x=(y=(v=a.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,u=((j=a.state.data)==null?void 0:j.pages)||[],h=((w=a.state.data)==null?void 0:w.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let S=!1;const E=T=>{xN(T,()=>a.signal,()=>S=!0)},_=D0(a.options,a.fetchOptions),C=async(T,A,B)=>{if(S)return Promise.reject(a.signal.reason);if(A==null&&T.pages.length)return Promise.resolve(T);const k=(()=>{const X={client:a.client,queryKey:a.queryKey,pageParam:A,direction:B?"backward":"forward",meta:a.options.meta};return E(X),X})(),D=await _(k),{maxPages:z}=a.options,H=B?bN:vN;return{pages:H(T.pages,D,z),pageParams:H(T.pageParams,A,z)}};if(o&&u.length){const T=o==="backward",A=T?RN:Qb,B={pages:u,pageParams:h},q=A(i,B);m=await C(B,q,T)}else{const T=t??u.length;do{const A=g===0?h[0]??i.initialPageParam:Qb(i,m);if(g>0&&A==null)break;m=await C(m,A),g++}while(g<T)}return m};a.options.persister?a.fetchFn=()=>{var S,E;return(E=(S=a.options).persister)==null?void 0:E.call(S,p,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=p}}}function Qb(t,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?t.getNextPageParam(a[i],a,r[i],r):void 0}function RN(t,{pages:a,pageParams:r}){var i;return a.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,a[0],a,r[0],r):void 0}var Ni,cr,Ri,kn,ur,wt,so,dr,mn,U0,Ca,Jx,CN=(Jx=class extends B0{constructor(a){super();pe(this,mn);pe(this,Ni);pe(this,cr);pe(this,Ri);pe(this,kn);pe(this,ur);pe(this,wt);pe(this,so);pe(this,dr);oe(this,dr,!1),oe(this,so,a.defaultOptions),this.setOptions(a.options),this.observers=[],oe(this,ur,a.client),oe(this,kn,O(this,ur).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,oe(this,cr,Yb(this.options)),this.state=a.state??O(this,cr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return O(this,Ni)}get promise(){var a;return(a=O(this,wt))==null?void 0:a.promise}setOptions(a){if(this.options={...O(this,so),...a},a!=null&&a._type&&oe(this,Ni,a._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Yb(this.options);r.data!==void 0&&(this.setState(Vb(r.data,r.dataUpdatedAt)),oe(this,cr,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,kn).remove(this)}setData(a,r){const i=$h(this.state.data,a,this.options);return Re(this,mn,Ca).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a){Re(this,mn,Ca).call(this,{type:"setState",state:a})}cancel(a){var i,o;const r=(i=O(this,wt))==null?void 0:i.promise;return(o=O(this,wt))==null||o.cancel(a),r?r.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return O(this,cr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>pn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Am||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>As(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!M0(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=O(this,wt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=O(this,wt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),O(this,kn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(O(this,wt)&&(O(this,dr)||Re(this,mn,U0).call(this)?O(this,wt).cancel({revert:!0}):O(this,wt).cancelRetry()),this.scheduleGc()),O(this,kn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,mn,Ca).call(this,{type:"invalidate"})}async fetch(a,r){var p,v,y,x,j,w,S,E,_,C,T;if(this.state.fetchStatus!=="idle"&&((p=O(this,wt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(O(this,wt))return O(this,wt).continueRetry(),O(this,wt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const A=this.observers.find(B=>B.options.queryFn);A&&this.setOptions(A.options)}const i=new AbortController,o=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(oe(this,dr,!0),i.signal)})},u=()=>{const A=D0(this.options,r),q=(()=>{const k={client:O(this,ur),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return oe(this,dr,!1),this.options.persister?this.options.persister(A,q,this):A(q)},m=(()=>{const A={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:O(this,ur),state:this.state,fetchFn:u};return o(A),A})(),g=O(this,Ni)==="infinite"?NN(this.options.pages):this.options.behavior;g==null||g.onFetch(m,this),oe(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=m.fetchOptions)==null?void 0:v.meta))&&Re(this,mn,Ca).call(this,{type:"fetch",meta:(y=m.fetchOptions)==null?void 0:y.meta}),oe(this,wt,z0({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:A=>{A instanceof Zh&&A.revert&&this.setState({...O(this,Ri),fetchStatus:"idle"}),i.abort()},onFail:(A,B)=>{Re(this,mn,Ca).call(this,{type:"failed",failureCount:A,error:B})},onPause:()=>{Re(this,mn,Ca).call(this,{type:"pause"})},onContinue:()=>{Re(this,mn,Ca).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const A=await O(this,wt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(j=(x=O(this,kn).config).onSuccess)==null||j.call(x,A,this),(S=(w=O(this,kn).config).onSettled)==null||S.call(w,A,this.state.error,this),A}catch(A){if(A instanceof Zh){if(A.silent)return O(this,wt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Re(this,mn,Ca).call(this,{type:"error",error:A}),(_=(E=O(this,kn).config).onError)==null||_.call(E,A,this),(T=(C=O(this,kn).config).onSettled)==null||T.call(C,this.state.data,A,this),A}finally{this.scheduleGc()}}},Ni=new WeakMap,cr=new WeakMap,Ri=new WeakMap,kn=new WeakMap,ur=new WeakMap,wt=new WeakMap,so=new WeakMap,dr=new WeakMap,mn=new WeakSet,U0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ca=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...P0(i.data,this.options),fetchMeta:a.meta??null};case"success":const o={...i,...Vb(a.data,a.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return oe(this,Ri,a.manual?o:void 0),o;case"error":const u=a.error;return{...i,error:u,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),gt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),O(this,kn).notify({query:this,type:"updated",action:a})})},Jx);function P0(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:L0(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Vb(t,a){return{data:t,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Yb(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,r=a!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Zt,Le,ro,Pt,fr,Ci,_a,xs,io,_i,Ai,hr,mr,Ss,Ti,He,$l,Kh,Wh,Jh,em,tm,nm,am,F0,e0,_N=(e0=class extends Gi{constructor(a,r){super();pe(this,He);pe(this,Zt);pe(this,Le);pe(this,ro);pe(this,Pt);pe(this,fr);pe(this,Ci);pe(this,_a);pe(this,xs);pe(this,io);pe(this,_i);pe(this,Ai);pe(this,hr);pe(this,mr);pe(this,Ss);pe(this,Ti,new Set);this.options=r,oe(this,Zt,a),oe(this,xs,null),oe(this,_a,Xh()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Le).addObserver(this),$b(O(this,Le),this.options)?Re(this,He,$l).call(this):this.updateResult(),Re(this,He,em).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sm(O(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sm(O(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,He,tm).call(this),Re(this,He,nm).call(this),O(this,Le).removeObserver(this)}setOptions(a){const r=this.options,i=O(this,Le);if(this.options=O(this,Zt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof pn(this.options.enabled,O(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,He,am).call(this),O(this,Le).setOptions(this.options),r._defaulted&&!ou(this.options,r)&&O(this,Zt).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Le),observer:this});const o=this.hasListeners();o&&Xb(O(this,Le),i,this.options,r)&&Re(this,He,$l).call(this),this.updateResult(),o&&(O(this,Le)!==i||pn(this.options.enabled,O(this,Le))!==pn(r.enabled,O(this,Le))||As(this.options.staleTime,O(this,Le))!==As(r.staleTime,O(this,Le)))&&Re(this,He,Kh).call(this);const u=Re(this,He,Wh).call(this);o&&(O(this,Le)!==i||pn(this.options.enabled,O(this,Le))!==pn(r.enabled,O(this,Le))||u!==O(this,Ss))&&Re(this,He,Jh).call(this,u)}getOptimisticResult(a){const r=O(this,Zt).getQueryCache().build(O(this,Zt),a),i=this.createResult(r,a);return TN(this,i)&&(oe(this,Pt,i),oe(this,Ci,this.options),oe(this,fr,O(this,Le).state)),i}getCurrentResult(){return O(this,Pt)}trackResult(a,r){return new Proxy(a,{get:(i,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&O(this,_a).status==="pending"&&O(this,_a).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,o))})}trackProp(a){O(this,Ti).add(a)}getCurrentQuery(){return O(this,Le)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=O(this,Zt).defaultQueryOptions(a),i=O(this,Zt).getQueryCache().build(O(this,Zt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Re(this,He,$l).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Pt)))}createResult(a,r){var z;const i=O(this,Le),o=this.options,u=O(this,Pt),h=O(this,fr),m=O(this,Ci),p=a!==i?a.state:O(this,ro),{state:v}=a;let y={...v},x=!1,j;if(r._optimisticResults){const H=this.hasListeners(),X=!H&&$b(a,r),ne=H&&Xb(a,i,r,o);(X||ne)&&(y={...y,...P0(v.data,a.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:S,status:E}=y;j=y.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&E==="pending"){let H;u!=null&&u.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(H=u.data,_=!0):H=typeof r.placeholderData=="function"?r.placeholderData((z=O(this,Ai))==null?void 0:z.state.data,O(this,Ai)):r.placeholderData,H!==void 0&&(E="success",j=$h(u==null?void 0:u.data,H,r),x=!0)}if(r.select&&j!==void 0&&!_)if(u&&j===(h==null?void 0:h.data)&&r.select===O(this,io))j=O(this,_i);else try{oe(this,io,r.select),j=r.select(j),j=$h(u==null?void 0:u.data,j,r),oe(this,_i,j),oe(this,xs,null)}catch(H){oe(this,xs,H)}O(this,xs)&&(w=O(this,xs),j=O(this,_i),S=Date.now(),E="error");const C=y.fetchStatus==="fetching",T=E==="pending",A=E==="error",B=T&&C,q=j!==void 0,D={status:E,fetchStatus:y.fetchStatus,isPending:T,isSuccess:E==="success",isError:A,isInitialLoading:B,isLoading:B,data:j,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:S,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:C,isRefetching:C&&!T,isLoadingError:A&&!q,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:A&&q,isStale:km(a,r),refetch:this.refetch,promise:O(this,_a),isEnabled:pn(r.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const H=D.data!==void 0,X=D.status==="error"&&!H,ne=ce=>{X?ce.reject(D.error):H&&ce.resolve(D.data)},se=()=>{const ce=oe(this,_a,D.promise=Xh());ne(ce)},te=O(this,_a);switch(te.status){case"pending":a.queryHash===i.queryHash&&ne(te);break;case"fulfilled":(X||D.data!==te.value)&&se();break;case"rejected":(!X||D.error!==te.reason)&&se();break}}return D}updateResult(){const a=O(this,Pt),r=this.createResult(O(this,Le),this.options);if(oe(this,fr,O(this,Le).state),oe(this,Ci,this.options),O(this,fr).data!==void 0&&oe(this,Ai,O(this,Le)),ou(r,a))return;oe(this,Pt,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!O(this,Ti).size)return!0;const h=new Set(u??O(this,Ti));return this.options.throwOnError&&h.add("error"),Object.keys(O(this,Pt)).some(m=>{const g=m;return O(this,Pt)[g]!==a[g]&&h.has(g)})};Re(this,He,F0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,He,em).call(this)}},Zt=new WeakMap,Le=new WeakMap,ro=new WeakMap,Pt=new WeakMap,fr=new WeakMap,Ci=new WeakMap,_a=new WeakMap,xs=new WeakMap,io=new WeakMap,_i=new WeakMap,Ai=new WeakMap,hr=new WeakMap,mr=new WeakMap,Ss=new WeakMap,Ti=new WeakMap,He=new WeakSet,$l=function(a){Re(this,He,am).call(this);let r=O(this,Le).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Ft)),r},Kh=function(){Re(this,He,tm).call(this);const a=As(this.options.staleTime,O(this,Le));if(eo.isServer()||O(this,Pt).isStale||!Vh(a))return;const i=M0(O(this,Pt).dataUpdatedAt,a)+1;oe(this,hr,ir.setTimeout(()=>{O(this,Pt).isStale||this.updateResult()},i))},Wh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Le)):this.options.refetchInterval)??!1},Jh=function(a){Re(this,He,nm).call(this),oe(this,Ss,a),!(eo.isServer()||pn(this.options.enabled,O(this,Le))===!1||!Vh(O(this,Ss))||O(this,Ss)===0)&&oe(this,mr,ir.setInterval(()=>{(this.options.refetchIntervalInBackground||Cm.isFocused())&&Re(this,He,$l).call(this)},O(this,Ss)))},em=function(){Re(this,He,Kh).call(this),Re(this,He,Jh).call(this,Re(this,He,Wh).call(this))},tm=function(){O(this,hr)!==void 0&&(ir.clearTimeout(O(this,hr)),oe(this,hr,void 0))},nm=function(){O(this,mr)!==void 0&&(ir.clearInterval(O(this,mr)),oe(this,mr,void 0))},am=function(){const a=O(this,Zt).getQueryCache().build(O(this,Zt),this.options);if(a===O(this,Le))return;const r=O(this,Le);oe(this,Le,a),oe(this,ro,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},F0=function(a){gt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(O(this,Pt))}),O(this,Zt).getQueryCache().notify({query:O(this,Le),type:"observerResultsUpdated"})})},e0);function AN(t,a){return pn(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&pn(a.retryOnMount,t)===!1)}function $b(t,a){return AN(t,a)||t.state.data!==void 0&&sm(t,a,a.refetchOnMount)}function sm(t,a,r){if(pn(a.enabled,t)!==!1&&As(a.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&km(t,a)}return!1}function Xb(t,a,r,i){return(t!==a||pn(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&km(t,r)}function km(t,a){return pn(a.enabled,t)!==!1&&t.isStaleByTime(As(a.staleTime,t))}function TN(t,a){return!ou(t.getCurrentResult(),a)}var lo,Jn,Dt,pr,ea,ms,t0,kN=(t0=class extends B0{constructor(a){super();pe(this,ea);pe(this,lo);pe(this,Jn);pe(this,Dt);pe(this,pr);oe(this,lo,a.client),this.mutationId=a.mutationId,oe(this,Dt,a.mutationCache),oe(this,Jn,[]),this.state=a.state||H0(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){O(this,Jn).includes(a)||(O(this,Jn).push(a),this.clearGcTimeout(),O(this,Dt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){oe(this,Jn,O(this,Jn).filter(r=>r!==a)),this.scheduleGc(),O(this,Dt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){O(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():O(this,Dt).remove(this))}continue(){var a;return((a=O(this,pr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var h,m,g,p,v,y,x,j,w,S,E,_,C,T,A,B,q,k;const r=()=>{Re(this,ea,ms).call(this,{type:"continue"})},i={client:O(this,lo),meta:this.options.meta,mutationKey:this.options.mutationKey};oe(this,pr,z0({fn:()=>this.options.mutationFn?this.options.mutationFn(a,i):Promise.reject(new Error("No mutationFn found")),onFail:(D,z)=>{Re(this,ea,ms).call(this,{type:"failed",failureCount:D,error:z})},onPause:()=>{Re(this,ea,ms).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,Dt).canRun(this)}));const o=this.state.status==="pending",u=!O(this,pr).canStart();try{if(o)r();else{Re(this,ea,ms).call(this,{type:"pending",variables:a,isPaused:u}),O(this,Dt).config.onMutate&&await O(this,Dt).config.onMutate(a,this,i);const z=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,a,i));z!==this.state.context&&Re(this,ea,ms).call(this,{type:"pending",context:z,variables:a,isPaused:u})}const D=await O(this,pr).start();return await((p=(g=O(this,Dt).config).onSuccess)==null?void 0:p.call(g,D,a,this.state.context,this,i)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,D,a,this.state.context,i)),await((j=(x=O(this,Dt).config).onSettled)==null?void 0:j.call(x,D,null,this.state.variables,this.state.context,this,i)),await((S=(w=this.options).onSettled)==null?void 0:S.call(w,D,null,a,this.state.context,i)),Re(this,ea,ms).call(this,{type:"success",data:D}),D}catch(D){try{await((_=(E=O(this,Dt).config).onError)==null?void 0:_.call(E,D,a,this.state.context,this,i))}catch(z){Promise.reject(z)}try{await((T=(C=this.options).onError)==null?void 0:T.call(C,D,a,this.state.context,i))}catch(z){Promise.reject(z)}try{await((B=(A=O(this,Dt).config).onSettled)==null?void 0:B.call(A,void 0,D,this.state.variables,this.state.context,this,i))}catch(z){Promise.reject(z)}try{await((k=(q=this.options).onSettled)==null?void 0:k.call(q,void 0,D,a,this.state.context,i))}catch(z){Promise.reject(z)}throw Re(this,ea,ms).call(this,{type:"error",error:D}),D}finally{O(this,Dt).runNext(this)}}},lo=new WeakMap,Jn=new WeakMap,Dt=new WeakMap,pr=new WeakMap,ea=new WeakSet,ms=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),gt.batch(()=>{O(this,Jn).forEach(i=>{i.onMutationUpdate(a)}),O(this,Dt).notify({mutation:this,type:"updated",action:a})})},t0);function H0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Aa,Hn,oo,n0,MN=(n0=class extends Gi{constructor(a={}){super();pe(this,Aa);pe(this,Hn);pe(this,oo);this.config=a,oe(this,Aa,new Set),oe(this,Hn,new Map),oe(this,oo,0)}build(a,r,i){const o=new kN({client:a,mutationCache:this,mutationId:++kc(this,oo)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){O(this,Aa).add(a);const r=zc(a);if(typeof r=="string"){const i=O(this,Hn).get(r);i?i.push(a):O(this,Hn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(O(this,Aa).delete(a)){const r=zc(a);if(typeof r=="string"){const i=O(this,Hn).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&O(this,Hn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=zc(a);if(typeof r=="string"){const i=O(this,Hn).get(r),o=i==null?void 0:i.find(u=>u.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=zc(a);if(typeof r=="string"){const o=(i=O(this,Hn).get(r))==null?void 0:i.find(u=>u!==a&&u.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){gt.batch(()=>{O(this,Aa).forEach(a=>{this.notify({type:"removed",mutation:a})}),O(this,Aa).clear(),O(this,Hn).clear()})}getAll(){return Array.from(O(this,Aa))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>qb(r,i))}findAll(a={}){return this.getAll().filter(r=>qb(a,r))}notify(a){gt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return gt.batch(()=>Promise.all(a.map(r=>r.continue().catch(Ft))))}},Aa=new WeakMap,Hn=new WeakMap,oo=new WeakMap,n0);function zc(t){var a;return(a=t.options.scope)==null?void 0:a.id}var Ta,ws,Kt,ka,La,Kc,rm,a0,ON=(a0=class extends Gi{constructor(r,i){super();pe(this,La);pe(this,Ta);pe(this,ws);pe(this,Kt);pe(this,ka);oe(this,Ta,r),this.setOptions(i),this.bindMethods(),Re(this,La,Kc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const i=this.options;this.options=O(this,Ta).defaultMutationOptions(r),ou(this.options,i)||O(this,Ta).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,Kt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&xr(i.mutationKey)!==xr(this.options.mutationKey)?this.reset():((o=O(this,Kt))==null?void 0:o.state.status)==="pending"&&O(this,Kt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=O(this,Kt))==null||r.removeObserver(this)}onMutationUpdate(r){Re(this,La,Kc).call(this),Re(this,La,rm).call(this,r)}getCurrentResult(){return O(this,ws)}reset(){var r;(r=O(this,Kt))==null||r.removeObserver(this),oe(this,Kt,void 0),Re(this,La,Kc).call(this),Re(this,La,rm).call(this)}mutate(r,i){var o;return oe(this,ka,i),(o=O(this,Kt))==null||o.removeObserver(this),oe(this,Kt,O(this,Ta).getMutationCache().build(O(this,Ta),this.options)),O(this,Kt).addObserver(this),O(this,Kt).execute(r)}},Ta=new WeakMap,ws=new WeakMap,Kt=new WeakMap,ka=new WeakMap,La=new WeakSet,Kc=function(){var i;const r=((i=O(this,Kt))==null?void 0:i.state)??H0();oe(this,ws,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},rm=function(r){gt.batch(()=>{var i,o,u,h,m,g,p,v;if(O(this,ka)&&this.hasListeners()){const y=O(this,ws).variables,x=O(this,ws).context,j={client:O(this,Ta),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(o=(i=O(this,ka)).onSuccess)==null||o.call(i,r.data,y,x,j)}catch(w){Promise.reject(w)}try{(h=(u=O(this,ka)).onSettled)==null||h.call(u,r.data,null,y,x,j)}catch(w){Promise.reject(w)}}else if((r==null?void 0:r.type)==="error"){try{(g=(m=O(this,ka)).onError)==null||g.call(m,r.error,y,x,j)}catch(w){Promise.reject(w)}try{(v=(p=O(this,ka)).onSettled)==null||v.call(p,void 0,r.error,y,x,j)}catch(w){Promise.reject(w)}}}this.listeners.forEach(y=>{y(O(this,ws))})})},a0),ta,s0,DN=(s0=class extends Gi{constructor(a={}){super();pe(this,ta);this.config=a,oe(this,ta,new Map)}build(a,r,i){const o=r.queryKey,u=r.queryHash??_m(o,r);let h=this.get(u);return h||(h=new CN({client:a,queryKey:o,queryHash:u,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){O(this,ta).has(a.queryHash)||(O(this,ta).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=O(this,ta).get(a.queryHash);r&&(a.destroy(),r===a&&O(this,ta).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){gt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return O(this,ta).get(a)}getAll(){return[...O(this,ta).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>Hb(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>Hb(a,i)):r}notify(a){gt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},ta=new WeakMap,s0),rt,js,Es,ki,Mi,Ns,Oi,Di,r0,LN=(r0=class{constructor(t={}){pe(this,rt);pe(this,js);pe(this,Es);pe(this,ki);pe(this,Mi);pe(this,Ns);pe(this,Oi);pe(this,Di);oe(this,rt,t.queryCache||new DN),oe(this,js,t.mutationCache||new MN),oe(this,Es,t.defaultOptions||{}),oe(this,ki,new Map),oe(this,Mi,new Map),oe(this,Ns,0)}mount(){kc(this,Ns)._++,O(this,Ns)===1&&(oe(this,Oi,Cm.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,rt).onFocus())})),oe(this,Di,cu.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,rt).onOnline())})))}unmount(){var t,a;kc(this,Ns)._--,O(this,Ns)===0&&((t=O(this,Oi))==null||t.call(this),oe(this,Oi,void 0),(a=O(this,Di))==null||a.call(this),oe(this,Di,void 0))}isFetching(t){return O(this,rt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return O(this,js).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=O(this,rt).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),r=O(this,rt).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(As(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(t){return O(this,rt).findAll(t).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(t,a,r){const i=this.defaultQueryOptions({queryKey:t}),o=O(this,rt).get(i.queryHash),u=o==null?void 0:o.state.data,h=pN(a,u);if(h!==void 0)return O(this,rt).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(t,a,r){return gt.batch(()=>O(this,rt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(t){var r;const a=this.defaultQueryOptions({queryKey:t});return(r=O(this,rt).get(a.queryHash))==null?void 0:r.state}removeQueries(t){const a=O(this,rt);gt.batch(()=>{a.findAll(t).forEach(r=>{a.remove(r)})})}resetQueries(t,a){const r=O(this,rt);return gt.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const r={revert:!0,...a},i=gt.batch(()=>O(this,rt).findAll(t).map(o=>o.cancel(r)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(t,a={}){return gt.batch(()=>(O(this,rt).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},a)))}refetchQueries(t,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=gt.batch(()=>O(this,rt).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let u=o.fetch(void 0,r);return r.throwOnError||(u=u.catch(Ft)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(Ft)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const r=O(this,rt).build(this,a);return r.isStaleByTime(As(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ft).catch(Ft)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ft).catch(Ft)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return cu.isOnline()?O(this,js).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,rt)}getMutationCache(){return O(this,js)}getDefaultOptions(){return O(this,Es)}setDefaultOptions(t){oe(this,Es,t)}setQueryDefaults(t,a){O(this,ki).set(xr(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...O(this,ki).values()],r={};return a.forEach(i=>{Jl(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,a){O(this,Mi).set(xr(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...O(this,Mi).values()],r={};return a.forEach(i=>{Jl(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const a={...O(this,Es).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=_m(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Am&&(a.enabled=!1),a}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...O(this,Es).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){O(this,rt).clear(),O(this,js).clear()}},rt=new WeakMap,js=new WeakMap,Es=new WeakMap,ki=new WeakMap,Mi=new WeakMap,Ns=new WeakMap,Oi=new WeakMap,Di=new WeakMap,r0),q0=N.createContext(void 0),Er=t=>{const a=N.useContext(q0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},zN=({client:t,children:a})=>(N.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(q0.Provider,{value:t,children:a})),G0=N.createContext(!1),BN=()=>N.useContext(G0);G0.Provider;function UN(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var PN=N.createContext(UN()),FN=()=>N.useContext(PN),HN=(t,a,r)=>{const i=r!=null&&r.state.error&&typeof t.throwOnError=="function"?Tm(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(a.isReset()||(t.retryOnMount=!1))},qN=t=>{N.useEffect(()=>{t.clearReset()},[t])},GN=({result:t,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>t.isError&&!a.isReset()&&!t.isFetching&&i&&(o&&t.data===void 0||Tm(r,[t.error,i])),IN=t=>{if(t.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...o)=>r(i(...o)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},QN=(t,a)=>t.isLoading&&t.isFetching&&!a,VN=(t,a)=>(t==null?void 0:t.suspense)&&a.isPending,Zb=(t,a,r)=>a.fetchOptimistic(t).catch(()=>{r.clearReset()});function YN(t,a,r){var j,w,S,E;const i=BN(),o=FN(),u=Er(),h=u.defaultQueryOptions(t);(w=(j=u.getDefaultOptions().queries)==null?void 0:j._experimental_beforeQuery)==null||w.call(j,h);const m=u.getQueryCache().get(h.queryHash),g=t.subscribed!==!1;h._optimisticResults=i?"isRestoring":g?"optimistic":void 0,IN(h),HN(h,o,m),qN(o);const p=!u.getQueryCache().get(h.queryHash),[v]=N.useState(()=>new a(u,h)),y=v.getOptimisticResult(h),x=!i&&g;if(N.useSyncExternalStore(N.useCallback(_=>{const C=x?v.subscribe(gt.batchCalls(_)):Ft;return v.updateResult(),C},[v,x]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),N.useEffect(()=>{v.setOptions(h)},[h,v]),VN(h,y))throw Zb(h,v,o);if(GN({result:y,errorResetBoundary:o,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw y.error;if((E=(S=u.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||E.call(S,h,y),h.experimental_prefetchInRender&&!eo.isServer()&&QN(y,i)){const _=p?Zb(h,v,o):m==null?void 0:m.promise;_==null||_.catch(Ft).finally(()=>{v.updateResult()})}return h.notifyOnChangeProps?y:v.trackResult(y)}function Ln(t,a){return YN(t,_N)}function I0(t,a){const r=Er(),[i]=N.useState(()=>new ON(r,t));N.useEffect(()=>{i.setOptions(t)},[i,t]);const o=N.useSyncExternalStore(N.useCallback(h=>i.subscribe(gt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=N.useCallback((h,m)=>{i.mutate(h,m).catch(Ft)},[i]);if(o.error&&Tm(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:u,mutateAsync:o.mutate}}/**
66
- * @license lucide-react v0.511.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 $N=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),XN=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),Kb=t=>{const a=XN(t);return a.charAt(0).toUpperCase()+a.slice(1)},Q0=(...t)=>t.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),ZN=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
71
- * @license lucide-react v0.511.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 KN={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.511.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 WN=N.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:u,iconNode:h,...m},g)=>N.createElement("svg",{ref:g,...KN,width:a,height:a,stroke:t,strokeWidth:i?Number(r)*24/Number(a):r,className:Q0("lucide",o),...!u&&!ZN(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,v])=>N.createElement(p,v)),...Array.isArray(u)?u:[u]]));/**
81
- * @license lucide-react v0.511.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 ze=(t,a)=>{const r=N.forwardRef(({className:i,...o},u)=>N.createElement(WN,{ref:u,iconNode:a,className:Q0(`lucide-${$N(Kb(t))}`,`lucide-${t}`,i),...o}));return r.displayName=Kb(t),r};/**
86
- * @license lucide-react v0.511.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 JN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],im=ze("arrow-right",JN);/**
91
- * @license lucide-react v0.511.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 eR=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],tR=ze("brain",eR);/**
96
- * @license lucide-react v0.511.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 nR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zi=ze("chevron-left",nR);/**
101
- * @license lucide-react v0.511.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 aR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wb=ze("chevron-right",aR);/**
106
- * @license lucide-react v0.511.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 sR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],V0=ze("circle-alert",sR);/**
111
- * @license lucide-react v0.511.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 rR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Y0=ze("circle-check",rR);/**
116
- * @license lucide-react v0.511.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 iR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Jb=ze("circle-x",iR);/**
121
- * @license lucide-react v0.511.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 lR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],oR=ze("clock",lR);/**
126
- * @license lucide-react v0.511.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 cR=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],uR=ze("database-zap",cR);/**
131
- * @license lucide-react v0.511.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 dR=[["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"}]],fR=ze("database",dR);/**
136
- * @license lucide-react v0.511.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 hR=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],mR=ze("file-code-2",hR);/**
141
- * @license lucide-react v0.511.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 pR=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Cu=ze("file-text",pR);/**
146
- * @license lucide-react v0.511.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 gR=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],yR=ze("files",gR);/**
151
- * @license lucide-react v0.511.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 vR=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],bR=ze("folder-kanban",vR);/**
156
- * @license lucide-react v0.511.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 xR=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 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.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],lm=ze("folder-open",xR);/**
161
- * @license lucide-react v0.511.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 SR=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],$0=ze("gauge",SR);/**
166
- * @license lucide-react v0.511.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 wR=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],jR=ze("git-branch",wR);/**
171
- * @license lucide-react v0.511.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 ER=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],NR=ze("globe",ER);/**
176
- * @license lucide-react v0.511.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 RR=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],CR=ze("history",RR);/**
181
- * @license lucide-react v0.511.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 _R=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],X0=ze("layers",_R);/**
186
- * @license lucide-react v0.511.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 AR=[["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"}]],TR=ze("layout-dashboard",AR);/**
191
- * @license lucide-react v0.511.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 kR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],to=ze("loader-circle",kR);/**
196
- * @license lucide-react v0.511.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 MR=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],OR=ze("message-square",MR);/**
201
- * @license lucide-react v0.511.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 DR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],LR=ze("moon",DR);/**
206
- * @license lucide-react v0.511.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 zR=[["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"}]],BR=ze("network",zR);/**
211
- * @license lucide-react v0.511.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 UR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],PR=ze("panel-left",UR);/**
216
- * @license lucide-react v0.511.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 FR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],om=ze("plus",FR);/**
221
- * @license lucide-react v0.511.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 HR=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],qR=ze("scroll-text",HR);/**
226
- * @license lucide-react v0.511.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 GR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_u=ze("search",GR);/**
231
- * @license lucide-react v0.511.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const IR=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],QR=ze("settings",IR);/**
236
- * @license lucide-react v0.511.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const VR=[["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"}]],YR=ze("sun",VR);/**
241
- * @license lucide-react v0.511.0 - ISC
242
- *
243
- * This source code is licensed under the ISC license.
244
- * See the LICENSE file in the root directory of this source tree.
245
- */const $R=[["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"}]],Z0=ze("trash-2",$R);/**
246
- * @license lucide-react v0.511.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const XR=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],Mm=ze("trending-down",XR);/**
251
- * @license lucide-react v0.511.0 - ISC
252
- *
253
- * This source code is licensed under the ISC license.
254
- * See the LICENSE file in the root directory of this source tree.
255
- */const ZR=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],K0=ze("triangle-alert",ZR);/**
256
- * @license lucide-react v0.511.0 - ISC
257
- *
258
- * This source code is licensed under the ISC license.
259
- * See the LICENSE file in the root directory of this source tree.
260
- */const KR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bi=ze("x",KR),WR="/api";async function Tt(t,a){const r=await fetch(`${WR}${t}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`API error: ${r.status}`)}return r.json()}const tn={getDashboard:()=>Tt("/dashboard"),listWorkspaces:()=>Tt("/workspaces"),getWorkspace:t=>Tt(`/workspaces/${t}`),createWorkspace:t=>Tt("/workspaces",{method:"POST",body:JSON.stringify(t)}),deleteWorkspace:t=>Tt(`/workspaces/${t}`,{method:"DELETE"}),getWorkspaceGraph:t=>Tt(`/workspaces/${t}/graph`),getDocuments:(t={})=>{const a=new URLSearchParams;return t.limit&&a.set("limit",String(t.limit)),t.offset&&a.set("offset",String(t.offset)),Tt(`/documents?${a}`)},runQuery:t=>Tt("/query",{method:"POST",body:JSON.stringify(t)}),startIndexRun:(t,a)=>Tt(`/workspaces/${t}/index`,{method:"POST",body:JSON.stringify({mode:a??"incremental"})}),getIndexStatus:t=>Tt(`/workspaces/${t}/index`),validatePath:t=>Tt("/validate-path",{method:"POST",body:JSON.stringify({rootPath:t})}),getChangelog:()=>Tt("/changelog"),getMemories:(t={})=>{const a=new URLSearchParams;return t.q&&a.set("q",t.q),t.limit&&a.set("limit",String(t.limit)),t.offset&&a.set("offset",String(t.offset)),Tt(`/memories?${a}`)},getMemory:t=>Tt(`/memories/${t}`),createMemory:t=>Tt("/memories",{method:"POST",body:JSON.stringify(t)}),deleteMemory:t=>Tt(`/memories/${t}`,{method:"DELETE"}),getMetrics:t=>Tt(t?`/metrics?workspaceId=${t}`:"/metrics")},Om={queryKey:["dashboard"],queryFn:tn.getDashboard},Dm={queryKey:["workspaces"],queryFn:tn.listWorkspaces},Ui=t=>({queryKey:["workspace",t],queryFn:()=>tn.getWorkspace(t)}),Au=t=>({queryKey:["workspace-graph",t],queryFn:()=>tn.getWorkspaceGraph(t)}),uu=(t,a)=>({queryKey:["documents",t,a],queryFn:()=>tn.getDocuments({limit:a,offset:(t-1)*a})}),W0={queryKey:["settings","env"],queryFn:async()=>{const t=await fetch("/api/settings/env");if(!t.ok)throw new Error(`Failed to fetch env settings: ${t.status} ${t.statusText}`);return t.json()},staleTime:1/0},du=(t,a)=>({queryKey:["memories",t,a],queryFn:()=>tn.getMemories({limit:a,offset:(t-1)*a})}),JR=t=>({queryKey:["memories","search",t],queryFn:()=>tn.getMemories({q:t,limit:100})}),Lm=t=>({queryKey:["metrics",t??"default"],queryFn:()=>tn.getMetrics(t),staleTime:3e4}),Ht=10;function eC(t,a){const r=Math.max(1,Math.ceil(t.length/Ht));return{paged:t.slice((a-1)*Ht,a*Ht),totalPages:r}}function zm({currentPage:t,totalPages:a,basePath:r}){return a<=1?null:c.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[t>1?c.jsxs(yt,{to:r,search:{page:t-1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:[c.jsx(zi,{className:"h-3.5 w-3.5"}),"Previous"]}):c.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:[c.jsx(zi,{className:"h-3.5 w-3.5"}),"Previous"]}),c.jsxs("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",t," of ",a]}),t<a?c.jsxs(yt,{to:r,search:{page:t+1},className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border hover:bg-muted transition-colors",children:["Next",c.jsx(Wb,{className:"h-3.5 w-3.5"})]}):c.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1.5 text-sm rounded-md border text-muted-foreground opacity-50 cursor-not-allowed",children:["Next",c.jsx(Wb,{className:"h-3.5 w-3.5"})]})]})}function J0(t){var a,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(a=0;a<o;a++)t[a]&&(r=J0(t[a]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function uo(){for(var t,a,r=0,i="",o=arguments.length;r<o;r++)(t=arguments[r])&&(a=J0(t))&&(i&&(i+=" "),i+=a);return i}const ex=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,tx=uo,Tu=(t,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return tx(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:u}=a,h=Object.keys(o).map(p=>{const v=r==null?void 0:r[p],y=u==null?void 0:u[p];if(v===null)return null;const x=ex(v)||ex(y);return o[p][x]}),m=r&&Object.entries(r).reduce((p,v)=>{let[y,x]=v;return x===void 0||(p[y]=x),p},{}),g=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((p,v)=>{let{class:y,className:x,...j}=v;return Object.entries(j).every(w=>{let[S,E]=w;return Array.isArray(E)?E.includes({...u,...m}[S]):{...u,...m}[S]===E})?[...p,y,x]:p},[]);return tx(t,h,g,r==null?void 0:r.class,r==null?void 0:r.className)},tC=(t,a)=>{const r=new Array(t.length+a.length);for(let i=0;i<t.length;i++)r[i]=t[i];for(let i=0;i<a.length;i++)r[t.length+i]=a[i];return r},nC=(t,a)=>({classGroupId:t,validator:a}),e1=(t=new Map,a=null,r)=>({nextPart:t,validators:a,classGroupId:r}),fu="-",nx=[],aC="arbitrary..",sC=t=>{const a=iC(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return rC(h);const m=h.split(fu),g=m[0]===""&&m.length>1?1:0;return t1(m,g,a)},getConflictingClassGroupIds:(h,m)=>{if(m){const g=i[h],p=r[h];return g?p?tC(p,g):g:p||nx}return r[h]||nx}}},t1=(t,a,r)=>{if(t.length-a===0)return r.classGroupId;const o=t[a],u=r.nextPart.get(o);if(u){const p=t1(t,a+1,u);if(p)return p}const h=r.validators;if(h===null)return;const m=a===0?t.join(fu):t.slice(a).join(fu),g=h.length;for(let p=0;p<g;p++){const v=h[p];if(v.validator(m))return v.classGroupId}},rC=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),r=a.indexOf(":"),i=a.slice(0,r);return i?aC+i:void 0})(),iC=t=>{const{theme:a,classGroups:r}=t;return lC(r,a)},lC=(t,a)=>{const r=e1();for(const i in t){const o=t[i];Bm(o,r,i,a)}return r},Bm=(t,a,r,i)=>{const o=t.length;for(let u=0;u<o;u++){const h=t[u];oC(h,a,r,i)}},oC=(t,a,r,i)=>{if(typeof t=="string"){cC(t,a,r);return}if(typeof t=="function"){uC(t,a,r,i);return}dC(t,a,r,i)},cC=(t,a,r)=>{const i=t===""?a:n1(a,t);i.classGroupId=r},uC=(t,a,r,i)=>{if(fC(t)){Bm(t(i),a,r,i);return}a.validators===null&&(a.validators=[]),a.validators.push(nC(r,t))},dC=(t,a,r,i)=>{const o=Object.entries(t),u=o.length;for(let h=0;h<u;h++){const[m,g]=o[h];Bm(g,n1(a,m),r,i)}},n1=(t,a)=>{let r=t;const i=a.split(fu),o=i.length;for(let u=0;u<o;u++){const h=i[u];let m=r.nextPart.get(h);m||(m=e1(),r.nextPart.set(h,m)),r=m}return r},fC=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,hC=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),i=Object.create(null);const o=(u,h)=>{r[u]=h,a++,a>t&&(a=0,i=r,r=Object.create(null))};return{get(u){let h=r[u];if(h!==void 0)return h;if((h=i[u])!==void 0)return o(u,h),h},set(u,h){u in r?r[u]=h:o(u,h)}}},cm="!",ax=":",mC=[],sx=(t,a,r,i,o)=>({modifiers:t,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:i,isExternal:o}),pC=t=>{const{prefix:a,experimentalParseClassName:r}=t;let i=o=>{const u=[];let h=0,m=0,g=0,p;const v=o.length;for(let S=0;S<v;S++){const E=o[S];if(h===0&&m===0){if(E===ax){u.push(o.slice(g,S)),g=S+1;continue}if(E==="/"){p=S;continue}}E==="["?h++:E==="]"?h--:E==="("?m++:E===")"&&m--}const y=u.length===0?o:o.slice(g);let x=y,j=!1;y.endsWith(cm)?(x=y.slice(0,-1),j=!0):y.startsWith(cm)&&(x=y.slice(1),j=!0);const w=p&&p>g?p-g:void 0;return sx(u,j,x,w)};if(a){const o=a+ax,u=i;i=h=>h.startsWith(o)?u(h.slice(o.length)):sx(mC,!1,h,void 0,!0)}if(r){const o=i;i=u=>r({className:u,parseClassName:o})}return i},gC=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((r,i)=>{a.set(r,1e6+i)}),r=>{const i=[];let o=[];for(let u=0;u<r.length;u++){const h=r[u],m=h[0]==="[",g=a.has(h);m||g?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(h)):o.push(h)}return o.length>0&&(o.sort(),i.push(...o)),i}},yC=t=>({cache:hC(t.cacheSize),parseClassName:pC(t),sortModifiers:gC(t),postfixLookupClassGroupIds:vC(t),...sC(t)}),vC=t=>{const a=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let i=0;i<r.length;i++)a[r[i]]=!0;return a},bC=/\s+/,xC=(t,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:u,postfixLookupClassGroupIds:h}=a,m=[],g=t.trim().split(bC);let p="";for(let v=g.length-1;v>=0;v-=1){const y=g[v],{isExternal:x,modifiers:j,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:E}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let _=!!E,C;if(_){const k=S.substring(0,E);C=i(k);const D=C&&h[C]?i(S):void 0;D&&D!==C&&(C=D,_=!1)}else C=i(S);if(!C){if(!_){p=y+(p.length>0?" "+p:p);continue}if(C=i(S),!C){p=y+(p.length>0?" "+p:p);continue}_=!1}const T=j.length===0?"":j.length===1?j[0]:u(j).join(":"),A=w?T+cm:T,B=A+C;if(m.indexOf(B)>-1)continue;m.push(B);const q=o(C,_);for(let k=0;k<q.length;++k){const D=q[k];m.push(A+D)}p=y+(p.length>0?" "+p:p)}return p},SC=(...t)=>{let a=0,r,i,o="";for(;a<t.length;)(r=t[a++])&&(i=a1(r))&&(o&&(o+=" "),o+=i);return o},a1=t=>{if(typeof t=="string")return t;let a,r="";for(let i=0;i<t.length;i++)t[i]&&(a=a1(t[i]))&&(r&&(r+=" "),r+=a);return r},wC=(t,...a)=>{let r,i,o,u;const h=g=>{const p=a.reduce((v,y)=>y(v),t());return r=yC(p),i=r.cache.get,o=r.cache.set,u=m,m(g)},m=g=>{const p=i(g);if(p)return p;const v=xC(g,r);return o(g,v),v};return u=h,(...g)=>u(SC(...g))},jC=[],pt=t=>{const a=r=>r[t]||jC;return a.isThemeGetter=!0,a},s1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,r1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,EC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,NC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,RC=/\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$/,CC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fs=t=>EC.test(t),Ae=t=>!!t&&!Number.isNaN(Number(t)),Kn=t=>!!t&&Number.isInteger(Number(t)),Sh=t=>t.endsWith("%")&&Ae(t.slice(0,-1)),Ra=t=>NC.test(t),i1=()=>!0,TC=t=>RC.test(t)&&!CC.test(t),Um=()=>!1,kC=t=>_C.test(t),MC=t=>AC.test(t),OC=t=>!ue(t)&&!de(t),DC=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),LC=t=>Ds(t,c1,Um),ue=t=>s1.test(t),tr=t=>Ds(t,u1,TC),rx=t=>Ds(t,GC,Ae),zC=t=>Ds(t,f1,i1),BC=t=>Ds(t,d1,Um),ix=t=>Ds(t,l1,Um),UC=t=>Ds(t,o1,MC),Bc=t=>Ds(t,h1,kC),de=t=>r1.test(t),Ql=t=>Nr(t,u1),PC=t=>Nr(t,d1),lx=t=>Nr(t,l1),FC=t=>Nr(t,c1),HC=t=>Nr(t,o1),Uc=t=>Nr(t,h1,!0),qC=t=>Nr(t,f1,!0),Ds=(t,a,r)=>{const i=s1.exec(t);return i?i[1]?a(i[1]):r(i[2]):!1},Nr=(t,a,r=!1)=>{const i=r1.exec(t);return i?i[1]?a(i[1]):r:!1},l1=t=>t==="position"||t==="percentage",o1=t=>t==="image"||t==="url",c1=t=>t==="length"||t==="size"||t==="bg-size",u1=t=>t==="length",GC=t=>t==="number",d1=t=>t==="family-name",f1=t=>t==="number"||t==="weight",h1=t=>t==="shadow",IC=()=>{const t=pt("color"),a=pt("font"),r=pt("text"),i=pt("font-weight"),o=pt("tracking"),u=pt("leading"),h=pt("breakpoint"),m=pt("container"),g=pt("spacing"),p=pt("radius"),v=pt("shadow"),y=pt("inset-shadow"),x=pt("text-shadow"),j=pt("drop-shadow"),w=pt("blur"),S=pt("perspective"),E=pt("aspect"),_=pt("ease"),C=pt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...A(),de,ue],q=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],D=()=>[de,ue,g],z=()=>[fs,"full","auto",...D()],H=()=>[Kn,"none","subgrid",de,ue],X=()=>["auto",{span:["full",Kn,de,ue]},Kn,de,ue],ne=()=>[Kn,"auto",de,ue],se=()=>["auto","min","max","fr",de,ue],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...D()],V=()=>[fs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],ee=()=>[fs,"screen","full","dvw","lvw","svw","min","max","fit",...D()],ye=()=>[fs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],ae=()=>[t,de,ue],L=()=>[...A(),lx,ix,{position:[de,ue]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",FC,LC,{size:[de,ue]}],ie=()=>[Sh,Ql,tr],le=()=>["","none","full",p,de,ue],he=()=>["",Ae,Ql,tr],xe=()=>["solid","dashed","dotted","double"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Ae,Sh,lx,ix],zt=()=>["","none",w,de,ue],jt=()=>["none",Ae,de,ue],kt=()=>["none",Ae,de,ue],Bt=()=>[Ae,de,ue],bt=()=>[fs,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ra],breakpoint:[Ra],color:[i1],container:[Ra],"drop-shadow":[Ra],ease:["in","out","in-out"],font:[OC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ra],shadow:[Ra],spacing:["px",Ae],text:[Ra],"text-shadow":[Ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fs,ue,de,E]}],container:["container"],"container-type":[{"@container":["","normal","size",de,ue]}],"container-named":[DC],columns:[{columns:[Ae,ue,de,m]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:B()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Kn,"auto",de,ue]}],basis:[{basis:[fs,"full","auto",m,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,fs,"auto","initial","none",ue]}],grow:[{grow:["",Ae,de,ue]}],shrink:[{shrink:["",Ae,de,ue]}],order:[{order:[Kn,"first","last","none",de,ue]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...ye()]}],"min-block-size":[{"min-block":["auto",...ye()]}],"max-block-size":[{"max-block":["none",...ye()]}],w:[{w:[m,"screen",...V()]}],"min-w":[{"min-w":[m,"screen","none",...V()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,Ql,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,qC,zC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sh,ue]}],"font-family":[{font:[PC,BC,a]}],"font-features":[{"font-features":[ue]}],"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:[o,de,ue]}],"line-clamp":[{"line-clamp":[Ae,"none",de,rx]}],leading:[{leading:[u,...D()]}],"list-image":[{"list-image":["none",de,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ae()}],"text-color":[{text:ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",de,tr]}],"text-decoration-color":[{decoration:ae()}],"underline-offset":[{"underline-offset":[Ae,"auto",de,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"tab-size":[{tab:[Kn,de,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ue]}],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",de,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Kn,de,ue],radial:["",de,ue],conic:[Kn,de,ue]},HC,UC]}],"bg-color":[{bg:ae()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:ae()}],"gradient-via":[{via:ae()}],"gradient-to":[{to:ae()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:ae()}],"border-color-x":[{"border-x":ae()}],"border-color-y":[{"border-y":ae()}],"border-color-s":[{"border-s":ae()}],"border-color-e":[{"border-e":ae()}],"border-color-bs":[{"border-bs":ae()}],"border-color-be":[{"border-be":ae()}],"border-color-t":[{"border-t":ae()}],"border-color-r":[{"border-r":ae()}],"border-color-b":[{"border-b":ae()}],"border-color-l":[{"border-l":ae()}],"divide-color":[{divide:ae()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,de,ue]}],"outline-w":[{outline:["",Ae,Ql,tr]}],"outline-color":[{outline:ae()}],shadow:[{shadow:["","none",v,Uc,Bc]}],"shadow-color":[{shadow:ae()}],"inset-shadow":[{"inset-shadow":["none",y,Uc,Bc]}],"inset-shadow-color":[{"inset-shadow":ae()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ae()}],"ring-offset-w":[{"ring-offset":[Ae,tr]}],"ring-offset-color":[{"ring-offset":ae()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":ae()}],"text-shadow":[{"text-shadow":["none",x,Uc,Bc]}],"text-shadow-color":[{"text-shadow":ae()}],opacity:[{opacity:[Ae,de,ue]}],"mix-blend":[{"mix-blend":[...Be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":ae()}],"mask-image-linear-to-color":[{"mask-linear-to":ae()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":ae()}],"mask-image-t-to-color":[{"mask-t-to":ae()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":ae()}],"mask-image-r-to-color":[{"mask-r-to":ae()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":ae()}],"mask-image-b-to-color":[{"mask-b-to":ae()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":ae()}],"mask-image-l-to-color":[{"mask-l-to":ae()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":ae()}],"mask-image-x-to-color":[{"mask-x-to":ae()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":ae()}],"mask-image-y-to-color":[{"mask-y-to":ae()}],"mask-image-radial":[{"mask-radial":[de,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":ae()}],"mask-image-radial-to-color":[{"mask-radial-to":ae()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":ae()}],"mask-image-conic-to-color":[{"mask-conic-to":ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ue]}],filter:[{filter:["","none",de,ue]}],blur:[{blur:zt()}],brightness:[{brightness:[Ae,de,ue]}],contrast:[{contrast:[Ae,de,ue]}],"drop-shadow":[{"drop-shadow":["","none",j,Uc,Bc]}],"drop-shadow-color":[{"drop-shadow":ae()}],grayscale:[{grayscale:["",Ae,de,ue]}],"hue-rotate":[{"hue-rotate":[Ae,de,ue]}],invert:[{invert:["",Ae,de,ue]}],saturate:[{saturate:[Ae,de,ue]}],sepia:[{sepia:["",Ae,de,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ue]}],"backdrop-blur":[{"backdrop-blur":zt()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,de,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,de,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,de,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,de,ue]}],"backdrop-invert":[{"backdrop-invert":["",Ae,de,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,de,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,de,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,de,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",de,ue]}],ease:[{ease:["linear","initial",_,de,ue]}],delay:[{delay:[Ae,de,ue]}],animate:[{animate:["none",C,de,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,de,ue]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:jt()}],"rotate-x":[{"rotate-x":jt()}],"rotate-y":[{"rotate-y":jt()}],"rotate-z":[{"rotate-z":jt()}],scale:[{scale:kt()}],"scale-x":[{"scale-x":kt()}],"scale-y":[{"scale-y":kt()}],"scale-z":[{"scale-z":kt()}],"scale-3d":["scale-3d"],skew:[{skew:Bt()}],"skew-x":[{"skew-x":Bt()}],"skew-y":[{"skew-y":Bt()}],transform:[{transform:[de,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:bt()}],"translate-x":[{"translate-x":bt()}],"translate-y":[{"translate-y":bt()}],"translate-z":[{"translate-z":bt()}],"translate-none":["translate-none"],zoom:[{zoom:[Kn,de,ue]}],accent:[{accent:ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ae()}],"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",de,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ae()}],"scrollbar-track-color":[{"scrollbar-track":ae()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",de,ue]}],fill:[{fill:["none",...ae()]}],"stroke-w":[{stroke:[Ae,Ql,tr,rx]}],stroke:[{stroke:["none",...ae()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},m1=wC(IC);function vt(...t){return m1(uo(t))}const QC=Tu("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function qt({className:t,variant:a,...r}){return c.jsx("div",{className:vt(QC({variant:a}),t),...r})}const p1=Tu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ht=N.forwardRef(({className:t,variant:a,size:r,...i},o)=>c.jsx("button",{className:vt(p1({variant:a,size:r,className:t})),ref:o,...i}));ht.displayName="Button";const Ce=({className:t,...a})=>c.jsx("section",{className:vt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...a}),Xe=({className:t,...a})=>c.jsx("div",{className:vt("flex flex-col space-y-1.5 p-6",t),...a}),Ze=({className:t,...a})=>c.jsx("h3",{className:vt("text-2xl font-semibold leading-none tracking-tight",t),...a}),wh=({className:t,...a})=>c.jsx("p",{className:vt("text-sm text-muted-foreground",t),...a}),_e=({className:t,...a})=>c.jsx("div",{className:vt("p-6 pt-0",t),...a}),VC=({className:t,children:a,...r})=>c.jsx("pre",{className:vt("rounded-lg border bg-card/50 p-4 overflow-auto text-sm font-mono text-foreground leading-relaxed",t),...r,children:a}),Ts=N.forwardRef(({className:t,type:a,...r},i)=>c.jsx("input",{type:a,className:vt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",t),ref:i,...r}));Ts.displayName="Input";const ft=N.forwardRef(({className:t,...a},r)=>c.jsx("label",{ref:r,className:vt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t),...a}));ft.displayName="Label";const Mn=N.forwardRef(({className:t,...a},r)=>c.jsx("div",{className:"relative w-full overflow-auto",children:c.jsx("table",{ref:r,className:vt("w-full caption-bottom text-sm",t),...a})}));Mn.displayName="Table";const On=N.forwardRef(({className:t,...a},r)=>c.jsx("thead",{ref:r,className:vt("[&_tr]:border-b",t),...a}));On.displayName="TableHeader";const Dn=N.forwardRef(({className:t,...a},r)=>c.jsx("tbody",{ref:r,className:vt("[&_tr:last-child]:border-0",t),...a}));Dn.displayName="TableBody";const YC=N.forwardRef(({className:t,...a},r)=>c.jsx("tfoot",{ref:r,className:vt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...a}));YC.displayName="TableFooter";const tt=N.forwardRef(({className:t,...a},r)=>c.jsx("tr",{ref:r,className:vt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...a}));tt.displayName="TableRow";const Se=N.forwardRef(({className:t,...a},r)=>c.jsx("th",{ref:r,className:vt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...a}));Se.displayName="TableHead";const we=N.forwardRef(({className:t,...a},r)=>c.jsx("td",{ref:r,className:vt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...a}));we.displayName="TableCell";const $C=N.forwardRef(({className:t,...a},r)=>c.jsx("caption",{ref:r,className:vt("mt-4 text-sm text-muted-foreground",t),...a}));$C.displayName="TableCaption";const hu=({className:t,...a})=>c.jsx("textarea",{className:vt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",t),...a});function Wt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function ox(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function Pm(...t){return a=>{let r=!1;const i=t.map(o=>{const u=ox(o,a);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let o=0;o<i.length;o++){const u=i[o];typeof u=="function"?u():ox(t[o],null)}}}}function In(...t){return N.useCallback(Pm(...t),t)}function XC(t,a){const r=N.createContext(a),i=u=>{const{children:h,...m}=u,g=N.useMemo(()=>m,Object.values(m));return c.jsx(r.Provider,{value:g,children:h})};i.displayName=t+"Provider";function o(u){const h=N.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[i,o]}function Fm(t,a=[]){let r=[];function i(u,h){const m=N.createContext(h),g=r.length;r=[...r,h];const p=y=>{var _;const{scope:x,children:j,...w}=y,S=((_=x==null?void 0:x[t])==null?void 0:_[g])||m,E=N.useMemo(()=>w,Object.values(w));return c.jsx(S.Provider,{value:E,children:j})};p.displayName=u+"Provider";function v(y,x){var S;const j=((S=x==null?void 0:x[t])==null?void 0:S[g])||m,w=N.useContext(j);if(w)return w;if(h!==void 0)return h;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[p,v]}const o=()=>{const u=r.map(h=>N.createContext(h));return function(m){const g=(m==null?void 0:m[t])||u;return N.useMemo(()=>({[`__scope${t}`]:{...m,[t]:g}}),[m,g])}};return o.scopeName=t,[i,ZC(o,...a)]}function ZC(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const h=i.reduce((m,{useScope:g,scopeName:p})=>{const y=g(u)[`__scope${p}`];return{...m,...y}},{});return N.useMemo(()=>({[`__scope${a.scopeName}`]:h}),[h])}};return r.scopeName=a.scopeName,r}function g1(t){const a=KC(t),r=N.forwardRef((i,o)=>{const{children:u,...h}=i,m=N.Children.toArray(u),g=m.find(JC);if(g){const p=g.props.children,v=m.map(y=>y===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:y);return c.jsx(a,{...h,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,v):null})}return c.jsx(a,{...h,ref:o,children:u})});return r.displayName=`${t}.Slot`,r}function KC(t){const a=N.forwardRef((r,i)=>{const{children:o,...u}=r;if(N.isValidElement(o)){const h=t_(o),m=e_(u,o.props);return o.type!==N.Fragment&&(m.ref=i?Pm(i,h):h),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var y1=Symbol("radix.slottable");function WC(t){const a=({children:r})=>c.jsx(c.Fragment,{children:r});return a.displayName=`${t}.Slottable`,a.__radixId=y1,a}function JC(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===y1}function e_(t,a){const r={...a};for(const i in a){const o=t[i],u=a[i];/^on[A-Z]/.test(i)?o&&u?r[i]=(...m)=>{const g=u(...m);return o(...m),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...u}:i==="className"&&(r[i]=[o,u].filter(Boolean).join(" "))}return{...t,...r}}function t_(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var n_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nn=n_.reduce((t,a)=>{const r=g1(`Primitive.${a}`),i=N.forwardRef((o,u)=>{const{asChild:h,...m}=o,g=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(g,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{});function a_(t,a){t&&Nu.flushSync(()=>t.dispatchEvent(a))}function Pi(t){const a=N.useRef(t);return N.useEffect(()=>{a.current=t}),N.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}function s_(t,a=globalThis==null?void 0:globalThis.document){const r=Pi(t);N.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var r_="DismissableLayer",um="dismissableLayer.update",i_="dismissableLayer.pointerDownOutside",l_="dismissableLayer.focusOutside",cx,v1=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hm=N.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:h,onDismiss:m,...g}=t,p=N.useContext(v1),[v,y]=N.useState(null),x=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=N.useState({}),w=In(a,k=>y(k)),S=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(E),C=v?S.indexOf(v):-1,T=p.layersWithOutsidePointerEventsDisabled.size>0,A=C>=_,B=u_(k=>{const D=k.target,z=[...p.branches].some(H=>H.contains(D));!A||z||(o==null||o(k),h==null||h(k),k.defaultPrevented||m==null||m())},x),q=d_(k=>{const D=k.target;[...p.branches].some(H=>H.contains(D))||(u==null||u(k),h==null||h(k),k.defaultPrevented||m==null||m())},x);return s_(k=>{C===p.layers.size-1&&(i==null||i(k),!k.defaultPrevented&&m&&(k.preventDefault(),m()))},x),N.useEffect(()=>{if(v)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(cx=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),ux(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=cx)}},[v,x,r,p]),N.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),ux())},[v,p]),N.useEffect(()=>{const k=()=>j({});return document.addEventListener(um,k),()=>document.removeEventListener(um,k)},[]),c.jsx(nn.div,{...g,ref:w,style:{pointerEvents:T?A?"auto":"none":void 0,...t.style},onFocusCapture:Wt(t.onFocusCapture,q.onFocusCapture),onBlurCapture:Wt(t.onBlurCapture,q.onBlurCapture),onPointerDownCapture:Wt(t.onPointerDownCapture,B.onPointerDownCapture)})});Hm.displayName=r_;var o_="DismissableLayerBranch",c_=N.forwardRef((t,a)=>{const r=N.useContext(v1),i=N.useRef(null),o=In(a,i);return N.useEffect(()=>{const u=i.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),c.jsx(nn.div,{...t,ref:o})});c_.displayName=o_;function u_(t,a=globalThis==null?void 0:globalThis.document){const r=Pi(t),i=N.useRef(!1),o=N.useRef(()=>{});return N.useEffect(()=>{const u=m=>{if(m.target&&!i.current){let g=function(){b1(i_,r,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=g,a.addEventListener("click",o.current,{once:!0})):g()}else a.removeEventListener("click",o.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",u),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function d_(t,a=globalThis==null?void 0:globalThis.document){const r=Pi(t),i=N.useRef(!1);return N.useEffect(()=>{const o=u=>{u.target&&!i.current&&b1(l_,r,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function ux(){const t=new CustomEvent(um);document.dispatchEvent(t)}function b1(t,a,r,{discrete:i}){const o=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(t,a,{once:!0}),i?a_(o,u):o.dispatchEvent(u)}var ks=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},f_=xm[" useId ".trim().toString()]||(()=>{}),h_=0;function Wc(t){const[a,r]=N.useState(f_());return ks(()=>{r(i=>i??String(h_++))},[t]),t||(a?`radix-${a}`:"")}const m_=["top","right","bottom","left"],Ms=Math.min,gn=Math.max,mu=Math.round,Pc=Math.floor,ra=t=>({x:t,y:t}),p_={left:"right",right:"left",bottom:"top",top:"bottom"};function dm(t,a,r){return gn(t,Ms(a,r))}function za(t,a){return typeof t=="function"?t(a):t}function Ba(t){return t.split("-")[0]}function Ii(t){return t.split("-")[1]}function qm(t){return t==="x"?"y":"x"}function Gm(t){return t==="y"?"height":"width"}function aa(t){const a=t[0];return a==="t"||a==="b"?"y":"x"}function Im(t){return qm(aa(t))}function g_(t,a,r){r===void 0&&(r=!1);const i=Ii(t),o=Im(t),u=Gm(o);let h=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(h=pu(h)),[h,pu(h)]}function y_(t){const a=pu(t);return[fm(t),a,fm(a)]}function fm(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const dx=["left","right"],fx=["right","left"],v_=["top","bottom"],b_=["bottom","top"];function x_(t,a,r){switch(t){case"top":case"bottom":return r?a?fx:dx:a?dx:fx;case"left":case"right":return a?v_:b_;default:return[]}}function S_(t,a,r,i){const o=Ii(t);let u=x_(Ba(t),r==="start",i);return o&&(u=u.map(h=>h+"-"+o),a&&(u=u.concat(u.map(fm)))),u}function pu(t){const a=Ba(t);return p_[a]+t.slice(a.length)}function w_(t){return{top:0,right:0,bottom:0,left:0,...t}}function x1(t){return typeof t!="number"?w_(t):{top:t,right:t,bottom:t,left:t}}function gu(t){const{x:a,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:a,right:a+i,bottom:r+o,x:a,y:r}}function hx(t,a,r){let{reference:i,floating:o}=t;const u=aa(a),h=Im(a),m=Gm(h),g=Ba(a),p=u==="y",v=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,x=i[m]/2-o[m]/2;let j;switch(g){case"top":j={x:v,y:i.y-o.height};break;case"bottom":j={x:v,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y};break;case"left":j={x:i.x-o.width,y};break;default:j={x:i.x,y:i.y}}switch(Ii(a)){case"start":j[h]-=x*(r&&p?-1:1);break;case"end":j[h]+=x*(r&&p?-1:1);break}return j}async function j_(t,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:u,rects:h,elements:m,strategy:g}=t,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:x=!1,padding:j=0}=za(a,t),w=x1(j),E=m[x?y==="floating"?"reference":"floating":y],_=gu(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(E)))==null||r?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:p,rootBoundary:v,strategy:g})),C=y==="floating"?{x:i,y:o,width:h.floating.width,height:h.floating.height}:h.reference,T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),A=await(u.isElement==null?void 0:u.isElement(T))?await(u.getScale==null?void 0:u.getScale(T))||{x:1,y:1}:{x:1,y:1},B=gu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:C,offsetParent:T,strategy:g}):C);return{top:(_.top-B.top+w.top)/A.y,bottom:(B.bottom-_.bottom+w.bottom)/A.y,left:(_.left-B.left+w.left)/A.x,right:(B.right-_.right+w.right)/A.x}}const E_=50,N_=async(t,a,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:u=[],platform:h}=r,m=h.detectOverflow?h:{...h,detectOverflow:j_},g=await(h.isRTL==null?void 0:h.isRTL(a));let p=await h.getElementRects({reference:t,floating:a,strategy:o}),{x:v,y}=hx(p,i,g),x=i,j=0;const w={};for(let S=0;S<u.length;S++){const E=u[S];if(!E)continue;const{name:_,fn:C}=E,{x:T,y:A,data:B,reset:q}=await C({x:v,y,initialPlacement:i,placement:x,strategy:o,middlewareData:w,rects:p,platform:m,elements:{reference:t,floating:a}});v=T??v,y=A??y,w[_]={...w[_],...B},q&&j<E_&&(j++,typeof q=="object"&&(q.placement&&(x=q.placement),q.rects&&(p=q.rects===!0?await h.getElementRects({reference:t,floating:a,strategy:o}):q.rects),{x:v,y}=hx(p,x,g)),S=-1)}return{x:v,y,placement:x,strategy:o,middlewareData:w}},R_=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:i,placement:o,rects:u,platform:h,elements:m,middlewareData:g}=a,{element:p,padding:v=0}=za(t,a)||{};if(p==null)return{};const y=x1(v),x={x:r,y:i},j=Im(o),w=Gm(j),S=await h.getDimensions(p),E=j==="y",_=E?"top":"left",C=E?"bottom":"right",T=E?"clientHeight":"clientWidth",A=u.reference[w]+u.reference[j]-x[j]-u.floating[w],B=x[j]-u.reference[j],q=await(h.getOffsetParent==null?void 0:h.getOffsetParent(p));let k=q?q[T]:0;(!k||!await(h.isElement==null?void 0:h.isElement(q)))&&(k=m.floating[T]||u.floating[w]);const D=A/2-B/2,z=k/2-S[w]/2-1,H=Ms(y[_],z),X=Ms(y[C],z),ne=H,se=k-S[w]-X,te=k/2-S[w]/2+D,ce=dm(ne,te,se),P=!g.arrow&&Ii(o)!=null&&te!==ce&&u.reference[w]/2-(te<ne?H:X)-S[w]/2<0,V=P?te<ne?te-ne:te-se:0;return{[j]:x[j]+V,data:{[j]:ce,centerOffset:te-ce-V,...P&&{alignmentOffset:V}},reset:P}}}),C_=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,i;const{placement:o,middlewareData:u,rects:h,initialPlacement:m,platform:g,elements:p}=a,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:S=!0,...E}=za(t,a);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const _=Ba(o),C=aa(m),T=Ba(m)===m,A=await(g.isRTL==null?void 0:g.isRTL(p.floating)),B=x||(T||!S?[pu(m)]:y_(m)),q=w!=="none";!x&&q&&B.push(...S_(m,S,w,A));const k=[m,...B],D=await g.detectOverflow(a,E),z=[];let H=((i=u.flip)==null?void 0:i.overflows)||[];if(v&&z.push(D[_]),y){const te=g_(o,h,A);z.push(D[te[0]],D[te[1]])}if(H=[...H,{placement:o,overflows:z}],!z.every(te=>te<=0)){var X,ne;const te=(((X=u.flip)==null?void 0:X.index)||0)+1,ce=k[te];if(ce&&(!(y==="alignment"?C!==aa(ce):!1)||H.every(ee=>aa(ee.placement)===C?ee.overflows[0]>0:!0)))return{data:{index:te,overflows:H},reset:{placement:ce}};let P=(ne=H.filter(V=>V.overflows[0]<=0).sort((V,ee)=>V.overflows[1]-ee.overflows[1])[0])==null?void 0:ne.placement;if(!P)switch(j){case"bestFit":{var se;const V=(se=H.filter(ee=>{if(q){const ye=aa(ee.placement);return ye===C||ye==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ye=>ye>0).reduce((ye,ae)=>ye+ae,0)]).sort((ee,ye)=>ee[1]-ye[1])[0])==null?void 0:se[0];V&&(P=V);break}case"initialPlacement":P=m;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function mx(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function px(t){return m_.some(a=>t[a]>=0)}const __=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r,platform:i}=a,{strategy:o="referenceHidden",...u}=za(t,a);switch(o){case"referenceHidden":{const h=await i.detectOverflow(a,{...u,elementContext:"reference"}),m=mx(h,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:px(m)}}}case"escaped":{const h=await i.detectOverflow(a,{...u,altBoundary:!0}),m=mx(h,r.floating);return{data:{escapedOffsets:m,escaped:px(m)}}}default:return{}}}}},S1=new Set(["left","top"]);async function A_(t,a){const{placement:r,platform:i,elements:o}=t,u=await(i.isRTL==null?void 0:i.isRTL(o.floating)),h=Ba(r),m=Ii(r),g=aa(r)==="y",p=S1.has(h)?-1:1,v=u&&g?-1:1,y=za(a,t);let{mainAxis:x,crossAxis:j,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof w=="number"&&(j=m==="end"?w*-1:w),g?{x:j*v,y:x*p}:{x:x*p,y:j*v}}const T_=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,i;const{x:o,y:u,placement:h,middlewareData:m}=a,g=await A_(a,t);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:o+g.x,y:u+g.y,data:{...g,placement:h}}}}},k_=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:i,placement:o,platform:u}=a,{mainAxis:h=!0,crossAxis:m=!1,limiter:g={fn:_=>{let{x:C,y:T}=_;return{x:C,y:T}}},...p}=za(t,a),v={x:r,y:i},y=await u.detectOverflow(a,p),x=aa(Ba(o)),j=qm(x);let w=v[j],S=v[x];if(h){const _=j==="y"?"top":"left",C=j==="y"?"bottom":"right",T=w+y[_],A=w-y[C];w=dm(T,w,A)}if(m){const _=x==="y"?"top":"left",C=x==="y"?"bottom":"right",T=S+y[_],A=S-y[C];S=dm(T,S,A)}const E=g.fn({...a,[j]:w,[x]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[j]:h,[x]:m}}}}}},M_=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:i,placement:o,rects:u,middlewareData:h}=a,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=za(t,a),v={x:r,y:i},y=aa(o),x=qm(y);let j=v[x],w=v[y];const S=za(m,a),E=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(g){const T=x==="y"?"height":"width",A=u.reference[x]-u.floating[T]+E.mainAxis,B=u.reference[x]+u.reference[T]-E.mainAxis;j<A?j=A:j>B&&(j=B)}if(p){var _,C;const T=x==="y"?"width":"height",A=S1.has(Ba(o)),B=u.reference[y]-u.floating[T]+(A&&((_=h.offset)==null?void 0:_[y])||0)+(A?0:E.crossAxis),q=u.reference[y]+u.reference[T]+(A?0:((C=h.offset)==null?void 0:C[y])||0)-(A?E.crossAxis:0);w<B?w=B:w>q&&(w=q)}return{[x]:j,[y]:w}}}},O_=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,i;const{placement:o,rects:u,platform:h,elements:m}=a,{apply:g=()=>{},...p}=za(t,a),v=await h.detectOverflow(a,p),y=Ba(o),x=Ii(o),j=aa(o)==="y",{width:w,height:S}=u.floating;let E,_;y==="top"||y==="bottom"?(E=y,_=x===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=y,E=x==="end"?"top":"bottom");const C=S-v.top-v.bottom,T=w-v.left-v.right,A=Ms(S-v[E],C),B=Ms(w-v[_],T),q=!a.middlewareData.shift;let k=A,D=B;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(D=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(k=C),q&&!x){const H=gn(v.left,0),X=gn(v.right,0),ne=gn(v.top,0),se=gn(v.bottom,0);j?D=w-2*(H!==0||X!==0?H+X:gn(v.left,v.right)):k=S-2*(ne!==0||se!==0?ne+se:gn(v.top,v.bottom))}await g({...a,availableWidth:D,availableHeight:k});const z=await h.getDimensions(m.floating);return w!==z.width||S!==z.height?{reset:{rects:!0}}:{}}}};function ku(){return typeof window<"u"}function Qi(t){return w1(t)?(t.nodeName||"").toLowerCase():"#document"}function yn(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function la(t){var a;return(a=(w1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function w1(t){return ku()?t instanceof Node||t instanceof yn(t).Node:!1}function qn(t){return ku()?t instanceof Element||t instanceof yn(t).Element:!1}function Ua(t){return ku()?t instanceof HTMLElement||t instanceof yn(t).HTMLElement:!1}function gx(t){return!ku()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof yn(t).ShadowRoot}function fo(t){const{overflow:a,overflowX:r,overflowY:i,display:o}=Gn(t);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&o!=="inline"&&o!=="contents"}function D_(t){return/^(table|td|th)$/.test(Qi(t))}function Mu(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const L_=/transform|translate|scale|rotate|perspective|filter/,z_=/paint|layout|strict|content/,nr=t=>!!t&&t!=="none";let jh;function Qm(t){const a=qn(t)?Gn(t):t;return nr(a.transform)||nr(a.translate)||nr(a.scale)||nr(a.rotate)||nr(a.perspective)||!Vm()&&(nr(a.backdropFilter)||nr(a.filter))||L_.test(a.willChange||"")||z_.test(a.contain||"")}function B_(t){let a=Os(t);for(;Ua(a)&&!Fi(a);){if(Qm(a))return a;if(Mu(a))return null;a=Os(a)}return null}function Vm(){return jh==null&&(jh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),jh}function Fi(t){return/^(html|body|#document)$/.test(Qi(t))}function Gn(t){return yn(t).getComputedStyle(t)}function Ou(t){return qn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Os(t){if(Qi(t)==="html")return t;const a=t.assignedSlot||t.parentNode||gx(t)&&t.host||la(t);return gx(a)?a.host:a}function j1(t){const a=Os(t);return Fi(a)?t.ownerDocument?t.ownerDocument.body:t.body:Ua(a)&&fo(a)?a:j1(a)}function no(t,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=j1(t),u=o===((i=t.ownerDocument)==null?void 0:i.body),h=yn(o);if(u){const m=hm(h);return a.concat(h,h.visualViewport||[],fo(o)?o:[],m&&r?no(m):[])}else return a.concat(o,no(o,[],r))}function hm(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function E1(t){const a=Gn(t);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=Ua(t),u=o?t.offsetWidth:r,h=o?t.offsetHeight:i,m=mu(r)!==u||mu(i)!==h;return m&&(r=u,i=h),{width:r,height:i,$:m}}function Ym(t){return qn(t)?t:t.contextElement}function xi(t){const a=Ym(t);if(!Ua(a))return ra(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:u}=E1(a);let h=(u?mu(r.width):r.width)/i,m=(u?mu(r.height):r.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const U_=ra(0);function N1(t){const a=yn(t);return!Vm()||!a.visualViewport?U_:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function P_(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==yn(t)?!1:a}function Sr(t,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),u=Ym(t);let h=ra(1);a&&(i?qn(i)&&(h=xi(i)):h=xi(t));const m=P_(u,r,i)?N1(u):ra(0);let g=(o.left+m.x)/h.x,p=(o.top+m.y)/h.y,v=o.width/h.x,y=o.height/h.y;if(u){const x=yn(u),j=i&&qn(i)?yn(i):i;let w=x,S=hm(w);for(;S&&i&&j!==w;){const E=xi(S),_=S.getBoundingClientRect(),C=Gn(S),T=_.left+(S.clientLeft+parseFloat(C.paddingLeft))*E.x,A=_.top+(S.clientTop+parseFloat(C.paddingTop))*E.y;g*=E.x,p*=E.y,v*=E.x,y*=E.y,g+=T,p+=A,w=yn(S),S=hm(w)}}return gu({width:v,height:y,x:g,y:p})}function Du(t,a){const r=Ou(t).scrollLeft;return a?a.left+r:Sr(la(t)).left+r}function R1(t,a){const r=t.getBoundingClientRect(),i=r.left+a.scrollLeft-Du(t,r),o=r.top+a.scrollTop;return{x:i,y:o}}function F_(t){let{elements:a,rect:r,offsetParent:i,strategy:o}=t;const u=o==="fixed",h=la(i),m=a?Mu(a.floating):!1;if(i===h||m&&u)return r;let g={scrollLeft:0,scrollTop:0},p=ra(1);const v=ra(0),y=Ua(i);if((y||!y&&!u)&&((Qi(i)!=="body"||fo(h))&&(g=Ou(i)),y)){const j=Sr(i);p=xi(i),v.x=j.x+i.clientLeft,v.y=j.y+i.clientTop}const x=h&&!y&&!u?R1(h,g):ra(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+v.x+x.x,y:r.y*p.y-g.scrollTop*p.y+v.y+x.y}}function H_(t){return Array.from(t.getClientRects())}function q_(t){const a=la(t),r=Ou(t),i=t.ownerDocument.body,o=gn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),u=gn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Du(t);const m=-r.scrollTop;return Gn(i).direction==="rtl"&&(h+=gn(a.clientWidth,i.clientWidth)-o),{width:o,height:u,x:h,y:m}}const yx=25;function G_(t,a){const r=yn(t),i=la(t),o=r.visualViewport;let u=i.clientWidth,h=i.clientHeight,m=0,g=0;if(o){u=o.width,h=o.height;const v=Vm();(!v||v&&a==="fixed")&&(m=o.offsetLeft,g=o.offsetTop)}const p=Du(i);if(p<=0){const v=i.ownerDocument,y=v.body,x=getComputedStyle(y),j=v.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,w=Math.abs(i.clientWidth-y.clientWidth-j);w<=yx&&(u-=w)}else p<=yx&&(u+=p);return{width:u,height:h,x:m,y:g}}function I_(t,a){const r=Sr(t,!0,a==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,u=Ua(t)?xi(t):ra(1),h=t.clientWidth*u.x,m=t.clientHeight*u.y,g=o*u.x,p=i*u.y;return{width:h,height:m,x:g,y:p}}function vx(t,a,r){let i;if(a==="viewport")i=G_(t,r);else if(a==="document")i=q_(la(t));else if(qn(a))i=I_(a,r);else{const o=N1(t);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return gu(i)}function C1(t,a){const r=Os(t);return r===a||!qn(r)||Fi(r)?!1:Gn(r).position==="fixed"||C1(r,a)}function Q_(t,a){const r=a.get(t);if(r)return r;let i=no(t,[],!1).filter(m=>qn(m)&&Qi(m)!=="body"),o=null;const u=Gn(t).position==="fixed";let h=u?Os(t):t;for(;qn(h)&&!Fi(h);){const m=Gn(h),g=Qm(h);!g&&m.position==="fixed"&&(o=null),(u?!g&&!o:!g&&m.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||fo(h)&&!g&&C1(t,h))?i=i.filter(v=>v!==h):o=m,h=Os(h)}return a.set(t,i),i}function V_(t){let{element:a,boundary:r,rootBoundary:i,strategy:o}=t;const h=[...r==="clippingAncestors"?Mu(a)?[]:Q_(a,this._c):[].concat(r),i],m=vx(a,h[0],o);let g=m.top,p=m.right,v=m.bottom,y=m.left;for(let x=1;x<h.length;x++){const j=vx(a,h[x],o);g=gn(j.top,g),p=Ms(j.right,p),v=Ms(j.bottom,v),y=gn(j.left,y)}return{width:p-y,height:v-g,x:y,y:g}}function Y_(t){const{width:a,height:r}=E1(t);return{width:a,height:r}}function $_(t,a,r){const i=Ua(a),o=la(a),u=r==="fixed",h=Sr(t,!0,u,a);let m={scrollLeft:0,scrollTop:0};const g=ra(0);function p(){g.x=Du(o)}if(i||!i&&!u)if((Qi(a)!=="body"||fo(o))&&(m=Ou(a)),i){const j=Sr(a,!0,u,a);g.x=j.x+a.clientLeft,g.y=j.y+a.clientTop}else o&&p();u&&!i&&o&&p();const v=o&&!i&&!u?R1(o,m):ra(0),y=h.left+m.scrollLeft-g.x-v.x,x=h.top+m.scrollTop-g.y-v.y;return{x:y,y:x,width:h.width,height:h.height}}function Eh(t){return Gn(t).position==="static"}function bx(t,a){if(!Ua(t)||Gn(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return la(t)===r&&(r=r.ownerDocument.body),r}function _1(t,a){const r=yn(t);if(Mu(t))return r;if(!Ua(t)){let o=Os(t);for(;o&&!Fi(o);){if(qn(o)&&!Eh(o))return o;o=Os(o)}return r}let i=bx(t,a);for(;i&&D_(i)&&Eh(i);)i=bx(i,a);return i&&Fi(i)&&Eh(i)&&!Qm(i)?r:i||B_(t)||r}const X_=async function(t){const a=this.getOffsetParent||_1,r=this.getDimensions,i=await r(t.floating);return{reference:$_(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Z_(t){return Gn(t).direction==="rtl"}const K_={convertOffsetParentRelativeRectToViewportRelativeRect:F_,getDocumentElement:la,getClippingRect:V_,getOffsetParent:_1,getElementRects:X_,getClientRects:H_,getDimensions:Y_,getScale:xi,isElement:qn,isRTL:Z_};function A1(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function W_(t,a){let r=null,i;const o=la(t);function u(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),u();const p=t.getBoundingClientRect(),{left:v,top:y,width:x,height:j}=p;if(m||a(),!x||!j)return;const w=Pc(y),S=Pc(o.clientWidth-(v+x)),E=Pc(o.clientHeight-(y+j)),_=Pc(v),T={rootMargin:-w+"px "+-S+"px "+-E+"px "+-_+"px",threshold:gn(0,Ms(1,g))||1};let A=!0;function B(q){const k=q[0].intersectionRatio;if(k!==g){if(!A)return h();k?h(!1,k):i=setTimeout(()=>{h(!1,1e-7)},1e3)}k===1&&!A1(p,t.getBoundingClientRect())&&h(),A=!1}try{r=new IntersectionObserver(B,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(B,T)}r.observe(t)}return h(!0),u}function J_(t,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,p=Ym(t),v=o||u?[...p?no(p):[],...a?no(a):[]]:[];v.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),u&&_.addEventListener("resize",r)});const y=p&&m?W_(p,r):null;let x=-1,j=null;h&&(j=new ResizeObserver(_=>{let[C]=_;C&&C.target===p&&j&&a&&(j.unobserve(a),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var T;(T=j)==null||T.observe(a)})),r()}),p&&!g&&j.observe(p),a&&j.observe(a));let w,S=g?Sr(t):null;g&&E();function E(){const _=Sr(t);S&&!A1(S,_)&&r(),S=_,w=requestAnimationFrame(E)}return r(),()=>{var _;v.forEach(C=>{o&&C.removeEventListener("scroll",r),u&&C.removeEventListener("resize",r)}),y==null||y(),(_=j)==null||_.disconnect(),j=null,g&&cancelAnimationFrame(w)}}const eA=T_,tA=k_,nA=C_,aA=O_,sA=__,xx=R_,rA=M_,iA=(t,a,r)=>{const i=new Map,o={platform:K_,...r},u={...o.platform,_c:i};return N_(t,a,{...o,platform:u})};var lA=typeof document<"u",oA=function(){},Jc=lA?N.useLayoutEffect:oA;function yu(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,i,o;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!yu(t[i],a[i]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,o[i]))return!1;for(i=r;i--!==0;){const u=o[i];if(!(u==="_owner"&&t.$$typeof)&&!yu(t[u],a[u]))return!1}return!0}return t!==t&&a!==a}function T1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Sx(t,a){const r=T1(t);return Math.round(a*r)/r}function Nh(t){const a=N.useRef(t);return Jc(()=>{a.current=t}),a}function cA(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:u,floating:h}={},transform:m=!0,whileElementsMounted:g,open:p}=t,[v,y]=N.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[x,j]=N.useState(i);yu(x,i)||j(i);const[w,S]=N.useState(null),[E,_]=N.useState(null),C=N.useCallback(ee=>{ee!==q.current&&(q.current=ee,S(ee))},[]),T=N.useCallback(ee=>{ee!==k.current&&(k.current=ee,_(ee))},[]),A=u||w,B=h||E,q=N.useRef(null),k=N.useRef(null),D=N.useRef(v),z=g!=null,H=Nh(g),X=Nh(o),ne=Nh(p),se=N.useCallback(()=>{if(!q.current||!k.current)return;const ee={placement:a,strategy:r,middleware:x};X.current&&(ee.platform=X.current),iA(q.current,k.current,ee).then(ye=>{const ae={...ye,isPositioned:ne.current!==!1};te.current&&!yu(D.current,ae)&&(D.current=ae,Nu.flushSync(()=>{y(ae)}))})},[x,a,r,X,ne]);Jc(()=>{p===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,y(ee=>({...ee,isPositioned:!1})))},[p]);const te=N.useRef(!1);Jc(()=>(te.current=!0,()=>{te.current=!1}),[]),Jc(()=>{if(A&&(q.current=A),B&&(k.current=B),A&&B){if(H.current)return H.current(A,B,se);se()}},[A,B,se,H,z]);const ce=N.useMemo(()=>({reference:q,floating:k,setReference:C,setFloating:T}),[C,T]),P=N.useMemo(()=>({reference:A,floating:B}),[A,B]),V=N.useMemo(()=>{const ee={position:r,left:0,top:0};if(!P.floating)return ee;const ye=Sx(P.floating,v.x),ae=Sx(P.floating,v.y);return m?{...ee,transform:"translate("+ye+"px, "+ae+"px)",...T1(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ye,top:ae}},[r,m,P.floating,v.x,v.y]);return N.useMemo(()=>({...v,update:se,refs:ce,elements:P,floatingStyles:V}),[v,se,ce,P,V])}const uA=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:o}=typeof t=="function"?t(r):t;return i&&a(i)?i.current!=null?xx({element:i.current,padding:o}).fn(r):{}:i?xx({element:i,padding:o}).fn(r):{}}}},dA=(t,a)=>{const r=eA(t);return{name:r.name,fn:r.fn,options:[t,a]}},fA=(t,a)=>{const r=tA(t);return{name:r.name,fn:r.fn,options:[t,a]}},hA=(t,a)=>({fn:rA(t).fn,options:[t,a]}),mA=(t,a)=>{const r=nA(t);return{name:r.name,fn:r.fn,options:[t,a]}},pA=(t,a)=>{const r=aA(t);return{name:r.name,fn:r.fn,options:[t,a]}},gA=(t,a)=>{const r=sA(t);return{name:r.name,fn:r.fn,options:[t,a]}},yA=(t,a)=>{const r=uA(t);return{name:r.name,fn:r.fn,options:[t,a]}};var vA="Arrow",k1=N.forwardRef((t,a)=>{const{children:r,width:i=10,height:o=5,...u}=t;return c.jsx(nn.svg,{...u,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});k1.displayName=vA;var bA=k1;function xA(t){const[a,r]=N.useState(void 0);return ks(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let h,m;if("borderBoxSize"in u){const g=u.borderBoxSize,p=Array.isArray(g)?g[0]:g;h=p.inlineSize,m=p.blockSize}else h=t.offsetWidth,m=t.offsetHeight;r({width:h,height:m})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),a}var $m="Popper",[M1,O1]=Fm($m),[SA,D1]=M1($m),L1=t=>{const{__scopePopper:a,children:r}=t,[i,o]=N.useState(null);return c.jsx(SA,{scope:a,anchor:i,onAnchorChange:o,children:r})};L1.displayName=$m;var z1="PopperAnchor",B1=N.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:i,...o}=t,u=D1(z1,r),h=N.useRef(null),m=In(a,h),g=N.useRef(null);return N.useEffect(()=>{const p=g.current;g.current=(i==null?void 0:i.current)||h.current,p!==g.current&&u.onAnchorChange(g.current)}),i?null:c.jsx(nn.div,{...o,ref:m})});B1.displayName=z1;var Xm="PopperContent",[wA,jA]=M1(Xm),U1=N.forwardRef((t,a)=>{var xe,Be,ve,zt,jt,kt;const{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:u="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:j="optimized",onPlaced:w,...S}=t,E=D1(Xm,r),[_,C]=N.useState(null),T=In(a,Bt=>C(Bt)),[A,B]=N.useState(null),q=xA(A),k=(q==null?void 0:q.width)??0,D=(q==null?void 0:q.height)??0,z=i+(u!=="center"?"-"+u:""),H=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(p)?p:[p],ne=X.length>0,se={padding:H,boundary:X.filter(NA),altBoundary:ne},{refs:te,floatingStyles:ce,placement:P,isPositioned:V,middlewareData:ee}=cA({strategy:"fixed",placement:z,whileElementsMounted:(...Bt)=>J_(...Bt,{animationFrame:j==="always"}),elements:{reference:E.anchor},middleware:[dA({mainAxis:o+D,alignmentAxis:h}),g&&fA({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?hA():void 0,...se}),g&&mA({...se}),pA({...se,apply:({elements:Bt,rects:bt,availableWidth:Ls,availableHeight:Fa})=>{const{width:Rr,height:zn}=bt.reference,xn=Bt.floating.style;xn.setProperty("--radix-popper-available-width",`${Ls}px`),xn.setProperty("--radix-popper-available-height",`${Fa}px`),xn.setProperty("--radix-popper-anchor-width",`${Rr}px`),xn.setProperty("--radix-popper-anchor-height",`${zn}px`)}}),A&&yA({element:A,padding:m}),RA({arrowWidth:k,arrowHeight:D}),x&&gA({strategy:"referenceHidden",...se})]}),[ye,ae]=H1(P),L=Pi(w);ks(()=>{V&&(L==null||L())},[V,L]);const Z=(xe=ee.arrow)==null?void 0:xe.x,re=(Be=ee.arrow)==null?void 0:Be.y,ie=((ve=ee.arrow)==null?void 0:ve.centerOffset)!==0,[le,he]=N.useState();return ks(()=>{_&&he(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:V?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(zt=ee.transformOrigin)==null?void 0:zt.x,(jt=ee.transformOrigin)==null?void 0:jt.y].join(" "),...((kt=ee.hide)==null?void 0:kt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(wA,{scope:r,placedSide:ye,onArrowChange:B,arrowX:Z,arrowY:re,shouldHideArrow:ie,children:c.jsx(nn.div,{"data-side":ye,"data-align":ae,...S,ref:T,style:{...S.style,animation:V?void 0:"none"}})})})});U1.displayName=Xm;var P1="PopperArrow",EA={top:"bottom",right:"left",bottom:"top",left:"right"},F1=N.forwardRef(function(a,r){const{__scopePopper:i,...o}=a,u=jA(P1,i),h=EA[u.placedSide];return c.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:c.jsx(bA,{...o,ref:r,style:{...o.style,display:"block"}})})});F1.displayName=P1;function NA(t){return t!==null}var RA=t=>({name:"transformOrigin",options:t,fn(a){var E,_,C;const{placement:r,rects:i,middlewareData:o}=a,h=((E=o.arrow)==null?void 0:E.centerOffset)!==0,m=h?0:t.arrowWidth,g=h?0:t.arrowHeight,[p,v]=H1(r),y={start:"0%",center:"50%",end:"100%"}[v],x=(((_=o.arrow)==null?void 0:_.x)??0)+m/2,j=(((C=o.arrow)==null?void 0:C.y)??0)+g/2;let w="",S="";return p==="bottom"?(w=h?y:`${x}px`,S=`${-g}px`):p==="top"?(w=h?y:`${x}px`,S=`${i.floating.height+g}px`):p==="right"?(w=`${-g}px`,S=h?y:`${j}px`):p==="left"&&(w=`${i.floating.width+g}px`,S=h?y:`${j}px`),{data:{x:w,y:S}}}});function H1(t){const[a,r="center"]=t.split("-");return[a,r]}var CA=L1,_A=B1,AA=U1,TA=F1,kA="Portal",Zm=N.forwardRef((t,a)=>{var m;const{container:r,...i}=t,[o,u]=N.useState(!1);ks(()=>u(!0),[]);const h=r||o&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?O2.createPortal(c.jsx(nn.div,{...i,ref:a}),h):null});Zm.displayName=kA;function MA(t,a){return N.useReducer((r,i)=>a[r][i]??r,t)}var Vi=t=>{const{present:a,children:r}=t,i=OA(a),o=typeof r=="function"?r({present:i.isPresent}):N.Children.only(r),u=In(i.ref,DA(o));return typeof r=="function"||i.isPresent?N.cloneElement(o,{ref:u}):null};Vi.displayName="Presence";function OA(t){const[a,r]=N.useState(),i=N.useRef(null),o=N.useRef(t),u=N.useRef("none"),h=t?"mounted":"unmounted",[m,g]=MA(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const p=Fc(i.current);u.current=m==="mounted"?p:"none"},[m]),ks(()=>{const p=i.current,v=o.current;if(v!==t){const x=u.current,j=Fc(p);t?g("MOUNT"):j==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(v&&x!==j?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,g]),ks(()=>{if(a){let p;const v=a.ownerDocument.defaultView??window,y=j=>{const S=Fc(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&S&&(g("ANIMATION_END"),!o.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",p=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},x=j=>{j.target===a&&(u.current=Fc(i.current))};return a.addEventListener("animationstart",x),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{v.clearTimeout(p),a.removeEventListener("animationstart",x),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:N.useCallback(p=>{i.current=p?getComputedStyle(p):null,r(p)},[])}}function Fc(t){return(t==null?void 0:t.animationName)||"none"}function DA(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var LA=xm[" useInsertionEffect ".trim().toString()]||ks;function q1({prop:t,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,u,h]=zA({defaultProp:a,onChange:r}),m=t!==void 0,g=m?t:o;{const v=N.useRef(t!==void 0);N.useEffect(()=>{const y=v.current;y!==m&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=m},[m,i])}const p=N.useCallback(v=>{var y;if(m){const x=BA(v)?v(t):v;x!==t&&((y=h.current)==null||y.call(h,x))}else u(v)},[m,t,u,h]);return[g,p]}function zA({defaultProp:t,onChange:a}){const[r,i]=N.useState(t),o=N.useRef(r),u=N.useRef(a);return LA(()=>{u.current=a},[a]),N.useEffect(()=>{var h;o.current!==r&&((h=u.current)==null||h.call(u,r),o.current=r)},[r,o]),[r,i,u]}function BA(t){return typeof t=="function"}var UA=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),PA="VisuallyHidden",G1=N.forwardRef((t,a)=>c.jsx(nn.span,{...t,ref:a,style:{...UA,...t.style}}));G1.displayName=PA;var FA=G1,[Lu]=Fm("Tooltip",[O1]),zu=O1(),I1="TooltipProvider",HA=700,mm="tooltip.open",[qA,Km]=Lu(I1),Q1=t=>{const{__scopeTooltip:a,delayDuration:r=HA,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:u}=t,h=N.useRef(!0),m=N.useRef(!1),g=N.useRef(0);return N.useEffect(()=>{const p=g.current;return()=>window.clearTimeout(p)},[]),c.jsx(qA,{scope:a,isOpenDelayedRef:h,delayDuration:r,onOpen:N.useCallback(()=>{window.clearTimeout(g.current),h.current=!1},[]),onClose:N.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>h.current=!0,i)},[i]),isPointerInTransitRef:m,onPointerInTransitChange:N.useCallback(p=>{m.current=p},[]),disableHoverableContent:o,children:u})};Q1.displayName=I1;var ao="Tooltip",[GA,ho]=Lu(ao),V1=t=>{const{__scopeTooltip:a,children:r,open:i,defaultOpen:o,onOpenChange:u,disableHoverableContent:h,delayDuration:m}=t,g=Km(ao,t.__scopeTooltip),p=zu(a),[v,y]=N.useState(null),x=Wc(),j=N.useRef(0),w=h??g.disableHoverableContent,S=m??g.delayDuration,E=N.useRef(!1),[_,C]=q1({prop:i,defaultProp:o??!1,onChange:k=>{k?(g.onOpen(),document.dispatchEvent(new CustomEvent(mm))):g.onClose(),u==null||u(k)},caller:ao}),T=N.useMemo(()=>_?E.current?"delayed-open":"instant-open":"closed",[_]),A=N.useCallback(()=>{window.clearTimeout(j.current),j.current=0,E.current=!1,C(!0)},[C]),B=N.useCallback(()=>{window.clearTimeout(j.current),j.current=0,C(!1)},[C]),q=N.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{E.current=!0,C(!0),j.current=0},S)},[S,C]);return N.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]),c.jsx(CA,{...p,children:c.jsx(GA,{scope:a,contentId:x,open:_,stateAttribute:T,trigger:v,onTriggerChange:y,onTriggerEnter:N.useCallback(()=>{g.isOpenDelayedRef.current?q():A()},[g.isOpenDelayedRef,q,A]),onTriggerLeave:N.useCallback(()=>{w?B():(window.clearTimeout(j.current),j.current=0)},[B,w]),onOpen:A,onClose:B,disableHoverableContent:w,children:r})})};V1.displayName=ao;var pm="TooltipTrigger",Y1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=ho(pm,r),u=Km(pm,r),h=zu(r),m=N.useRef(null),g=In(a,m,o.onTriggerChange),p=N.useRef(!1),v=N.useRef(!1),y=N.useCallback(()=>p.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),c.jsx(_A,{asChild:!0,...h,children:c.jsx(nn.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:g,onPointerMove:Wt(t.onPointerMove,x=>{x.pointerType!=="touch"&&!v.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:Wt(t.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:Wt(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Wt(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:Wt(t.onBlur,o.onClose),onClick:Wt(t.onClick,o.onClose)})})});Y1.displayName=pm;var Wm="TooltipPortal",[IA,QA]=Lu(Wm,{forceMount:void 0}),$1=t=>{const{__scopeTooltip:a,forceMount:r,children:i,container:o}=t,u=ho(Wm,a);return c.jsx(IA,{scope:a,forceMount:r,children:c.jsx(Vi,{present:r||u.open,children:c.jsx(Zm,{asChild:!0,container:o,children:i})})})};$1.displayName=Wm;var Hi="TooltipContent",X1=N.forwardRef((t,a)=>{const r=QA(Hi,t.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...u}=t,h=ho(Hi,t.__scopeTooltip);return c.jsx(Vi,{present:i||h.open,children:h.disableHoverableContent?c.jsx(Z1,{side:o,...u,ref:a}):c.jsx(VA,{side:o,...u,ref:a})})}),VA=N.forwardRef((t,a)=>{const r=ho(Hi,t.__scopeTooltip),i=Km(Hi,t.__scopeTooltip),o=N.useRef(null),u=In(a,o),[h,m]=N.useState(null),{trigger:g,onClose:p}=r,v=o.current,{onPointerInTransitChange:y}=i,x=N.useCallback(()=>{m(null),y(!1)},[y]),j=N.useCallback((w,S)=>{const E=w.currentTarget,_={x:w.clientX,y:w.clientY},C=ZA(_,E.getBoundingClientRect()),T=KA(_,C),A=WA(S.getBoundingClientRect()),B=eT([...T,...A]);m(B),y(!0)},[y]);return N.useEffect(()=>()=>x(),[x]),N.useEffect(()=>{if(g&&v){const w=E=>j(E,v),S=E=>j(E,g);return g.addEventListener("pointerleave",w),v.addEventListener("pointerleave",S),()=>{g.removeEventListener("pointerleave",w),v.removeEventListener("pointerleave",S)}}},[g,v,j,x]),N.useEffect(()=>{if(h){const w=S=>{const E=S.target,_={x:S.clientX,y:S.clientY},C=(g==null?void 0:g.contains(E))||(v==null?void 0:v.contains(E)),T=!JA(_,h);C?x():T&&(x(),p())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[g,v,h,p,x]),c.jsx(Z1,{...t,ref:u})}),[YA,$A]=Lu(ao,{isInside:!1}),XA=WC("TooltipContent"),Z1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:h,...m}=t,g=ho(Hi,r),p=zu(r),{onClose:v}=g;return N.useEffect(()=>(document.addEventListener(mm,v),()=>document.removeEventListener(mm,v)),[v]),N.useEffect(()=>{if(g.trigger){const y=x=>{const j=x.target;j!=null&&j.contains(g.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[g.trigger,v]),c.jsx(Hm,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:c.jsxs(AA,{"data-state":g.stateAttribute,...p,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(XA,{children:i}),c.jsx(YA,{scope:r,isInside:!0,children:c.jsx(FA,{id:g.contentId,role:"tooltip",children:o||i})})]})})});X1.displayName=Hi;var K1="TooltipArrow",W1=N.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,o=zu(r);return $A(K1,r).isInside?null:c.jsx(TA,{...o,...i,ref:a})});W1.displayName=K1;function ZA(t,a){const r=Math.abs(a.top-t.y),i=Math.abs(a.bottom-t.y),o=Math.abs(a.right-t.x),u=Math.abs(a.left-t.x);switch(Math.min(r,i,o,u)){case u:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function KA(t,a,r=5){const i=[];switch(a){case"top":i.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":i.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":i.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":i.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return i}function WA(t){const{top:a,right:r,bottom:i,left:o}=t;return[{x:o,y:a},{x:r,y:a},{x:r,y:i},{x:o,y:i}]}function JA(t,a){const{x:r,y:i}=t;let o=!1;for(let u=0,h=a.length-1;u<a.length;h=u++){const m=a[u],g=a[h],p=m.x,v=m.y,y=g.x,x=g.y;v>i!=x>i&&r<(y-p)*(i-v)/(x-v)+p&&(o=!o)}return o}function eT(t){const a=t.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),tT(a)}function tT(t){if(t.length<=1)return t.slice();const a=[];for(let i=0;i<t.length;i++){const o=t[i];for(;a.length>=2;){const u=a[a.length-1],h=a[a.length-2];if((u.x-h.x)*(o.y-h.y)>=(u.y-h.y)*(o.x-h.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let i=t.length-1;i>=0;i--){const o=t[i];for(;r.length>=2;){const u=r[r.length-1],h=r[r.length-2];if((u.x-h.x)*(o.y-h.y)>=(u.y-h.y)*(o.x-h.x))r.pop();else break}r.push(o)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var nT=Q1,aT=V1,sT=Y1,rT=$1,iT=X1,lT=W1;function nt(...t){return m1(uo(t))}function oT({delayDuration:t=0,...a}){return c.jsx(nT,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function cT({...t}){return c.jsx(aT,{"data-slot":"tooltip",...t})}function uT({...t}){return c.jsx(sT,{"data-slot":"tooltip-trigger",...t})}function dT({className:t,sideOffset:a=0,children:r,...i}){return c.jsx(rT,{children:c.jsxs(iT,{"data-slot":"tooltip-content",sideOffset:a,className:nt("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...i,children:[r,c.jsx(lT,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}var fT=Symbol.for("react.lazy"),vu=xm[" use ".trim().toString()];function hT(t){return typeof t=="object"&&t!==null&&"then"in t}function J1(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===fT&&"_payload"in t&&hT(t._payload)}function eS(t){const a=mT(t),r=N.forwardRef((i,o)=>{let{children:u,...h}=i;J1(u)&&typeof vu=="function"&&(u=vu(u._payload));const m=N.Children.toArray(u),g=m.find(gT);if(g){const p=g.props.children,v=m.map(y=>y===g?N.Children.count(p)>1?N.Children.only(null):N.isValidElement(p)?p.props.children:null:y);return c.jsx(a,{...h,ref:o,children:N.isValidElement(p)?N.cloneElement(p,void 0,v):null})}return c.jsx(a,{...h,ref:o,children:u})});return r.displayName=`${t}.Slot`,r}var Jm=eS("Slot");function mT(t){const a=N.forwardRef((r,i)=>{let{children:o,...u}=r;if(J1(o)&&typeof vu=="function"&&(o=vu(o._payload)),N.isValidElement(o)){const h=vT(o),m=yT(u,o.props);return o.type!==N.Fragment&&(m.ref=i?Pm(i,h):h),N.cloneElement(o,m)}return N.Children.count(o)>1?N.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var pT=Symbol("radix.slottable");function gT(t){return N.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pT}function yT(t,a){const r={...a};for(const i in a){const o=t[i],u=a[i];/^on[A-Z]/.test(i)?o&&u?r[i]=(...m)=>{const g=u(...m);return o(...m),g}:o&&(r[i]=o):i==="style"?r[i]={...o,...u}:i==="className"&&(r[i]=[o,u].filter(Boolean).join(" "))}return{...t,...r}}function vT(t){var i,o;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const Rh=768;function bT(){const[t,a]=N.useState(void 0);return N.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Rh-1}px)`),i=()=>{a(window.innerWidth<Rh)};return r.addEventListener("change",i),a(window.innerWidth<Rh),()=>r.removeEventListener("change",i)},[]),!!t}const xT=Tu("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function tS({className:t,variant:a="default",size:r="default",asChild:i=!1,...o}){const u=i?Jm:"button";return c.jsx(u,{"data-slot":"button","data-variant":a,"data-size":r,className:nt(xT({variant:a,size:r,className:t})),...o})}var ST=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wT=ST.reduce((t,a)=>{const r=eS(`Primitive.${a}`),i=N.forwardRef((o,u)=>{const{asChild:h,...m}=o,g=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(g,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{}),jT="Separator",wx="horizontal",ET=["horizontal","vertical"],nS=N.forwardRef((t,a)=>{const{decorative:r,orientation:i=wx,...o}=t,u=NT(i)?i:wx,m=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return c.jsx(wT.div,{"data-orientation":u,...m,...o,ref:a})});nS.displayName=jT;function NT(t){return ET.includes(t)}var RT=nS;function CT({className:t,orientation:a="horizontal",decorative:r=!0,...i}){return c.jsx(RT,{"data-slot":"separator",decorative:r,orientation:a,className:nt("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",t),...i})}var Ch="focusScope.autoFocusOnMount",_h="focusScope.autoFocusOnUnmount",jx={bubbles:!1,cancelable:!0},_T="FocusScope",aS=N.forwardRef((t,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...h}=t,[m,g]=N.useState(null),p=Pi(o),v=Pi(u),y=N.useRef(null),x=In(a,S=>g(S)),j=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(i){let S=function(T){if(j.paused||!m)return;const A=T.target;m.contains(A)?y.current=A:ps(y.current,{select:!0})},E=function(T){if(j.paused||!m)return;const A=T.relatedTarget;A!==null&&(m.contains(A)||ps(y.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const B of T)B.removedNodes.length>0&&ps(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",E);const C=new MutationObserver(_);return m&&C.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",E),C.disconnect()}}},[i,m,j.paused]),N.useEffect(()=>{if(m){Nx.add(j);const S=document.activeElement;if(!m.contains(S)){const _=new CustomEvent(Ch,jx);m.addEventListener(Ch,p),m.dispatchEvent(_),_.defaultPrevented||(AT(DT(sS(m)),{select:!0}),document.activeElement===S&&ps(m))}return()=>{m.removeEventListener(Ch,p),setTimeout(()=>{const _=new CustomEvent(_h,jx);m.addEventListener(_h,v),m.dispatchEvent(_),_.defaultPrevented||ps(S??document.body,{select:!0}),m.removeEventListener(_h,v),Nx.remove(j)},0)}}},[m,p,v,j]);const w=N.useCallback(S=>{if(!r&&!i||j.paused)return;const E=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(E&&_){const C=S.currentTarget,[T,A]=TT(C);T&&A?!S.shiftKey&&_===A?(S.preventDefault(),r&&ps(T,{select:!0})):S.shiftKey&&_===T&&(S.preventDefault(),r&&ps(A,{select:!0})):_===C&&S.preventDefault()}},[r,i,j.paused]);return c.jsx(nn.div,{tabIndex:-1,...h,ref:x,onKeyDown:w})});aS.displayName=_T;function AT(t,{select:a=!1}={}){const r=document.activeElement;for(const i of t)if(ps(i,{select:a}),document.activeElement!==r)return}function TT(t){const a=sS(t),r=Ex(a,t),i=Ex(a.reverse(),t);return[r,i]}function sS(t){const a=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Ex(t,a){for(const r of t)if(!kT(r,{upTo:a}))return r}function kT(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function MT(t){return t instanceof HTMLInputElement&&"select"in t}function ps(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&MT(t)&&a&&t.select()}}var Nx=OT();function OT(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=Rx(t,a),t.unshift(a)},remove(a){var r;t=Rx(t,a),(r=t[0])==null||r.resume()}}}function Rx(t,a){const r=[...t],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function DT(t){return t.filter(a=>a.tagName!=="A")}var Ah=0;function LT(){N.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Cx()),document.body.insertAdjacentElement("beforeend",t[1]??Cx()),Ah++,()=>{Ah===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Ah--}},[])}function Cx(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var na=function(){return na=Object.assign||function(a){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])}return a},na.apply(this,arguments)};function rS(t,a){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)a.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(r[i[o]]=t[i[o]]);return r}function zT(t,a,r){if(r||arguments.length===2)for(var i=0,o=a.length,u;i<o;i++)(u||!(i in a))&&(u||(u=Array.prototype.slice.call(a,0,i)),u[i]=a[i]);return t.concat(u||Array.prototype.slice.call(a))}var eu="right-scroll-bar-position",tu="width-before-scroll-bar",BT="with-scroll-bars-hidden",UT="--removed-body-scroll-bar-size";function Th(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function PT(t,a){var r=N.useState(function(){return{value:t,callback:a,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=a,r.facade}var FT=typeof window<"u"?N.useLayoutEffect:N.useEffect,_x=new WeakMap;function HT(t,a){var r=PT(null,function(i){return t.forEach(function(o){return Th(o,i)})});return FT(function(){var i=_x.get(r);if(i){var o=new Set(i),u=new Set(t),h=r.current;o.forEach(function(m){u.has(m)||Th(m,null)}),u.forEach(function(m){o.has(m)||Th(m,h)})}_x.set(r,t)},[t]),r}function qT(t){return t}function GT(t,a){a===void 0&&(a=qT);var r=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(u){var h=a(u,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(u){for(i=!0;r.length;){var h=r;r=[],h.forEach(u)}r={push:function(m){return u(m)},filter:function(){return r}}},assignMedium:function(u){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(u),h=r}var g=function(){var v=h;h=[],v.forEach(u)},p=function(){return Promise.resolve().then(g)};p(),r={push:function(v){h.push(v),p()},filter:function(v){return h=h.filter(v),r}}}};return o}function IT(t){t===void 0&&(t={});var a=GT(null);return a.options=na({async:!0,ssr:!1},t),a}var iS=function(t){var a=t.sideCar,r=rS(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return N.createElement(i,na({},r))};iS.isSideCarExport=!0;function QT(t,a){return t.useMedium(a),iS}var lS=IT(),kh=function(){},Bu=N.forwardRef(function(t,a){var r=N.useRef(null),i=N.useState({onScrollCapture:kh,onWheelCapture:kh,onTouchMoveCapture:kh}),o=i[0],u=i[1],h=t.forwardProps,m=t.children,g=t.className,p=t.removeScrollBar,v=t.enabled,y=t.shards,x=t.sideCar,j=t.noRelative,w=t.noIsolation,S=t.inert,E=t.allowPinchZoom,_=t.as,C=_===void 0?"div":_,T=t.gapMode,A=rS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=x,q=HT([r,a]),k=na(na({},A),o);return N.createElement(N.Fragment,null,v&&N.createElement(B,{sideCar:lS,removeScrollBar:p,shards:y,noRelative:j,noIsolation:w,inert:S,setCallbacks:u,allowPinchZoom:!!E,lockRef:r,gapMode:T}),h?N.cloneElement(N.Children.only(m),na(na({},k),{ref:q})):N.createElement(C,na({},k,{className:g,ref:q}),m))});Bu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bu.classNames={fullWidth:tu,zeroRight:eu};var VT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YT(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=VT();return a&&t.setAttribute("nonce",a),t}function $T(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function XT(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var ZT=function(){var t=0,a=null;return{add:function(r){t==0&&(a=YT())&&($T(a,r),XT(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},KT=function(){var t=ZT();return function(a,r){N.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},oS=function(){var t=KT(),a=function(r){var i=r.styles,o=r.dynamic;return t(i,o),null};return a},WT={left:0,top:0,right:0,gap:0},Mh=function(t){return parseInt(t||"",10)||0},JT=function(t){var a=window.getComputedStyle(document.body),r=a[t==="padding"?"paddingLeft":"marginLeft"],i=a[t==="padding"?"paddingTop":"marginTop"],o=a[t==="padding"?"paddingRight":"marginRight"];return[Mh(r),Mh(i),Mh(o)]},ek=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return WT;var a=JT(t),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},tk=oS(),Si="data-scroll-locked",nk=function(t,a,r,i){var o=t.left,u=t.top,h=t.right,m=t.gap;return r===void 0&&(r="margin"),`
261
- .`.concat(BT,` {
262
- overflow: hidden `).concat(i,`;
263
- padding-right: `).concat(m,"px ").concat(i,`;
264
- }
265
- body[`).concat(Si,`] {
266
- overflow: hidden `).concat(i,`;
267
- overscroll-behavior: contain;
268
- `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
269
- padding-left: `.concat(o,`px;
270
- padding-top: `).concat(u,`px;
271
- padding-right: `).concat(h,`px;
272
- margin-left:0;
273
- margin-top:0;
274
- margin-right: `).concat(m,"px ").concat(i,`;
275
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
276
- }
277
-
278
- .`).concat(eu,` {
279
- right: `).concat(m,"px ").concat(i,`;
280
- }
281
-
282
- .`).concat(tu,` {
283
- margin-right: `).concat(m,"px ").concat(i,`;
284
- }
285
-
286
- .`).concat(eu," .").concat(eu,` {
287
- right: 0 `).concat(i,`;
288
- }
289
-
290
- .`).concat(tu," .").concat(tu,` {
291
- margin-right: 0 `).concat(i,`;
292
- }
293
-
294
- body[`).concat(Si,`] {
295
- `).concat(UT,": ").concat(m,`px;
296
- }
297
- `)},Ax=function(){var t=parseInt(document.body.getAttribute(Si)||"0",10);return isFinite(t)?t:0},ak=function(){N.useEffect(function(){return document.body.setAttribute(Si,(Ax()+1).toString()),function(){var t=Ax()-1;t<=0?document.body.removeAttribute(Si):document.body.setAttribute(Si,t.toString())}},[])},sk=function(t){var a=t.noRelative,r=t.noImportant,i=t.gapMode,o=i===void 0?"margin":i;ak();var u=N.useMemo(function(){return ek(o)},[o]);return N.createElement(tk,{styles:nk(u,!a,o,r?"":"!important")})},gm=!1;if(typeof window<"u")try{var Hc=Object.defineProperty({},"passive",{get:function(){return gm=!0,!0}});window.addEventListener("test",Hc,Hc),window.removeEventListener("test",Hc,Hc)}catch{gm=!1}var hi=gm?{passive:!1}:!1,rk=function(t){return t.tagName==="TEXTAREA"},cS=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!rk(t)&&r[a]==="visible")},ik=function(t){return cS(t,"overflowY")},lk=function(t){return cS(t,"overflowX")},Tx=function(t,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=uS(t,i);if(o){var u=dS(t,i),h=u[1],m=u[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},ok=function(t){var a=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[a,r,i]},ck=function(t){var a=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[a,r,i]},uS=function(t,a){return t==="v"?ik(a):lk(a)},dS=function(t,a){return t==="v"?ok(a):ck(a)},uk=function(t,a){return t==="h"&&a==="rtl"?-1:1},dk=function(t,a,r,i,o){var u=uk(t,window.getComputedStyle(a).direction),h=u*i,m=r.target,g=a.contains(m),p=!1,v=h>0,y=0,x=0;do{if(!m)break;var j=dS(t,m),w=j[0],S=j[1],E=j[2],_=S-E-u*w;(w||_)&&uS(t,m)&&(y+=_,x+=w);var C=m.parentNode;m=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!g&&m!==document.body||g&&(a.contains(m)||a===m));return(v&&Math.abs(y)<1||!v&&Math.abs(x)<1)&&(p=!0),p},qc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},kx=function(t){return[t.deltaX,t.deltaY]},Mx=function(t){return t&&"current"in t?t.current:t},fk=function(t,a){return t[0]===a[0]&&t[1]===a[1]},hk=function(t){return`
298
- .block-interactivity-`.concat(t,` {pointer-events: none;}
299
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
300
- `)},mk=0,mi=[];function pk(t){var a=N.useRef([]),r=N.useRef([0,0]),i=N.useRef(),o=N.useState(mk++)[0],u=N.useState(oS)[0],h=N.useRef(t);N.useEffect(function(){h.current=t},[t]),N.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var S=zT([t.lockRef.current],(t.shards||[]).map(Mx),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var m=N.useCallback(function(S,E){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var _=qc(S),C=r.current,T="deltaX"in S?S.deltaX:C[0]-_[0],A="deltaY"in S?S.deltaY:C[1]-_[1],B,q=S.target,k=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in S&&k==="h"&&q.type==="range")return!1;var D=window.getSelection(),z=D&&D.anchorNode,H=z?z===q||z.contains(q):!1;if(H)return!1;var X=Tx(k,q);if(!X)return!0;if(X?B=k:(B=k==="v"?"h":"v",X=Tx(k,q)),!X)return!1;if(!i.current&&"changedTouches"in S&&(T||A)&&(i.current=B),!B)return!0;var ne=i.current||B;return dk(ne,E,S,ne==="h"?T:A)},[]),g=N.useCallback(function(S){var E=S;if(!(!mi.length||mi[mi.length-1]!==u)){var _="deltaY"in E?kx(E):qc(E),C=a.current.filter(function(B){return B.name===E.type&&(B.target===E.target||E.target===B.shadowParent)&&fk(B.delta,_)})[0];if(C&&C.should){E.cancelable&&E.preventDefault();return}if(!C){var T=(h.current.shards||[]).map(Mx).filter(Boolean).filter(function(B){return B.contains(E.target)}),A=T.length>0?m(E,T[0]):!h.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),p=N.useCallback(function(S,E,_,C){var T={name:S,delta:E,target:_,should:C,shadowParent:gk(_)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(A){return A!==T})},1)},[]),v=N.useCallback(function(S){r.current=qc(S),i.current=void 0},[]),y=N.useCallback(function(S){p(S.type,kx(S),S.target,m(S,t.lockRef.current))},[]),x=N.useCallback(function(S){p(S.type,qc(S),S.target,m(S,t.lockRef.current))},[]);N.useEffect(function(){return mi.push(u),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",g,hi),document.addEventListener("touchmove",g,hi),document.addEventListener("touchstart",v,hi),function(){mi=mi.filter(function(S){return S!==u}),document.removeEventListener("wheel",g,hi),document.removeEventListener("touchmove",g,hi),document.removeEventListener("touchstart",v,hi)}},[]);var j=t.removeScrollBar,w=t.inert;return N.createElement(N.Fragment,null,w?N.createElement(u,{styles:hk(o)}):null,j?N.createElement(sk,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function gk(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const yk=QT(lS,pk);var fS=N.forwardRef(function(t,a){return N.createElement(Bu,na({},t,{ref:a,sideCar:yk}))});fS.classNames=Bu.classNames;var vk=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},pi=new WeakMap,Gc=new WeakMap,Ic={},Oh=0,hS=function(t){return t&&(t.host||hS(t.parentNode))},bk=function(t,a){return a.map(function(r){if(t.contains(r))return r;var i=hS(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},xk=function(t,a,r,i){var o=bk(a,Array.isArray(t)?t:[t]);Ic[r]||(Ic[r]=new WeakMap);var u=Ic[r],h=[],m=new Set,g=new Set(o),p=function(y){!y||m.has(y)||(m.add(y),p(y.parentNode))};o.forEach(p);var v=function(y){!y||g.has(y)||Array.prototype.forEach.call(y.children,function(x){if(m.has(x))v(x);else try{var j=x.getAttribute(i),w=j!==null&&j!=="false",S=(pi.get(x)||0)+1,E=(u.get(x)||0)+1;pi.set(x,S),u.set(x,E),h.push(x),S===1&&w&&Gc.set(x,!0),E===1&&x.setAttribute(r,"true"),w||x.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",x,_)}})};return v(a),m.clear(),Oh++,function(){h.forEach(function(y){var x=pi.get(y)-1,j=u.get(y)-1;pi.set(y,x),u.set(y,j),x||(Gc.has(y)||y.removeAttribute(i),Gc.delete(y)),j||y.removeAttribute(r)}),Oh--,Oh||(pi=new WeakMap,pi=new WeakMap,Gc=new WeakMap,Ic={})}},Sk=function(t,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),o=vk(t);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),xk(i,o,r,"aria-hidden")):function(){return null}},Uu="Dialog",[mS]=Fm(Uu),[wk,Qn]=mS(Uu),pS=t=>{const{__scopeDialog:a,children:r,open:i,defaultOpen:o,onOpenChange:u,modal:h=!0}=t,m=N.useRef(null),g=N.useRef(null),[p,v]=q1({prop:i,defaultProp:o??!1,onChange:u,caller:Uu});return c.jsx(wk,{scope:a,triggerRef:m,contentRef:g,contentId:Wc(),titleId:Wc(),descriptionId:Wc(),open:p,onOpenChange:v,onOpenToggle:N.useCallback(()=>v(y=>!y),[v]),modal:h,children:r})};pS.displayName=Uu;var gS="DialogTrigger",jk=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Qn(gS,r),u=In(a,o.triggerRef);return c.jsx(nn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":np(o.open),...i,ref:u,onClick:Wt(t.onClick,o.onOpenToggle)})});jk.displayName=gS;var ep="DialogPortal",[Ek,yS]=mS(ep,{forceMount:void 0}),vS=t=>{const{__scopeDialog:a,forceMount:r,children:i,container:o}=t,u=Qn(ep,a);return c.jsx(Ek,{scope:a,forceMount:r,children:N.Children.map(i,h=>c.jsx(Vi,{present:r||u.open,children:c.jsx(Zm,{asChild:!0,container:o,children:h})}))})};vS.displayName=ep;var bu="DialogOverlay",bS=N.forwardRef((t,a)=>{const r=yS(bu,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,u=Qn(bu,t.__scopeDialog);return u.modal?c.jsx(Vi,{present:i||u.open,children:c.jsx(Rk,{...o,ref:a})}):null});bS.displayName=bu;var Nk=g1("DialogOverlay.RemoveScroll"),Rk=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Qn(bu,r);return c.jsx(fS,{as:Nk,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(nn.div,{"data-state":np(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),wr="DialogContent",xS=N.forwardRef((t,a)=>{const r=yS(wr,t.__scopeDialog),{forceMount:i=r.forceMount,...o}=t,u=Qn(wr,t.__scopeDialog);return c.jsx(Vi,{present:i||u.open,children:u.modal?c.jsx(Ck,{...o,ref:a}):c.jsx(_k,{...o,ref:a})})});xS.displayName=wr;var Ck=N.forwardRef((t,a)=>{const r=Qn(wr,t.__scopeDialog),i=N.useRef(null),o=In(a,r.contentRef,i);return N.useEffect(()=>{const u=i.current;if(u)return Sk(u)},[]),c.jsx(SS,{...t,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,u=>{var h;u.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,u=>{const h=u.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&u.preventDefault()}),onFocusOutside:Wt(t.onFocusOutside,u=>u.preventDefault())})}),_k=N.forwardRef((t,a)=>{const r=Qn(wr,t.__scopeDialog),i=N.useRef(!1),o=N.useRef(!1);return c.jsx(SS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var h,m;(h=t.onCloseAutoFocus)==null||h.call(t,u),u.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),u.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:u=>{var g,p;(g=t.onInteractOutside)==null||g.call(t,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const h=u.target;((p=r.triggerRef.current)==null?void 0:p.contains(h))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),SS=N.forwardRef((t,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:u,...h}=t,m=Qn(wr,r),g=N.useRef(null),p=In(a,g);return LT(),c.jsxs(c.Fragment,{children:[c.jsx(aS,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:u,children:c.jsx(Hm,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":np(m.open),...h,ref:p,onDismiss:()=>m.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Ak,{titleId:m.titleId}),c.jsx(kk,{contentRef:g,descriptionId:m.descriptionId})]})]})}),tp="DialogTitle",wS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Qn(tp,r);return c.jsx(nn.h2,{id:o.titleId,...i,ref:a})});wS.displayName=tp;var jS="DialogDescription",ES=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Qn(jS,r);return c.jsx(nn.p,{id:o.descriptionId,...i,ref:a})});ES.displayName=jS;var NS="DialogClose",RS=N.forwardRef((t,a)=>{const{__scopeDialog:r,...i}=t,o=Qn(NS,r);return c.jsx(nn.button,{type:"button",...i,ref:a,onClick:Wt(t.onClick,()=>o.onOpenChange(!1))})});RS.displayName=NS;function np(t){return t?"open":"closed"}var CS="DialogTitleWarning",[k3,_S]=XC(CS,{contentName:wr,titleName:tp,docsSlug:"dialog"}),Ak=({titleId:t})=>{const a=_S(CS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
301
-
302
- If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
303
-
304
- For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return N.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},Tk="DialogDescriptionWarning",kk=({contentRef:t,descriptionId:a})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_S(Tk).contentName}}.`;return N.useEffect(()=>{var u;const o=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(i))},[i,t,a]),null},Mk=pS,Ok=vS,Dk=bS,Lk=xS,zk=wS,Bk=ES,Uk=RS;function Pk({...t}){return c.jsx(Mk,{"data-slot":"sheet",...t})}function Fk({...t}){return c.jsx(Ok,{"data-slot":"sheet-portal",...t})}function Hk({className:t,...a}){return c.jsx(Dk,{"data-slot":"sheet-overlay",className:nt("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",t),...a})}function qk({className:t,children:a,side:r="right",showCloseButton:i=!0,...o}){return c.jsxs(Fk,{children:[c.jsx(Hk,{}),c.jsxs(Lk,{"data-slot":"sheet-content","data-side":r,className:nt("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",t),...o,children:[a,i&&c.jsx(Uk,{"data-slot":"sheet-close",asChild:!0,children:c.jsxs(tS,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[c.jsx(Bi,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function Gk({className:t,...a}){return c.jsx("div",{"data-slot":"sheet-header",className:nt("flex flex-col gap-0.5 p-4",t),...a})}function Ik({className:t,...a}){return c.jsx(zk,{"data-slot":"sheet-title",className:nt("font-heading text-base font-medium text-foreground",t),...a})}function Qk({className:t,...a}){return c.jsx(Bk,{"data-slot":"sheet-description",className:nt("text-sm text-muted-foreground",t),...a})}const Vk="sidebar_state",Yk=3600*24*7,$k="16rem",Xk="18rem",Zk="3rem",Kk="b",AS=N.createContext(null);function ap(){const t=N.useContext(AS);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Wk({defaultOpen:t=!0,open:a,onOpenChange:r,className:i,style:o,children:u,...h}){const m=bT(),[g,p]=N.useState(!1),[v,y]=N.useState(t),x=a??v,j=N.useCallback(_=>{const C=typeof _=="function"?_(x):_;r?r(C):y(C),document.cookie=`${Vk}=${C}; path=/; max-age=${Yk}`},[r,x]),w=N.useCallback(()=>m?p(_=>!_):j(_=>!_),[m,j,p]);N.useEffect(()=>{const _=C=>{C.key===Kk&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),w())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[w]);const S=x?"expanded":"collapsed",E=N.useMemo(()=>({state:S,open:x,setOpen:j,isMobile:m,openMobile:g,setOpenMobile:p,toggleSidebar:w}),[S,x,j,m,g,p,w]);return c.jsx(AS.Provider,{value:E,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":$k,"--sidebar-width-icon":Zk,...o},className:nt("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",i),...h,children:u})})}function Jk({side:t="left",variant:a="sidebar",collapsible:r="offcanvas",className:i,children:o,dir:u,...h}){const{isMobile:m,state:g,openMobile:p,setOpenMobile:v}=ap();return r==="none"?c.jsx("div",{"data-slot":"sidebar",className:nt("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),...h,children:o}):m?c.jsx(Pk,{open:p,onOpenChange:v,...h,children:c.jsxs(qk,{dir:u,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Xk},side:t,children:[c.jsxs(Gk,{className:"sr-only",children:[c.jsx(Ik,{children:"Sidebar"}),c.jsx(Qk,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":g,"data-collapsible":g==="collapsed"?r:"","data-variant":a,"data-side":t,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:nt("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container","data-side":t,className:nt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...h,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})]})}function eM({className:t,onClick:a,...r}){const{toggleSidebar:i}=ap();return c.jsxs(tS,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:nt(t),onClick:o=>{a==null||a(o),i()},...r,children:[c.jsx(PR,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function tM({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:nt("flex flex-col gap-2 p-2",t),...a})}function nM({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:nt("flex flex-col gap-2 p-2",t),...a})}function Ox({className:t,...a}){return c.jsx(CT,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:nt("mx-2 w-auto bg-sidebar-border",t),...a})}function aM({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:nt("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function Dh({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:nt("relative flex w-full min-w-0 flex-col p-2",t),...a})}function Dx({className:t,asChild:a=!1,...r}){const i=a?Jm:"div";return c.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:nt("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",t),...r})}function Lh({className:t,...a}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:nt("w-full text-sm",t),...a})}function Qc({className:t,...a}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:nt("flex w-full min-w-0 flex-col gap-0.5",t),...a})}function TS({className:t,...a}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:nt("group/menu-item relative",t),...a})}const sM=Tu("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function kS({asChild:t=!1,isActive:a=!1,variant:r="default",size:i="default",tooltip:o,className:u,...h}){const m=t?Jm:"button",{isMobile:g,state:p}=ap(),v=c.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":a,className:nt(sM({variant:r,size:i}),u),...h});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(cT,{children:[c.jsx(uT,{asChild:!0,children:v}),c.jsx(dT,{side:"right",align:"center",hidden:p!=="collapsed"||g,...o})]})):v}const MS=N.createContext(null);function OS(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Lx(t){return t==="system"?OS():t}function rM({children:t,defaultTheme:a="dark"}){const[r,i]=N.useState(()=>typeof window>"u"?a:localStorage.getItem("theme")??a),[o,u]=N.useState(()=>Lx(r)),h=N.useCallback(m=>{i(g=>{const p=typeof m=="function"?m(g):m;return localStorage.setItem("theme",p),p})},[]);return N.useEffect(()=>{const m=Lx(r);u(m),document.documentElement.classList.toggle("dark",m==="dark")},[r]),N.useEffect(()=>{const m=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{if(r==="system"){const p=OS();u(p),document.documentElement.classList.toggle("dark",p==="dark")}};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)},[r]),c.jsx(MS.Provider,{value:{theme:r,resolvedTheme:o,setTheme:h},children:t})}function iM(){const t=N.useContext(MS);if(!t)throw new Error("useTheme must be used within ThemeProvider");return t}function lM(){const{theme:t,resolvedTheme:a,setTheme:r}=iM();return c.jsxs(ht,{variant:"ghost",size:"icon",onClick:()=>r((a??t)==="light"?"dark":"light"),className:"h-8 w-8",children:[c.jsx(YR,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),c.jsx(LR,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),c.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}const oM=[{href:"/",label:"Overview",icon:TR,query:Om},{href:"/workspaces",label:"Workspaces",icon:bR,query:Dm},{href:"/benchmark",label:"Benchmark",icon:$0}],cM=[{href:"/query",label:"Query",icon:qR},{href:"/documents",label:"Documents",icon:Cu,query:()=>uu(1,Ht)},{href:"/memories",label:"Memories",icon:tR,query:()=>du(1,Ht)}],uM=[{href:"/changelog",label:"Changelog",icon:CR},{href:"/settings",label:"Settings",icon:QR,query:W0}];function zh({href:t,label:a,icon:r,query:i}){const o=Er(),h=sN()({to:t,fuzzy:t!=="/"}),m=()=>{if(!i)return;const g=typeof i=="function"?i():i;o.prefetchQuery(g)};return c.jsx(TS,{children:c.jsx(kS,{asChild:!0,isActive:!!h,tooltip:a,children:c.jsxs(yt,{to:t,onMouseEnter:m,children:[c.jsx(r,{className:"h-4 w-4"}),c.jsx("span",{children:a})]})})})}function dM(){return c.jsxs(Jk,{collapsible:"icon",children:[c.jsx(tM,{children:c.jsx(Qc,{children:c.jsx(TS,{children:c.jsxs("div",{className:"flex items-center gap-1 group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:items-center",children:[c.jsx(kS,{asChild:!0,size:"lg",tooltip:"OpenEZ Graph",children:c.jsxs(yt,{to:"/",className:"flex items-center gap-3",children:[c.jsx("img",{src:"/logo.png",alt:"OpenEZ Graph",className:"h-8 w-8 rounded-lg"}),c.jsx("div",{className:"flex flex-col gap-0 group-data-[collapsible=icon]:hidden",children:c.jsxs("span",{className:"text-sm font-black tracking-tight",style:{fontFamily:"'Archivo Black', sans-serif"},children:["OPEN",c.jsx("span",{className:"text-accent-foreground",children:"EZ"})]})})]})}),c.jsx(eM,{}),c.jsx(lM,{})]})})})}),c.jsxs(aM,{children:[c.jsxs(Dh,{children:[c.jsx(Dx,{children:"Navigation"}),c.jsx(Lh,{children:c.jsx(Qc,{children:oM.map(t=>c.jsx(zh,{...t},t.href))})})]}),c.jsx(Ox,{}),c.jsxs(Dh,{children:[c.jsx(Dx,{children:"Debug"}),c.jsx(Lh,{children:c.jsx(Qc,{children:cM.map(t=>c.jsx(zh,{...t},t.href))})})]}),c.jsx(Ox,{}),c.jsx(Dh,{children:c.jsx(Lh,{children:c.jsx(Qc,{children:uM.map(t=>c.jsx(zh,{...t},t.href))})})})]}),c.jsx(nM,{children:c.jsx("div",{className:"px-3 py-2 group-data-[collapsible=icon]:hidden",children:c.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspace config, retrieval debugging, graph inspection."})})})]})}const Pa=Q2()({component:fM});function fM(){return c.jsx(rM,{defaultTheme:"dark",children:c.jsx(oT,{children:c.jsx(Wk,{children:c.jsxs("div",{className:"flex h-svh w-full overflow-hidden",children:[c.jsx(dM,{}),c.jsx("main",{className:"flex-1 overflow-y-auto bg-background p-6",children:c.jsx(Ru,{})})]})})})})}const hM=bn("/workspaces")({component:()=>c.jsx(Ru,{})}),mM=bn("/settings")({component:xM}),pM=`{
305
- "mcpServers": {
306
- "openez-graph": {
307
- "command": "pnpm",
308
- "args": ["--dir", "/path/to/openez", "mcp"]
309
- }
310
- }
311
- }`,gM=`{
312
- "mcpServers": {
313
- "openez-graph": {
314
- "command": "pnpm",
315
- "args": ["--dir", "/path/to/openez", "mcp"]
316
- }
317
- }
318
- }`,yM=`{
319
- "mcpServers": {
320
- "openez-graph": {
321
- "command": "pnpm",
322
- "args": ["--dir", "/path/to/openez", "mcp"]
323
- }
324
- }
325
- }`,vM=`{
326
- "mcp": {
327
- "servers": {
328
- "openez-graph": {
329
- "type": "local",
330
- "command": ["pnpm", "--dir", "/path/to/openez", "mcp"]
331
- }
332
- }
333
- }
334
- }`;function Vl({label:t,value:a}){return c.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border last:border-0",children:[c.jsx("span",{className:"text-sm text-muted-foreground",children:t}),c.jsx("span",{className:"text-sm font-medium text-foreground text-right truncate max-w-[70%] font-mono",children:a??c.jsx("span",{className:"text-muted-foreground italic",children:"not set"})})]})}function bM({children:t}){return c.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-foreground border border-border",children:t})}function Vc({name:t,configPath:a,config:r}){return c.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("h3",{className:"text-sm font-semibold text-foreground",children:t}),c.jsx(qt,{variant:"secondary",className:"text-xs px-1.5 py-0 h-4",children:"stdio"})]}),c.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Add to ",c.jsx(bM,{children:a})]}),c.jsx(VC,{children:r})]})}function xM(){const{data:t}=Ln(W0);return c.jsxs("div",{className:"page container mx-auto px-4 sm:px-6",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Settings"}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"Environment-backed provider configuration."})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"Configuration"})}),c.jsx(_e,{className:"p-0",children:c.jsxs("div",{className:"px-6 pb-2",children:[c.jsx(Vl,{label:"Redis URL",value:"Not used (SQLite is default)"}),c.jsx(Vl,{label:"Embedding provider",value:t==null?void 0:t.EMBEDDING_PROVIDER}),c.jsx(Vl,{label:"OpenAI base URL",value:(t==null?void 0:t.OPENAI_BASE_URL)??"default"}),c.jsx(Vl,{label:"OpenAI model",value:t==null?void 0:t.OPENAI_EMBEDDING_MODEL}),c.jsx(Vl,{label:"Ollama model",value:t==null?void 0:t.OLLAMA_EMBEDDING_MODEL})]})})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"MCP Server Setup"})}),c.jsxs(_e,{className:"flex flex-col gap-4",children:[c.jsx(Vc,{name:"Claude Code",configPath:"~/.claude/settings.json",config:pM}),c.jsx(Vc,{name:"Claude Desktop",configPath:"claude_desktop_config.json",config:gM}),c.jsx(Vc,{name:"Cline / VS Code",configPath:"VS Code settings or Cline MCP config",config:yM}),c.jsx(Vc,{name:"OpenCode",configPath:"~/.config/opencode/opencode.json",config:vM})]})]})]})}var SM=Object.create,Pu=Object.defineProperty,wM=Object.defineProperties,jM=Object.getOwnPropertyDescriptor,EM=Object.getOwnPropertyDescriptors,DS=Object.getOwnPropertyNames,xu=Object.getOwnPropertySymbols,NM=Object.getPrototypeOf,sp=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,zx=(t,a,r)=>a in t?Pu(t,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[a]=r,ia=(t,a)=>{for(var r in a||(a={}))sp.call(a,r)&&zx(t,r,a[r]);if(xu)for(var r of xu(a))LS.call(a,r)&&zx(t,r,a[r]);return t},Fu=(t,a)=>wM(t,EM(a)),zS=(t,a)=>{var r={};for(var i in t)sp.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&xu)for(var i of xu(t))a.indexOf(i)<0&&LS.call(t,i)&&(r[i]=t[i]);return r},RM=(t,a)=>function(){return a||(0,t[DS(t)[0]])((a={exports:{}}).exports,a),a.exports},CM=(t,a)=>{for(var r in a)Pu(t,r,{get:a[r],enumerable:!0})},_M=(t,a,r,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of DS(a))!sp.call(t,o)&&o!==r&&Pu(t,o,{get:()=>a[o],enumerable:!(i=jM(a,o))||i.enumerable});return t},AM=(t,a,r)=>(r=t!=null?SM(NM(t)):{},_M(!t||!t.__esModule?Pu(r,"default",{value:t,enumerable:!0}):r,t)),TM=RM({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(t,a){var r=(function(){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,u={},h={util:{encode:function w(S){return S instanceof m?new m(S.type,w(S.content),S.alias):Array.isArray(S)?S.map(w):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(S,E){E=E||{};var _,C;switch(h.util.type(S)){case"Object":if(C=h.util.objId(S),E[C])return E[C];_={},E[C]=_;for(var T in S)S.hasOwnProperty(T)&&(_[T]=w(S[T],E));return _;case"Array":return C=h.util.objId(S),E[C]?E[C]:(_=[],E[C]=_,S.forEach(function(A,B){_[B]=w(A,E)}),_);default:return S}},getLanguage:function(w){for(;w;){var S=i.exec(w.className);if(S)return S[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,S){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+S)},isActive:function(w,S,E){for(var _="no-"+S;w;){var C=w.classList;if(C.contains(S))return!0;if(C.contains(_))return!1;w=w.parentElement}return!!E}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(w,S){var E=h.util.clone(h.languages[w]);for(var _ in S)E[_]=S[_];return E},insertBefore:function(w,S,E,_){_=_||h.languages;var C=_[w],T={};for(var A in C)if(C.hasOwnProperty(A)){if(A==S)for(var B in E)E.hasOwnProperty(B)&&(T[B]=E[B]);E.hasOwnProperty(A)||(T[A]=C[A])}var q=_[w];return _[w]=T,h.languages.DFS(h.languages,function(k,D){D===q&&k!=w&&(this[k]=T)}),T},DFS:function w(S,E,_,C){C=C||{};var T=h.util.objId;for(var A in S)if(S.hasOwnProperty(A)){E.call(S,A,S[A],_||A);var B=S[A],q=h.util.type(B);q==="Object"&&!C[T(B)]?(C[T(B)]=!0,w(B,E,null,C)):q==="Array"&&!C[T(B)]&&(C[T(B)]=!0,w(B,E,A,C))}}},plugins:{},highlight:function(w,S,E){var _={code:w,grammar:S,language:E};if(h.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=h.tokenize(_.code,_.grammar),h.hooks.run("after-tokenize",_),m.stringify(h.util.encode(_.tokens),_.language)},tokenize:function(w,S){var E=S.rest;if(E){for(var _ in E)S[_]=E[_];delete S.rest}var C=new v;return y(C,C.head,w),p(w,C,S,C.head,0),j(C)},hooks:{all:{},add:function(w,S){var E=h.hooks.all;E[w]=E[w]||[],E[w].push(S)},run:function(w,S){var E=h.hooks.all[w];if(!(!E||!E.length))for(var _=0,C;C=E[_++];)C(S)}},Token:m};function m(w,S,E,_){this.type=w,this.content=S,this.alias=E,this.length=(_||"").length|0}m.stringify=function w(S,E){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(q){_+=w(q,E)}),_}var C={type:S.type,content:w(S.content,E),tag:"span",classes:["token",S.type],attributes:{},language:E},T=S.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(C.classes,T):C.classes.push(T)),h.hooks.run("wrap",C);var A="";for(var B in C.attributes)A+=" "+B+'="'+(C.attributes[B]||"").replace(/"/g,"&quot;")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+A+">"+C.content+"</"+C.tag+">"};function g(w,S,E,_){w.lastIndex=S;var C=w.exec(E);if(C&&_&&C[1]){var T=C[1].length;C.index+=T,C[0]=C[0].slice(T)}return C}function p(w,S,E,_,C,T){for(var A in E)if(!(!E.hasOwnProperty(A)||!E[A])){var B=E[A];B=Array.isArray(B)?B:[B];for(var q=0;q<B.length;++q){if(T&&T.cause==A+","+q)return;var k=B[q],D=k.inside,z=!!k.lookbehind,H=!!k.greedy,X=k.alias;if(H&&!k.pattern.global){var ne=k.pattern.toString().match(/[imsuy]*$/)[0];k.pattern=RegExp(k.pattern.source,ne+"g")}for(var se=k.pattern||k,te=_.next,ce=C;te!==S.tail&&!(T&&ce>=T.reach);ce+=te.value.length,te=te.next){var P=te.value;if(S.length>w.length)return;if(!(P instanceof m)){var V=1,ee;if(H){if(ee=g(se,ce,w,z),!ee||ee.index>=w.length)break;var Z=ee.index,ye=ee.index+ee[0].length,ae=ce;for(ae+=te.value.length;Z>=ae;)te=te.next,ae+=te.value.length;if(ae-=te.value.length,ce=ae,te.value instanceof m)continue;for(var L=te;L!==S.tail&&(ae<ye||typeof L.value=="string");L=L.next)V++,ae+=L.value.length;V--,P=w.slice(ce,ae),ee.index-=ce}else if(ee=g(se,0,P,z),!ee)continue;var Z=ee.index,re=ee[0],ie=P.slice(0,Z),le=P.slice(Z+re.length),he=ce+P.length;T&&he>T.reach&&(T.reach=he);var xe=te.prev;ie&&(xe=y(S,xe,ie),ce+=ie.length),x(S,xe,V);var Be=new m(A,D?h.tokenize(re,D):re,X,re);if(te=y(S,xe,Be),le&&y(S,te,le),V>1){var ve={cause:A+","+q,reach:he};p(w,S,E,te.prev,ce,ve),T&&ve.reach>T.reach&&(T.reach=ve.reach)}}}}}}function v(){var w={value:null,prev:null,next:null},S={value:null,prev:w,next:null};w.next=S,this.head=w,this.tail=S,this.length=0}function y(w,S,E){var _=S.next,C={value:E,prev:S,next:_};return S.next=C,_.prev=C,w.length++,C}function x(w,S,E){for(var _=S.next,C=0;C<E&&_!==w.tail;C++)_=_.next;S.next=_,_.prev=S,w.length-=C}function j(w){for(var S=[],E=w.head.next;E!==w.tail;)S.push(E.value),E=E.next;return S}return h})();a.exports=r,r.default=r}}),J=AM(TM());J.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},J.languages.markup.tag.inside["attr-value"].inside.entity=J.languages.markup.entity,J.languages.markup.doctype.inside["internal-subset"].inside=J.languages.markup,J.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(J.languages.markup.tag,"addInlined",{value:function(t,i){var r={},r=(r["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:J.languages[i]},r.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}}),i=(r["language-"+i]={pattern:/[\s\S]+/,inside:J.languages[i]},{});i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},J.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(J.languages.markup.tag,"addAttribute",{value:function(t,a){J.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:J.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),J.languages.html=J.languages.markup,J.languages.mathml=J.languages.markup,J.languages.svg=J.languages.markup,J.languages.xml=J.languages.extend("markup",{}),J.languages.ssml=J.languages.xml,J.languages.atom=J.languages.xml,J.languages.rss=J.languages.xml,(function(t){var a={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i="(?:[^\\\\-]|"+r.source+")",i=RegExp(i+"-"+i),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":a,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:r}},"special-escape":a,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(J),J.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},J.languages.javascript=J.languages.extend("clike",{"class-name":[J.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),J.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,J.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:J.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:J.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:J.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:J.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:J.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),J.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:J.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),J.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),J.languages.markup&&(J.languages.markup.tag.addInlined("script","javascript"),J.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),J.languages.js=J.languages.javascript,J.languages.actionscript=J.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),J.languages.actionscript["class-name"].alias="function",delete J.languages.actionscript.parameter,delete J.languages.actionscript["literal-property"],J.languages.markup&&J.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:J.languages.markup}}),(function(t){var a=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:a,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:a,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(J),(function(t){var a=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(a,"addSupport",{value:function(r,i){(r=typeof r=="string"?[r]:r).forEach(function(o){var u=function(y){y.inside||(y.inside={}),y.inside.rest=i},h="doc-comment";if(m=t.languages[o]){var m,g=m[h];if((g=g||(m=t.languages.insertBefore(o,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[h])instanceof RegExp&&(g=m[h]={pattern:g}),Array.isArray(g))for(var p=0,v=g.length;p<v;p++)g[p]instanceof RegExp&&(g[p]={pattern:g[p]}),u(g[p]);else u(g)}})}}),a.addSupport(["java","javascript","php"],a)})(J),(function(t){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,a=(t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css,t.languages.markup);a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(J),(function(t){var a=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,a=(t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:a={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+a.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[a,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=a,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:r})})(J),(function(t){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function h(m,g){g=(g||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return m});return RegExp(p,g)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:h(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:h(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:h(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:h(u),lookbehind:!0,greedy:!0},number:{pattern:h(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(J),(function(t){var a=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(p){return p=p.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,h=(t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+u+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+u+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(v){p!==v&&(t.languages.markdown[p].inside.content.inside[v]=t.languages.markdown[v])})}),t.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||(function v(y){if(y&&typeof y!="string")for(var x=0,j=y.length;x<j;x++){var w,S=y[x];S.type!=="code"?v(S.content):(w=S.content[1],S=S.content[3],w&&S&&w.type==="code-language"&&S.type==="code-block"&&typeof w.content=="string"&&(w=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(w=(/[a-z][\w-]*/i.exec(w)||[""])[0].toLowerCase()),S.alias?typeof S.alias=="string"?S.alias=[S.alias,w]:S.alias.push(w):S.alias=[w]))}})(p.tokens)}),t.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var v="",y=0,x=p.classes.length;y<x;y++){var j=p.classes[y],j=/language-(.+)/.exec(j);if(j){v=j[1];break}}var w,S=t.languages[v];S?p.content=t.highlight((function(E){return E=E.replace(h,""),E=E.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(_,C){var T;return(C=C.toLowerCase())[0]==="#"?(T=C[1]==="x"?parseInt(C.slice(2),16):Number(C.slice(1)),g(T)):m[C]||_})})(p.content),S,v):v&&v!=="none"&&t.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=w,t.plugins.autoloader.loadLanguages(v,function(){var E=document.getElementById(w);E&&(E.innerHTML=t.highlight(E.textContent,t.languages[v],v))}))}}),RegExp(t.languages.markup.tag.pattern.source,"gi")),m={amp:"&",lt:"<",gt:">",quot:'"'},g=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown})(J),J.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:J.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},J.hooks.add("after-tokenize",function(t){if(t.language==="graphql")for(var a=t.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),r=0;r<a.length;){var i=a[r++];if(i.type==="keyword"&&i.content==="mutation"){var o=[];if(y(["definition-mutation","punctuation"])&&v(1).content==="("){r+=2;var u=x(/^\($/,/^\)$/);if(u===-1)continue;for(;r<u;r++){var h=v(0);h.type==="variable"&&(j(h,"variable-input"),o.push(h.content))}r=u+1}if(y(["punctuation","property-query"])&&v(0).content==="{"&&(r++,j(v(0),"property-mutation"),0<o.length)){var m=x(/^\{$/,/^\}$/);if(m!==-1)for(var g=r;g<m;g++){var p=a[g];p.type==="variable"&&0<=o.indexOf(p.content)&&j(p,"variable-input")}}}}function v(w){return a[r+w]}function y(w,S){S=S||0;for(var E=0;E<w.length;E++){var _=v(E+S);if(!_||_.type!==w[E])return}return 1}function x(w,S){for(var E=1,_=r;_<a.length;_++){var C=a[_],T=C.content;if(C.type==="punctuation"&&typeof T=="string"){if(w.test(T))E++;else if(S.test(T)&&--E===0)return _}}return-1}function j(w,S){var E=w.alias;E?Array.isArray(E)||(w.alias=E=[E]):w.alias=E=[],E.push(S)}}),J.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(t){var a=t.languages.javascript["template-string"],r=a.pattern.source,i=a.inside.interpolation,o=i.inside["interpolation-punctuation"],u=i.pattern.source;function h(y,x){if(t.languages[y])return{pattern:RegExp("((?:"+x+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}function m(y,x,j){return y={code:y,grammar:x,language:j},t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function g(y,x,j){var E=t.tokenize(y,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),w=0,S={},E=m(E.map(function(C){if(typeof C=="string")return C;for(var T,A,C=C.content;y.indexOf((A=w++,T="___"+j.toUpperCase()+"_"+A+"___"))!==-1;);return S[T]=C,T}).join(""),x,j),_=Object.keys(S);return w=0,(function C(T){for(var A=0;A<T.length;A++){if(w>=_.length)return;var B,q,k,D,z,H,X,ne=T[A];typeof ne=="string"||typeof ne.content=="string"?(B=_[w],(X=(H=typeof ne=="string"?ne:ne.content).indexOf(B))!==-1&&(++w,q=H.substring(0,X),z=S[B],k=void 0,(D={})["interpolation-punctuation"]=o,(D=t.tokenize(z,D)).length===3&&((k=[1,1]).push.apply(k,m(D[1],t.languages.javascript,"javascript")),D.splice.apply(D,k)),k=new t.Token("interpolation",D,i.alias,z),D=H.substring(X+B.length),z=[],q&&z.push(q),z.push(k),D&&(C(H=[D]),z.push.apply(z,H)),typeof ne=="string"?(T.splice.apply(T,[A,1].concat(z)),A+=z.length-1):ne.content=z)):(X=ne.content,Array.isArray(X)?C(X):C([X]))}})(E),new t.Token(j,E,"language-"+j,y)}t.languages.javascript["template-string"]=[h("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),h("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),h("svg",/\bsvg/.source),h("markdown",/\b(?:markdown|md)/.source),h("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),h("sql",/\bsql/.source),a].filter(Boolean);var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function v(y){return typeof y=="string"?y:Array.isArray(y)?y.map(v).join(""):v(y.content)}t.hooks.add("after-tokenize",function(y){y.language in p&&(function x(j){for(var w=0,S=j.length;w<S;w++){var E,_,C,T=j[w];typeof T!="string"&&(E=T.content,Array.isArray(E)?T.type==="template-string"?(T=E[1],E.length===3&&typeof T!="string"&&T.type==="embedded-code"&&(_=v(T),T=T.alias,T=Array.isArray(T)?T[0]:T,C=t.languages[T])&&(E[1]=g(_,C,T))):x(E):typeof E!="string"&&x([E]))}})(y.tokens)})})(J),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var a=t.languages.extend("typescript",{});delete a["class-name"],t.languages.typescript["class-name"].inside=a,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),t.languages.ts=t.languages.typescript})(J),(function(t){var a=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,i="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:a,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:a.string,number:a.number,boolean:a.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:a,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(J),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(J),J.languages.n4js=J.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),J.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),J.languages.n4jsd=J.languages.n4js,(function(t){function a(h,m){return RegExp(h.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),m)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:a(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:a(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:a(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i<r.length;i++){var u=r[i],o=t.languages.javascript[u],u=(o=t.util.type(o)==="RegExp"?t.languages.javascript[u]={pattern:o}:o).inside||{};(o.inside=u)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(J),(function(t){var a=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(g,p){return g=g.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(g,p)}o=u(o).source,t.languages.jsx=t.languages.extend("markup",a),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=a.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);function h(g){for(var p=[],v=0;v<g.length;v++){var y=g[v],x=!1;typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===m(y.content[0].content[1])&&p.pop():y.content[y.content.length-1].content!=="/>"&&p.push({tagName:m(y.content[0].content[1]),openedBraces:0}):0<p.length&&y.type==="punctuation"&&y.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&y.type==="punctuation"&&y.content==="}"?p[p.length-1].openedBraces--:x=!0),(x||typeof y=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(x=m(y),v<g.length-1&&(typeof g[v+1]=="string"||g[v+1].type==="plain-text")&&(x+=m(g[v+1]),g.splice(v+1,1)),0<v&&(typeof g[v-1]=="string"||g[v-1].type==="plain-text")&&(x=m(g[v-1])+x,g.splice(v-1,1),v--),g[v]=new t.Token("plain-text",x,null,x)),y.content&&typeof y.content!="string"&&h(y.content)}}var m=function(g){return g?typeof g=="string"?g:typeof g.content=="string"?g.content:g.content.map(m).join(""):""};t.hooks.add("after-tokenize",function(g){g.language!=="jsx"&&g.language!=="tsx"||h(g.tokens)})})(J),(function(t){var a=t.util.clone(t.languages.typescript),a=(t.languages.tsx=t.languages.extend("jsx",a),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"],t.languages.tsx.tag);a.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+a.pattern.source+")",a.pattern.flags),a.lookbehind=!0})(J),J.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},J.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=J.languages.swift}),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var a={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:a},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:a},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(J),J.languages.c=J.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),J.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),J.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},J.languages.c.string],char:J.languages.c.char,comment:J.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:J.languages.c}}}}),J.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete J.languages.c.boolean,J.languages.objectivec=J.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete J.languages.objectivec["class-name"],J.languages.objc=J.languages.objectivec,J.languages.reason=J.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),J.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete J.languages.reason.function,(function(t){for(var a=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)a=a.replace(/<self>/g,function(){return a});a=a.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(J),J.languages.go=J.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),J.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete J.languages.go["class-name"],(function(t){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return a.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(J),J.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},J.languages.python["string-interpolation"].inside.interpolation.inside.rest=J.languages.python,J.languages.py=J.languages.python,J.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},J.languages.webmanifest=J.languages.json;var ym={};CM(ym,{dracula:()=>MM,duotoneDark:()=>DM,duotoneLight:()=>zM,github:()=>UM,gruvboxMaterialDark:()=>hO,gruvboxMaterialLight:()=>pO,jettwaveDark:()=>rO,jettwaveLight:()=>lO,nightOwl:()=>FM,nightOwlLight:()=>qM,oceanicNext:()=>IM,okaidia:()=>VM,oneDark:()=>cO,oneLight:()=>dO,palenight:()=>$M,shadesOfPurple:()=>ZM,synthwave84:()=>WM,ultramin:()=>eO,vsDark:()=>BS,vsLight:()=>aO});var kM={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},MM=kM,OM={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},DM=OM,LM={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},zM=LM,BM={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},UM=BM,PM={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},FM=PM,HM={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},qM=HM,hn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},GM={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:hn.keyword}},{types:["attr-value"],style:{color:hn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:hn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:hn.primitive}},{types:["boolean"],style:{color:hn.boolean}},{types:["tag"],style:{color:hn.tag}},{types:["string"],style:{color:hn.string}},{types:["punctuation"],style:{color:hn.string}},{types:["selector","char","builtin","inserted"],style:{color:hn.char}},{types:["function"],style:{color:hn.function}},{types:["operator","entity","url","variable"],style:{color:hn.variable}},{types:["keyword"],style:{color:hn.keyword}},{types:["atrule","class-name"],style:{color:hn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},IM=GM,QM={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},VM=QM,YM={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},$M=YM,XM={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},ZM=XM,KM={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},WM=KM,JM={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},eO=JM,tO={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},BS=tO,nO={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},aO=nO,sO={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},rO=sO,iO={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},lO=iO,oO={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},cO=oO,uO={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},dO=uO,fO={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},hO=fO,mO={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},pO=mO,gO=t=>N.useCallback(a=>{var r=a,{className:i,style:o,line:u}=r,h=zS(r,["className","style","line"]);const m=Fu(ia({},h),{className:uo("token-line",i)});return typeof t=="object"&&"plain"in t&&(m.style=t.plain),typeof o=="object"&&(m.style=ia(ia({},m.style||{}),o)),m},[t]),yO=t=>{const a=N.useCallback(({types:r,empty:i})=>{if(t!=null){{if(r.length===1&&r[0]==="plain")return i!=null?{display:"inline-block"}:void 0;if(r.length===1&&i!=null)return t[r[0]]}return Object.assign(i!=null?{display:"inline-block"}:{},...r.map(o=>t[o]))}},[t]);return N.useCallback(r=>{var i=r,{token:o,className:u,style:h}=i,m=zS(i,["token","className","style"]);const g=Fu(ia({},m),{className:uo("token",...o.types,u),children:o.content,style:a(o)});return h!=null&&(g.style=ia(ia({},g.style||{}),h)),g},[a])},vO=/\r\n|\r|\n/,Bx=t=>{t.length===0?t.push({types:["plain"],content:`
335
- `,empty:!0}):t.length===1&&t[0].content===""&&(t[0].content=`
336
- `,t[0].empty=!0)},Ux=(t,a)=>{const r=t.length;return r>0&&t[r-1]===a?t:t.concat(a)},bO=t=>{const a=[[]],r=[t],i=[0],o=[t.length];let u=0,h=0,m=[];const g=[m];for(;h>-1;){for(;(u=i[h]++)<o[h];){let p,v=a[h];const x=r[h][u];if(typeof x=="string"?(v=h>0?v:["plain"],p=x):(v=Ux(v,x.type),x.alias&&(v=Ux(v,x.alias)),p=x.content),typeof p!="string"){h++,a.push(v),r.push(p),i.push(0),o.push(p.length);continue}const j=p.split(vO),w=j.length;m.push({types:v,content:j[0]});for(let S=1;S<w;S++)Bx(m),g.push(m=[]),m.push({types:v,content:j[S]})}h--,a.pop(),r.pop(),i.pop(),o.pop()}return Bx(m),g},Px=bO,xO=({prism:t,code:a,grammar:r,language:i})=>N.useMemo(()=>{if(r==null)return Px([a]);const o={code:a,grammar:r,language:i,tokens:[]};return t.hooks.run("before-tokenize",o),o.tokens=t.tokenize(a,r),t.hooks.run("after-tokenize",o),Px(o.tokens)},[a,r,i,t]),SO=(t,a)=>{const{plain:r}=t,i=t.styles.reduce((o,u)=>{const{languages:h,style:m}=u;return h&&!h.includes(a)||u.types.forEach(g=>{const p=ia(ia({},o[g]),m);o[g]=p}),o},{});return i.root=r,i.plain=Fu(ia({},r),{backgroundColor:void 0}),i},wO=SO,jO=({children:t,language:a,code:r,theme:i,prism:o})=>{const u=a.toLowerCase(),h=wO(i,u),m=gO(h),g=yO(h),p=o.languages[u],v=xO({prism:o,language:u,code:r,grammar:p});return t({tokens:v,className:`prism-code language-${u}`,style:h!=null?h.root:{},getLineProps:m,getTokenProps:g})},EO=t=>N.createElement(jO,Fu(ia({},t),{prism:t.prism||J,theme:t.theme||BS,code:t.code,language:t.language}));/*! Bundled license information:
337
-
338
- prismjs/prism.js:
339
- (**
340
- * Prism: Lightweight, robust, elegant syntax highlighting
341
- *
342
- * @license MIT <https://opensource.org/licenses/MIT>
343
- * @author Lea Verou <https://lea.verou.me>
344
- * @namespace
345
- * @public
346
- *)
347
- */const NO={...ym.nightOwl,styles:ym.nightOwl.styles.map(t=>({...t,style:Object.fromEntries(Object.entries(t.style??{}).filter(([a])=>a!=="background"&&a!=="backgroundColor"))}))};function RO(t){const a=[],r=/\[source:\s*(.+?):(\d+|\?)-(\d+|\?)\s*\|\s*score:\s*([\d.]+)\]\n([\s\S]*?)(?=\n\[source:|$)/g;let i;for(;(i=r.exec(t))!==null;)a.push({path:i[1],startLine:i[2],endLine:i[3],score:i[4],code:i[5].trimEnd()});return a}function CO(t){var i;const a=((i=t.split(".").pop())==null?void 0:i.toLowerCase())??"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",py:"python",go:"go",rs:"rust",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",sh:"bash",bash:"bash"}[a]??"text"}function _O(t){const a=[],r=/```(\w+)?\n([\s\S]*?)```/g;let i=0,o;for(;(o=r.exec(t))!==null;)o.index>i&&a.push({language:"markdown",code:t.slice(i,o.index),fenced:!1}),a.push({language:o[1]??"text",code:o[2].trimEnd(),fenced:!0}),i=o.index+o[0].length;return i<t.length&&a.push({language:"markdown",code:t.slice(i),fenced:!1}),a.filter(u=>u.code.trim().length>0)}function Bh({code:t,language:a}){return c.jsx(EO,{theme:NO,code:t,language:a,children:({className:r,style:i,tokens:o,getLineProps:u,getTokenProps:h})=>c.jsx("pre",{className:`${r} text-xs overflow-x-auto p-3 m-0`,style:{...i,background:"transparent"},children:o.map((m,g)=>{const p=u({line:m,key:g});return c.jsxs("div",{...p,className:`${p.className} table-row`,children:[c.jsx("span",{className:"table-cell pr-3 text-right select-none opacity-30 text-xs",children:g+1}),c.jsx("span",{className:"table-cell",children:m.map((v,y)=>c.jsx("span",{...h({token:v,key:y})},y))})]},g)})})})}function AO({raw:t}){const a=RO(t);return a.length===0?c.jsx("pre",{className:"text-sm whitespace-pre-wrap font-mono bg-muted/30 rounded-md p-4 overflow-x-auto",children:t}):c.jsx("div",{className:"flex flex-col gap-4",children:a.map((r,i)=>{const o=CO(r.path),u=o==="markdown"?_O(r.code):null;return c.jsxs("div",{className:"rounded-lg border border-border overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 bg-muted/50 border-b border-border",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c.jsx(Cu,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("span",{className:"font-mono text-xs truncate",children:r.path}),c.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[":",r.startLine,"-",r.endLine]})]}),c.jsx(qt,{variant:"outline",className:"text-xs shrink-0",children:r.score})]}),u?u.map((h,m)=>h.fenced?c.jsx("div",{className:"bg-muted/30 border-y border-border/50",children:c.jsx(Bh,{code:h.code,language:h.language})},m):c.jsx(Bh,{code:h.code,language:"markdown"},m)):c.jsx(Bh,{code:r.code,language:o})]},i)})})}const TO=bn("/query")({component:kO,validateSearch:t=>({workspaceId:t.workspaceId??""})}),Uh={answerContext:"",sources:[],graphNodes:[],graphEdges:[],error:null};function Fx(t){switch(t){case"file":return"bg-chart-1/15 text-chart-1 border-chart-1/30";case"chunk":return"bg-chart-2/15 text-chart-2 border-chart-2/30";case"symbol":return"bg-chart-3/15 text-chart-3 border-chart-3/30";case"entity":return"bg-chart-4/15 text-chart-4 border-chart-4/30";default:return"bg-muted text-muted-foreground border-border"}}function kO(){const{workspaceId:t}=qi({from:"/query"}),[a,r]=N.useState(Uh),[i,o]=N.useState(!1);async function u(p){p.preventDefault(),o(!0),r({...Uh,error:null});try{const v=new FormData(p.currentTarget),y=await tn.runQuery({workspaceId:String(v.get("workspaceId")??"").trim(),query:String(v.get("query")??"").trim()});r({...y,error:null})}catch(v){r({...Uh,error:v instanceof Error?v.message:"Query failed"})}finally{o(!1)}}const h=a.graphNodes.filter(p=>p.type==="file"),m=a.graphNodes.filter(p=>p.type==="symbol");a.graphNodes.filter(p=>p.type==="chunk");const g=t.trim().length>0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[g&&c.jsx(yt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(ht,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h1",{children:"Query"}),c.jsx("p",{className:"muted text-sm",children:"Test the retrieval flow against the indexed workspace."})]})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{className:"text-base",children:"Query interface"})}),c.jsx(_e,{children:c.jsxs("form",{onSubmit:u,className:"query-form",children:[c.jsxs("div",{className:"field",children:[c.jsx(ft,{htmlFor:"workspaceId",children:"Workspace ID"}),c.jsx(Ts,{id:"workspaceId",name:"workspaceId",defaultValue:t,placeholder:"openez"})]}),c.jsxs("div",{className:"field",children:[c.jsx(ft,{htmlFor:"query",children:"Query"}),c.jsx(hu,{id:"query",name:"query",placeholder:"login session flow, auth design, createSession"})]}),c.jsx(ht,{type:"submit",disabled:i,children:i?c.jsxs(c.Fragment,{children:[c.jsx(to,{className:"h-4 w-4 animate-spin"})," Running..."]}):c.jsxs(c.Fragment,{children:[c.jsx(_u,{className:"h-4 w-4"})," Run query"]})}),a.error&&c.jsx("p",{className:"text-sm text-destructive mt-2",children:a.error})]})})]}),a.answerContext&&c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{className:"text-base",children:"Context"})}),c.jsx(_e,{children:c.jsx(AO,{raw:a.answerContext})})]}),a.sources.length>0&&c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{className:"text-base",children:"Sources"})}),c.jsx(_e,{children:c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Path"}),c.jsx(Se,{children:"Lines"}),c.jsx(Se,{children:"Score"}),c.jsx(Se,{children:"Reason"})]})}),c.jsx(Dn,{children:a.sources.map(p=>c.jsxs(tt,{children:[c.jsx(we,{className:"font-mono text-xs",children:p.path}),c.jsxs(we,{children:[p.startLine??"?","-",p.endLine??"?"]}),c.jsx(we,{children:p.score.toFixed(3)}),c.jsx(we,{children:p.reason})]},`${p.path}-${p.startLine}-${p.endLine}`))})]})})]}),a.graphNodes.length>0&&c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsxs(Ze,{className:"text-base flex items-center gap-2",children:[c.jsx(BR,{className:"h-4 w-4"})," Graph Relationships"]})}),c.jsxs(_e,{className:"grid gap-4",children:[h.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Files"}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:h.map(p=>c.jsxs(qt,{variant:"outline",className:Fx("file"),children:[c.jsx(Cu,{className:"h-3 w-3 mr-1"})," ",p.label]},p.id))})]}),m.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Symbols"}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.map(p=>c.jsx(qt,{variant:"outline",className:Fx("symbol"),children:p.label},p.id))})]}),a.graphEdges.length>0&&c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2 uppercase tracking-wider",children:"Edges"}),c.jsx("div",{className:"flex flex-col gap-1",children:a.graphEdges.slice(0,20).map((p,v)=>{const y=a.graphNodes.find(j=>j.id===p.from_node_id),x=a.graphNodes.find(j=>j.id===p.to_node_id);return c.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[c.jsx("span",{className:"truncate max-w-50 font-mono",children:(y==null?void 0:y.label)??p.from_node_id.slice(0,8)}),c.jsx(im,{className:"h-3 w-3 shrink-0"}),c.jsx(qt,{variant:"outline",className:"text-xs px-1 py-0 h-4",children:p.type}),c.jsx(im,{className:"h-3 w-3 shrink-0"}),c.jsx("span",{className:"truncate max-w-50 font-mono",children:(x==null?void 0:x.label)??p.to_node_id.slice(0,8)})]},v)})})]})]})]})]})}function sa(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const Hx={file:"#60a5fa",chunk:"#34d399",symbol:"#fbbf24",memory:"#f472b6",entity:"#c084fc",document:"#22d3ee",default:"#94a3b8"},qx={imports:"#60a5fa",defines:"#fbbf24",contains:"#34d399",mentions:"#c084fc",represented_by:"#f472b6",calls:"#f97316",links_to:"#22d3ee",related_to:"#94a3b8",default:"#64748b"};function MO(t){return Hx[t]??Hx.default}function OO(t){return qx[t]??qx.default}const DO=bn("/memories")({loader:({context:t})=>t.queryClient.ensureQueryData(du(1,Ht)),component:LO,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function LO(){const t=Er(),{page:a}=qi({from:"/memories"}),[r,i]=N.useState(""),[o,u]=N.useState(""),[h,m]=N.useState(!1),[g,p]=N.useState(null);N.useEffect(()=>{const C=setTimeout(()=>u(r),300);return()=>clearTimeout(C)},[r]);const v=o.trim().length>0,y=v?JR(o):du(a,Ht),{data:x,isLoading:j}=Ln({queryKey:y.queryKey,queryFn:y.queryFn,placeholderData:C=>C}),w=v?1:Math.max(1,Math.ceil(((x==null?void 0:x.totalCount)??0)/Ht));N.useEffect(()=>{if(!v){const C=a+1;C<=w&&t.prefetchQuery(du(C,Ht))}},[a,w,t,v]);const S=I0({mutationFn:C=>tn.deleteMemory(C),onSuccess:()=>{t.invalidateQueries({queryKey:["memories"]}),t.invalidateQueries({queryKey:["dashboard"]}),p(null)}}),E=(x==null?void 0:x.items)??[],_=(x==null?void 0:x.totalCount)??0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Memories"}),c.jsx("p",{className:"muted text-sm",children:"Technical decisions and agent notes persisted across sessions."})]}),c.jsxs(ht,{onClick:()=>m(!0),size:"sm",children:[c.jsx(om,{className:"h-4 w-4 mr-1"}),"New Memory"]})]}),c.jsx(Ce,{className:"mb-4",children:c.jsx(_e,{className:"pt-4",children:c.jsxs("div",{className:"relative",children:[c.jsx(_u,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),c.jsx(Ts,{placeholder:"Search memories by title or content...",value:r,onChange:C=>i(C.target.value),className:"pl-9"}),r&&c.jsx("button",{onClick:()=>i(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]})})}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:v?`Search results (${E.length})`:`Memories (${_})`})}),c.jsx(_e,{children:j?c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):E.length===0?c.jsx("p",{className:"text-sm text-muted-foreground py-8 text-center",children:v?"No memories match your search.":"No memories yet. Create one to get started."}):c.jsxs(c.Fragment,{children:[c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Title"}),c.jsx(Se,{children:"Tags"}),c.jsx(Se,{children:"Source"}),c.jsx(Se,{children:"Updated"}),c.jsx(Se,{className:"w-10"})]})}),c.jsx(Dn,{children:E.map(C=>c.jsxs(tt,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>p(C),children:[c.jsx(we,{className:"font-medium",children:C.title}),c.jsx(we,{children:c.jsx("div",{className:"flex gap-1 flex-wrap",children:C.tags.length===0?c.jsx("span",{className:"text-xs text-muted-foreground",children:"—"}):C.tags.map(T=>c.jsx(qt,{variant:"secondary",className:"text-xs",children:T},T))})}),c.jsx(we,{children:c.jsx(qt,{variant:"outline",className:"text-xs",children:C.source})}),c.jsx(we,{className:"text-muted-foreground text-sm",children:sa(C.updatedAt)}),c.jsx(we,{children:c.jsx("button",{onClick:T=>{T.stopPropagation(),S.mutate(C.id)},className:"text-muted-foreground hover:text-destructive transition-colors",children:c.jsx(Z0,{className:"h-4 w-4"})})})]},C.id))})]}),!v&&c.jsx(zm,{currentPage:a,totalPages:w,basePath:"/memories"})]})})]}),h&&c.jsx(zO,{onClose:()=>m(!1),onCreated:()=>{m(!1),t.invalidateQueries({queryKey:["memories"]}),t.invalidateQueries({queryKey:["dashboard"]})}}),g&&c.jsx(BO,{memory:g,onClose:()=>p(null),onDelete:()=>S.mutate(g.id),deleting:S.isPending})]})}function zO({onClose:t,onCreated:a}){const[r,i]=N.useState(""),[o,u]=N.useState(""),[h,m]=N.useState(""),[g,p]=N.useState(null),v=I0({mutationFn:()=>tn.createMemory({title:r.trim(),content:o.trim(),tags:h.split(",").map(x=>x.trim()).filter(Boolean)}),onSuccess:x=>{x.ok&&x.data?a():p("Failed to create memory")},onError:x=>p(x.message)}),y=x=>{if(x.preventDefault(),!r.trim()||!o.trim()){p("Title and content are required");return}v.mutate()};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:t,children:c.jsxs(Ce,{className:"w-full max-w-lg max-h-[80vh] overflow-y-auto",onClick:x=>x.stopPropagation(),children:[c.jsx(Xe,{children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Ze,{children:"New Memory"}),c.jsx("button",{onClick:t,className:"text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]})}),c.jsx(_e,{children:c.jsxs("form",{onSubmit:y,className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(ft,{htmlFor:"memory-title",children:"Title"}),c.jsx(Ts,{id:"memory-title",value:r,onChange:x=>i(x.target.value),placeholder:"e.g. Use SQLite WAL mode for all workspaces",autoFocus:!0})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(ft,{htmlFor:"memory-content",children:"Content"}),c.jsx(hu,{id:"memory-content",value:o,onChange:x=>u(x.target.value),placeholder:"Describe the technical decision or note...",rows:6})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx(ft,{htmlFor:"memory-tags",children:"Tags (comma-separated)"}),c.jsx(Ts,{id:"memory-tags",value:h,onChange:x=>m(x.target.value),placeholder:"e.g. architecture, storage, decision"})]}),g&&c.jsx("p",{className:"text-sm text-destructive",children:g}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(ht,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),c.jsx(ht,{type:"submit",disabled:v.isPending,children:v.isPending?"Creating...":"Create"})]})]})})]})})}function BO({memory:t,onClose:a,onDelete:r,deleting:i}){return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:a,children:c.jsxs(Ce,{className:"w-full max-w-lg max-h-[80vh] overflow-y-auto",onClick:o=>o.stopPropagation(),children:[c.jsx(Xe,{children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Ze,{children:t.title}),c.jsx("button",{onClick:a,className:"text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]})}),c.jsx(_e,{children:c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"flex gap-2 flex-wrap",children:[t.tags.map(o=>c.jsx(qt,{variant:"secondary",className:"text-xs",children:o},o)),c.jsx(qt,{variant:"outline",className:"text-xs",children:t.source})]}),c.jsx("div",{className:"text-sm whitespace-pre-wrap",children:t.content}),c.jsxs("div",{className:"flex items-center justify-between border-t pt-3",children:[c.jsxs("div",{className:"text-xs text-muted-foreground",children:[c.jsxs("div",{children:["Created: ",sa(t.createdAt)]}),c.jsxs("div",{children:["Updated: ",sa(t.updatedAt)]})]}),c.jsxs(ht,{variant:"destructive",size:"sm",onClick:r,disabled:i,children:[c.jsx(Z0,{className:"h-4 w-4 mr-1"}),i?"Deleting...":"Delete"]})]})]})})]})})}const UO=bn("/documents")({loader:({context:t})=>t.queryClient.ensureQueryData(uu(1,Ht)),component:PO,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function PO(){const t=Er(),{page:a}=qi({from:"/documents"}),{data:r,isLoading:i}=Ln({...uu(a,Ht),placeholderData:m=>m}),o=Math.max(1,Math.ceil(((r==null?void 0:r.totalCount)??0)/Ht)),h=(a-1)*Ht+((r==null?void 0:r.items.length)??0);return N.useEffect(()=>{const m=a+1;m<=o&&t.prefetchQuery(uu(m,Ht))},[a,o,t]),c.jsxs("div",{className:"page",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Documents"}),c.jsx("p",{className:"muted",children:"Indexed document inventory ordered by latest update."})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"Documents"})}),c.jsx(_e,{children:i?c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Showing ",h," of ",(r==null?void 0:r.totalCount)??0," documents"]}),c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Path"}),c.jsx(Se,{children:"Kind"}),c.jsx(Se,{children:"Language"}),c.jsx(Se,{children:"Updated"})]})}),c.jsx(Dn,{children:((r==null?void 0:r.items)??[]).map(m=>c.jsxs(tt,{children:[c.jsx(we,{children:m.path}),c.jsx(we,{children:m.kind}),c.jsx(we,{children:m.language??"-"}),c.jsx(we,{className:"text-muted-foreground",children:sa(m.updatedAt)})]},m.id))})]}),c.jsx(zm,{currentPage:a,totalPages:o,basePath:"/documents"})]})})]})]})}const FO=bn("/changelog")({component:HO});function HO(){const{data:t,isLoading:a,error:r}=Ln({queryKey:["changelog"],queryFn:()=>tn.getChangelog()});if(a)return c.jsxs("div",{className:"page",children:[c.jsx("h1",{children:"Changelog"}),c.jsx("p",{className:"muted text-sm",children:"Loading..."})]});if(r||!(t!=null&&t.content))return c.jsxs("div",{className:"page",children:[c.jsx("h1",{children:"Changelog"}),c.jsx(Ce,{children:c.jsx(_e,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:r?r.message:"No changelog found."})})})]});const i=qO(t.content);return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{children:"Changelog"}),c.jsx("p",{className:"muted text-sm",children:"Release history for OpenEZ Graph."})]}),c.jsx("div",{className:"flex flex-col gap-4",children:i.map(o=>c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Ze,{className:"text-base font-mono",children:o.version}),o.date&&c.jsx("span",{className:"text-xs text-muted-foreground",children:o.date}),o.summary&&c.jsx("span",{className:"text-sm text-muted-foreground",children:o.summary})]})}),c.jsx(_e,{children:c.jsx("div",{className:"flex flex-col gap-3",children:o.groups.map(u=>c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-1.5 uppercase tracking-wider",children:u.label}),c.jsx("ul",{className:"flex flex-col gap-1",children:u.items.map((h,m)=>c.jsxs("li",{className:"text-sm flex gap-2",children:[c.jsx("span",{className:"text-muted-foreground shrink-0",children:"•"}),c.jsx("span",{children:h})]},m))})]},u.label))})})]},o.version))})]})}function qO(t){var h,m;const a=[],r=/^##\s+\[([^\]]+)\](?:\s*-\s*(\d{4}-\d{2}-\d{2}))?(.*)$/gm,i=["Added","Changed","Deprecated","Removed","Fixed","Security"];let o;const u=[];for(;(o=r.exec(t))!==null;)u.push({version:o[1],date:((h=o[2])==null?void 0:h.trim())||void 0,summary:((m=o[3])==null?void 0:m.trim())||void 0,start:o.index+o[0].length});for(let g=0;g<u.length;g++){const p=g+1<u.length?t.indexOf("## ",u[g+1].start-200):t.length,v=t.slice(u[g].start,p>u[g].start?p:t.length).trim(),y=[],x=new RegExp(`^###\\s+(${i.join("|")})\\s*$`,"gm");let j;const w=[];for(;(j=x.exec(v))!==null;)w.push({label:j[1],start:j.index+j[0].length});if(w.length===0){const S=v.split(`
348
- `).filter(E=>E.trim().startsWith("-")).map(E=>E.trim().slice(1).trim());S.length>0&&y.push({label:"Changes",items:S})}else for(let S=0;S<w.length;S++){const E=S+1<w.length?v.indexOf("### ",w[S+1].start-10):v.length,C=v.slice(w[S].start,E>w[S].start?E:v.length).trim().split(`
349
- `).filter(T=>T.trim().startsWith("-")).map(T=>T.trim().slice(1).trim());C.length>0&&y.push({label:w[S].label,items:C})}a.push({version:u[g].version,date:u[g].date,summary:u[g].summary,groups:y})}return a}const GO=bn("/benchmark")({component:IO});function IO(){const{data:t,isLoading:a,error:r}=Ln(Lm());if(a)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading measured retrieval data..."})});if(r)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"text-destructive",children:r.message})});if(!t)return null;const i=[{label:"Code queries",value:t.totalQueries.toLocaleString(),detail:"Recorded code_query calls",icon:$0},{label:"Response tokens",value:t.totalTokensReturned.toLocaleString(),detail:"Serialized responses",icon:uR},{label:"Context avoided",value:t.totalTokensSaved.toLocaleString(),detail:"Evidence-based estimate",icon:Mm},{label:"Candidate files",value:t.totalFilesScanned.toLocaleString(),detail:"Ranked retrieval candidates",icon:yR}];return c.jsxs("div",{className:"page mx-auto w-full max-w-6xl",children:[c.jsxs("header",{className:"border-b pb-5",children:[c.jsx(qt,{variant:"secondary",className:"mb-3",children:"Live workspace telemetry"}),c.jsx("h1",{children:"Agent retrieval evidence"}),c.jsx("p",{className:"muted mt-1",children:"Measured MCP payload size and the indexed full-file context it replaces."})]}),c.jsx("section",{className:"grid gap-0 overflow-hidden rounded-lg border sm:grid-cols-2 xl:grid-cols-4",children:i.map(({label:o,value:u,detail:h,icon:m},g)=>c.jsxs("div",{className:`min-w-0 p-5 ${g>0?"border-t sm:border-l sm:border-t-0":""}`,children:[c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3 text-sm text-muted-foreground",children:[c.jsx("span",{children:o}),c.jsx(m,{className:"h-4 w-4 text-foreground"})]}),c.jsx("div",{className:"text-2xl font-semibold tabular-nums",children:u}),c.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:h})]},o))}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Ce,{children:[c.jsxs(Xe,{children:[c.jsx(Ze,{children:"Measurement method"}),c.jsx(wh,{children:t.metricMethod})]}),c.jsxs(_e,{className:"space-y-3 text-sm",children:[c.jsxs("p",{children:[c.jsx("strong",{children:"Response tokens"})," are counted from the complete serialized MCP response."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Context avoided"})," equals all indexed tokens in selected full files minus response tokens, floored at zero."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Candidate files"})," means ranked retrieval candidates; it is not a claim about SQLite files physically scanned."]})]})]}),c.jsxs(Ce,{children:[c.jsxs(Xe,{children:[c.jsx(Ze,{children:"What this does not prove"}),c.jsx(wh,{children:"Token efficiency and retrieval correctness are separate checks."})]}),c.jsxs(_e,{className:"space-y-3 text-sm text-muted-foreground",children:[c.jsx("p",{children:"These numbers do not claim that an agent completed a task correctly."}),c.jsx("p",{children:"Recall and MRR must come from a dated, reproducible retrieval run; they are no longer hard-coded into this dashboard."}),c.jsx("p",{children:"Agent task completion should be compared separately against the same tasks using direct file reads."})]})]})]}),c.jsxs(Ce,{children:[c.jsxs(Xe,{children:[c.jsx(Ze,{children:"Recent code queries"}),c.jsx(wh,{children:"Latest evidence recorded for the active workspace."})]}),c.jsx(_e,{children:t.recentQueries.length===0?c.jsx("p",{className:"muted",children:"No MCP query metrics recorded yet."}):c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Query"}),c.jsx(Se,{children:"Results"}),c.jsx(Se,{children:"Response tokens"}),c.jsx(Se,{children:"Context avoided"}),c.jsx(Se,{children:"Candidates"})]})}),c.jsx(Dn,{children:t.recentQueries.map(o=>c.jsxs(tt,{children:[c.jsx(we,{className:"max-w-[320px] truncate font-medium",children:o.query}),c.jsx(we,{children:o.resultCount}),c.jsx(we,{children:o.tokensReturned.toLocaleString()}),c.jsx(we,{children:o.tokensSaved.toLocaleString()}),c.jsx(we,{children:o.filesScanned})]},o.id))})]})})]})]})}const QO=bn("/")({loader:async({context:t})=>{await t.queryClient.ensureQueryData(Om)},component:VO});function VO(){var o;const{data:t,isLoading:a,error:r}=Ln(Om),{data:i}=Ln(Lm((o=t==null?void 0:t.workspace)==null?void 0:o.id));return a?c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})}):r?c.jsx("div",{className:"page",children:c.jsx("p",{className:"text-destructive",children:r.message})}):t?c.jsxs("div",{className:"page",children:[c.jsxs("div",{children:[c.jsx("h1",{children:t.workspace.name}),c.jsx("p",{className:"muted",children:t.workspace.root})]}),c.jsx("section",{className:"-mx-6 border-y bg-muted/20 px-6 py-5",children:c.jsxs("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx(qt,{variant:"secondary",className:"mb-3",children:"Live code_query telemetry"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Measured agent context"}),c.jsx("p",{className:"muted mt-1 text-sm",children:"Actual serialized MCP responses compared with the indexed full files they replace."})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Queries"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:(i==null?void 0:i.totalQueries)??0})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Response tokens"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:((i==null?void 0:i.totalTokensReturned)??0).toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Context avoided"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:((i==null?void 0:i.totalTokensSaved)??0).toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Candidate files"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:(i==null?void 0:i.totalFilesScanned)??0})]})]}),c.jsxs(yt,{to:"/benchmark",className:p1({variant:"outline",className:"shrink-0"}),children:["Method details ",c.jsx(im,{className:"h-4 w-4"})]})]})}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"Index state"})}),c.jsxs(_e,{className:"grid gap-3",children:[c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Documents"}),c.jsx("strong",{children:t.stats.documents})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Chunks"}),c.jsx("strong",{children:t.stats.chunks})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Graph nodes"}),c.jsx("strong",{children:t.stats.graphNodes})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Graph edges"}),c.jsx("strong",{children:t.stats.graphEdges})]}),c.jsxs("div",{className:"stat",children:[c.jsx("span",{children:"Memories"}),c.jsx("strong",{children:t.stats.memories})]})]})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"Latest runs"})}),c.jsx(_e,{children:t.recentRuns.length===0?c.jsx("p",{className:"muted",children:"No index runs recorded yet."}):c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Mode"}),c.jsx(Se,{children:"Status"}),c.jsx(Se,{children:"Files"}),c.jsx(Se,{children:"Started"})]})}),c.jsx(Dn,{children:t.recentRuns.map(u=>c.jsxs(tt,{children:[c.jsx(we,{children:u.mode}),c.jsx(we,{children:u.status}),c.jsxs(we,{children:[u.filesUpdated,"/",u.filesScanned]}),c.jsx(we,{children:sa(u.startedAt)})]},u.id))})]})})]})]}),c.jsxs("div",{className:"grid cols-2",children:[c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"Recent documents"})}),c.jsx(_e,{children:c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Path"}),c.jsx(Se,{children:"Kind"})]})}),c.jsx(Dn,{children:t.recentDocuments.map(u=>c.jsxs(tt,{children:[c.jsx(we,{children:u.path}),c.jsx(we,{children:u.kind})]},u.id))})]})})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"Recent memories"})}),c.jsx(_e,{children:c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Title"}),c.jsx(Se,{children:"Source"})]})}),c.jsx(Dn,{children:t.recentMemories.map(u=>c.jsxs(tt,{children:[c.jsx(we,{children:u.title}),c.jsx(we,{children:u.source})]},u.id))})]})})]})]}),i&&i.totalQueries>0&&c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsxs(Ze,{className:"flex items-center gap-2",children:[c.jsx(Mm,{className:"h-4 w-4 text-emerald-600"}),"Agent context evidence"]})}),c.jsxs(_e,{children:[c.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Total queries"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:i.totalQueries})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Tokens returned"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:i.totalTokensReturned.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Estimated context avoided"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums text-emerald-600",children:i.totalTokensSaved.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Avg tokens/query"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:i.avgTokensPerQuery.toLocaleString()})]})]}),c.jsx("p",{className:"mt-4 text-xs text-muted-foreground",children:"Context avoided is an estimate: token count of selected full files minus the serialized MCP response, floored at zero."}),i.recentQueries.length>0&&c.jsxs(Mn,{className:"mt-4",children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Query"}),c.jsx(Se,{children:"Results"}),c.jsx(Se,{children:"Tokens"}),c.jsx(Se,{children:"Avoided estimate"}),c.jsx(Se,{children:"Candidates"})]})}),c.jsx(Dn,{children:i.recentQueries.map(u=>c.jsxs(tt,{children:[c.jsx(we,{className:"font-medium max-w-[200px] truncate",children:u.query}),c.jsx(we,{children:u.resultCount}),c.jsx(we,{children:u.tokensReturned.toLocaleString()}),c.jsx(we,{className:"text-emerald-600",children:u.tokensSaved.toLocaleString()}),c.jsx(we,{children:u.filesScanned})]},u.id))})]})]})]})]}):null}const YO={pending:"outline",indexing:"secondary",indexed:"default",error:"destructive",running:"secondary",completed:"default",failed:"destructive"};function Ma({status:t,className:a}){return c.jsx(qt,{variant:YO[t]??"outline",className:a,children:t})}const $O=bn("/workspaces/")({loader:({context:t})=>t.queryClient.ensureQueryData(Dm),component:XO,validateSearch:t=>({page:Math.max(1,parseInt(t.page??"",10)||1)})});function XO(){const t=Er(),{page:a}=qi({from:"/workspaces/"}),{data:r,isLoading:i,error:o}=Ln(Dm);if(i)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})});if(o||r&&!r.ok){const p=r&&!r.ok?r:null;return c.jsxs("div",{className:"page",children:[c.jsx("div",{className:"flex items-center justify-between",children:c.jsxs("div",{children:[c.jsx("h1",{children:"Workspaces"}),c.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]})}),c.jsx(Ce,{className:"border-destructive",children:c.jsxs(_e,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(K0,{className:"h-12 w-12 text-destructive mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),c.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),p&&"error"in p&&c.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:p.error})]})})]})}const u=(r==null?void 0:r.data)??[],h=Math.max(1,Math.ceil(u.length/Ht)),m=Math.min(a,h),{paged:g}=eC(u,m);return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{children:"Workspaces"}),c.jsx("p",{className:"muted",children:"Manage indexed codebases and projects."})]}),c.jsx(yt,{to:"/workspaces/new",children:c.jsxs(ht,{children:[c.jsx(om,{className:"h-4 w-4"}),"New Workspace"]})})]}),u.length===0?c.jsx(Ce,{children:c.jsxs(_e,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(lm,{className:"h-12 w-12 text-muted-foreground mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"No workspaces yet"}),c.jsx("p",{className:"muted text-center mb-6 max-w-sm",children:"Create your first workspace to start indexing a codebase."}),c.jsx(yt,{to:"/workspaces/new",children:c.jsxs(ht,{children:[c.jsx(om,{className:"h-4 w-4"}),"Create Workspace"]})})]})}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",g.length," of ",u.length," workspaces"]}),c.jsx("div",{className:"space-y-4",children:g.map(p=>c.jsx(yt,{to:"/workspaces/$workspaceId",params:{workspaceId:p.id},className:"block",onMouseEnter:()=>t.prefetchQuery(Ui(p.id)),children:c.jsx(Ce,{className:"hover:bg-muted/50 transition-colors",children:c.jsx(_e,{className:"p-4",children:c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h2",{className:"text-lg font-medium truncate",children:p.name}),c.jsx(Ma,{status:p.status})]}),c.jsx("p",{className:"muted text-sm truncate mb-3",children:p.rootPath}),c.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(X0,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{className:"text-muted-foreground",children:[p.documentCount??0," docs"]})]}),c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(_u,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsxs("span",{className:"text-muted-foreground",children:[p.chunkCount??0," chunks"]})]}),(p.nodeCount??0)>0&&c.jsx("div",{className:"flex items-center gap-1.5",children:c.jsxs("span",{className:"text-muted-foreground",children:[p.nodeCount," nodes"]})})]})]}),c.jsxs("div",{className:"text-right text-sm",children:[c.jsxs("div",{className:"flex gap-2 mb-1",children:[c.jsx(Ma,{status:p.indexingStatus}),c.jsx(Ma,{status:p.graphStatus})]}),c.jsxs("p",{className:"muted text-xs",children:["Last indexed: ",sa(p.lastIndexedAt)]})]})]})})})},p.id))}),c.jsx(zm,{currentPage:m,totalPages:h,basePath:"/workspaces/"})]})]})}const ZO=bn("/workspaces/new")({component:KO}),Gx=`src/**/*.{ts,tsx,js,jsx}
350
- app/**/*.{ts,tsx}
351
- pages/**/*.{ts,tsx}
352
- lib/**/*.{ts,tsx}
353
- **/*.md`,Ix=`node_modules/**
354
- **/node_modules/**
355
- .next/**
356
- dist/**
357
- build/**
358
- .git/**
359
- coverage/**
360
- **/.turbo/**`;function KO(){const t=Rm(),[a,r]=N.useState(!1),[i,o]=N.useState(null),[u,h]=N.useState(null),[m,g]=N.useState(null);async function p(y){if(!y.trim()){h(null),g(null);return}try{const x=await tn.validatePath(y);h(x.valid),g(x.valid?null:x.error??"Invalid path")}catch{h(!1),g("Validation failed")}}async function v(y){y.preventDefault(),r(!0),o(null);try{const x=new FormData(y.currentTarget),j=await tn.createWorkspace({name:x.get("name"),rootPath:x.get("rootPath"),includeGlobs:(x.get("includeGlobs")||Gx).split(`
361
- `).map(w=>w.trim()).filter(Boolean),excludeGlobs:(x.get("excludeGlobs")||Ix).split(`
362
- `).map(w=>w.trim()).filter(Boolean)});j.success&&j.workspace?t({to:"/workspaces/$workspaceId",params:{workspaceId:j.workspace.id}}):o(j.error??"Failed to create workspace")}catch(x){o(x instanceof Error?x.message:"Failed to create workspace")}finally{r(!1)}}return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[c.jsx(yt,{to:"/workspaces",search:{page:1},children:c.jsx(ht,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h1",{children:"New Workspace"}),c.jsx("p",{className:"muted",children:"Register a local codebase for indexing."})]})]}),c.jsx("form",{onSubmit:v,children:c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(lm,{className:"h-5 w-5 text-muted-foreground"}),c.jsx(Ze,{children:"Workspace Configuration"})]})}),c.jsxs(_e,{className:"space-y-8",children:[i&&c.jsx("div",{className:"bg-destructive/10 text-destructive text-sm p-3 rounded-md",children:i}),c.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx(ft,{htmlFor:"name",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(NR,{className:"h-3.5 w-3.5"}),"Workspace Name"]})}),c.jsx(Ts,{id:"name",name:"name",placeholder:"my-project",required:!0,pattern:"[a-zA-Z0-9_-]+",title:"Letters, numbers, hyphens, and underscores only"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Used as the workspace ID. Letters, numbers, hyphens, and underscores."})]}),c.jsxs("div",{children:[c.jsx(ft,{htmlFor:"rootPath",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(lm,{className:"h-3.5 w-3.5"}),"Root Path"]})}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(Ts,{id:"rootPath",name:"rootPath",placeholder:"/path/to/project",required:!0,onBlur:y=>p(y.target.value),className:"pr-10"}),u===!0&&c.jsx(Y0,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-primary"}),u===!1&&c.jsx(Jb,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-destructive"})]}),c.jsx(ht,{type:"button",variant:"secondary",className:"shrink-0",onClick:()=>{const y=document.getElementById("rootPath");y!=null&&y.value&&p(y.value)},children:"Validate"})]}),m&&c.jsx("p",{className:"mt-2 text-xs text-destructive",children:m}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Absolute path to the project root directory."})]})]}),c.jsxs("div",{className:"grid gap-6 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx(ft,{htmlFor:"includeGlobs",className:"mb-2 block",children:c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(mR,{className:"h-3.5 w-3.5"}),"Include Patterns"]})}),c.jsx(hu,{id:"includeGlobs",name:"includeGlobs",defaultValue:Gx,rows:6,className:"font-mono text-sm"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to index. One per line."})]}),c.jsxs("div",{children:[c.jsxs(ft,{htmlFor:"excludeGlobs",className:"mb-2 block",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(Jb,{className:"h-3.5 w-3.5"}),"Exclude Patterns"]}),c.jsx(qt,{variant:"outline",className:"ml-2 text-xs px-1 py-0",children:"optional"})]}),c.jsx(hu,{id:"excludeGlobs",name:"excludeGlobs",defaultValue:Ix,rows:6,className:"font-mono text-sm"}),c.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Glob patterns for files to exclude. One per line."})]})]}),c.jsxs("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-2",children:[c.jsx(yt,{to:"/workspaces",search:{page:1},className:"sm:order-1",children:c.jsx(ht,{type:"button",variant:"secondary",className:"w-full sm:w-auto",children:"Cancel"})}),c.jsxs(ht,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:[a&&c.jsx(to,{className:"h-4 w-4 animate-spin"}),"Create Workspace"]})]})]})]})})]})}const WO=bn("/workspaces/$workspaceId")({component:JO});function JO(){return c.jsx(Ru,{})}const e3=bn("/workspaces/$workspaceId/")({loader:async({context:t,params:a})=>{await t.queryClient.ensureQueryData(Ui(a.workspaceId)),t.queryClient.prefetchQuery(Au(a.workspaceId))},component:t3});function Qx({status:t}){return t==="running"?c.jsx(to,{className:"h-4 w-4 animate-spin text-muted-foreground"}):t==="completed"?c.jsx(Y0,{className:"h-4 w-4 text-primary"}):t==="failed"?c.jsx(V0,{className:"h-4 w-4 text-destructive"}):c.jsx(oR,{className:"h-4 w-4 text-muted-foreground"})}function Vx(t,a){if(!a)return"Running...";const r=new Date(a).getTime()-new Date(t).getTime();return r<1e3?"<1s":r<6e4?`${Math.round(r/1e3)}s`:`${Math.round(r/6e4)}m ${Math.round(r%6e4/1e3)}s`}function t3(){const{workspaceId:t}=Eu({from:"/workspaces/$workspaceId"}),a=Er(),{data:r,isLoading:i}=Ln(Ui(t)),{data:o}=Ln(Lm(t)),u=()=>{a.prefetchQuery(Ui(t))},h=()=>{a.prefetchQuery(Au(t))};if(i)return c.jsx("div",{className:"page",children:c.jsx("p",{className:"muted",children:"Loading..."})});if(!r||!r.ok)return c.jsx("div",{className:"page",children:c.jsx(Ce,{className:"border-destructive",children:c.jsxs(_e,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx(K0,{className:"h-12 w-12 text-destructive mb-4"}),c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"}),c.jsx("p",{className:"muted text-center mb-4 max-w-md",children:"Could not open the registry database."}),c.jsx("p",{className:"text-sm text-destructive text-center max-w-md",children:r&&"error"in r?r.error:"Unknown error"})]})})});const m=r.data;if(!m)return c.jsx("div",{className:"page",children:c.jsx(Ce,{children:c.jsxs(_e,{className:"flex flex-col items-center justify-center py-16",children:[c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"}),c.jsx("p",{className:"muted",children:"Workspace not found."}),c.jsx(yt,{to:"/workspaces",search:{page:1},children:c.jsx(ht,{variant:"secondary",className:"mt-4",children:"Back to workspaces"})})]})})});const g=m.nodeCount>0||m.edgeCount>0;return c.jsxs("div",{className:"page",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[c.jsx(yt,{to:"/workspaces",search:{page:1},children:c.jsx(ht,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("h1",{children:m.name}),c.jsx(Ma,{status:m.status})]}),c.jsx("p",{className:"muted text-sm",children:m.rootPath})]})]}),c.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-6",children:[c.jsx(Ce,{children:c.jsx(_e,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Cu,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.documentCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Documents"})]})]})})}),c.jsx(Ce,{children:c.jsx(_e,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(X0,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.chunkCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Chunks"})]})]})})}),c.jsx(Ce,{children:c.jsx(_e,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(jR,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.nodeCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Nodes"})]})]})})}),c.jsx(Ce,{children:c.jsx(_e,{className:"p-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(fR,{className:"h-5 w-5 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-2xl font-semibold",children:m.edgeCount}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Graph Edges"})]})]})})})]}),c.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[c.jsx(yt,{to:"/query",search:{workspaceId:t},onMouseEnter:u,children:c.jsxs(ht,{variant:"outline",children:[c.jsx(OR,{className:"h-4 w-4"})," Try Query"]})}),g&&c.jsx(yt,{to:"/workspaces/$workspaceId/graph",params:{workspaceId:t},onMouseEnter:h,children:c.jsx(ht,{variant:"secondary",children:"Open Graph Explorer"})})]}),c.jsxs(Ce,{className:"mb-6",children:[c.jsx(Xe,{className:"pb-3",children:c.jsx(Ze,{className:"text-base",children:"Indexing Control"})}),c.jsxs(_e,{className:"space-y-3",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"The default local workflow uses the CLI to index a workspace."}),c.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 font-mono text-sm",children:[c.jsxs("div",{children:["openez index ",m.rootPath]}),c.jsxs("div",{children:["openez status ",m.rootPath]})]})]})]}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2 mb-6",children:[c.jsxs(Ce,{children:[c.jsx(Xe,{className:"pb-3",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Ze,{className:"text-base",children:"Indexing"}),c.jsx(Ma,{status:m.indexingStatus})]})}),c.jsx(_e,{children:m.latestIndexRun?c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Qx,{status:m.latestIndexRun.status}),c.jsxs("span",{className:"text-sm",children:[m.latestIndexRun.mode," —"," ",m.latestIndexRun.status]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Files scanned:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.filesScanned})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Files updated:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.filesUpdated})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Chunks written:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.chunksWritten??0})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Embeddings:"})," ",c.jsx("span",{className:"font-medium",children:m.latestIndexRun.embeddingsWritten??0})]})]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",sa(m.latestIndexRun.startedAt),m.latestIndexRun.finishedAt&&c.jsxs(c.Fragment,{children:[" ","· Duration:"," ",Vx(m.latestIndexRun.startedAt,m.latestIndexRun.finishedAt)]})]}),m.latestIndexRun.errorMessage&&c.jsx("p",{className:"text-xs text-destructive",children:m.latestIndexRun.errorMessage})]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:"No indexing runs yet."})})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{className:"pb-3",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Ze,{className:"text-base",children:"Graph"}),c.jsx(Ma,{status:m.graphStatus})]})}),c.jsx(_e,{children:m.latestGraphRun?c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Qx,{status:m.latestGraphRun.status}),c.jsxs("span",{className:"text-sm",children:[m.latestGraphRun.mode," —"," ",m.latestGraphRun.status]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Nodes:"})," ",c.jsx("span",{className:"font-medium",children:m.latestGraphRun.nodesCreated??0})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Edges:"})," ",c.jsx("span",{className:"font-medium",children:m.latestGraphRun.edgesCreated??0})]})]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Started: ",sa(m.latestGraphRun.startedAt),m.latestGraphRun.finishedAt&&c.jsxs(c.Fragment,{children:[" ","· Duration:"," ",Vx(m.latestGraphRun.startedAt,m.latestGraphRun.finishedAt)]})]}),m.latestGraphRun.errorMessage&&c.jsx("p",{className:"text-xs text-destructive",children:m.latestGraphRun.errorMessage})]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:m.indexingStatus==="completed"?"Graph data is derived during indexing.":"Index workspace first to populate graph data."})})]})]}),o&&o.totalQueries>0&&c.jsxs(Ce,{className:"mb-6",children:[c.jsx(Xe,{className:"pb-3",children:c.jsxs(Ze,{className:"flex items-center gap-2 text-base",children:[c.jsx(Mm,{className:"h-4 w-4 text-emerald-600"}),"Token Savings"]})}),c.jsxs(_e,{children:[c.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4 mb-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Total queries"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:o.totalQueries})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Tokens returned"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:o.totalTokensReturned.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Tokens saved"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums text-emerald-600",children:o.totalTokensSaved.toLocaleString()})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Avg tokens/query"}),c.jsx("div",{className:"mt-1 text-xl font-semibold tabular-nums",children:o.avgTokensPerQuery.toLocaleString()})]})]}),o.recentQueries.length>0&&c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Query"}),c.jsx(Se,{children:"Results"}),c.jsx(Se,{children:"Tokens"}),c.jsx(Se,{children:"Saved"}),c.jsx(Se,{children:"Files"})]})}),c.jsx(Dn,{children:o.recentQueries.map(p=>c.jsxs(tt,{children:[c.jsx(we,{className:"font-medium max-w-50 truncate",children:p.query}),c.jsx(we,{children:p.resultCount}),c.jsx(we,{children:p.tokensReturned.toLocaleString()}),c.jsx(we,{className:"text-emerald-600",children:p.tokensSaved.toLocaleString()}),c.jsx(we,{children:p.filesScanned})]},p.id))})]})]})]}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{className:"text-base",children:"Recent Index Runs"})}),c.jsx(_e,{children:m.recentIndexRuns.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:"No index runs yet."}):c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Mode"}),c.jsx(Se,{children:"Status"}),c.jsx(Se,{children:"Files"}),c.jsx(Se,{children:"Started"})]})}),c.jsx(Dn,{children:m.recentIndexRuns.map(p=>c.jsxs(tt,{children:[c.jsx(we,{children:p.mode}),c.jsx(we,{children:c.jsx(Ma,{status:p.status})}),c.jsxs(we,{children:[p.filesUpdated,"/",p.filesScanned]}),c.jsx(we,{className:"text-muted-foreground",children:sa(p.startedAt)})]},p.id))})]})})]}),c.jsxs(Ce,{children:[c.jsx(Xe,{children:c.jsx(Ze,{className:"text-base",children:"Recent Graph Runs"})}),c.jsx(_e,{children:m.recentGraphRuns.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph runs yet."}):c.jsxs(Mn,{children:[c.jsx(On,{children:c.jsxs(tt,{children:[c.jsx(Se,{children:"Mode"}),c.jsx(Se,{children:"Status"}),c.jsx(Se,{children:"Nodes"}),c.jsx(Se,{children:"Started"})]})}),c.jsx(Dn,{children:m.recentGraphRuns.map(p=>c.jsxs(tt,{children:[c.jsx(we,{children:p.mode}),c.jsx(we,{children:c.jsx(Ma,{status:p.status})}),c.jsx(we,{children:p.nodesCreated}),c.jsx(we,{className:"text-muted-foreground",children:sa(p.startedAt)})]},p.id))})]})})]})]}),m.lastError&&c.jsx(Ce,{className:"mt-4 border-destructive",children:c.jsx(_e,{className:"p-4",children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx(V0,{className:"h-4 w-4 text-destructive mt-0.5"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-destructive",children:"Last Error"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:m.lastError})]})]})})})]})}const n3="modulepreload",a3=function(t){return"/"+t},Yx={},s3=function(a,r,i){let o=Promise.resolve();if(r&&r.length>0){let h=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=h(r.map(p=>{if(p=a3(p),p in Yx)return;Yx[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const x=document.createElement("link");if(x.rel=v?"stylesheet":n3,v||(x.as="script"),x.crossOrigin="",x.href=p,g&&x.setAttribute("nonce",g),document.head.appendChild(x),v)return new Promise((j,w)=>{x.addEventListener("load",j),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&u(m.reason);return a().catch(u)})};function r3({nodeTypes:t,edgeTypes:a}){return c.jsxs("div",{className:"flex flex-wrap gap-4 text-xs",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"font-medium text-muted-foreground",children:"Nodes"}),t.map(r=>c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-3 w-3 rounded-full",style:{backgroundColor:MO(r)}}),c.jsx("span",{className:"text-muted-foreground",children:r})]},r))]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"font-medium text-muted-foreground",children:"Edges"}),a.slice(0,6).map(r=>c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"h-0.5 w-3 rounded-full",style:{backgroundColor:OO(r)}}),c.jsx("span",{className:"text-muted-foreground",children:r})]},r))]})]})}const i3=N.lazy(()=>s3(()=>import("./WorkspaceGraph-CjFEeMKT.js"),[]).then(t=>({default:t.WorkspaceGraph})));function l3({graphData:t}){const[a,r]=N.useState(!1),[i,o]=N.useState(null),[u,h]=N.useState(""),[m,g]=N.useState(()=>new Set(t.nodeTypes)),[p,v]=N.useState(()=>new Set(t.edgeTypes)),[y,x]=N.useState(null),[j,w]=N.useState(null);N.useEffect(()=>{r(!0)},[]);const S=N.useMemo(()=>{const z=new Map;for(const H of t.nodes)z.set(H.id,H);return z},[t.nodes]),E=N.useMemo(()=>{const z=new Map;for(const H of t.edges){const X=z.get(H.target);X?X.push(H):z.set(H.target,[H])}return z},[t.edges]),_=N.useMemo(()=>{const z=new Map;for(const H of t.edges){const X=z.get(H.source);X?X.push(H):z.set(H.source,[H])}return z},[t.edges]),C=N.useMemo(()=>{if(!i)return null;const z=E.get(i)??[],H=_.get(i)??[];return{incoming:z,outgoing:H}},[i,E,_]),T=N.useMemo(()=>t.nodes.filter(z=>!(u&&!z.label.toLowerCase().includes(u.toLowerCase())||m.size>0&&!m.has(z.type))),[t.nodes,u,m]),A=N.useMemo(()=>{const z=new Set(T.map(H=>H.id));return t.edges.filter(H=>!(!z.has(H.source)||!z.has(H.target)||p.size>0&&!p.has(H.type)))},[t.edges,T,p]),B=N.useCallback(z=>{if(!z){o(null),w(null);return}o(z),w(S.get(z)??null)},[S]),q=N.useCallback(z=>{x(z)},[]),k=z=>{const H=new Set(m);H.has(z)?H.delete(z):H.add(z),g(H)},D=z=>{const H=new Set(p);H.has(z)?H.delete(z):H.add(z),v(H)};return a?c.jsxs("div",{className:"relative flex-1 min-h-0 overflow-hidden bg-[#171717]",children:[c.jsx("div",{className:"absolute left-3 top-3 z-10 max-h-[calc(100%-1.5rem)] w-64 overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 p-3 shadow-2xl backdrop-blur-xl",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(ft,{htmlFor:"search",className:"text-xs",children:"Search"}),c.jsxs("div",{className:"relative",children:[c.jsx(_u,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),c.jsx(Ts,{id:"search",placeholder:"Node label...",value:u,onChange:z=>h(z.target.value),className:"pl-8 h-8 text-sm"}),u&&c.jsx("button",{type:"button",onClick:()=>h(""),"aria-label":"Clear search",className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Bi,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-foreground"})})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(ft,{className:"text-xs",children:"Node Types"}),c.jsx("div",{className:"flex flex-wrap gap-1",children:t.nodeTypes.map(z=>c.jsx("button",{type:"button",onClick:()=>k(z),"aria-pressed":m.has(z),className:`px-2 py-0.5 text-xs rounded border transition-colors ${m.has(z)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:z},z))})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(ft,{className:"text-xs",children:"Edge Types"}),c.jsx("div",{className:"flex flex-wrap gap-1",children:t.edgeTypes.map(z=>c.jsx("button",{type:"button",onClick:()=>D(z),"aria-pressed":p.has(z),className:`px-2 py-0.5 text-xs rounded border transition-colors ${p.has(z)?"bg-primary text-primary-foreground border-primary":"bg-muted text-muted-foreground border-transparent hover:border-border"}`,children:z},z))})]}),c.jsxs("div",{className:"pt-2 border-t",children:[c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",T.length.toLocaleString()," of ",t.totalNodes.toLocaleString()," nodes"]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:[A.length.toLocaleString()," of ",t.totalEdges.toLocaleString()," edges"]}),t.totalNodes>t.nodes.length&&c.jsxs("p",{className:"text-xs text-amber-500/80 mt-1",children:[t.nodes.length.toLocaleString()," nodes loaded (limit)"]})]}),c.jsx("div",{className:"pt-2 border-t",children:c.jsx(r3,{nodeTypes:t.nodeTypes,edgeTypes:t.edgeTypes})})]})}),c.jsxs("div",{className:"absolute inset-0",children:[c.jsx(N.Suspense,{fallback:c.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[#171717]",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(to,{className:"h-4 w-4 animate-spin"}),c.jsx("span",{children:"Loading graph renderer..."})]})}),children:c.jsx(i3,{nodes:T,edges:A,selectedNodeId:i,onNodeClick:B,onNodeHover:q,className:"absolute inset-0"})}),y&&!i&&(()=>{const z=S.get(y);return z?c.jsxs("div",{className:"pointer-events-none absolute bottom-4 left-4 max-w-sm rounded-md border border-white/10 bg-[#202020]/95 px-3 py-2 shadow-xl backdrop-blur-xl",children:[c.jsx("p",{className:"text-sm font-medium",children:z.label}),c.jsx("p",{className:"text-xs text-muted-foreground",children:z.type})]}):null})()]}),j&&c.jsxs("div",{className:"absolute bottom-3 right-3 top-3 z-20 w-[min(20rem,calc(100%-1.5rem))] overflow-y-auto rounded-lg border border-white/10 bg-[#202020]/95 shadow-2xl backdrop-blur-xl",children:[c.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[c.jsx("h3",{className:"font-medium text-sm",children:"Inspector"}),c.jsx("button",{type:"button","aria-label":"Close inspector",onClick:()=>{o(null),w(null)},className:"text-muted-foreground hover:text-foreground",children:c.jsx(Bi,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"p-4 space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{children:[c.jsx(ft,{className:"text-xs text-muted-foreground",children:"Label"}),c.jsx("p",{className:"text-sm font-mono break-all",children:j.label})]}),c.jsxs("div",{children:[c.jsx(ft,{className:"text-xs text-muted-foreground",children:"Type"}),c.jsx("p",{className:"text-sm",children:c.jsx(qt,{variant:"outline",children:j.type})})]}),c.jsxs("div",{children:[c.jsx(ft,{className:"text-xs text-muted-foreground",children:"Degree"}),c.jsxs("p",{className:"text-sm",children:[j.degree," connections"]})]}),j.path&&c.jsxs("div",{children:[c.jsx(ft,{className:"text-xs text-muted-foreground",children:"Path"}),c.jsx("p",{className:"text-sm font-mono text-xs break-all",children:j.path})]}),(j.startLine||j.endLine)&&c.jsxs("div",{children:[c.jsx(ft,{className:"text-xs text-muted-foreground",children:"Lines"}),c.jsxs("p",{className:"text-sm font-mono",children:[j.startLine??"?","-",j.endLine??"?"]})]})]}),C&&c.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[c.jsxs(ft,{className:"text-xs text-muted-foreground",children:["Connections (",C.incoming.length+C.outgoing.length,")"]}),C.incoming.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Incoming"}),C.incoming.slice(0,5).map(z=>{const H=S.get(z.source);return c.jsxs("button",{type:"button",onClick:()=>B(z.source),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[c.jsxs("span",{className:"text-muted-foreground",children:[z.type,":"]})," ",c.jsx("span",{className:"font-mono truncate",children:(H==null?void 0:H.label)??z.source})]},z.id)})]}),C.outgoing.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Outgoing"}),C.outgoing.slice(0,5).map(z=>{const H=S.get(z.target);return c.jsxs("button",{type:"button",onClick:()=>B(z.target),className:"block w-full text-left px-2 py-1 text-xs rounded hover:bg-muted",children:[c.jsxs("span",{className:"text-muted-foreground",children:[z.type,":"]})," ",c.jsx("span",{className:"font-mono truncate",children:(H==null?void 0:H.label)??z.target})]},z.id)})]})]}),Object.keys(j.metadata??{}).length>0&&c.jsxs("div",{className:"space-y-2 pt-2 border-t",children:[c.jsx(ft,{className:"text-xs text-muted-foreground",children:"Metadata"}),c.jsx("pre",{className:"text-xs bg-muted rounded p-2 overflow-auto max-h-40",children:JSON.stringify(j.metadata,null,2)})]})]})]})]}):c.jsx("div",{className:"flex flex-1 items-center justify-center bg-background",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(to,{className:"h-4 w-4 animate-spin"}),c.jsx("span",{children:"Loading graph interface..."})]})})}const o3=bn("/workspaces/$workspaceId/graph")({loader:async({context:t,params:a})=>{await Promise.all([t.queryClient.ensureQueryData(Ui(a.workspaceId)),t.queryClient.ensureQueryData(Au(a.workspaceId))])},component:c3});function c3(){const{workspaceId:t}=Eu({from:"/workspaces/$workspaceId/graph"}),{data:a}=Ln(Ui(t)),{data:r}=Ln(Au(t));if(!(a!=null&&a.ok))return c.jsx("div",{className:"page",children:c.jsx(Ce,{className:"border-destructive",children:c.jsx(_e,{className:"flex flex-col items-center justify-center py-16",children:c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Registry unavailable"})})})});const i=a.data;if(!i)return c.jsx("div",{className:"page",children:c.jsx(Ce,{children:c.jsx(_e,{className:"flex flex-col items-center justify-center py-16",children:c.jsx("h2",{className:"text-lg font-medium mb-2",children:"Not Found"})})})});const o=!!r&&r.nodes.length>0;return c.jsxs("div",{className:"-m-6 flex h-svh flex-col overflow-hidden bg-[#171717]",children:[c.jsx("div",{className:"z-20 border-b border-white/10 bg-[#202020]/95 backdrop-blur-xl",children:c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx(yt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(ht,{variant:"ghost",size:"icon",children:c.jsx(zi,{className:"h-4 w-4"})})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h1",{className:"text-sm font-semibold",children:"Graph view"}),c.jsx(qt,{variant:"outline",children:i.name})]}),c.jsx("p",{className:"text-xs text-muted-foreground",children:r?c.jsxs(c.Fragment,{children:[r.totalNodes.toLocaleString()," nodes ·"," ",r.totalEdges.toLocaleString()," edges"]}):c.jsx(c.Fragment,{children:"No graph data"})})]})]}),c.jsx(Ma,{status:i.graphStatus})]})}),o?r&&r.nodes.length>0?c.jsx(l3,{graphData:r}):null:c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs(Ce,{className:"max-w-md",children:[c.jsx(Xe,{children:c.jsx(Ze,{children:"No Graph Data"})}),c.jsxs(_e,{className:"space-y-4",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"No graph data was found for this workspace."}),c.jsx(yt,{to:"/workspaces/$workspaceId",params:{workspaceId:t},children:c.jsx(ht,{variant:"secondary",children:"Go to Workspace"})})]})]})})]})}const Hu=hM.update({id:"/workspaces",path:"/workspaces",getParentRoute:()=>Pa}),u3=mM.update({id:"/settings",path:"/settings",getParentRoute:()=>Pa}),d3=TO.update({id:"/query",path:"/query",getParentRoute:()=>Pa}),f3=DO.update({id:"/memories",path:"/memories",getParentRoute:()=>Pa}),h3=UO.update({id:"/documents",path:"/documents",getParentRoute:()=>Pa}),m3=FO.update({id:"/changelog",path:"/changelog",getParentRoute:()=>Pa}),p3=GO.update({id:"/benchmark",path:"/benchmark",getParentRoute:()=>Pa}),g3=QO.update({id:"/",path:"/",getParentRoute:()=>Pa}),y3=$O.update({id:"/",path:"/",getParentRoute:()=>Hu}),v3=ZO.update({id:"/new",path:"/new",getParentRoute:()=>Hu}),rp=WO.update({id:"/$workspaceId",path:"/$workspaceId",getParentRoute:()=>Hu}),b3=e3.update({id:"/",path:"/",getParentRoute:()=>rp}),x3=o3.update({id:"/graph",path:"/graph",getParentRoute:()=>rp}),S3={WorkspacesWorkspaceIdGraphRoute:x3,WorkspacesWorkspaceIdIndexRoute:b3},w3=rp._addFileChildren(S3),j3={WorkspacesWorkspaceIdRoute:w3,WorkspacesNewRoute:v3,WorkspacesIndexRoute:y3},E3=Hu._addFileChildren(j3),N3={IndexRoute:g3,BenchmarkRoute:p3,ChangelogRoute:m3,DocumentsRoute:h3,MemoriesRoute:f3,QueryRoute:d3,SettingsRoute:u3,WorkspacesRoute:E3},R3=Pa._addFileChildren(N3)._addFileTypes(),US=new LN({defaultOptions:{queries:{staleTime:1e3*60*60,refetchOnMount:!1,refetchOnWindowFocus:!1}}}),C3=iN({routeTree:R3,context:{queryClient:US}}),$x=document.getElementById("root");$x.innerHTML||mE.createRoot($x).render(c.jsx(br.StrictMode,{children:c.jsx(zN,{client:US,children:c.jsx(cN,{router:C3})})}));export{MO as a,OO as g,c as j,N as r};