@goondocks/myco 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/dist/{chunk-LDKXXKF6.js → chunk-2ZIBCEYO.js} +4 -4
- package/dist/{chunk-PQWQC3RF.js → chunk-4XVKZ3WA.js} +137 -146
- package/dist/chunk-4XVKZ3WA.js.map +1 -0
- package/dist/{chunk-MWW62YZP.js → chunk-7WHF2OIZ.js} +21 -19
- package/dist/chunk-7WHF2OIZ.js.map +1 -0
- package/dist/{chunk-JSK7L46L.js → chunk-ERG2IEWX.js} +22 -4
- package/dist/{chunk-JSK7L46L.js.map → chunk-ERG2IEWX.js.map} +1 -1
- package/dist/{chunk-RXJHB7W4.js → chunk-FPRXMJLT.js} +2 -2
- package/dist/{chunk-RY76WEN3.js → chunk-GENQ5QGP.js} +2 -2
- package/dist/{chunk-YG6MLLGL.js → chunk-HYVT345Y.js} +2 -2
- package/dist/{chunk-WBLTISAK.js → chunk-J4D4CROB.js} +32 -6
- package/dist/chunk-J4D4CROB.js.map +1 -0
- package/dist/{chunk-IWBWZQK6.js → chunk-MDLSAFPP.js} +2 -2
- package/dist/{chunk-HRGHDMYI.js → chunk-NL6WQO56.js} +2 -2
- package/dist/{chunk-V5R6O6RP.js → chunk-NLUE6CYG.js} +3 -3
- package/dist/{chunk-CQ4RKK67.js → chunk-O6PERU7U.js} +2 -2
- package/dist/{chunk-XNAM6Z4O.js → chunk-P723N2LP.js} +2 -2
- package/dist/{chunk-CK24O5YQ.js → chunk-QN4W3JUA.js} +2 -2
- package/dist/{chunk-ALBVNGCF.js → chunk-UP4P4OAA.js} +55 -44
- package/dist/{chunk-ALBVNGCF.js.map → chunk-UP4P4OAA.js.map} +1 -1
- package/dist/{chunk-CPVXNRGW.js → chunk-YIQLYIHW.js} +4 -4
- package/dist/{chunk-25DJSF2K.js → chunk-YTFXA4RX.js} +3 -3
- package/dist/{chunk-RNWALAFP.js → chunk-Z74SDEKE.js} +2 -2
- package/dist/chunk-Z74SDEKE.js.map +1 -0
- package/dist/{cli-LMBBPV2D.js → cli-IHILSS6N.js} +20 -20
- package/dist/{client-FDKJ4BY7.js → client-AGFNR2S4.js} +5 -5
- package/dist/{config-HDUFDOQN.js → config-IBS6KOLQ.js} +3 -3
- package/dist/{curate-DYE4VCBJ.js → curate-3D4GHKJH.js} +9 -10
- package/dist/{curate-DYE4VCBJ.js.map → curate-3D4GHKJH.js.map} +1 -1
- package/dist/{detect-providers-I2QQFDJW.js → detect-providers-XEP4QA3R.js} +3 -3
- package/dist/{digest-PNHFM7JJ.js → digest-7HLJXL77.js} +11 -11
- package/dist/{init-7N7F6W6U.js → init-ARQ53JOR.js} +8 -8
- package/dist/{main-3JZDUJLU.js → main-6AGPIMH2.js} +1972 -374
- package/dist/main-6AGPIMH2.js.map +1 -0
- package/dist/{rebuild-WXKQ5HZO.js → rebuild-Q2ACEB6F.js} +9 -10
- package/dist/{rebuild-WXKQ5HZO.js.map → rebuild-Q2ACEB6F.js.map} +1 -1
- package/dist/{reprocess-PKRDV67L.js → reprocess-CDEFGQOV.js} +11 -11
- package/dist/{restart-WSJRHRHI.js → restart-XCMILOL5.js} +6 -6
- package/dist/{search-SWMJ4MZ3.js → search-7W25SKCB.js} +6 -6
- package/dist/{server-NTRVB5ZM.js → server-6UDN35QN.js} +11 -11
- package/dist/{session-start-KQ4KCQMZ.js → session-start-K6IGAC7H.js} +9 -9
- package/dist/setup-digest-X5PN27F4.js +15 -0
- package/dist/setup-llm-S5OHQJXK.js +15 -0
- package/dist/src/cli.js +4 -4
- package/dist/src/daemon/main.js +4 -4
- package/dist/src/hooks/post-tool-use.js +5 -5
- package/dist/src/hooks/session-end.js +5 -5
- package/dist/src/hooks/session-start.js +4 -4
- package/dist/src/hooks/stop.js +7 -7
- package/dist/src/hooks/user-prompt-submit.js +5 -5
- package/dist/src/mcp/server.js +4 -4
- package/dist/src/prompts/extraction.md +4 -4
- package/dist/{stats-2OUQSEZO.js → stats-TTSDXGJV.js} +6 -6
- package/dist/ui/assets/index-08wKT7wS.css +1 -0
- package/dist/ui/assets/index-CMSMi4Jb.js +369 -0
- package/dist/ui/index.html +2 -2
- package/dist/{verify-MG5O7SBU.js → verify-TOWQHPBX.js} +6 -6
- package/dist/{version-NKOECSVH.js → version-36RVCQA6.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-MWW62YZP.js.map +0 -1
- package/dist/chunk-PQWQC3RF.js.map +0 -1
- package/dist/chunk-RNWALAFP.js.map +0 -1
- package/dist/chunk-WBLTISAK.js.map +0 -1
- package/dist/main-3JZDUJLU.js.map +0 -1
- package/dist/setup-digest-BOYOSM4B.js +0 -15
- package/dist/setup-llm-PCZ64ALK.js +0 -15
- package/dist/ui/assets/index-Bk4X_8-Z.css +0 -1
- package/dist/ui/assets/index-D3SY7ZHY.js +0 -299
- /package/dist/{chunk-LDKXXKF6.js.map → chunk-2ZIBCEYO.js.map} +0 -0
- /package/dist/{chunk-RXJHB7W4.js.map → chunk-FPRXMJLT.js.map} +0 -0
- /package/dist/{chunk-RY76WEN3.js.map → chunk-GENQ5QGP.js.map} +0 -0
- /package/dist/{chunk-YG6MLLGL.js.map → chunk-HYVT345Y.js.map} +0 -0
- /package/dist/{chunk-IWBWZQK6.js.map → chunk-MDLSAFPP.js.map} +0 -0
- /package/dist/{chunk-HRGHDMYI.js.map → chunk-NL6WQO56.js.map} +0 -0
- /package/dist/{chunk-V5R6O6RP.js.map → chunk-NLUE6CYG.js.map} +0 -0
- /package/dist/{chunk-CQ4RKK67.js.map → chunk-O6PERU7U.js.map} +0 -0
- /package/dist/{chunk-XNAM6Z4O.js.map → chunk-P723N2LP.js.map} +0 -0
- /package/dist/{chunk-CK24O5YQ.js.map → chunk-QN4W3JUA.js.map} +0 -0
- /package/dist/{chunk-CPVXNRGW.js.map → chunk-YIQLYIHW.js.map} +0 -0
- /package/dist/{chunk-25DJSF2K.js.map → chunk-YTFXA4RX.js.map} +0 -0
- /package/dist/{cli-LMBBPV2D.js.map → cli-IHILSS6N.js.map} +0 -0
- /package/dist/{client-FDKJ4BY7.js.map → client-AGFNR2S4.js.map} +0 -0
- /package/dist/{config-HDUFDOQN.js.map → config-IBS6KOLQ.js.map} +0 -0
- /package/dist/{detect-providers-I2QQFDJW.js.map → detect-providers-XEP4QA3R.js.map} +0 -0
- /package/dist/{digest-PNHFM7JJ.js.map → digest-7HLJXL77.js.map} +0 -0
- /package/dist/{init-7N7F6W6U.js.map → init-ARQ53JOR.js.map} +0 -0
- /package/dist/{reprocess-PKRDV67L.js.map → reprocess-CDEFGQOV.js.map} +0 -0
- /package/dist/{restart-WSJRHRHI.js.map → restart-XCMILOL5.js.map} +0 -0
- /package/dist/{search-SWMJ4MZ3.js.map → search-7W25SKCB.js.map} +0 -0
- /package/dist/{server-NTRVB5ZM.js.map → server-6UDN35QN.js.map} +0 -0
- /package/dist/{session-start-KQ4KCQMZ.js.map → session-start-K6IGAC7H.js.map} +0 -0
- /package/dist/{setup-digest-BOYOSM4B.js.map → setup-digest-X5PN27F4.js.map} +0 -0
- /package/dist/{setup-llm-PCZ64ALK.js.map → setup-llm-S5OHQJXK.js.map} +0 -0
- /package/dist/{stats-2OUQSEZO.js.map → stats-TTSDXGJV.js.map} +0 -0
- /package/dist/{verify-MG5O7SBU.js.map → verify-TOWQHPBX.js.map} +0 -0
- /package/dist/{version-NKOECSVH.js.map → version-36RVCQA6.js.map} +0 -0
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
var Kg=n=>{throw TypeError(n)};var ld=(n,l,r)=>l.has(n)||Kg("Cannot "+r);var _=(n,l,r)=>(ld(n,l,"read from private field"),r?r.call(n):l.get(n)),ce=(n,l,r)=>l.has(n)?Kg("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,r),ne=(n,l,r,s)=>(ld(n,l,"write to private field"),s?s.call(n,r):l.set(n,r),r),Se=(n,l,r)=>(ld(n,l,"access private method"),r);var Wo=(n,l,r,s)=>({set _(u){ne(n,l,u,r)},get _(){return _(n,l,s)}});function QE(n,l){for(var r=0;r<l.length;r++){const s=l[r];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function fh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var id={exports:{}},ls={};/**
|
|
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 Pg;function XE(){if(Pg)return ls;Pg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:h,ref:u!==void 0?u:null,props:f}}return ls.Fragment=l,ls.jsx=r,ls.jsxs=r,ls}var Zg;function KE(){return Zg||(Zg=1,id.exports=XE()),id.exports}var d=KE(),rd={exports:{}},ge={};/**
|
|
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 Fg;function PE(){if(Fg)return ge;Fg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function C(R){return R===null||typeof R!="object"?null:(R=w&&R[w]||R["@@iterator"],typeof R=="function"?R:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function N(R,G,J){this.props=R,this.context=G,this.refs=T,this.updater=J||A}N.prototype.isReactComponent={},N.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,G,"setState")},N.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function j(){}j.prototype=N.prototype;function M(R,G,J){this.props=R,this.context=G,this.refs=T,this.updater=J||A}var z=M.prototype=new j;z.constructor=M,E(z,N.prototype),z.isPureReactComponent=!0;var V=Array.isArray;function P(){}var Y={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function ae(R,G,J){var le=J.ref;return{$$typeof:n,type:R,key:G,ref:le!==void 0?le:null,props:J}}function ie(R,G){return ae(R.type,G,R.props)}function oe(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function W(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(J){return G[J]})}var pe=/\/+/g;function ue(R,G){return typeof R=="object"&&R!==null&&R.key!=null?W(""+R.key):G.toString(36)}function de(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(P,P):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function U(R,G,J,le,me){var ve=typeof R;(ve==="undefined"||ve==="boolean")&&(R=null);var ee=!1;if(R===null)ee=!0;else switch(ve){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(R.$$typeof){case n:case l:ee=!0;break;case x:return ee=R._init,U(ee(R._payload),G,J,le,me)}}if(ee)return me=me(R),ee=le===""?"."+ue(R,0):le,V(me)?(J="",ee!=null&&(J=ee.replace(pe,"$&/")+"/"),U(me,G,J,"",function(De){return De})):me!=null&&(oe(me)&&(me=ie(me,J+(me.key==null||R&&R.key===me.key?"":(""+me.key).replace(pe,"$&/")+"/")+ee)),G.push(me)),1;ee=0;var be=le===""?".":le+":";if(V(R))for(var we=0;we<R.length;we++)le=R[we],ve=be+ue(le,we),ee+=U(le,G,J,ve,me);else if(we=C(R),typeof we=="function")for(R=we.call(R),we=0;!(le=R.next()).done;)le=le.value,ve=be+ue(le,we++),ee+=U(le,G,J,ve,me);else if(ve==="object"){if(typeof R.then=="function")return U(de(R),G,J,le,me);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Z(R,G,J){if(R==null)return R;var le=[],me=0;return U(R,le,"","",function(ve){return G.call(J,ve,me++)}),le}function F(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(J){(R._status===0||R._status===-1)&&(R._status=1,R._result=J)},function(J){(R._status===0||R._status===-1)&&(R._status=2,R._result=J)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var $=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},te={map:Z,forEach:function(R,G,J){Z(R,function(){G.apply(this,arguments)},J)},count:function(R){var G=0;return Z(R,function(){G++}),G},toArray:function(R){return Z(R,function(G){return G})||[]},only:function(R){if(!oe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return ge.Activity=b,ge.Children=te,ge.Component=N,ge.Fragment=r,ge.Profiler=u,ge.PureComponent=M,ge.StrictMode=s,ge.Suspense=g,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ge.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Y.H.useMemoCache(R)}},ge.cache=function(R){return function(){return R.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(R,G,J){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var le=E({},R.props),me=R.key;if(G!=null)for(ve in G.key!==void 0&&(me=""+G.key),G)!I.call(G,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&G.ref===void 0||(le[ve]=G[ve]);var ve=arguments.length-2;if(ve===1)le.children=J;else if(1<ve){for(var ee=Array(ve),be=0;be<ve;be++)ee[be]=arguments[be+2];le.children=ee}return ae(R.type,me,le)},ge.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},ge.createElement=function(R,G,J){var le,me={},ve=null;if(G!=null)for(le in G.key!==void 0&&(ve=""+G.key),G)I.call(G,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(me[le]=G[le]);var ee=arguments.length-2;if(ee===1)me.children=J;else if(1<ee){for(var be=Array(ee),we=0;we<ee;we++)be[we]=arguments[we+2];me.children=be}if(R&&R.defaultProps)for(le in ee=R.defaultProps,ee)me[le]===void 0&&(me[le]=ee[le]);return ae(R,ve,me)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(R){return{$$typeof:m,render:R}},ge.isValidElement=oe,ge.lazy=function(R){return{$$typeof:x,_payload:{_status:-1,_result:R},_init:F}},ge.memo=function(R,G){return{$$typeof:v,type:R,compare:G===void 0?null:G}},ge.startTransition=function(R){var G=Y.T,J={};Y.T=J;try{var le=R(),me=Y.S;me!==null&&me(J,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(P,$)}catch(ve){$(ve)}finally{G!==null&&J.types!==null&&(G.types=J.types),Y.T=G}},ge.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ge.use=function(R){return Y.H.use(R)},ge.useActionState=function(R,G,J){return Y.H.useActionState(R,G,J)},ge.useCallback=function(R,G){return Y.H.useCallback(R,G)},ge.useContext=function(R){return Y.H.useContext(R)},ge.useDebugValue=function(){},ge.useDeferredValue=function(R,G){return Y.H.useDeferredValue(R,G)},ge.useEffect=function(R,G){return Y.H.useEffect(R,G)},ge.useEffectEvent=function(R){return Y.H.useEffectEvent(R)},ge.useId=function(){return Y.H.useId()},ge.useImperativeHandle=function(R,G,J){return Y.H.useImperativeHandle(R,G,J)},ge.useInsertionEffect=function(R,G){return Y.H.useInsertionEffect(R,G)},ge.useLayoutEffect=function(R,G){return Y.H.useLayoutEffect(R,G)},ge.useMemo=function(R,G){return Y.H.useMemo(R,G)},ge.useOptimistic=function(R,G){return Y.H.useOptimistic(R,G)},ge.useReducer=function(R,G,J){return Y.H.useReducer(R,G,J)},ge.useRef=function(R){return Y.H.useRef(R)},ge.useState=function(R){return Y.H.useState(R)},ge.useSyncExternalStore=function(R,G,J){return Y.H.useSyncExternalStore(R,G,J)},ge.useTransition=function(){return Y.H.useTransition()},ge.version="19.2.4",ge}var Ig;function dh(){return Ig||(Ig=1,rd.exports=PE()),rd.exports}var y=dh();const oa=fh(y),E0=QE({__proto__:null,default:oa},[y]);var sd={exports:{}},is={},od={exports:{}},ud={};/**
|
|
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 $g;function ZE(){return $g||($g=1,(function(n){function l(U,Z){var F=U.length;U.push(Z);e:for(;0<F;){var $=F-1>>>1,te=U[$];if(0<u(te,Z))U[$]=Z,U[F]=te,F=$;else break e}}function r(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var Z=U[0],F=U.pop();if(F!==Z){U[0]=F;e:for(var $=0,te=U.length,R=te>>>1;$<R;){var G=2*($+1)-1,J=U[G],le=G+1,me=U[le];if(0>u(J,F))le<te&&0>u(me,J)?(U[$]=me,U[le]=F,$=le):(U[$]=J,U[G]=F,$=G);else if(le<te&&0>u(me,F))U[$]=me,U[le]=F,$=le;else break e}}return Z}function u(U,Z){var F=U.sortIndex-Z.sortIndex;return F!==0?F:U.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var g=[],v=[],x=1,b=null,w=3,C=!1,A=!1,E=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function z(U){for(var Z=r(v);Z!==null;){if(Z.callback===null)s(v);else if(Z.startTime<=U)s(v),Z.sortIndex=Z.expirationTime,l(g,Z);else break;Z=r(v)}}function V(U){if(E=!1,z(U),!A)if(r(g)!==null)A=!0,P||(P=!0,W());else{var Z=r(v);Z!==null&&de(V,Z.startTime-U)}}var P=!1,Y=-1,I=5,ae=-1;function ie(){return T?!0:!(n.unstable_now()-ae<I)}function oe(){if(T=!1,P){var U=n.unstable_now();ae=U;var Z=!0;try{e:{A=!1,E&&(E=!1,j(Y),Y=-1),C=!0;var F=w;try{t:{for(z(U),b=r(g);b!==null&&!(b.expirationTime>U&&ie());){var $=b.callback;if(typeof $=="function"){b.callback=null,w=b.priorityLevel;var te=$(b.expirationTime<=U);if(U=n.unstable_now(),typeof te=="function"){b.callback=te,z(U),Z=!0;break t}b===r(g)&&s(g),z(U)}else s(g);b=r(g)}if(b!==null)Z=!0;else{var R=r(v);R!==null&&de(V,R.startTime-U),Z=!1}}break e}finally{b=null,w=F,C=!1}Z=void 0}}finally{Z?W():P=!1}}}var W;if(typeof M=="function")W=function(){M(oe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ue=pe.port2;pe.port1.onmessage=oe,W=function(){ue.postMessage(null)}}else W=function(){N(oe,0)};function de(U,Z){Y=N(function(){U(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(U){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var F=w;w=Z;try{return U()}finally{w=F}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(U,Z){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var F=w;w=U;try{return Z()}finally{w=F}},n.unstable_scheduleCallback=function(U,Z,F){var $=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?$+F:$):F=$,U){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=F+te,U={id:x++,callback:Z,priorityLevel:U,startTime:F,expirationTime:te,sortIndex:-1},F>$?(U.sortIndex=F,l(v,U),r(g)===null&&U===r(v)&&(E?(j(Y),Y=-1):E=!0,de(V,F-$))):(U.sortIndex=te,l(g,U),A||C||(A=!0,P||(P=!0,W()))),U},n.unstable_shouldYield=ie,n.unstable_wrapCallback=function(U){var Z=w;return function(){var F=w;w=Z;try{return U.apply(this,arguments)}finally{w=F}}}})(ud)),ud}var Jg;function FE(){return Jg||(Jg=1,od.exports=ZE()),od.exports}var cd={exports:{}},Et={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Wg;function IE(){if(Wg)return Et;Wg=1;var n=dh();function l(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)v+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,v,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:g,containerInfo:v,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Et.createPortal=function(g,v){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(l(299));return f(g,v,null,x)},Et.flushSync=function(g){var v=h.T,x=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=v,s.p=x,s.d.f()}},Et.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,s.d.C(g,v))},Et.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Et.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var x=v.as,b=m(x,v.crossOrigin),w=typeof v.integrity=="string"?v.integrity:void 0,C=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;x==="style"?s.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:C}):x==="script"&&s.d.X(g,{crossOrigin:b,integrity:w,fetchPriority:C,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Et.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var x=m(v.as,v.crossOrigin);s.d.M(g,{crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&s.d.M(g)},Et.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var x=v.as,b=m(x,v.crossOrigin);s.d.L(g,x,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Et.preloadModule=function(g,v){if(typeof g=="string")if(v){var x=m(v.as,v.crossOrigin);s.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else s.d.m(g)},Et.requestFormReset=function(g){s.d.r(g)},Et.unstable_batchedUpdates=function(g,v){return g(v)},Et.useFormState=function(g,v,x){return h.H.useFormState(g,v,x)},Et.useFormStatus=function(){return h.H.useHostTransitionStatus()},Et.version="19.2.4",Et}var ey;function w0(){if(ey)return cd.exports;ey=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),cd.exports=IE(),cd.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 ty;function $E(){if(ty)return is;ty=1;var n=FE(),l=dh(),r=w0();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=o,i=c;else{for(var p=!1,S=o.child;S;){if(S===a){p=!0,a=o,i=c;break}if(S===i){p=!0,i=o,a=c;break}S=S.sibling}if(!p){for(S=c.child;S;){if(S===a){p=!0,a=c,i=o;break}if(S===i){p=!0,i=c,a=o;break}S=S.sibling}if(!p)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),M=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case N:return"Profiler";case T:return"StrictMode";case V:return"Suspense";case P:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case M:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var de=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},$=[],te=-1;function R(e){return{current:e}}function G(e){0>te||(e.current=$[te],$[te]=null,te--)}function J(e,t){te++,$[te]=e.current,e.current=t}var le=R(null),me=R(null),ve=R(null),ee=R(null);function be(e,t){switch(J(ve,t),J(me,e),J(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pg(t),e=vg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(le),J(le,e)}function we(){G(le),G(me),G(ve)}function De(e){e.memoizedState!==null&&J(ee,e);var t=le.current,a=vg(t,e.type);t!==a&&(J(me,e),J(le,a))}function Me(e){me.current===e&&(G(le),G(me)),ee.current===e&&(G(ee),es._currentValue=F)}var ze,St;function dt(e){if(ze===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",St=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ze+e+St}var qn=!1;function Vn(e,t){if(!e||qn)return"";qn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(q){var k=q}Reflect.construct(e,[],K)}else{try{K.call()}catch(q){k=q}e.call(K.prototype)}}else{try{throw Error()}catch(q){k=q}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(q){if(q&&k&&typeof q.stack=="string")return[q.stack,k.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),p=c[0],S=c[1];if(p&&S){var O=p.split(`
|
|
44
|
-
`),B=S.split(`
|
|
45
|
-
`);for(o=i=0;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(i===O.length||o===B.length)for(i=O.length-1,o=B.length-1;1<=i&&0<=o&&O[i]!==B[o];)o--;for(;1<=i&&0<=o;i--,o--)if(O[i]!==B[o]){if(i!==1||o!==1)do if(i--,o--,0>o||O[i]!==B[o]){var Q=`
|
|
46
|
-
`+O[i].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=i&&0<=o);break}}}finally{qn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?dt(a):""}function fl(e,t){switch(e.tag){case 26:case 27:case 5:return dt(e.type);case 16:return dt("Lazy");case 13:return e.child!==t&&t!==null?dt("Suspense Fallback"):dt("Suspense");case 19:return dt("SuspenseList");case 0:case 15:return Vn(e.type,!1);case 11:return Vn(e.type.render,!1);case 1:return Vn(e.type,!0);case 31:return dt("Activity");default:return""}}function zs(e){try{var t="",a=null;do t+=fl(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
-
Error generating stack: `+i.message+`
|
|
48
|
-
`+i.stack}}var ya=Object.prototype.hasOwnProperty,Gu=n.unstable_scheduleCallback,Qu=n.unstable_cancelCallback,ES=n.unstable_shouldYield,wS=n.unstable_requestPaint,kt=n.unstable_now,CS=n.unstable_getCurrentPriorityLevel,Ph=n.unstable_ImmediatePriority,Zh=n.unstable_UserBlockingPriority,Ls=n.unstable_NormalPriority,TS=n.unstable_LowPriority,Fh=n.unstable_IdlePriority,RS=n.log,NS=n.unstable_setDisableYieldValue,dr=null,qt=null;function ba(e){if(typeof RS=="function"&&NS(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(dr,e)}catch{}}var Vt=Math.clz32?Math.clz32:_S,AS=Math.log,OS=Math.LN2;function _S(e){return e>>>=0,e===0?32:31-(AS(e)/OS|0)|0}var Us=256,Hs=262144,Bs=4194304;function dl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ks(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~c,i!==0?o=dl(i):(p&=S,p!==0?o=dl(p):a||(a=S&~e,a!==0&&(o=dl(a))))):(S=i&~c,S!==0?o=dl(S):p!==0?o=dl(p):a||(a=i&~e,a!==0&&(o=dl(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function hr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function jS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ih(){var e=Bs;return Bs<<=1,(Bs&62914560)===0&&(Bs=4194304),e}function Xu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function mr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function MS(e,t,a,i,o,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,O=e.expirationTimes,B=e.hiddenUpdates;for(a=p&~a;0<a;){var Q=31-Vt(a),K=1<<Q;S[Q]=0,O[Q]=-1;var k=B[Q];if(k!==null)for(B[Q]=null,Q=0;Q<k.length;Q++){var q=k[Q];q!==null&&(q.lane&=-536870913)}a&=~K}i!==0&&$h(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function $h(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Vt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Jh(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Vt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function Wh(e,t){var a=t&-t;return a=(a&42)!==0?1:Ku(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ku(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function em(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:kg(e.type))}function tm(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var xa=Math.random().toString(36).slice(2),vt="__reactFiber$"+xa,_t="__reactProps$"+xa,Fl="__reactContainer$"+xa,Zu="__reactEvents$"+xa,DS="__reactListeners$"+xa,zS="__reactHandles$"+xa,nm="__reactResources$"+xa,pr="__reactMarker$"+xa;function Fu(e){delete e[vt],delete e[_t],delete e[Zu],delete e[DS],delete e[zS]}function Il(e){var t=e[vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Fl]||a[vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wg(e);e!==null;){if(a=e[vt])return a;e=wg(e)}return t}e=a,a=e.parentNode}return null}function $l(e){if(e=e[vt]||e[Fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Jl(e){var t=e[nm];return t||(t=e[nm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[pr]=!0}var am=new Set,lm={};function hl(e,t){Wl(e,t),Wl(e+"Capture",t)}function Wl(e,t){for(lm[e]=t,e=0;e<t.length;e++)am.add(t[e])}var LS=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]*$"),im={},rm={};function US(e){return ya.call(rm,e)?!0:ya.call(im,e)?!1:LS.test(e)?rm[e]=!0:(im[e]=!0,!1)}function qs(e,t,a){if(US(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Vs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Yn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HS(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Iu(e){if(!e._valueTracker){var t=sm(e)?"checked":"value";e._valueTracker=HS(e,t,""+e[t])}}function om(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=sm(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Ys(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 BS=/[\n"\\]/g;function nn(e){return e.replace(BS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $u(e,t,a,i,o,c,p,S){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Ju(e,p,tn(t)):a!=null?Ju(e,p,tn(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+tn(S):e.removeAttribute("name")}function um(e,t,a,i,o,c,p,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Iu(e);return}a=a!=null?""+tn(a):"",t=t!=null?""+tn(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Iu(e)}function Ju(e,t,a){t==="number"&&Ys(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ei(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+tn(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function cm(e,t,a){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+tn(a):""}function fm(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(de(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=tn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),Iu(e)}function ti(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var kS=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 dm(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||kS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function hm(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&dm(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&dm(e,c,t[c])}function Wu(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 qS=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"]]),VS=/^[\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 Gs(e){return VS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gn(){}var ec=null;function tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ni=null,ai=null;function mm(e){var t=$l(e);if(t&&(e=t.stateNode)){var a=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if($u(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[_t]||null;if(!o)throw Error(s(90));$u(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&om(i)}break e;case"textarea":cm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ei(e,!!a.multiple,t,!1)}}}var nc=!1;function pm(e,t,a){if(nc)return e(t,a);nc=!0;try{var i=e(t);return i}finally{if(nc=!1,(ni!==null||ai!==null)&&(jo(),ni&&(t=ni,e=ai,ai=ni=null,mm(t),e)))for(t=0;t<e.length;t++)mm(e[t])}}function gr(e,t){var a=e.stateNode;if(a===null)return null;var i=a[_t]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ac=!1;if(Qn)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){ac=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch{ac=!1}var Sa=null,lc=null,Qs=null;function vm(){if(Qs)return Qs;var e,t=lc,a=t.length,i,o="value"in Sa?Sa.value:Sa.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(i=1;i<=p&&t[a-i]===o[c-i];i++);return Qs=o.slice(e,1<i?1-i:void 0)}function Xs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ks(){return!0}function gm(){return!1}function jt(e){function t(a,i,o,c,p){this._reactName=a,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ks:gm,this.isPropagationStopped=gm,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),t}var ml={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ps=jt(ml),br=b({},ml,{view:0,detail:0}),YS=jt(br),ic,rc,xr,Zs=b({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,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!==xr&&(xr&&e.type==="mousemove"?(ic=e.screenX-xr.screenX,rc=e.screenY-xr.screenY):rc=ic=0,xr=e),ic)},movementY:function(e){return"movementY"in e?e.movementY:rc}}),ym=jt(Zs),GS=b({},Zs,{dataTransfer:0}),QS=jt(GS),XS=b({},br,{relatedTarget:0}),sc=jt(XS),KS=b({},ml,{animationName:0,elapsedTime:0,pseudoElement:0}),PS=jt(KS),ZS=b({},ml,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FS=jt(ZS),IS=b({},ml,{data:0}),bm=jt(IS),$S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JS={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"},WS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WS[e])?!!t[e]:!1}function oc(){return e1}var t1=b({},br,{key:function(e){if(e.key){var t=$S[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(e){return e.type==="keypress"?Xs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n1=jt(t1),a1=b({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=jt(a1),l1=b({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),i1=jt(l1),r1=b({},ml,{propertyName:0,elapsedTime:0,pseudoElement:0}),s1=jt(r1),o1=b({},Zs,{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}),u1=jt(o1),c1=b({},ml,{newState:0,oldState:0}),f1=jt(c1),d1=[9,13,27,32],uc=Qn&&"CompositionEvent"in window,Sr=null;Qn&&"documentMode"in document&&(Sr=document.documentMode);var h1=Qn&&"TextEvent"in window&&!Sr,Sm=Qn&&(!uc||Sr&&8<Sr&&11>=Sr),Em=" ",wm=!1;function Cm(e,t){switch(e){case"keyup":return d1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function m1(e,t){switch(e){case"compositionend":return Tm(t);case"keypress":return t.which!==32?null:(wm=!0,Em);case"textInput":return e=t.data,e===Em&&wm?null:e;default:return null}}function p1(e,t){if(li)return e==="compositionend"||!uc&&Cm(e,t)?(e=vm(),Qs=lc=Sa=null,li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sm&&t.locale!=="ko"?null:t.data;default:return null}}var v1={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 Rm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v1[e.type]:t==="textarea"}function Nm(e,t,a,i){ni?ai?ai.push(i):ai=[i]:ni=i,t=Bo(t,"onChange"),0<t.length&&(a=new Ps("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Er=null,wr=null;function g1(e){ug(e,0)}function Fs(e){var t=vr(e);if(om(t))return e}function Am(e,t){if(e==="change")return t}var Om=!1;if(Qn){var cc;if(Qn){var fc="oninput"in document;if(!fc){var _m=document.createElement("div");_m.setAttribute("oninput","return;"),fc=typeof _m.oninput=="function"}cc=fc}else cc=!1;Om=cc&&(!document.documentMode||9<document.documentMode)}function jm(){Er&&(Er.detachEvent("onpropertychange",Mm),wr=Er=null)}function Mm(e){if(e.propertyName==="value"&&Fs(wr)){var t=[];Nm(t,wr,e,tc(e)),pm(g1,t)}}function y1(e,t,a){e==="focusin"?(jm(),Er=t,wr=a,Er.attachEvent("onpropertychange",Mm)):e==="focusout"&&jm()}function b1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fs(wr)}function x1(e,t){if(e==="click")return Fs(t)}function S1(e,t){if(e==="input"||e==="change")return Fs(t)}function E1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:E1;function Cr(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var o=a[i];if(!ya.call(t,o)||!Yt(e[o],t[o]))return!1}return!0}function Dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zm(e,t){var a=Dm(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Dm(a)}}function Lm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Um(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ys(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ys(e.document)}return t}function dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var w1=Qn&&"documentMode"in document&&11>=document.documentMode,ii=null,hc=null,Tr=null,mc=!1;function Hm(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;mc||ii==null||ii!==Ys(i)||(i=ii,"selectionStart"in i&&dc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Tr&&Cr(Tr,i)||(Tr=i,i=Bo(hc,"onSelect"),0<i.length&&(t=new Ps("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ii)))}function pl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ri={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},pc={},Bm={};Qn&&(Bm=document.createElement("div").style,"AnimationEvent"in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),"TransitionEvent"in window||delete ri.transitionend.transition);function vl(e){if(pc[e])return pc[e];if(!ri[e])return e;var t=ri[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Bm)return pc[e]=t[a];return e}var km=vl("animationend"),qm=vl("animationiteration"),Vm=vl("animationstart"),C1=vl("transitionrun"),T1=vl("transitionstart"),R1=vl("transitioncancel"),Ym=vl("transitionend"),Gm=new Map,vc="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(" ");vc.push("scrollEnd");function yn(e,t){Gm.set(e,t),hl(t,[e])}var Is=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},an=[],si=0,gc=0;function $s(){for(var e=si,t=gc=si=0;t<e;){var a=an[t];an[t++]=null;var i=an[t];an[t++]=null;var o=an[t];an[t++]=null;var c=an[t];if(an[t++]=null,i!==null&&o!==null){var p=i.pending;p===null?o.next=o:(o.next=p.next,p.next=o),i.pending=o}c!==0&&Qm(a,o,c)}}function Js(e,t,a,i){an[si++]=e,an[si++]=t,an[si++]=a,an[si++]=i,gc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function yc(e,t,a,i){return Js(e,t,a,i),Ws(e)}function gl(e,t){return Js(e,null,null,t),Ws(e)}function Qm(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Vt(a),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),c):null}function Ws(e){if(50<Pr)throw Pr=0,Af=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function N1(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,a,i){return new N1(e,t,a,i)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xn(e,t){var a=e.alternate;return a===null?(a=Gt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Xm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function eo(e,t,a,i,o,c){var p=0;if(i=e,typeof e=="function")bc(e)&&(p=1);else if(typeof e=="string")p=ME(e,a,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Gt(31,a,t,o),e.elementType=ae,e.lanes=c,e;case E:return yl(a.children,o,c,t);case T:p=8,o|=24;break;case N:return e=Gt(12,a,t,o|2),e.elementType=N,e.lanes=c,e;case V:return e=Gt(13,a,t,o),e.elementType=V,e.lanes=c,e;case P:return e=Gt(19,a,t,o),e.elementType=P,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:p=10;break e;case j:p=9;break e;case z:p=11;break e;case Y:p=14;break e;case I:p=16,i=null;break e}p=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=Gt(p,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function yl(e,t,a,i){return e=Gt(7,e,i,t),e.lanes=a,e}function xc(e,t,a){return e=Gt(6,e,null,t),e.lanes=a,e}function Km(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function Sc(e,t,a){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pm=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var a=Pm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:zs(t)},Pm.set(e,t),t)}return{value:e,source:t,stack:zs(t)}}var ui=[],ci=0,to=null,Rr=0,rn=[],sn=0,Ea=null,Rn=1,Nn="";function Kn(e,t){ui[ci++]=Rr,ui[ci++]=to,to=e,Rr=t}function Zm(e,t,a){rn[sn++]=Rn,rn[sn++]=Nn,rn[sn++]=Ea,Ea=e;var i=Rn;e=Nn;var o=32-Vt(i)-1;i&=~(1<<o),a+=1;var c=32-Vt(t)+o;if(30<c){var p=o-o%5;c=(i&(1<<p)-1).toString(32),i>>=p,o-=p,Rn=1<<32-Vt(t)+o|a<<o|i,Nn=c+e}else Rn=1<<c|a<<o|i,Nn=e}function Ec(e){e.return!==null&&(Kn(e,1),Zm(e,1,0))}function wc(e){for(;e===to;)to=ui[--ci],ui[ci]=null,Rr=ui[--ci],ui[ci]=null;for(;e===Ea;)Ea=rn[--sn],rn[sn]=null,Nn=rn[--sn],rn[sn]=null,Rn=rn[--sn],rn[sn]=null}function Fm(e,t){rn[sn++]=Rn,rn[sn++]=Nn,rn[sn++]=Ea,Rn=t.id,Nn=t.overflow,Ea=e}var gt=null,Pe=null,Oe=!1,wa=null,on=!1,Cc=Error(s(519));function Ca(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nr(ln(t,e)),Cc}function Im(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[vt]=e,t[_t]=i,a){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(a=0;a<Fr.length;a++)Re(Fr[a],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),um(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),fm(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||hg(t.textContent,a)?(i.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),i.onScroll!=null&&Re("scroll",t),i.onScrollEnd!=null&&Re("scrollend",t),i.onClick!=null&&(t.onclick=Gn),t=!0):t=!1,t||Ca(e,!0)}function $m(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:gt=gt.return}}function fi(e){if(e!==gt)return!1;if(!Oe)return $m(e),Oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Gf(e.type,e.memoizedProps)),a=!a),a&&Pe&&Ca(e),$m(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Pe=Eg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Pe=Eg(e)}else t===27?(t=Pe,Ba(e.type)?(e=Zf,Zf=null,Pe=e):Pe=t):Pe=gt?cn(e.stateNode.nextSibling):null;return!0}function bl(){Pe=gt=null,Oe=!1}function Tc(){var e=wa;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),wa=null),e}function Nr(e){wa===null?wa=[e]:wa.push(e)}var Rc=R(null),xl=null,Pn=null;function Ta(e,t,a){J(Rc,t._currentValue),t._currentValue=a}function Zn(e){e._currentValue=Rc.current,G(Rc)}function Nc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Ac(e,t,a,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=o;for(var O=0;O<t.length;O++)if(S.context===t[O]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),Nc(c.return,a,e),i||(p=null);break e}c=S.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),Nc(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function di(e,t,a,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var S=o.type;Yt(o.pendingProps.value,p.value)||(e!==null?e.push(S):e=[S])}}else if(o===ee.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(es):e=[es])}o=o.return}e!==null&&Ac(t,e,a,i),t.flags|=262144}function no(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sl(e){xl=e,Pn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return Jm(xl,e)}function ao(e,t){return xl===null&&Sl(e),Jm(e,t)}function Jm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Pn===null){if(e===null)throw Error(s(308));Pn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pn=Pn.next=t;return a}var A1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},O1=n.unstable_scheduleCallback,_1=n.unstable_NormalPriority,rt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oc(){return{controller:new A1,data:new Map,refCount:0}}function Ar(e){e.refCount--,e.refCount===0&&O1(_1,function(){e.controller.abort()})}var Or=null,_c=0,hi=0,mi=null;function j1(e,t){if(Or===null){var a=Or=[];_c=0,hi=zf(),mi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return _c++,t.then(Wm,Wm),t}function Wm(){if(--_c===0&&Or!==null){mi!==null&&(mi.status="fulfilled");var e=Or;Or=null,hi=0,mi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function M1(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var ep=U.S;U.S=function(e,t){Hv=kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&j1(e,t),ep!==null&&ep(e,t)};var El=R(null);function jc(){var e=El.current;return e!==null?e:Xe.pooledCache}function lo(e,t){t===null?J(El,El.current):J(El,t.pool)}function tp(){var e=jc();return e===null?null:{parent:rt._currentValue,pool:e}}var pi=Error(s(460)),Mc=Error(s(474)),io=Error(s(542)),ro={then:function(){}};function np(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ap(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Gn,Gn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ip(e),e;default:if(typeof t.status=="string")t.then(Gn,Gn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ip(e),e}throw Cl=t,pi}}function wl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Cl=a,pi):a}}var Cl=null;function lp(){if(Cl===null)throw Error(s(459));var e=Cl;return Cl=null,e}function ip(e){if(e===pi||e===io)throw Error(s(483))}var vi=null,_r=0;function so(e){var t=_r;return _r+=1,vi===null&&(vi=[]),ap(vi,e,t)}function jr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function oo(e,t){throw t.$$typeof===w?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rp(e){function t(L,D){if(e){var H=L.deletions;H===null?(L.deletions=[D],L.flags|=16):H.push(D)}}function a(L,D){if(!e)return null;for(;D!==null;)t(L,D),D=D.sibling;return null}function i(L){for(var D=new Map;L!==null;)L.key!==null?D.set(L.key,L):D.set(L.index,L),L=L.sibling;return D}function o(L,D){return L=Xn(L,D),L.index=0,L.sibling=null,L}function c(L,D,H){return L.index=H,e?(H=L.alternate,H!==null?(H=H.index,H<D?(L.flags|=67108866,D):H):(L.flags|=67108866,D)):(L.flags|=1048576,D)}function p(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function S(L,D,H,X){return D===null||D.tag!==6?(D=xc(H,L.mode,X),D.return=L,D):(D=o(D,H),D.return=L,D)}function O(L,D,H,X){var fe=H.type;return fe===E?Q(L,D,H.props.children,X,H.key):D!==null&&(D.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===I&&wl(fe)===D.type)?(D=o(D,H.props),jr(D,H),D.return=L,D):(D=eo(H.type,H.key,H.props,null,L.mode,X),jr(D,H),D.return=L,D)}function B(L,D,H,X){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=Sc(H,L.mode,X),D.return=L,D):(D=o(D,H.children||[]),D.return=L,D)}function Q(L,D,H,X,fe){return D===null||D.tag!==7?(D=yl(H,L.mode,X,fe),D.return=L,D):(D=o(D,H),D.return=L,D)}function K(L,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=xc(""+D,L.mode,H),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case C:return H=eo(D.type,D.key,D.props,null,L.mode,H),jr(H,D),H.return=L,H;case A:return D=Sc(D,L.mode,H),D.return=L,D;case I:return D=wl(D),K(L,D,H)}if(de(D)||W(D))return D=yl(D,L.mode,H,null),D.return=L,D;if(typeof D.then=="function")return K(L,so(D),H);if(D.$$typeof===M)return K(L,ao(L,D),H);oo(L,D)}return null}function k(L,D,H,X){var fe=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return fe!==null?null:S(L,D,""+H,X);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case C:return H.key===fe?O(L,D,H,X):null;case A:return H.key===fe?B(L,D,H,X):null;case I:return H=wl(H),k(L,D,H,X)}if(de(H)||W(H))return fe!==null?null:Q(L,D,H,X,null);if(typeof H.then=="function")return k(L,D,so(H),X);if(H.$$typeof===M)return k(L,D,ao(L,H),X);oo(L,H)}return null}function q(L,D,H,X,fe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return L=L.get(H)||null,S(D,L,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case C:return L=L.get(X.key===null?H:X.key)||null,O(D,L,X,fe);case A:return L=L.get(X.key===null?H:X.key)||null,B(D,L,X,fe);case I:return X=wl(X),q(L,D,H,X,fe)}if(de(X)||W(X))return L=L.get(H)||null,Q(D,L,X,fe,null);if(typeof X.then=="function")return q(L,D,H,so(X),fe);if(X.$$typeof===M)return q(L,D,H,ao(D,X),fe);oo(D,X)}return null}function re(L,D,H,X){for(var fe=null,Le=null,se=D,xe=D=0,Ae=null;se!==null&&xe<H.length;xe++){se.index>xe?(Ae=se,se=null):Ae=se.sibling;var Ue=k(L,se,H[xe],X);if(Ue===null){se===null&&(se=Ae);break}e&&se&&Ue.alternate===null&&t(L,se),D=c(Ue,D,xe),Le===null?fe=Ue:Le.sibling=Ue,Le=Ue,se=Ae}if(xe===H.length)return a(L,se),Oe&&Kn(L,xe),fe;if(se===null){for(;xe<H.length;xe++)se=K(L,H[xe],X),se!==null&&(D=c(se,D,xe),Le===null?fe=se:Le.sibling=se,Le=se);return Oe&&Kn(L,xe),fe}for(se=i(se);xe<H.length;xe++)Ae=q(se,L,xe,H[xe],X),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?xe:Ae.key),D=c(Ae,D,xe),Le===null?fe=Ae:Le.sibling=Ae,Le=Ae);return e&&se.forEach(function(Ga){return t(L,Ga)}),Oe&&Kn(L,xe),fe}function he(L,D,H,X){if(H==null)throw Error(s(151));for(var fe=null,Le=null,se=D,xe=D=0,Ae=null,Ue=H.next();se!==null&&!Ue.done;xe++,Ue=H.next()){se.index>xe?(Ae=se,se=null):Ae=se.sibling;var Ga=k(L,se,Ue.value,X);if(Ga===null){se===null&&(se=Ae);break}e&&se&&Ga.alternate===null&&t(L,se),D=c(Ga,D,xe),Le===null?fe=Ga:Le.sibling=Ga,Le=Ga,se=Ae}if(Ue.done)return a(L,se),Oe&&Kn(L,xe),fe;if(se===null){for(;!Ue.done;xe++,Ue=H.next())Ue=K(L,Ue.value,X),Ue!==null&&(D=c(Ue,D,xe),Le===null?fe=Ue:Le.sibling=Ue,Le=Ue);return Oe&&Kn(L,xe),fe}for(se=i(se);!Ue.done;xe++,Ue=H.next())Ue=q(se,L,xe,Ue.value,X),Ue!==null&&(e&&Ue.alternate!==null&&se.delete(Ue.key===null?xe:Ue.key),D=c(Ue,D,xe),Le===null?fe=Ue:Le.sibling=Ue,Le=Ue);return e&&se.forEach(function(GE){return t(L,GE)}),Oe&&Kn(L,xe),fe}function Qe(L,D,H,X){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case C:e:{for(var fe=H.key;D!==null;){if(D.key===fe){if(fe=H.type,fe===E){if(D.tag===7){a(L,D.sibling),X=o(D,H.props.children),X.return=L,L=X;break e}}else if(D.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===I&&wl(fe)===D.type){a(L,D.sibling),X=o(D,H.props),jr(X,H),X.return=L,L=X;break e}a(L,D);break}else t(L,D);D=D.sibling}H.type===E?(X=yl(H.props.children,L.mode,X,H.key),X.return=L,L=X):(X=eo(H.type,H.key,H.props,null,L.mode,X),jr(X,H),X.return=L,L=X)}return p(L);case A:e:{for(fe=H.key;D!==null;){if(D.key===fe)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){a(L,D.sibling),X=o(D,H.children||[]),X.return=L,L=X;break e}else{a(L,D);break}else t(L,D);D=D.sibling}X=Sc(H,L.mode,X),X.return=L,L=X}return p(L);case I:return H=wl(H),Qe(L,D,H,X)}if(de(H))return re(L,D,H,X);if(W(H)){if(fe=W(H),typeof fe!="function")throw Error(s(150));return H=fe.call(H),he(L,D,H,X)}if(typeof H.then=="function")return Qe(L,D,so(H),X);if(H.$$typeof===M)return Qe(L,D,ao(L,H),X);oo(L,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(a(L,D.sibling),X=o(D,H),X.return=L,L=X):(a(L,D),X=xc(H,L.mode,X),X.return=L,L=X),p(L)):a(L,D)}return function(L,D,H,X){try{_r=0;var fe=Qe(L,D,H,X);return vi=null,fe}catch(se){if(se===pi||se===io)throw se;var Le=Gt(29,se,null,L.mode);return Le.lanes=X,Le.return=L,Le}finally{}}}var Tl=rp(!0),sp=rp(!1),Ra=!1;function Dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(He&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=Ws(e),Qm(e,null,a),t}return Js(e,i,t,a),Ws(e)}function Mr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Jh(e,a)}}function Lc(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Uc=!1;function Dr(){if(Uc){var e=mi;if(e!==null)throw e}}function zr(e,t,a,i){Uc=!1;var o=e.updateQueue;Ra=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var O=S,B=O.next;O.next=null,p===null?c=B:p.next=B,p=O;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,S=Q.lastBaseUpdate,S!==p&&(S===null?Q.firstBaseUpdate=B:S.next=B,Q.lastBaseUpdate=O))}if(c!==null){var K=o.baseState;p=0,Q=B=O=null,S=c;do{var k=S.lane&-536870913,q=k!==S.lane;if(q?(Ne&k)===k:(i&k)===k){k!==0&&k===hi&&(Uc=!0),Q!==null&&(Q=Q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var re=e,he=S;k=t;var Qe=a;switch(he.tag){case 1:if(re=he.payload,typeof re=="function"){K=re.call(Qe,K,k);break e}K=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=he.payload,k=typeof re=="function"?re.call(Qe,K,k):re,k==null)break e;K=b({},K,k);break e;case 2:Ra=!0}}k=S.callback,k!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[k]:q.push(k))}else q={lane:k,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Q===null?(B=Q=q,O=K):Q=Q.next=q,p|=k;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;q=S,S=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);Q===null&&(O=K),o.baseState=O,o.firstBaseUpdate=B,o.lastBaseUpdate=Q,c===null&&(o.shared.lanes=0),Da|=p,e.lanes=p,e.memoizedState=K}}function op(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function up(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)op(a[e],t)}var gi=R(null),uo=R(0);function cp(e,t){e=aa,J(uo,e),J(gi,t),aa=e|t.baseLanes}function Hc(){J(uo,aa),J(gi,gi.current)}function Bc(){aa=uo.current,G(gi),G(uo)}var Qt=R(null),un=null;function Oa(e){var t=e.alternate;J(at,at.current&1),J(Qt,e),un===null&&(t===null||gi.current!==null||t.memoizedState!==null)&&(un=e)}function kc(e){J(at,at.current),J(Qt,e),un===null&&(un=e)}function fp(e){e.tag===22?(J(at,at.current),J(Qt,e),un===null&&(un=e)):_a()}function _a(){J(at,at.current),J(Qt,Qt.current)}function Xt(e){G(Qt),un===e&&(un=null),G(at)}var at=R(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Kf(a)||Pf(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fn=0,ye=null,Ye=null,st=null,fo=!1,yi=!1,Rl=!1,ho=0,Lr=0,bi=null,D1=0;function et(){throw Error(s(321))}function qc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Yt(e[a],t[a]))return!1;return!0}function Vc(e,t,a,i,o,c){return Fn=c,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Zp:nf,Rl=!1,c=a(i,o),Rl=!1,yi&&(c=hp(t,a,i,o)),dp(e),c}function dp(e){U.H=Br;var t=Ye!==null&&Ye.next!==null;if(Fn=0,st=Ye=ye=null,fo=!1,Lr=0,bi=null,t)throw Error(s(300));e===null||ot||(e=e.dependencies,e!==null&&no(e)&&(ot=!0))}function hp(e,t,a,i){ye=e;var o=0;do{if(yi&&(bi=null),Lr=0,yi=!1,25<=o)throw Error(s(301));if(o+=1,st=Ye=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Fp,c=t(a,i)}while(yi);return c}function z1(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Ur(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(ye.flags|=1024),t}function Yc(){var e=ho!==0;return ho=0,e}function Gc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Qc(e){if(fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fo=!1}Fn=0,st=Ye=ye=null,yi=!1,Lr=ho=0,bi=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?ye.memoizedState=st=e:st=st.next=e,st}function lt(){if(Ye===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=st===null?ye.memoizedState:st.next;if(t!==null)st=t,Ye=e;else{if(e===null)throw ye.alternate===null?Error(s(467)):Error(s(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},st===null?ye.memoizedState=st=e:st=st.next=e}return st}function mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ur(e){var t=Lr;return Lr+=1,bi===null&&(bi=[]),e=ap(bi,e,t),t=ye,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Zp:nf),e}function po(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ur(e);if(e.$$typeof===M)return yt(e)}throw Error(s(438,String(e)))}function Xc(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=ye.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=mo(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=ie;return t.index++,a}function In(e,t){return typeof t=="function"?t(e):t}function vo(e){var t=lt();return Kc(t,Ye,e)}function Kc(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var S=p=null,O=null,B=t,Q=!1;do{var K=B.lane&-536870913;if(K!==B.lane?(Ne&K)===K:(Fn&K)===K){var k=B.revertLane;if(k===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),K===hi&&(Q=!0);else if((Fn&k)===k){B=B.next,k===hi&&(Q=!0);continue}else K={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},O===null?(S=O=K,p=c):O=O.next=K,ye.lanes|=k,Da|=k;K=B.action,Rl&&a(c,K),c=B.hasEagerState?B.eagerState:a(c,K)}else k={lane:K,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},O===null?(S=O=k,p=c):O=O.next=k,ye.lanes|=K,Da|=K;B=B.next}while(B!==null&&B!==t);if(O===null?p=c:O.next=S,!Yt(c,e.memoizedState)&&(ot=!0,Q&&(a=mi,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=O,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Pc(e){var t=lt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Yt(c,t.memoizedState)||(ot=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function mp(e,t,a){var i=ye,o=lt(),c=Oe;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var p=!Yt((Ye||o).memoizedState,a);if(p&&(o.memoizedState=a,ot=!0),o=o.queue,Ic(gp.bind(null,i,o,e),[e]),o.getSnapshot!==t||p||st!==null&&st.memoizedState.tag&1){if(i.flags|=2048,xi(9,{destroy:void 0},vp.bind(null,i,o,a,t),null),Xe===null)throw Error(s(349));c||(Fn&127)!==0||pp(i,t,a)}return a}function pp(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=mo(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function vp(e,t,a,i){t.value=a,t.getSnapshot=i,yp(t)&&bp(e)}function gp(e,t,a){return a(function(){yp(t)&&bp(e)})}function yp(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Yt(e,a)}catch{return!0}}function bp(e){var t=gl(e,2);t!==null&&Ut(t,e,2)}function Zc(e){var t=Rt();if(typeof e=="function"){var a=e;if(e=a(),Rl){ba(!0);try{a()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:e},t}function xp(e,t,a,i){return e.baseState=a,Kc(e,Ye,typeof i=="function"?i:In)}function L1(e,t,a,i,o){if(bo(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};U.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Sp(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Sp(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=U.T,p={};U.T=p;try{var S=a(o,i),O=U.S;O!==null&&O(p,S),Ep(e,t,S)}catch(B){Fc(e,t,B)}finally{c!==null&&p.types!==null&&(c.types=p.types),U.T=c}}else try{c=a(o,i),Ep(e,t,c)}catch(B){Fc(e,t,B)}}function Ep(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){wp(e,t,i)},function(i){return Fc(e,t,i)}):wp(e,t,a)}function wp(e,t,a){t.status="fulfilled",t.value=a,Cp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Sp(e,a)))}function Fc(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Cp(t),t=t.next;while(t!==i)}e.action=null}function Cp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Tp(e,t){return t}function Rp(e,t){if(Oe){var a=Xe.formState;if(a!==null){e:{var i=ye;if(Oe){if(Pe){t:{for(var o=Pe,c=on;o.nodeType!==8;){if(!c){o=null;break t}if(o=cn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Pe=cn(o.nextSibling),i=o.data==="F!";break e}}Ca(i)}i=!1}i&&(t=a[0])}}return a=Rt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tp,lastRenderedState:t},a.queue=i,a=Xp.bind(null,ye,i),i.dispatch=a,i=Zc(!1),c=tf.bind(null,ye,!1,i.queue),i=Rt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=L1.bind(null,ye,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function Np(e){var t=lt();return Ap(t,Ye,e)}function Ap(e,t,a){if(t=Kc(e,t,Tp)[0],e=vo(In)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ur(t)}catch(p){throw p===pi?io:p}else i=t;t=lt();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,xi(9,{destroy:void 0},U1.bind(null,o,a),null)),[i,c,e]}function U1(e,t){e.action=t}function Op(e){var t=lt(),a=Ye;if(a!==null)return Ap(t,a,e);lt(),t=t.memoizedState,a=lt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function xi(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=ye.updateQueue,t===null&&(t=mo(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function _p(){return lt().memoizedState}function go(e,t,a,i){var o=Rt();ye.flags|=e,o.memoizedState=xi(1|t,{destroy:void 0},a,i===void 0?null:i)}function yo(e,t,a,i){var o=lt();i=i===void 0?null:i;var c=o.memoizedState.inst;Ye!==null&&i!==null&&qc(i,Ye.memoizedState.deps)?o.memoizedState=xi(t,c,a,i):(ye.flags|=e,o.memoizedState=xi(1|t,c,a,i))}function jp(e,t){go(8390656,8,e,t)}function Ic(e,t){yo(2048,8,e,t)}function H1(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=mo(),ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Mp(e){var t=lt().memoizedState;return H1({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Dp(e,t){return yo(4,2,e,t)}function zp(e,t){return yo(4,4,e,t)}function Lp(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Up(e,t,a){a=a!=null?a.concat([e]):null,yo(4,4,Lp.bind(null,t,e),a)}function $c(){}function Hp(e,t){var a=lt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&qc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Bp(e,t){var a=lt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&qc(t,i[1]))return i[0];if(i=e(),Rl){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[i,t],i}function Jc(e,t,a){return a===void 0||(Fn&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=kv(),ye.lanes|=e,Da|=e,a)}function kp(e,t,a,i){return Yt(a,t)?a:gi.current!==null?(e=Jc(e,a,i),Yt(e,t)||(ot=!0),e):(Fn&42)===0||(Fn&1073741824)!==0&&(Ne&261930)===0?(ot=!0,e.memoizedState=a):(e=kv(),ye.lanes|=e,Da|=e,t)}function qp(e,t,a,i,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var p=U.T,S={};U.T=S,tf(e,!1,t,a);try{var O=o(),B=U.S;if(B!==null&&B(S,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var Q=M1(O,i);Hr(e,t,Q,Zt(e))}else Hr(e,t,i,Zt(e))}catch(K){Hr(e,t,{then:function(){},status:"rejected",reason:K},Zt())}finally{Z.p=c,p!==null&&S.types!==null&&(p.types=S.types),U.T=p}}function B1(){}function Wc(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=Vp(e).queue;qp(e,o,t,F,a===null?B1:function(){return Yp(e),a(i)})}function Vp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:F},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yp(e){var t=Vp(e);t.next===null&&(t=e.alternate.memoizedState),Hr(e,t.next.queue,{},Zt())}function ef(){return yt(es)}function Gp(){return lt().memoizedState}function Qp(){return lt().memoizedState}function k1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Zt();e=Na(a);var i=Aa(t,e,a);i!==null&&(Ut(i,t,a),Mr(i,t,a)),t={cache:Oc()},e.payload=t;return}t=t.return}}function q1(e,t,a){var i=Zt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bo(e)?Kp(t,a):(a=yc(e,t,a,i),a!==null&&(Ut(a,e,i),Pp(a,t,i)))}function Xp(e,t,a){var i=Zt();Hr(e,t,a,i)}function Hr(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bo(e))Kp(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,S=c(p,a);if(o.hasEagerState=!0,o.eagerState=S,Yt(S,p))return Js(e,t,o,0),Xe===null&&$s(),!1}catch{}finally{}if(a=yc(e,t,o,i),a!==null)return Ut(a,e,i),Pp(a,t,i),!0}return!1}function tf(e,t,a,i){if(i={lane:2,revertLane:zf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},bo(e)){if(t)throw Error(s(479))}else t=yc(e,a,i,2),t!==null&&Ut(t,e,2)}function bo(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Kp(e,t){yi=fo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Pp(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Jh(e,a)}}var Br={readContext:yt,use:po,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Br.useEffectEvent=et;var Zp={readContext:yt,use:po,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:jp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,go(4194308,4,Lp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){go(4,2,e,t)},useMemo:function(e,t){var a=Rt();t=t===void 0?null:t;var i=e();if(Rl){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Rt();if(a!==void 0){var o=a(t);if(Rl){ba(!0);try{a(t)}finally{ba(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=q1.bind(null,ye,e),[i.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Zc(e);var t=e.queue,a=Xp.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:$c,useDeferredValue:function(e,t){var a=Rt();return Jc(a,e,t)},useTransition:function(){var e=Zc(!1);return e=qp.bind(null,ye,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=ye,o=Rt();if(Oe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Xe===null)throw Error(s(349));(Ne&127)!==0||pp(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,jp(gp.bind(null,i,c,e),[e]),i.flags|=2048,xi(9,{destroy:void 0},vp.bind(null,i,c,a,t),null),a},useId:function(){var e=Rt(),t=Xe.identifierPrefix;if(Oe){var a=Nn,i=Rn;a=(i&~(1<<32-Vt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ho++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=D1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ef,useFormState:Rp,useActionState:Rp,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=tf.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Xc,useCacheRefresh:function(){return Rt().memoizedState=k1.bind(null,ye)},useEffectEvent:function(e){var t=Rt(),a={impl:e};return t.memoizedState=a,function(){if((He&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},nf={readContext:yt,use:po,useCallback:Hp,useContext:yt,useEffect:Ic,useImperativeHandle:Up,useInsertionEffect:Dp,useLayoutEffect:zp,useMemo:Bp,useReducer:vo,useRef:_p,useState:function(){return vo(In)},useDebugValue:$c,useDeferredValue:function(e,t){var a=lt();return kp(a,Ye.memoizedState,e,t)},useTransition:function(){var e=vo(In)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:mp,useId:Gp,useHostTransitionStatus:ef,useFormState:Np,useActionState:Np,useOptimistic:function(e,t){var a=lt();return xp(a,Ye,e,t)},useMemoCache:Xc,useCacheRefresh:Qp};nf.useEffectEvent=Mp;var Fp={readContext:yt,use:po,useCallback:Hp,useContext:yt,useEffect:Ic,useImperativeHandle:Up,useInsertionEffect:Dp,useLayoutEffect:zp,useMemo:Bp,useReducer:Pc,useRef:_p,useState:function(){return Pc(In)},useDebugValue:$c,useDeferredValue:function(e,t){var a=lt();return Ye===null?Jc(a,e,t):kp(a,Ye.memoizedState,e,t)},useTransition:function(){var e=Pc(In)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:mp,useId:Gp,useHostTransitionStatus:ef,useFormState:Op,useActionState:Op,useOptimistic:function(e,t){var a=lt();return Ye!==null?xp(a,Ye,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Xc,useCacheRefresh:Qp};Fp.useEffectEvent=Mp;function af(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var lf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Zt(),o=Na(i);o.payload=t,a!=null&&(o.callback=a),t=Aa(e,o,i),t!==null&&(Ut(t,e,i),Mr(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Zt(),o=Na(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Aa(e,o,i),t!==null&&(Ut(t,e,i),Mr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Zt(),i=Na(a);i.tag=2,t!=null&&(i.callback=t),t=Aa(e,i,a),t!==null&&(Ut(t,e,a),Mr(t,e,a))}};function Ip(e,t,a,i,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,p):t.prototype&&t.prototype.isPureReactComponent?!Cr(a,i)||!Cr(o,c):!0}function $p(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&lf.enqueueReplaceState(t,t.state,null)}function Nl(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Jp(e){Is(e)}function Wp(e){console.error(e)}function ev(e){Is(e)}function xo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function tv(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function rf(e,t,a){return a=Na(a),a.tag=3,a.payload={element:null},a.callback=function(){xo(e,t)},a}function nv(e){return e=Na(e),e.tag=3,e}function av(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){tv(t,a,i)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){tv(t,a,i),typeof o!="function"&&(za===null?za=new Set([this]):za.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function V1(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&di(t,a,o,!0),a=Qt.current,a!==null){switch(a.tag){case 31:case 13:return un===null?Mo():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===ro?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),jf(e,i,o)),!1;case 22:return a.flags|=65536,i===ro?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),jf(e,i,o)),!1}throw Error(s(435,a.tag))}return jf(e,i,o),Mo(),!1}if(Oe)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Cc&&(e=Error(s(422),{cause:i}),Nr(ln(e,a)))):(i!==Cc&&(t=Error(s(423),{cause:i}),Nr(ln(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ln(i,a),o=rf(e.stateNode,i,o),Lc(e,o),tt!==4&&(tt=2)),!1;var c=Error(s(520),{cause:i});if(c=ln(c,a),Kr===null?Kr=[c]:Kr.push(c),tt!==4&&(tt=2),t===null)return!0;i=ln(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=rf(a.stateNode,i,e),Lc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(za===null||!za.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=nv(o),av(o,e,a,i),Lc(a,o),!1}a=a.return}while(a!==null);return!1}var sf=Error(s(461)),ot=!1;function bt(e,t,a,i){t.child=e===null?sp(t,null,a,i):Tl(t,e.child,a,i)}function lv(e,t,a,i,o){a=a.render;var c=t.ref;if("ref"in i){var p={};for(var S in i)S!=="ref"&&(p[S]=i[S])}else p=i;return Sl(t),i=Vc(e,t,a,p,c,o),S=Yc(),e!==null&&!ot?(Gc(e,t,o),$n(e,t,o)):(Oe&&S&&Ec(t),t.flags|=1,bt(e,t,i,o),t.child)}function iv(e,t,a,i,o){if(e===null){var c=a.type;return typeof c=="function"&&!bc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,rv(e,t,c,i,o)):(e=eo(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!pf(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:Cr,a(p,i)&&e.ref===t.ref)return $n(e,t,o)}return t.flags|=1,e=Xn(c,i),e.ref=t.ref,e.return=t,t.child=e}function rv(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(Cr(c,i)&&e.ref===t.ref)if(ot=!1,t.pendingProps=i=c,pf(e,o))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,$n(e,t,o)}return of(e,t,a,i,o)}function sv(e,t,a,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return ov(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&lo(t,c!==null?c.cachePool:null),c!==null?cp(t,c):Hc(),fp(t);else return i=t.lanes=536870912,ov(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(lo(t,c.cachePool),cp(t,c),_a(),t.memoizedState=null):(e!==null&&lo(t,null),Hc(),_a());return bt(e,t,o,a),t.child}function kr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ov(e,t,a,i,o){var c=jc();return c=c===null?null:{parent:rt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&lo(t,null),Hc(),fp(t),e!==null&&di(e,t,i,!0),t.childLanes=o,null}function So(e,t){return t=wo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uv(e,t,a){return Tl(t,e.child,null,a),e=So(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function Y1(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(i.mode==="hidden")return e=So(t,i),t.lanes=536870912,kr(null,e);if(kc(t),(e=Pe)?(e=Sg(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Rn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Km(e),a.return=t,t.child=a,gt=t,Pe=null)):e=null,e===null)throw Ca(t);return t.lanes=536870912,null}return So(t,i)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(kc(t),o)if(t.flags&256)t.flags&=-257,t=uv(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ot||di(e,t,a,!1),o=(a&e.childLanes)!==0,ot||o){if(i=Xe,i!==null&&(p=Wh(i,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,gl(e,p),Ut(i,e,p),sf;Mo(),t=uv(e,t,a)}else e=c.treeContext,Pe=cn(p.nextSibling),gt=t,Oe=!0,wa=null,on=!1,e!==null&&Fm(t,e),t=So(t,i),t.flags|=4096;return t}return e=Xn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Eo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function of(e,t,a,i,o){return Sl(t),a=Vc(e,t,a,i,void 0,o),i=Yc(),e!==null&&!ot?(Gc(e,t,o),$n(e,t,o)):(Oe&&i&&Ec(t),t.flags|=1,bt(e,t,a,o),t.child)}function cv(e,t,a,i,o,c){return Sl(t),t.updateQueue=null,a=hp(t,i,a,o),dp(e),i=Yc(),e!==null&&!ot?(Gc(e,t,c),$n(e,t,c)):(Oe&&i&&Ec(t),t.flags|=1,bt(e,t,a,c),t.child)}function fv(e,t,a,i,o){if(Sl(t),t.stateNode===null){var c=oi,p=a.contextType;typeof p=="object"&&p!==null&&(c=yt(p)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=lf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Dc(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?yt(p):oi,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(af(t,a,p,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&lf.enqueueReplaceState(c,c.state,null),zr(t,i,c,o),Dr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,O=Nl(a,S);c.props=O;var B=c.context,Q=a.contextType;p=oi,typeof Q=="object"&&Q!==null&&(p=yt(Q));var K=a.getDerivedStateFromProps;Q=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||B!==p)&&$p(t,c,i,p),Ra=!1;var k=t.memoizedState;c.state=k,zr(t,i,c,o),Dr(),B=t.memoizedState,S||k!==B||Ra?(typeof K=="function"&&(af(t,a,K,i),B=t.memoizedState),(O=Ra||Ip(t,a,O,i,k,B,p))?(Q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=B),c.props=i,c.state=B,c.context=p,i=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,zc(e,t),p=t.memoizedProps,Q=Nl(a,p),c.props=Q,K=t.pendingProps,k=c.context,B=a.contextType,O=oi,typeof B=="object"&&B!==null&&(O=yt(B)),S=a.getDerivedStateFromProps,(B=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==K||k!==O)&&$p(t,c,i,O),Ra=!1,k=t.memoizedState,c.state=k,zr(t,i,c,o),Dr();var q=t.memoizedState;p!==K||k!==q||Ra||e!==null&&e.dependencies!==null&&no(e.dependencies)?(typeof S=="function"&&(af(t,a,S,i),q=t.memoizedState),(Q=Ra||Ip(t,a,Q,i,k,q,O)||e!==null&&e.dependencies!==null&&no(e.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,q,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,q,O)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),c.props=i,c.state=q,c.context=O,i=Q):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Eo(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Tl(t,e.child,null,o),t.child=Tl(t,null,a,o)):bt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=$n(e,t,o),e}function dv(e,t,a,i){return bl(),t.flags|=256,bt(e,t,a,i),t.child}var uf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cf(e){return{baseLanes:e,cachePool:tp()}}function ff(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Pt),e}function hv(e,t,a){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?Oa(t):_a(),(e=Pe)?(e=Sg(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:Rn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Km(e),a.return=t,t.child=a,gt=t,Pe=null)):e=null,e===null)throw Ca(t);return Pf(e)?t.lanes=32:t.lanes=536870912,null}var S=i.children;return i=i.fallback,o?(_a(),o=t.mode,S=wo({mode:"hidden",children:S},o),i=yl(i,o,a,null),S.return=t,i.return=t,S.sibling=i,t.child=S,i=t.child,i.memoizedState=cf(a),i.childLanes=ff(e,p,a),t.memoizedState=uf,kr(null,i)):(Oa(t),df(t,S))}var O=e.memoizedState;if(O!==null&&(S=O.dehydrated,S!==null)){if(c)t.flags&256?(Oa(t),t.flags&=-257,t=hf(e,t,a)):t.memoizedState!==null?(_a(),t.child=e.child,t.flags|=128,t=null):(_a(),S=i.fallback,o=t.mode,i=wo({mode:"visible",children:i.children},o),S=yl(S,o,a,null),S.flags|=2,i.return=t,S.return=t,i.sibling=S,t.child=i,Tl(t,e.child,null,a),i=t.child,i.memoizedState=cf(a),i.childLanes=ff(e,p,a),t.memoizedState=uf,t=kr(null,i));else if(Oa(t),Pf(S)){if(p=S.nextSibling&&S.nextSibling.dataset,p)var B=p.dgst;p=B,i=Error(s(419)),i.stack="",i.digest=p,Nr({value:i,source:null,stack:null}),t=hf(e,t,a)}else if(ot||di(e,t,a,!1),p=(a&e.childLanes)!==0,ot||p){if(p=Xe,p!==null&&(i=Wh(p,a),i!==0&&i!==O.retryLane))throw O.retryLane=i,gl(e,i),Ut(p,e,i),sf;Kf(S)||Mo(),t=hf(e,t,a)}else Kf(S)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Pe=cn(S.nextSibling),gt=t,Oe=!0,wa=null,on=!1,e!==null&&Fm(t,e),t=df(t,i.children),t.flags|=4096);return t}return o?(_a(),S=i.fallback,o=t.mode,O=e.child,B=O.sibling,i=Xn(O,{mode:"hidden",children:i.children}),i.subtreeFlags=O.subtreeFlags&65011712,B!==null?S=Xn(B,S):(S=yl(S,o,a,null),S.flags|=2),S.return=t,i.return=t,i.sibling=S,t.child=i,kr(null,i),i=t.child,S=e.child.memoizedState,S===null?S=cf(a):(o=S.cachePool,o!==null?(O=rt._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=tp(),S={baseLanes:S.baseLanes|a,cachePool:o}),i.memoizedState=S,i.childLanes=ff(e,p,a),t.memoizedState=uf,kr(e.child,i)):(Oa(t),a=e.child,e=a.sibling,a=Xn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function df(e,t){return t=wo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wo(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function hf(e,t,a){return Tl(t,e.child,null,a),e=df(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mv(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Nc(e.return,t,a)}function mf(e,t,a,i,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=a,p.tailMode=o,p.treeForkCount=c)}function pv(e,t,a){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var p=at.current,S=(p&2)!==0;if(S?(p=p&1|2,t.flags|=128):p&=1,J(at,p),bt(e,t,i,a),i=Oe?Rr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mv(e,a,t);else if(e.tag===19)mv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&co(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),mf(t,!1,o,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&co(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}mf(t,!0,a,null,c,i);break;case"together":mf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function $n(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(di(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Xn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Xn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function pf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&no(e)))}function G1(e,t,a){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),Ta(t,rt,e.memoizedState.cache),bl();break;case 27:case 5:De(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,kc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Oa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?hv(e,t,a):(Oa(t),e=$n(e,t,a),e!==null?e.sibling:null);Oa(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(di(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return pv(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(at,at.current),i)break;return null;case 22:return t.lanes=0,sv(e,t,a,t.pendingProps);case 24:Ta(t,rt,e.memoizedState.cache)}return $n(e,t,a)}function vv(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!pf(e,a)&&(t.flags&128)===0)return ot=!1,G1(e,t,a);ot=(e.flags&131072)!==0}else ot=!1,Oe&&(t.flags&1048576)!==0&&Zm(t,Rr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=wl(t.elementType),t.type=e,typeof e=="function")bc(e)?(i=Nl(e,i),t.tag=1,t=fv(null,t,e,i,a)):(t.tag=0,t=of(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===z){t.tag=11,t=lv(null,t,e,i,a);break e}else if(o===Y){t.tag=14,t=iv(null,t,e,i,a);break e}}throw t=ue(e)||e,Error(s(306,t,""))}}return t;case 0:return of(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Nl(i,t.pendingProps),fv(e,t,i,o,a);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,zc(e,t),zr(t,i,null,a);var p=t.memoizedState;if(i=p.cache,Ta(t,rt,i),i!==c.cache&&Ac(t,[rt],a,!0),Dr(),i=p.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=dv(e,t,i,a);break e}else if(i!==o){o=ln(Error(s(424)),t),Nr(o),t=dv(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Pe=cn(e.firstChild),gt=t,Oe=!0,wa=null,on=!0,a=sp(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(bl(),i===o){t=$n(e,t,a);break e}bt(e,t,i,a)}t=t.child}return t;case 26:return Eo(e,t),e===null?(a=Ng(t.type,null,t.pendingProps,null))?t.memoizedState=a:Oe||(a=t.type,e=t.pendingProps,i=ko(ve.current).createElement(a),i[vt]=t,i[_t]=e,xt(i,a,e),ht(i),t.stateNode=i):t.memoizedState=Ng(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return De(t),e===null&&Oe&&(i=t.stateNode=Cg(t.type,t.pendingProps,ve.current),gt=t,on=!0,o=Pe,Ba(t.type)?(Zf=o,Pe=cn(i.firstChild)):Pe=o),bt(e,t,t.pendingProps.children,a),Eo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=i=Pe)&&(i=bE(i,t.type,t.pendingProps,on),i!==null?(t.stateNode=i,gt=t,Pe=cn(i.firstChild),on=!1,o=!0):o=!1),o||Ca(t)),De(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,i=c.children,Gf(o,c)?i=null:p!==null&&Gf(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Vc(e,t,z1,null,null,a),es._currentValue=o),Eo(e,t),bt(e,t,i,a),t.child;case 6:return e===null&&Oe&&((e=a=Pe)&&(a=xE(a,t.pendingProps,on),a!==null?(t.stateNode=a,gt=t,Pe=null,e=!0):e=!1),e||Ca(t)),null;case 13:return hv(e,t,a);case 4:return be(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Tl(t,null,i,a):bt(e,t,i,a),t.child;case 11:return lv(e,t,t.type,t.pendingProps,a);case 7:return bt(e,t,t.pendingProps,a),t.child;case 8:return bt(e,t,t.pendingProps.children,a),t.child;case 12:return bt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Ta(t,t.type,i.value),bt(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Sl(t),o=yt(o),i=i(o),t.flags|=1,bt(e,t,i,a),t.child;case 14:return iv(e,t,t.type,t.pendingProps,a);case 15:return rv(e,t,t.type,t.pendingProps,a);case 19:return pv(e,t,a);case 31:return Y1(e,t,a);case 22:return sv(e,t,a,t.pendingProps);case 24:return Sl(t),i=yt(rt),e===null?(o=jc(),o===null&&(o=Xe,c=Oc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:i,cache:o},Dc(t),Ta(t,rt,o)):((e.lanes&a)!==0&&(zc(e,t),zr(t,null,null,a),Dr()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ta(t,rt,i)):(i=c.cache,Ta(t,rt,i),i!==o.cache&&Ac(t,[rt],a,!0))),bt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Jn(e){e.flags|=4}function vf(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Gv())e.flags|=8192;else throw Cl=ro,Mc}else e.flags&=-16777217}function gv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mg(t))if(Gv())e.flags|=8192;else throw Cl=ro,Mc}function Co(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ih():536870912,e.lanes|=t,Ci|=t)}function qr(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Q1(e,t,a){var i=t.pendingProps;switch(wc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Zn(rt),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(fi(t)?Jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tc())),Ze(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Jn(t),c!==null?(Ze(t),gv(t,c)):(Ze(t),vf(t,o,null,i,a))):c?c!==e.memoizedState?(Jn(t),Ze(t),gv(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Jn(t),Ze(t),vf(t,o,e,i,a)),null;case 27:if(Me(t),a=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Jn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ze(t),null}e=le.current,fi(t)?Im(t):(e=Cg(o,i,a),t.stateNode=e,Jn(t))}return Ze(t),null;case 5:if(Me(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Jn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ze(t),null}if(c=le.current,fi(t))Im(t);else{var p=ko(ve.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?p.createElement(o,{is:i.is}):p.createElement(o)}}c[vt]=t,c[_t]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(xt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Jn(t)}}return Ze(t),vf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Jn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,fi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=gt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[vt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||hg(e.nodeValue,a)),e||Ca(t,!0)}else e=ko(e).createTextNode(i),e[vt]=t,t.stateNode=e}return Ze(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=fi(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[vt]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else a=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[vt]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Co(t,t.updateQueue),Ze(t),null);case 4:return we(),e===null&&Bf(t.stateNode.containerInfo),Ze(t),null;case 10:return Zn(t.type),Ze(t),null;case 19:if(G(at),i=t.memoizedState,i===null)return Ze(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)qr(i,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=co(e),c!==null){for(t.flags|=128,qr(i,!1),e=c.updateQueue,t.updateQueue=e,Co(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Xm(a,e),a=a.sibling;return J(at,at.current&1|2),Oe&&Kn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&kt()>Oo&&(t.flags|=128,o=!0,qr(i,!1),t.lanes=4194304)}else{if(!o)if(e=co(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Co(t,e),qr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Oe)return Ze(t),null}else 2*kt()-i.renderingStartTime>Oo&&a!==536870912&&(t.flags|=128,o=!0,qr(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=kt(),e.sibling=null,a=at.current,J(at,o?a&1|2:a&1),Oe&&Kn(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return Xt(t),Bc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),a=t.updateQueue,a!==null&&Co(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&G(El),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zn(rt),Ze(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function X1(e,t){switch(wc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(rt),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(s(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(at),null;case 4:return we(),null;case 10:return Zn(t.type),null;case 22:case 23:return Xt(t),Bc(),e!==null&&G(El),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zn(rt),null;case 25:return null;default:return null}}function yv(e,t){switch(wc(t),t.tag){case 3:Zn(rt),we();break;case 26:case 27:case 5:Me(t);break;case 4:we();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(at);break;case 10:Zn(t.type);break;case 22:case 23:Xt(t),Bc(),e!==null&&G(El);break;case 24:Zn(rt)}}function Vr(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,p=a.inst;i=c(),p.destroy=i}a=a.next}while(a!==o)}}catch(S){Ve(t,t.return,S)}}function ja(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var p=i.inst,S=p.destroy;if(S!==void 0){p.destroy=void 0,o=t;var O=a,B=S;try{B()}catch(Q){Ve(o,O,Q)}}}i=i.next}while(i!==c)}}catch(Q){Ve(t,t.return,Q)}}function bv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{up(t,a)}catch(i){Ve(e,e.return,i)}}}function xv(e,t,a){a.props=Nl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ve(e,t,i)}}function Yr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){Ve(e,t,o)}}function An(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){Ve(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ve(e,t,o)}else a.current=null}function Sv(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){Ve(e,e.return,o)}}function gf(e,t,a){try{var i=e.stateNode;hE(i,e.type,a,t),i[_t]=t}catch(o){Ve(e,e.return,o)}}function Ev(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ev(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&&Ba(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 bf(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Gn));else if(i!==4&&(i===27&&Ba(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(bf(e,t,a),e=e.sibling;e!==null;)bf(e,t,a),e=e.sibling}function To(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Ba(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(To(e,t,a),e=e.sibling;e!==null;)To(e,t,a),e=e.sibling}function wv(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xt(t,i,a),t[vt]=e,t[_t]=a}catch(c){Ve(e,e.return,c)}}var Wn=!1,ut=!1,xf=!1,Cv=typeof WeakSet=="function"?WeakSet:Set,mt=null;function K1(e,t){if(e=e.containerInfo,Vf=Ko,e=Um(e),dc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,S=-1,O=-1,B=0,Q=0,K=e,k=null;t:for(;;){for(var q;K!==a||o!==0&&K.nodeType!==3||(S=p+o),K!==c||i!==0&&K.nodeType!==3||(O=p+i),K.nodeType===3&&(p+=K.nodeValue.length),(q=K.firstChild)!==null;)k=K,K=q;for(;;){if(K===e)break t;if(k===a&&++B===o&&(S=p),k===c&&++Q===i&&(O=p),(q=K.nextSibling)!==null)break;K=k,k=K.parentNode}K=q}a=S===-1||O===-1?null:{start:S,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Yf={focusedElem:e,selectionRange:a},Ko=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var re=Nl(a.type,o);e=i.getSnapshotBeforeUpdate(re,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(he){Ve(a,a.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Xf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function Tv(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ta(e,a),i&4&&Vr(5,a);break;case 1:if(ta(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Ve(a,a.return,p)}else{var o=Nl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Ve(a,a.return,p)}}i&64&&bv(a),i&512&&Yr(a,a.return);break;case 3:if(ta(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{up(e,t)}catch(p){Ve(a,a.return,p)}}break;case 27:t===null&&i&4&&wv(a);case 26:case 5:ta(e,a),t===null&&i&4&&Sv(a),i&512&&Yr(a,a.return);break;case 12:ta(e,a);break;case 31:ta(e,a),i&4&&Av(e,a);break;case 13:ta(e,a),i&4&&Ov(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=tE.bind(null,a),SE(e,a))));break;case 22:if(i=a.memoizedState!==null||Wn,!i){t=t!==null&&t.memoizedState!==null||ut,o=Wn;var c=ut;Wn=i,(ut=t)&&!c?na(e,a,(a.subtreeFlags&8772)!==0):ta(e,a),Wn=o,ut=c}break;case 30:break;default:ta(e,a)}}function Rv(e){var t=e.alternate;t!==null&&(e.alternate=null,Rv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $e=null,Mt=!1;function ea(e,t,a){for(a=a.child;a!==null;)Nv(e,t,a),a=a.sibling}function Nv(e,t,a){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(dr,a)}catch{}switch(a.tag){case 26:ut||An(a,t),ea(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ut||An(a,t);var i=$e,o=Mt;Ba(a.type)&&($e=a.stateNode,Mt=!1),ea(e,t,a),$r(a.stateNode),$e=i,Mt=o;break;case 5:ut||An(a,t);case 6:if(i=$e,o=Mt,$e=null,ea(e,t,a),$e=i,Mt=o,$e!==null)if(Mt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(a.stateNode)}catch(c){Ve(a,t,c)}else try{$e.removeChild(a.stateNode)}catch(c){Ve(a,t,c)}break;case 18:$e!==null&&(Mt?(e=$e,bg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Mi(e)):bg($e,a.stateNode));break;case 4:i=$e,o=Mt,$e=a.stateNode.containerInfo,Mt=!0,ea(e,t,a),$e=i,Mt=o;break;case 0:case 11:case 14:case 15:ja(2,a,t),ut||ja(4,a,t),ea(e,t,a);break;case 1:ut||(An(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&xv(a,t,i)),ea(e,t,a);break;case 21:ea(e,t,a);break;case 22:ut=(i=ut)||a.memoizedState!==null,ea(e,t,a),ut=i;break;default:ea(e,t,a)}}function Av(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Mi(e)}catch(a){Ve(t,t.return,a)}}}function Ov(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Mi(e)}catch(a){Ve(t,t.return,a)}}function P1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Cv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Cv),t;default:throw Error(s(435,e.tag))}}function Ro(e,t){var a=P1(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=nE.bind(null,e,i);i.then(o,o)}})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],c=e,p=t,S=p;e:for(;S!==null;){switch(S.tag){case 27:if(Ba(S.type)){$e=S.stateNode,Mt=!1;break e}break;case 5:$e=S.stateNode,Mt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,Mt=!0;break e}S=S.return}if($e===null)throw Error(s(160));Nv(c,p,o),$e=null,Mt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_v(t,e),t=t.sibling}var bn=null;function _v(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),zt(e),i&4&&(ja(3,e,e.return),Vr(3,e),ja(5,e,e.return));break;case 1:Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),i&64&&Wn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var o=bn;if(Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[pr]||c[vt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),xt(c,i,a),c[vt]=e,ht(c),i=c;break e;case"link":var p=_g("link","href",o).get(i+(a.href||""));if(p){for(var S=0;S<p.length;S++)if(c=p[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(S,1);break t}}c=o.createElement(i),xt(c,i,a),o.head.appendChild(c);break;case"meta":if(p=_g("meta","content",o).get(i+(a.content||""))){for(S=0;S<p.length;S++)if(c=p[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(S,1);break t}}c=o.createElement(i),xt(c,i,a),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[vt]=e,ht(c),i=c}e.stateNode=i}else jg(o,e.type,e.stateNode);else e.stateNode=Og(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?jg(o,e.type,e.stateNode):Og(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&gf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),a!==null&&i&4&&gf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),zt(e),i&512&&(ut||a===null||An(a,a.return)),e.flags&32){o=e.stateNode;try{ti(o,"")}catch(re){Ve(e,e.return,re)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,gf(e,o,a!==null?a.memoizedProps:o)),i&1024&&(xf=!0);break;case 6:if(Dt(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(re){Ve(e,e.return,re)}}break;case 3:if(Yo=null,o=bn,bn=qo(t.containerInfo),Dt(t,e),bn=o,zt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Mi(t.containerInfo)}catch(re){Ve(e,e.return,re)}xf&&(xf=!1,jv(e));break;case 4:i=bn,bn=qo(e.stateNode.containerInfo),Dt(t,e),zt(e),bn=i;break;case 12:Dt(t,e),zt(e);break;case 31:Dt(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ro(e,i)));break;case 13:Dt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ao=kt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ro(e,i)));break;case 22:o=e.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,B=Wn,Q=ut;if(Wn=B||o,ut=Q||O,Dt(t,e),ut=Q,Wn=B,zt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||O||Wn||ut||Al(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){O=a=t;try{if(c=O.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{S=O.stateNode;var K=O.memoizedProps.style,k=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(re){Ve(O,O.return,re)}}}else if(t.tag===6){if(a===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(re){Ve(O,O.return,re)}}}else if(t.tag===18){if(a===null){O=t;try{var q=O.stateNode;o?xg(q,!0):xg(O.stateNode,!1)}catch(re){Ve(O,O.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Ro(e,a))));break;case 19:Dt(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ro(e,i)));break;case 30:break;case 21:break;default:Dt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Ev(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=yf(e);To(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(ti(p,""),a.flags&=-33);var S=yf(e);To(e,S,p);break;case 3:case 4:var O=a.stateNode.containerInfo,B=yf(e);bf(e,B,O);break;default:throw Error(s(161))}}catch(Q){Ve(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ta(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Tv(e,t.alternate,t),t=t.sibling}function Al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ja(4,t,t.return),Al(t);break;case 1:An(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&xv(t,t.return,a),Al(t);break;case 27:$r(t.stateNode);case 26:case 5:An(t,t.return),Al(t);break;case 22:t.memoizedState===null&&Al(t);break;case 30:Al(t);break;default:Al(t)}e=e.sibling}}function na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:na(o,c,a),Vr(4,c);break;case 1:if(na(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Ve(i,i.return,B)}if(i=c,o=i.updateQueue,o!==null){var S=i.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)op(O[o],S)}catch(B){Ve(i,i.return,B)}}a&&p&64&&bv(c),Yr(c,c.return);break;case 27:wv(c);case 26:case 5:na(o,c,a),a&&i===null&&p&4&&Sv(c),Yr(c,c.return);break;case 12:na(o,c,a);break;case 31:na(o,c,a),a&&p&4&&Av(o,c);break;case 13:na(o,c,a),a&&p&4&&Ov(o,c);break;case 22:c.memoizedState===null&&na(o,c,a),Yr(c,c.return);break;case 30:break;default:na(o,c,a)}t=t.sibling}}function Sf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ar(a))}function Ef(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ar(e))}function xn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mv(e,t,a,i),t=t.sibling}function Mv(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,a,i),o&2048&&Vr(9,t);break;case 1:xn(e,t,a,i);break;case 3:xn(e,t,a,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ar(e)));break;case 12:if(o&2048){xn(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,S=c.onPostCommit;typeof S=="function"&&S(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){Ve(t,t.return,O)}}else xn(e,t,a,i);break;case 31:xn(e,t,a,i);break;case 13:xn(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?xn(e,t,a,i):Gr(e,t):c._visibility&2?xn(e,t,a,i):(c._visibility|=2,Si(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Sf(p,t);break;case 24:xn(e,t,a,i),o&2048&&Ef(t.alternate,t);break;default:xn(e,t,a,i)}}function Si(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,S=a,O=i,B=p.flags;switch(p.tag){case 0:case 11:case 15:Si(c,p,S,O,o),Vr(8,p);break;case 23:break;case 22:var Q=p.stateNode;p.memoizedState!==null?Q._visibility&2?Si(c,p,S,O,o):Gr(c,p):(Q._visibility|=2,Si(c,p,S,O,o)),o&&B&2048&&Sf(p.alternate,p);break;case 24:Si(c,p,S,O,o),o&&B&2048&&Ef(p.alternate,p);break;default:Si(c,p,S,O,o)}t=t.sibling}}function Gr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:Gr(a,i),o&2048&&Sf(i.alternate,i);break;case 24:Gr(a,i),o&2048&&Ef(i.alternate,i);break;default:Gr(a,i)}t=t.sibling}}var Qr=8192;function Ei(e,t,a){if(e.subtreeFlags&Qr)for(e=e.child;e!==null;)Dv(e,t,a),e=e.sibling}function Dv(e,t,a){switch(e.tag){case 26:Ei(e,t,a),e.flags&Qr&&e.memoizedState!==null&&DE(a,bn,e.memoizedState,e.memoizedProps);break;case 5:Ei(e,t,a);break;case 3:case 4:var i=bn;bn=qo(e.stateNode.containerInfo),Ei(e,t,a),bn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Qr,Qr=16777216,Ei(e,t,a),Qr=i):Ei(e,t,a));break;default:Ei(e,t,a)}}function zv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];mt=i,Uv(i,e)}zv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lv(e),e=e.sibling}function Lv(e){switch(e.tag){case 0:case 11:case 15:Xr(e),e.flags&2048&&ja(9,e,e.return);break;case 3:Xr(e);break;case 12:Xr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,No(e)):Xr(e);break;default:Xr(e)}}function No(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];mt=i,Uv(i,e)}zv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ja(8,t,t.return),No(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,No(t));break;default:No(t)}e=e.sibling}}function Uv(e,t){for(;mt!==null;){var a=mt;switch(a.tag){case 0:case 11:case 15:ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ar(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,mt=i;else e:for(a=e;mt!==null;){i=mt;var o=i.sibling,c=i.return;if(Rv(i),i===a){mt=null;break e}if(o!==null){o.return=c,mt=o;break e}mt=c}}}var Z1={getCacheForType:function(e){var t=yt(rt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return yt(rt).controller.signal}},F1=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,Te=null,Ne=0,qe=0,Kt=null,Ma=!1,wi=!1,wf=!1,aa=0,tt=0,Da=0,Ol=0,Cf=0,Pt=0,Ci=0,Kr=null,Lt=null,Tf=!1,Ao=0,Hv=0,Oo=1/0,_o=null,za=null,ct=0,La=null,Ti=null,la=0,Rf=0,Nf=null,Bv=null,Pr=0,Af=null;function Zt(){return(He&2)!==0&&Ne!==0?Ne&-Ne:U.T!==null?zf():em()}function kv(){if(Pt===0)if((Ne&536870912)===0||Oe){var e=Hs;Hs<<=1,(Hs&3932160)===0&&(Hs=262144),Pt=e}else Pt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Pt}function Ut(e,t,a){(e===Xe&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(Ri(e,0),Ua(e,Ne,Pt,!1)),mr(e,a),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(Ol|=a),tt===4&&Ua(e,Ne,Pt,!1)),On(e))}function qv(e,t,a){if((He&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||hr(e,t),o=i?J1(e,t):_f(e,t,!0),c=i;do{if(o===0){wi&&!i&&Ua(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!I1(a)){o=_f(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var S=e;o=Kr;var O=S.current.memoizedState.isDehydrated;if(O&&(Ri(S,p).flags|=256),p=_f(S,p,!1),p!==2){if(wf&&!O){S.errorRecoveryDisabledLanes|=c,Ol|=c,o=4;break e}c=Lt,Lt=o,c!==null&&(Lt===null?Lt=c:Lt.push.apply(Lt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Ri(e,0),Ua(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ua(i,t,Pt,!Ma);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Ao+300-kt(),10<o)){if(Ua(i,t,Pt,!Ma),ks(i,0,!0)!==0)break e;la=t,i.timeoutHandle=gg(Vv.bind(null,i,a,Lt,_o,Tf,t,Pt,Ol,Ci,Ma,c,"Throttled",-0,0),o);break e}Vv(i,a,Lt,_o,Tf,t,Pt,Ol,Ci,Ma,c,null,-0,0)}}break}while(!0);On(e)}function Vv(e,t,a,i,o,c,p,S,O,B,Q,K,k,q){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gn},Dv(t,c,K);var re=(c&62914560)===c?Ao-kt():(c&4194048)===c?Hv-kt():0;if(re=zE(K,re),re!==null){la=c,e.cancelPendingCommit=re(Fv.bind(null,e,t,c,a,i,o,p,S,O,Q,K,null,k,q)),Ua(e,c,p,!B);return}}Fv(e,t,c,a,i,o,p,S,O)}function I1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var o=a[i],c=o.getSnapshot;o=o.value;try{if(!Yt(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ua(e,t,a,i){t&=~Cf,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Vt(o),p=1<<c;i[c]=-1,o&=~p}a!==0&&$h(e,a,t)}function jo(){return(He&6)===0?(Zr(0),!1):!0}function Of(){if(Te!==null){if(qe===0)var e=Te.return;else e=Te,Pn=xl=null,Qc(e),vi=null,_r=0,e=Te;for(;e!==null;)yv(e.alternate,e),e=e.return;Te=null}}function Ri(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,vE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),la=0,Of(),Xe=e,Te=a=Xn(e.current,null),Ne=t,qe=0,Kt=null,Ma=!1,wi=hr(e,t),wf=!1,Ci=Pt=Cf=Ol=Da=tt=0,Lt=Kr=null,Tf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Vt(i),c=1<<o;t|=e[o],i&=~c}return aa=t,$s(),a}function Yv(e,t){ye=null,U.H=Br,t===pi||t===io?(t=lp(),qe=3):t===Mc?(t=lp(),qe=4):qe=t===sf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,Te===null&&(tt=1,xo(e,ln(t,e.current)))}function Gv(){var e=Qt.current;return e===null?!0:(Ne&4194048)===Ne?un===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===un:!1}function Qv(){var e=U.H;return U.H=Br,e===null?Br:e}function Xv(){var e=U.A;return U.A=Z1,e}function Mo(){tt=4,Ma||(Ne&4194048)!==Ne&&Qt.current!==null||(wi=!0),(Da&134217727)===0&&(Ol&134217727)===0||Xe===null||Ua(Xe,Ne,Pt,!1)}function _f(e,t,a){var i=He;He|=2;var o=Qv(),c=Xv();(Xe!==e||Ne!==t)&&(_o=null,Ri(e,t)),t=!1;var p=tt;e:do try{if(qe!==0&&Te!==null){var S=Te,O=Kt;switch(qe){case 8:Of(),p=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var B=qe;if(qe=0,Kt=null,Ni(e,S,O,B),a&&wi){p=0;break e}break;default:B=qe,qe=0,Kt=null,Ni(e,S,O,B)}}$1(),p=tt;break}catch(Q){Yv(e,Q)}while(!0);return t&&e.shellSuspendCounter++,Pn=xl=null,He=i,U.H=o,U.A=c,Te===null&&(Xe=null,Ne=0,$s()),p}function $1(){for(;Te!==null;)Kv(Te)}function J1(e,t){var a=He;He|=2;var i=Qv(),o=Xv();Xe!==e||Ne!==t?(_o=null,Oo=kt()+500,Ri(e,t)):wi=hr(e,t);e:do try{if(qe!==0&&Te!==null){t=Te;var c=Kt;t:switch(qe){case 1:qe=0,Kt=null,Ni(e,t,c,1);break;case 2:case 9:if(np(c)){qe=0,Kt=null,Pv(t);break}t=function(){qe!==2&&qe!==9||Xe!==e||(qe=7),On(e)},c.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:np(c)?(qe=0,Kt=null,Pv(t)):(qe=0,Kt=null,Ni(e,t,c,7));break;case 5:var p=null;switch(Te.tag){case 26:p=Te.memoizedState;case 5:case 27:var S=Te;if(p?Mg(p):S.stateNode.complete){qe=0,Kt=null;var O=S.sibling;if(O!==null)Te=O;else{var B=S.return;B!==null?(Te=B,Do(B)):Te=null}break t}}qe=0,Kt=null,Ni(e,t,c,5);break;case 6:qe=0,Kt=null,Ni(e,t,c,6);break;case 8:Of(),tt=6;break e;default:throw Error(s(462))}}W1();break}catch(Q){Yv(e,Q)}while(!0);return Pn=xl=null,U.H=i,U.A=o,He=a,Te!==null?0:(Xe=null,Ne=0,$s(),tt)}function W1(){for(;Te!==null&&!ES();)Kv(Te)}function Kv(e){var t=vv(e.alternate,e,aa);e.memoizedProps=e.pendingProps,t===null?Do(e):Te=t}function Pv(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=cv(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=cv(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:Qc(t);default:yv(a,t),t=Te=Xm(t,aa),t=vv(a,t,aa)}e.memoizedProps=e.pendingProps,t===null?Do(e):Te=t}function Ni(e,t,a,i){Pn=xl=null,Qc(t),vi=null,_r=0;var o=t.return;try{if(V1(e,o,t,a,Ne)){tt=1,xo(e,ln(a,e.current)),Te=null;return}}catch(c){if(o!==null)throw Te=o,c;tt=1,xo(e,ln(a,e.current)),Te=null;return}t.flags&32768?(Oe||i===1?e=!0:wi||(Ne&536870912)!==0?e=!1:(Ma=e=!0,(i===2||i===9||i===3||i===6)&&(i=Qt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Zv(t,e)):Do(t)}function Do(e){var t=e;do{if((t.flags&32768)!==0){Zv(t,Ma);return}e=t.return;var a=Q1(t.alternate,t,aa);if(a!==null){Te=a;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);tt===0&&(tt=5)}function Zv(e,t){do{var a=X1(e.alternate,e);if(a!==null){a.flags&=32767,Te=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=a}while(e!==null);tt=6,Te=null}function Fv(e,t,a,i,o,c,p,S,O){e.cancelPendingCommit=null;do zo();while(ct!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=gc,MS(e,a,c,p,S,O),e===Xe&&(Te=Xe=null,Ne=0),Ti=t,La=e,la=a,Rf=c,Nf=o,Bv=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,aE(Ls,function(){return eg(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null,o=Z.p,Z.p=2,p=He,He|=4;try{K1(e,t,a)}finally{He=p,Z.p=o,U.T=i}}ct=1,Iv(),$v(),Jv()}}function Iv(){if(ct===1){ct=0;var e=La,t=Ti,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var i=Z.p;Z.p=2;var o=He;He|=4;try{_v(t,e);var c=Yf,p=Um(e.containerInfo),S=c.focusedElem,O=c.selectionRange;if(p!==S&&S&&S.ownerDocument&&Lm(S.ownerDocument.documentElement,S)){if(O!==null&&dc(S)){var B=O.start,Q=O.end;if(Q===void 0&&(Q=B),"selectionStart"in S)S.selectionStart=B,S.selectionEnd=Math.min(Q,S.value.length);else{var K=S.ownerDocument||document,k=K&&K.defaultView||window;if(k.getSelection){var q=k.getSelection(),re=S.textContent.length,he=Math.min(O.start,re),Qe=O.end===void 0?he:Math.min(O.end,re);!q.extend&&he>Qe&&(p=Qe,Qe=he,he=p);var L=zm(S,he),D=zm(S,Qe);if(L&&D&&(q.rangeCount!==1||q.anchorNode!==L.node||q.anchorOffset!==L.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var H=K.createRange();H.setStart(L.node,L.offset),q.removeAllRanges(),he>Qe?(q.addRange(H),q.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),q.addRange(H))}}}}for(K=[],q=S;q=q.parentNode;)q.nodeType===1&&K.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var X=K[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ko=!!Vf,Yf=Vf=null}finally{He=o,Z.p=i,U.T=a}}e.current=t,ct=2}}function $v(){if(ct===2){ct=0;var e=La,t=Ti,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var i=Z.p;Z.p=2;var o=He;He|=4;try{Tv(e,t.alternate,t)}finally{He=o,Z.p=i,U.T=a}}ct=3}}function Jv(){if(ct===4||ct===3){ct=0,wS();var e=La,t=Ti,a=la,i=Bv;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,Ti=La=null,Wv(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(za=null),Pu(a),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(dr,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=U.T,o=Z.p,Z.p=2,U.T=null;try{for(var c=e.onRecoverableError,p=0;p<i.length;p++){var S=i[p];c(S.value,{componentStack:S.stack})}}finally{U.T=t,Z.p=o}}(la&3)!==0&&zo(),On(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Af?Pr++:(Pr=0,Af=e):Pr=0,Zr(0)}}function Wv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ar(t)))}function zo(){return Iv(),$v(),Jv(),eg()}function eg(){if(ct!==5)return!1;var e=La,t=Rf;Rf=0;var a=Pu(la),i=U.T,o=Z.p;try{Z.p=32>a?32:a,U.T=null,a=Nf,Nf=null;var c=La,p=la;if(ct=0,Ti=La=null,la=0,(He&6)!==0)throw Error(s(331));var S=He;if(He|=4,Lv(c.current),Mv(c,c.current,p,a),He=S,Zr(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(dr,c)}catch{}return!0}finally{Z.p=o,U.T=i,Wv(e,t)}}function tg(e,t,a){t=ln(a,t),t=rf(e.stateNode,t,2),e=Aa(e,t,2),e!==null&&(mr(e,2),On(e))}function Ve(e,t,a){if(e.tag===3)tg(e,e,a);else for(;t!==null;){if(t.tag===3){tg(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(za===null||!za.has(i))){e=ln(a,e),a=nv(2),i=Aa(t,a,2),i!==null&&(av(a,i,t,e),mr(i,2),On(i));break}}t=t.return}}function jf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new F1;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(wf=!0,o.add(a),e=eE.bind(null,e,t,a),t.then(e,e))}function eE(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Xe===e&&(Ne&a)===a&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>kt()-Ao?(He&2)===0&&Ri(e,0):Cf|=a,Ci===Ne&&(Ci=0)),On(e)}function ng(e,t){t===0&&(t=Ih()),e=gl(e,t),e!==null&&(mr(e,t),On(e))}function tE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ng(e,a)}function nE(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),ng(e,a)}function aE(e,t){return Gu(e,t)}var Lo=null,Ai=null,Mf=!1,Uo=!1,Df=!1,Ha=0;function On(e){e!==Ai&&e.next===null&&(Ai===null?Lo=Ai=e:Ai=Ai.next=e),Uo=!0,Mf||(Mf=!0,iE())}function Zr(e,t){if(!Df&&Uo){Df=!0;do for(var a=!1,i=Lo;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var p=i.suspendedLanes,S=i.pingedLanes;c=(1<<31-Vt(42|e)+1)-1,c&=o&~(p&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,rg(i,c))}else c=Ne,c=ks(i,i===Xe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||hr(i,c)||(a=!0,rg(i,c));i=i.next}while(a);Df=!1}}function lE(){ag()}function ag(){Uo=Mf=!1;var e=0;Ha!==0&&pE()&&(e=Ha);for(var t=kt(),a=null,i=Lo;i!==null;){var o=i.next,c=lg(i,t);c===0?(i.next=null,a===null?Lo=o:a.next=o,o===null&&(Ai=a)):(a=i,(e!==0||(c&3)!==0)&&(Uo=!0)),i=o}ct!==0&&ct!==5||Zr(e),Ha!==0&&(Ha=0)}function lg(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-Vt(c),S=1<<p,O=o[p];O===-1?((S&a)===0||(S&i)!==0)&&(o[p]=jS(S,t)):O<=t&&(e.expiredLanes|=S),c&=~S}if(t=Xe,a=Ne,a=ks(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Qu(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||hr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&Qu(i),Pu(a)){case 2:case 8:a=Zh;break;case 32:a=Ls;break;case 268435456:a=Fh;break;default:a=Ls}return i=ig.bind(null,e),a=Gu(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&Qu(i),e.callbackPriority=2,e.callbackNode=null,2}function ig(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(zo()&&e.callbackNode!==a)return null;var i=Ne;return i=ks(e,e===Xe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(qv(e,i,t),lg(e,kt()),e.callbackNode!=null&&e.callbackNode===a?ig.bind(null,e):null)}function rg(e,t){if(zo())return null;qv(e,t,!0)}function iE(){gE(function(){(He&6)!==0?Gu(Ph,lE):ag()})}function zf(){if(Ha===0){var e=hi;e===0&&(e=Us,Us<<=1,(Us&261888)===0&&(Us=256)),Ha=e}return Ha}function sg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gs(""+e)}function og(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function rE(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=sg((o[_t]||null).action),p=i.submitter;p&&(t=(t=p[_t]||null)?sg(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var S=new Ps("action","action",null,i,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ha!==0){var O=p?og(o,p):new FormData(o);Wc(a,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(S.preventDefault(),O=p?og(o,p):new FormData(o),Wc(a,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var Lf=0;Lf<vc.length;Lf++){var Uf=vc[Lf],sE=Uf.toLowerCase(),oE=Uf[0].toUpperCase()+Uf.slice(1);yn(sE,"on"+oE)}yn(km,"onAnimationEnd"),yn(qm,"onAnimationIteration"),yn(Vm,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(C1,"onTransitionRun"),yn(T1,"onTransitionStart"),yn(R1,"onTransitionCancel"),yn(Ym,"onTransitionEnd"),Wl("onMouseEnter",["mouseout","mouseover"]),Wl("onMouseLeave",["mouseout","mouseover"]),Wl("onPointerEnter",["pointerout","pointerover"]),Wl("onPointerLeave",["pointerout","pointerover"]),hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="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(" "),uE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fr));function ug(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var p=i.length-1;0<=p;p--){var S=i[p],O=S.instance,B=S.currentTarget;if(S=S.listener,O!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=B;try{c(o)}catch(Q){Is(Q)}o.currentTarget=null,c=O}else for(p=0;p<i.length;p++){if(S=i[p],O=S.instance,B=S.currentTarget,S=S.listener,O!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=B;try{c(o)}catch(Q){Is(Q)}o.currentTarget=null,c=O}}}}function Re(e,t){var a=t[Zu];a===void 0&&(a=t[Zu]=new Set);var i=e+"__bubble";a.has(i)||(cg(t,e,2,!1),a.add(i))}function Hf(e,t,a){var i=0;t&&(i|=4),cg(a,e,i,t)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function Bf(e){if(!e[Ho]){e[Ho]=!0,am.forEach(function(a){a!=="selectionchange"&&(uE.has(a)||Hf(a,!1,e),Hf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ho]||(t[Ho]=!0,Hf("selectionchange",!1,t))}}function cg(e,t,a,i){switch(kg(t)){case 2:var o=HE;break;case 8:o=BE;break;default:o=Wf}a=o.bind(null,t,a,e),o=void 0,!ac||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function kf(e,t,a,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var S=i.stateNode.containerInfo;if(S===o)break;if(p===4)for(p=i.return;p!==null;){var O=p.tag;if((O===3||O===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;S!==null;){if(p=Il(S),p===null)return;if(O=p.tag,O===5||O===6||O===26||O===27){i=c=p;continue e}S=S.parentNode}}i=i.return}pm(function(){var B=c,Q=tc(a),K=[];e:{var k=Gm.get(e);if(k!==void 0){var q=Ps,re=e;switch(e){case"keypress":if(Xs(a)===0)break e;case"keydown":case"keyup":q=n1;break;case"focusin":re="focus",q=sc;break;case"focusout":re="blur",q=sc;break;case"beforeblur":case"afterblur":q=sc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=QS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=i1;break;case km:case qm:case Vm:q=PS;break;case Ym:q=s1;break;case"scroll":case"scrollend":q=YS;break;case"wheel":q=u1;break;case"copy":case"cut":case"paste":q=FS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=xm;break;case"toggle":case"beforetoggle":q=f1}var he=(t&4)!==0,Qe=!he&&(e==="scroll"||e==="scrollend"),L=he?k!==null?k+"Capture":null:k;he=[];for(var D=B,H;D!==null;){var X=D;if(H=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||H===null||L===null||(X=gr(D,L),X!=null&&he.push(Ir(D,X,H))),Qe)break;D=D.return}0<he.length&&(k=new q(k,re,null,a,Q),K.push({event:k,listeners:he}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",k&&a!==ec&&(re=a.relatedTarget||a.fromElement)&&(Il(re)||re[Fl]))break e;if((q||k)&&(k=Q.window===Q?Q:(k=Q.ownerDocument)?k.defaultView||k.parentWindow:window,q?(re=a.relatedTarget||a.toElement,q=B,re=re?Il(re):null,re!==null&&(Qe=f(re),he=re.tag,re!==Qe||he!==5&&he!==27&&he!==6)&&(re=null)):(q=null,re=B),q!==re)){if(he=ym,X="onMouseLeave",L="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(he=xm,X="onPointerLeave",L="onPointerEnter",D="pointer"),Qe=q==null?k:vr(q),H=re==null?k:vr(re),k=new he(X,D+"leave",q,a,Q),k.target=Qe,k.relatedTarget=H,X=null,Il(Q)===B&&(he=new he(L,D+"enter",re,a,Q),he.target=H,he.relatedTarget=Qe,X=he),Qe=X,q&&re)t:{for(he=cE,L=q,D=re,H=0,X=L;X;X=he(X))H++;X=0;for(var fe=D;fe;fe=he(fe))X++;for(;0<H-X;)L=he(L),H--;for(;0<X-H;)D=he(D),X--;for(;H--;){if(L===D||D!==null&&L===D.alternate){he=L;break t}L=he(L),D=he(D)}he=null}else he=null;q!==null&&fg(K,k,q,he,!1),re!==null&&Qe!==null&&fg(K,Qe,re,he,!0)}}e:{if(k=B?vr(B):window,q=k.nodeName&&k.nodeName.toLowerCase(),q==="select"||q==="input"&&k.type==="file")var Le=Am;else if(Rm(k))if(Om)Le=S1;else{Le=b1;var se=y1}else q=k.nodeName,!q||q.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?B&&Wu(B.elementType)&&(Le=Am):Le=x1;if(Le&&(Le=Le(e,B))){Nm(K,Le,a,Q);break e}se&&se(e,k,B),e==="focusout"&&B&&k.type==="number"&&B.memoizedProps.value!=null&&Ju(k,"number",k.value)}switch(se=B?vr(B):window,e){case"focusin":(Rm(se)||se.contentEditable==="true")&&(ii=se,hc=B,Tr=null);break;case"focusout":Tr=hc=ii=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,Hm(K,a,Q);break;case"selectionchange":if(w1)break;case"keydown":case"keyup":Hm(K,a,Q)}var xe;if(uc)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else li?Cm(e,a)&&(Ae="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ae="onCompositionStart");Ae&&(Sm&&a.locale!=="ko"&&(li||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&li&&(xe=vm()):(Sa=Q,lc="value"in Sa?Sa.value:Sa.textContent,li=!0)),se=Bo(B,Ae),0<se.length&&(Ae=new bm(Ae,e,null,a,Q),K.push({event:Ae,listeners:se}),xe?Ae.data=xe:(xe=Tm(a),xe!==null&&(Ae.data=xe)))),(xe=h1?m1(e,a):p1(e,a))&&(Ae=Bo(B,"onBeforeInput"),0<Ae.length&&(se=new bm("onBeforeInput","beforeinput",null,a,Q),K.push({event:se,listeners:Ae}),se.data=xe)),rE(K,e,B,a,Q)}ug(K,t)})}function Ir(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Bo(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=gr(e,a),o!=null&&i.unshift(Ir(e,o,c)),o=gr(e,t),o!=null&&i.push(Ir(e,o,c))),e.tag===3)return i;e=e.return}return[]}function cE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fg(e,t,a,i,o){for(var c=t._reactName,p=[];a!==null&&a!==i;){var S=a,O=S.alternate,B=S.stateNode;if(S=S.tag,O!==null&&O===i)break;S!==5&&S!==26&&S!==27||B===null||(O=B,o?(B=gr(a,c),B!=null&&p.unshift(Ir(a,B,O))):o||(B=gr(a,c),B!=null&&p.push(Ir(a,B,O)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var fE=/\r\n?/g,dE=/\u0000|\uFFFD/g;function dg(e){return(typeof e=="string"?e:""+e).replace(fE,`
|
|
49
|
-
`).replace(dE,"")}function hg(e,t){return t=dg(t),dg(e)===t}function Ge(e,t,a,i,o,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ti(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ti(e,""+i);break;case"className":Vs(e,"class",i);break;case"tabIndex":Vs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Vs(e,a,i);break;case"style":hm(e,i,c);break;case"data":if(t!=="object"){Vs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Gs(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ge(e,t,"name",o.name,o,null),Ge(e,t,"formEncType",o.formEncType,o,null),Ge(e,t,"formMethod",o.formMethod,o,null),Ge(e,t,"formTarget",o.formTarget,o,null)):(Ge(e,t,"encType",o.encType,o,null),Ge(e,t,"method",o.method,o,null),Ge(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Gs(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=Gn);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Gs(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Re("beforetoggle",e),Re("toggle",e),qs(e,"popover",i);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":qs(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=qS.get(a)||a,qs(e,a,i))}}function qf(e,t,a,i,o,c){switch(a){case"style":hm(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?ti(e,i):(typeof i=="number"||typeof i=="bigint")&&ti(e,""+i);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!lm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[_t]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):qs(e,a,i)}}}function xt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var i=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ge(e,t,c,p,a,null)}}o&&Ge(e,t,"srcSet",a.srcSet,a,null),i&&Ge(e,t,"src",a.src,a,null);return;case"input":Re("invalid",e);var S=c=p=o=null,O=null,B=null;for(i in a)if(a.hasOwnProperty(i)){var Q=a[i];if(Q!=null)switch(i){case"name":o=Q;break;case"type":p=Q;break;case"checked":O=Q;break;case"defaultChecked":B=Q;break;case"value":c=Q;break;case"defaultValue":S=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(137,t));break;default:Ge(e,t,i,Q,a,null)}}um(e,c,S,O,B,p,o,!1);return;case"select":Re("invalid",e),i=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(S=a[o],S!=null))switch(o){case"value":c=S;break;case"defaultValue":p=S;break;case"multiple":i=S;default:Ge(e,t,o,S,a,null)}t=c,a=p,e.multiple=!!i,t!=null?ei(e,!!i,t,!1):a!=null&&ei(e,!!i,a,!0);return;case"textarea":Re("invalid",e),c=o=i=null;for(p in a)if(a.hasOwnProperty(p)&&(S=a[p],S!=null))switch(p){case"value":i=S;break;case"defaultValue":o=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:Ge(e,t,p,S,a,null)}fm(e,i,o,c);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(i=a[O],i!=null))switch(O){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ge(e,t,O,i,a,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(i=0;i<Fr.length;i++)Re(Fr[i],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(i=a[B],i!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ge(e,t,B,i,a,null)}return;default:if(Wu(t)){for(Q in a)a.hasOwnProperty(Q)&&(i=a[Q],i!==void 0&&qf(e,t,Q,i,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(i=a[S],i!=null&&Ge(e,t,S,i,a,null))}function hE(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,S=null,O=null,B=null,Q=null;for(q in a){var K=a[q];if(a.hasOwnProperty(q)&&K!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":O=K;default:i.hasOwnProperty(q)||Ge(e,t,q,null,i,K)}}for(var k in i){var q=i[k];if(K=a[k],i.hasOwnProperty(k)&&(q!=null||K!=null))switch(k){case"type":c=q;break;case"name":o=q;break;case"checked":B=q;break;case"defaultChecked":Q=q;break;case"value":p=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:q!==K&&Ge(e,t,k,q,i,K)}}$u(e,p,S,O,B,Q,c,o);return;case"select":q=p=S=k=null;for(c in a)if(O=a[c],a.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":q=O;default:i.hasOwnProperty(c)||Ge(e,t,c,null,i,O)}for(o in i)if(c=i[o],O=a[o],i.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":k=c;break;case"defaultValue":S=c;break;case"multiple":p=c;default:c!==O&&Ge(e,t,o,c,i,O)}t=S,a=p,i=q,k!=null?ei(e,!!a,k,!1):!!i!=!!a&&(t!=null?ei(e,!!a,t,!0):ei(e,!!a,a?[]:"",!1));return;case"textarea":q=k=null;for(S in a)if(o=a[S],a.hasOwnProperty(S)&&o!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ge(e,t,S,null,i,o)}for(p in i)if(o=i[p],c=a[p],i.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":k=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Ge(e,t,p,o,i,c)}cm(e,k,q);return;case"option":for(var re in a)if(k=a[re],a.hasOwnProperty(re)&&k!=null&&!i.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ge(e,t,re,null,i,k)}for(O in i)if(k=i[O],q=a[O],i.hasOwnProperty(O)&&k!==q&&(k!=null||q!=null))switch(O){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ge(e,t,O,k,i,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in a)k=a[he],a.hasOwnProperty(he)&&k!=null&&!i.hasOwnProperty(he)&&Ge(e,t,he,null,i,k);for(B in i)if(k=i[B],q=a[B],i.hasOwnProperty(B)&&k!==q&&(k!=null||q!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Ge(e,t,B,k,i,q)}return;default:if(Wu(t)){for(var Qe in a)k=a[Qe],a.hasOwnProperty(Qe)&&k!==void 0&&!i.hasOwnProperty(Qe)&&qf(e,t,Qe,void 0,i,k);for(Q in i)k=i[Q],q=a[Q],!i.hasOwnProperty(Q)||k===q||k===void 0&&q===void 0||qf(e,t,Q,k,i,q);return}}for(var L in a)k=a[L],a.hasOwnProperty(L)&&k!=null&&!i.hasOwnProperty(L)&&Ge(e,t,L,null,i,k);for(K in i)k=i[K],q=a[K],!i.hasOwnProperty(K)||k===q||k==null&&q==null||Ge(e,t,K,k,i,q)}function mg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var o=a[i],c=o.transferSize,p=o.initiatorType,S=o.duration;if(c&&S&&mg(p)){for(p=0,S=o.responseEnd,i+=1;i<a.length;i++){var O=a[i],B=O.startTime;if(B>S)break;var Q=O.transferSize,K=O.initiatorType;Q&&mg(K)&&(O=O.responseEnd,p+=Q*(O<S?1:(S-B)/(O-B)))}if(--i,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vf=null,Yf=null;function ko(e){return e.nodeType===9?e:e.ownerDocument}function pg(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 vg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Gf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qf=null;function pE(){var e=window.event;return e&&e.type==="popstate"?e===Qf?!1:(Qf=e,!0):(Qf=null,!1)}var gg=typeof setTimeout=="function"?setTimeout:void 0,vE=typeof clearTimeout=="function"?clearTimeout:void 0,yg=typeof Promise=="function"?Promise:void 0,gE=typeof queueMicrotask=="function"?queueMicrotask:typeof yg<"u"?function(e){return yg.resolve(null).then(e).catch(yE)}:gg;function yE(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function bg(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),Mi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")$r(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$r(a);for(var c=a.firstChild;c;){var p=c.nextSibling,S=c.nodeName;c[pr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&$r(e.ownerDocument.body);a=o}while(a);Mi(t)}function xg(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Xf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Xf(a),Fu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function bE(e,t,a,i){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[pr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function xE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=cn(e.nextSibling),e===null))return null;return e}function Sg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function Kf(e){return e.data==="$?"||e.data==="$~"}function Pf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function SE(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zf=null;function Eg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return cn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function wg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Cg(e,t,a){switch(t=ko(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function $r(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fu(e)}var fn=new Map,Tg=new Set;function qo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ia=Z.d;Z.d={f:EE,r:wE,D:CE,C:TE,L:RE,m:NE,X:OE,S:AE,M:_E};function EE(){var e=ia.f(),t=jo();return e||t}function wE(e){var t=$l(e);t!==null&&t.tag===5&&t.type==="form"?Yp(t):ia.r(e)}var Oi=typeof document>"u"?null:document;function Rg(e,t,a){var i=Oi;if(i&&typeof t=="string"&&t){var o=nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Tg.has(o)||(Tg.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),xt(t,"link",e),ht(t),i.head.appendChild(t)))}}function CE(e){ia.D(e),Rg("dns-prefetch",e,null)}function TE(e,t){ia.C(e,t),Rg("preconnect",e,t)}function RE(e,t,a){ia.L(e,t,a);var i=Oi;if(i&&e&&t){var o='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+nn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+nn(a.imageSizes)+'"]')):o+='[href="'+nn(e)+'"]';var c=o;switch(t){case"style":c=_i(e);break;case"script":c=ji(e)}fn.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fn.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Jr(c))||t==="script"&&i.querySelector(Wr(c))||(t=i.createElement("link"),xt(t,"link",e),ht(t),i.head.appendChild(t)))}}function NE(e,t){ia.m(e,t);var a=Oi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+nn(i)+'"][href="'+nn(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ji(e)}if(!fn.has(c)&&(e=b({rel:"modulepreload",href:e},t),fn.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wr(c)))return}i=a.createElement("link"),xt(i,"link",e),ht(i),a.head.appendChild(i)}}}function AE(e,t,a){ia.S(e,t,a);var i=Oi;if(i&&e){var o=Jl(i).hoistableStyles,c=_i(e);t=t||"default";var p=o.get(c);if(!p){var S={loading:0,preload:null};if(p=i.querySelector(Jr(c)))S.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fn.get(c))&&Ff(e,a);var O=p=i.createElement("link");ht(O),xt(O,"link",e),O._p=new Promise(function(B,Q){O.onload=B,O.onerror=Q}),O.addEventListener("load",function(){S.loading|=1}),O.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Vo(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:S},o.set(c,p)}}}function OE(e,t){ia.X(e,t);var a=Oi;if(a&&e){var i=Jl(a).hoistableScripts,o=ji(e),c=i.get(o);c||(c=a.querySelector(Wr(o)),c||(e=b({src:e,async:!0},t),(t=fn.get(o))&&If(e,t),c=a.createElement("script"),ht(c),xt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function _E(e,t){ia.M(e,t);var a=Oi;if(a&&e){var i=Jl(a).hoistableScripts,o=ji(e),c=i.get(o);c||(c=a.querySelector(Wr(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&If(e,t),c=a.createElement("script"),ht(c),xt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Ng(e,t,a,i){var o=(o=ve.current)?qo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=_i(a.href),a=Jl(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=_i(a.href);var c=Jl(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(Jr(e)))&&!c._p&&(p.instance=c,p.state.loading=5),fn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fn.set(e,a),c||jE(o,e,a,p.state))),t&&i===null)throw Error(s(528,""));return p}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ji(a),a=Jl(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function _i(e){return'href="'+nn(e)+'"'}function Jr(e){return'link[rel="stylesheet"]['+e+"]"}function Ag(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function jE(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),xt(t,"link",a),ht(t),e.head.appendChild(t))}function ji(e){return'[src="'+nn(e)+'"]'}function Wr(e){return"script[async]"+e}function Og(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+nn(a.href)+'"]');if(i)return t.instance=i,ht(i),i;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ht(i),xt(i,"style",o),Vo(i,a.precedence,e),t.instance=i;case"stylesheet":o=_i(a.href);var c=e.querySelector(Jr(o));if(c)return t.state.loading|=4,t.instance=c,ht(c),c;i=Ag(a),(o=fn.get(o))&&Ff(i,o),c=(e.ownerDocument||e).createElement("link"),ht(c);var p=c;return p._p=new Promise(function(S,O){p.onload=S,p.onerror=O}),xt(c,"link",i),t.state.loading|=4,Vo(c,a.precedence,e),t.instance=c;case"script":return c=ji(a.src),(o=e.querySelector(Wr(c)))?(t.instance=o,ht(o),o):(i=a,(o=fn.get(c))&&(i=b({},a),If(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ht(o),xt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Vo(i,a.precedence,e));return t.instance}function Vo(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,p=0;p<i.length;p++){var S=i[p];if(S.dataset.precedence===t)c=S;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ff(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function If(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yo=null;function _g(e,t,a){if(Yo===null){var i=new Map,o=Yo=new Map;o.set(a,i)}else o=Yo,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[pr]||c[vt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var S=i.get(p);S?S.push(c):i.set(p,[c])}}return i}function jg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ME(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Mg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function DE(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=_i(i.href),c=t.querySelector(Jr(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Go.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ht(c);return}c=t.ownerDocument||t,i=Ag(i),(o=fn.get(o))&&Ff(i,o),c=c.createElement("link"),ht(c);var p=c;p._p=new Promise(function(S,O){p.onload=S,p.onerror=O}),xt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Go.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var $f=0;function zE(e,t){return e.stylesheets&&e.count===0&&Xo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Xo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&$f===0&&($f=62500*mE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>$f?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Go(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qo=null;function Xo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qo=new Map,t.forEach(LE,e),Qo=null,Go.call(e))}function LE(e,t){if(!(t.state.loading&4)){var a=Qo.get(e);if(a)var i=a.get(null);else{a=new Map,Qo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),i=p)}i&&a.set(null,i)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||i,c===i&&a.set(null,o),a.set(p,o),this.count++,i=Go.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var es={$$typeof:M,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function UE(e,t,a,i,o,c,p,S,O){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xu(0),this.hiddenUpdates=Xu(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Dg(e,t,a,i,o,c,p,S,O,B,Q,K){return e=new UE(e,t,a,p,O,B,Q,K,S),t=1,c===!0&&(t|=24),c=Gt(3,null,null,t),e.current=c,c.stateNode=e,t=Oc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},Dc(c),e}function zg(e){return e?(e=oi,e):oi}function Lg(e,t,a,i,o,c){o=zg(o),i.context===null?i.context=o:i.pendingContext=o,i=Na(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Aa(e,i,t),a!==null&&(Ut(a,e,t),Mr(a,e,t))}function Ug(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Jf(e,t){Ug(e,t),(e=e.alternate)&&Ug(e,t)}function Hg(e){if(e.tag===13||e.tag===31){var t=gl(e,67108864);t!==null&&Ut(t,e,67108864),Jf(e,67108864)}}function Bg(e){if(e.tag===13||e.tag===31){var t=Zt();t=Ku(t);var a=gl(e,t);a!==null&&Ut(a,e,t),Jf(e,t)}}var Ko=!0;function HE(e,t,a,i){var o=U.T;U.T=null;var c=Z.p;try{Z.p=2,Wf(e,t,a,i)}finally{Z.p=c,U.T=o}}function BE(e,t,a,i){var o=U.T;U.T=null;var c=Z.p;try{Z.p=8,Wf(e,t,a,i)}finally{Z.p=c,U.T=o}}function Wf(e,t,a,i){if(Ko){var o=ed(i);if(o===null)kf(e,t,i,Po,a),qg(e,i);else if(qE(o,e,t,a,i))i.stopPropagation();else if(qg(e,i),t&4&&-1<kE.indexOf(e)){for(;o!==null;){var c=$l(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=dl(c.pendingLanes);if(p!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;p;){var O=1<<31-Vt(p);S.entanglements[1]|=O,p&=~O}On(c),(He&6)===0&&(Oo=kt()+500,Zr(0))}}break;case 31:case 13:S=gl(c,2),S!==null&&Ut(S,c,2),jo(),Jf(c,2)}if(c=ed(i),c===null&&kf(e,t,i,Po,a),c===o)break;o=c}o!==null&&i.stopPropagation()}else kf(e,t,i,null,a)}}function ed(e){return e=tc(e),td(e)}var Po=null;function td(e){if(Po=null,e=Il(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Po=e,null}function kg(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(CS()){case Ph:return 2;case Zh:return 8;case Ls:case TS:return 32;case Fh:return 268435456;default:return 32}default:return 32}}var nd=!1,ka=null,qa=null,Va=null,ts=new Map,ns=new Map,Ya=[],kE="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 qg(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function as(e,t,a,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=$l(t),t!==null&&Hg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function qE(e,t,a,i,o){switch(t){case"focusin":return ka=as(ka,e,t,a,i,o),!0;case"dragenter":return qa=as(qa,e,t,a,i,o),!0;case"mouseover":return Va=as(Va,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return ts.set(c,as(ts.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,ns.set(c,as(ns.get(c)||null,e,t,a,i,o)),!0}return!1}function Vg(e){var t=Il(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,tm(e.priority,function(){Bg(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,tm(e.priority,function(){Bg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ed(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);ec=i,a.target.dispatchEvent(i),ec=null}else return t=$l(a),t!==null&&Hg(t),e.blockedOn=a,!1;t.shift()}return!0}function Yg(e,t,a){Zo(e)&&a.delete(t)}function VE(){nd=!1,ka!==null&&Zo(ka)&&(ka=null),qa!==null&&Zo(qa)&&(qa=null),Va!==null&&Zo(Va)&&(Va=null),ts.forEach(Yg),ns.forEach(Yg)}function Fo(e,t){e.blockedOn===t&&(e.blockedOn=null,nd||(nd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,VE)))}var Io=null;function Gg(e){Io!==e&&(Io=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Io===e&&(Io=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(td(i||a)===null)continue;break}var c=$l(a);c!==null&&(e.splice(t,3),t-=3,Wc(c,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function Mi(e){function t(O){return Fo(O,e)}ka!==null&&Fo(ka,e),qa!==null&&Fo(qa,e),Va!==null&&Fo(Va,e),ts.forEach(t),ns.forEach(t);for(var a=0;a<Ya.length;a++){var i=Ya[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ya.length&&(a=Ya[0],a.blockedOn===null);)Vg(a),a.blockedOn===null&&Ya.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],c=a[i+1],p=o[_t]||null;if(typeof c=="function")p||Gg(a);else if(p){var S=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[_t]||null)S=p.formAction;else if(td(o)!==null)continue}else S=p.action;typeof S=="function"?a[i+1]=S:(a.splice(i,3),i-=3),Gg(a)}}}function Qg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function ad(e){this._internalRoot=e}$o.prototype.render=ad.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=Zt();Lg(a,i,e,t,null,null)},$o.prototype.unmount=ad.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lg(e.current,2,null,e,null,null),jo(),t[Fl]=null}};function $o(e){this._internalRoot=e}$o.prototype.unstable_scheduleHydration=function(e){if(e){var t=em();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ya.length&&t!==0&&t<Ya[a].priority;a++);Ya.splice(a,0,e),a===0&&Vg(e)}};var Xg=l.version;if(Xg!=="19.2.4")throw Error(s(527,Xg,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var YE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jo.isDisabled&&Jo.supportsFiber)try{dr=Jo.inject(YE),qt=Jo}catch{}}return is.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",o=Jp,c=Wp,p=ev;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Dg(e,1,!1,null,null,a,i,null,o,c,p,Qg),e[Fl]=t.current,Bf(e),new ad(t)},is.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,o="",c=Jp,p=Wp,S=ev,O=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),t=Dg(e,1,!0,t,a??null,i,o,O,c,p,S,Qg),t.context=zg(null),a=t.current,i=Zt(),i=Ku(i),o=Na(i),o.callback=null,Aa(a,o,i),a=i,t.current.lanes=a,mr(t,a),On(t),e[Fl]=t.current,Bf(e),new $o(t)},is.version="19.2.4",is}var ny;function JE(){if(ny)return sd.exports;ny=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),sd.exports=$E(),sd.exports}var WE=JE();const e2=fh(WE);var lr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zl,Za,Xi,f0,t2=(f0=class extends lr{constructor(){super();ce(this,zl);ce(this,Za);ce(this,Xi);ne(this,Xi,l=>{if(typeof window<"u"&&window.addEventListener){const r=()=>l();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){_(this,Za)||this.setEventListener(_(this,Xi))}onUnsubscribe(){var l;this.hasListeners()||((l=_(this,Za))==null||l.call(this),ne(this,Za,void 0))}setEventListener(l){var r;ne(this,Xi,l),(r=_(this,Za))==null||r.call(this),ne(this,Za,l(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(l){_(this,zl)!==l&&(ne(this,zl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(r=>{r(l)})}isFocused(){var l;return typeof _(this,zl)=="boolean"?_(this,zl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},zl=new WeakMap,Za=new WeakMap,Xi=new WeakMap,f0),hh=new t2,n2={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},Fa,ch,d0,a2=(d0=class{constructor(){ce(this,Fa,n2);ce(this,ch,!1)}setTimeoutProvider(n){ne(this,Fa,n)}setTimeout(n,l){return _(this,Fa).setTimeout(n,l)}clearTimeout(n){_(this,Fa).clearTimeout(n)}setInterval(n,l){return _(this,Fa).setInterval(n,l)}clearInterval(n){_(this,Fa).clearInterval(n)}},Fa=new WeakMap,ch=new WeakMap,d0),Dl=new a2;function l2(n){setTimeout(n,0)}var i2=typeof window>"u"||"Deno"in globalThis;function At(){}function r2(n,l){return typeof n=="function"?n(l):n}function jd(n){return typeof n=="number"&&n>=0&&n!==1/0}function C0(n,l){return Math.max(n+(l||0)-Date.now(),0)}function al(n,l){return typeof n=="function"?n(l):n}function hn(n,l){return typeof n=="function"?n(l):n}function ay(n,l){const{type:r="all",exact:s,fetchStatus:u,predicate:f,queryKey:h,stale:m}=n;if(h){if(s){if(l.queryHash!==mh(h,l.options))return!1}else if(!vs(l.queryKey,h))return!1}if(r!=="all"){const g=l.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||u&&u!==l.state.fetchStatus||f&&!f(l))}function ly(n,l){const{exact:r,status:s,predicate:u,mutationKey:f}=n;if(f){if(!l.options.mutationKey)return!1;if(r){if(Gl(l.options.mutationKey)!==Gl(f))return!1}else if(!vs(l.options.mutationKey,f))return!1}return!(s&&l.state.status!==s||u&&!u(l))}function mh(n,l){return((l==null?void 0:l.queryKeyHashFn)||Gl)(n)}function Gl(n){return JSON.stringify(n,(l,r)=>Md(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function vs(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(r=>vs(n[r],l[r])):!1}var s2=Object.prototype.hasOwnProperty;function T0(n,l,r=0){if(n===l)return n;if(r>500)return l;const s=iy(n)&&iy(l);if(!s&&!(Md(n)&&Md(l)))return l;const f=(s?n:Object.keys(n)).length,h=s?l:Object.keys(l),m=h.length,g=s?new Array(m):{};let v=0;for(let x=0;x<m;x++){const b=s?x:h[x],w=n[b],C=l[b];if(w===C){g[b]=w,(s?x<f:s2.call(n,b))&&v++;continue}if(w===null||C===null||typeof w!="object"||typeof C!="object"){g[b]=C;continue}const A=T0(w,C,r+1);g[b]=A,A===w&&v++}return f===m&&v===f?n:g}function gu(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(n[r]!==l[r])return!1;return!0}function iy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Md(n){if(!ry(n))return!1;const l=n.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!ry(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function ry(n){return Object.prototype.toString.call(n)==="[object Object]"}function o2(n){return new Promise(l=>{Dl.setTimeout(l,n)})}function Dd(n,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,l):r.structuralSharing!==!1?T0(n,l):l}function u2(n,l,r=0){const s=[...n,l];return r&&s.length>r?s.slice(1):s}function c2(n,l,r=0){const s=[l,...n];return r&&s.length>r?s.slice(0,-1):s}var ph=Symbol();function R0(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===ph?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function vh(n,l){return typeof n=="function"?n(...l):!!n}function f2(n,l,r){let s=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??(u=l()),s||(s=!0,u.aborted?r():u.addEventListener("abort",r,{once:!0})),u)}),n}var gs=(()=>{let n=()=>i2;return{isServer(){return n()},setIsServer(l){n=l}}})();function zd(){let n,l;const r=new Promise((u,f)=>{n=u,l=f});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),n(u)},r.reject=u=>{s({status:"rejected",reason:u}),l(u)},r}var d2=l2;function h2(){let n=[],l=0,r=m=>{m()},s=m=>{m()},u=d2;const f=m=>{l?n.push(m):u(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&u(()=>{s(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;l++;try{g=m()}finally{l--,l||h()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{u=m}}}var ft=h2(),Ki,Ia,Pi,h0,m2=(h0=class extends lr{constructor(){super();ce(this,Ki,!0);ce(this,Ia);ce(this,Pi);ne(this,Pi,l=>{if(typeof window<"u"&&window.addEventListener){const r=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){_(this,Ia)||this.setEventListener(_(this,Pi))}onUnsubscribe(){var l;this.hasListeners()||((l=_(this,Ia))==null||l.call(this),ne(this,Ia,void 0))}setEventListener(l){var r;ne(this,Pi,l),(r=_(this,Ia))==null||r.call(this),ne(this,Ia,l(this.setOnline.bind(this)))}setOnline(l){_(this,Ki)!==l&&(ne(this,Ki,l),this.listeners.forEach(s=>{s(l)}))}isOnline(){return _(this,Ki)}},Ki=new WeakMap,Ia=new WeakMap,Pi=new WeakMap,h0),yu=new m2;function p2(n){return Math.min(1e3*2**n,3e4)}function N0(n){return(n??"online")==="online"?yu.isOnline():!0}var Ld=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function A0(n){let l=!1,r=0,s;const u=zd(),f=()=>u.status!=="pending",h=E=>{var T;if(!f()){const N=new Ld(E);w(N),(T=n.onCancel)==null||T.call(n,N)}},m=()=>{l=!0},g=()=>{l=!1},v=()=>hh.isFocused()&&(n.networkMode==="always"||yu.isOnline())&&n.canRun(),x=()=>N0(n.networkMode)&&n.canRun(),b=E=>{f()||(s==null||s(),u.resolve(E))},w=E=>{f()||(s==null||s(),u.reject(E))},C=()=>new Promise(E=>{var T;s=N=>{(f()||v())&&E(N)},(T=n.onPause)==null||T.call(n)}).then(()=>{var E;s=void 0,f()||(E=n.onContinue)==null||E.call(n)}),A=()=>{if(f())return;let E;const T=r===0?n.initialPromise:void 0;try{E=T??n.fn()}catch(N){E=Promise.reject(N)}Promise.resolve(E).then(b).catch(N=>{var P;if(f())return;const j=n.retry??(gs.isServer()?0:3),M=n.retryDelay??p2,z=typeof M=="function"?M(r,N):M,V=j===!0||typeof j=="number"&&r<j||typeof j=="function"&&j(r,N);if(l||!V){w(N);return}r++,(P=n.onFail)==null||P.call(n,r,N),o2(z).then(()=>v()?void 0:C()).then(()=>{l?w(N):A()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(s==null||s(),u),cancelRetry:m,continueRetry:g,canStart:x,start:()=>(x()?A():C().then(A),u)}}var Ll,m0,O0=(m0=class{constructor(){ce(this,Ll)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jd(this.gcTime)&&ne(this,Ll,Dl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(gs.isServer()?1/0:300*1e3))}clearGcTimeout(){_(this,Ll)&&(Dl.clearTimeout(_(this,Ll)),ne(this,Ll,void 0))}},Ll=new WeakMap,m0),Ul,Zi,dn,Hl,pt,Es,Bl,Ft,_0,sa,p0,v2=(p0=class extends O0{constructor(l){super();ce(this,Ft);ce(this,Ul);ce(this,Zi);ce(this,dn);ce(this,Hl);ce(this,pt);ce(this,Es);ce(this,Bl);ne(this,Bl,!1),ne(this,Es,l.defaultOptions),this.setOptions(l.options),this.observers=[],ne(this,Hl,l.client),ne(this,dn,_(this,Hl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,ne(this,Ul,oy(this.options)),this.state=l.state??_(this,Ul),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=_(this,pt))==null?void 0:l.promise}setOptions(l){if(this.options={..._(this,Es),...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=oy(this.options);r.data!==void 0&&(this.setState(sy(r.data,r.dataUpdatedAt)),ne(this,Ul,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,dn).remove(this)}setData(l,r){const s=Dd(this.state.data,l,this.options);return Se(this,Ft,sa).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(l,r){Se(this,Ft,sa).call(this,{type:"setState",state:l,setStateOptions:r})}cancel(l){var s,u;const r=(s=_(this,pt))==null?void 0:s.promise;return(u=_(this,pt))==null||u.cancel(l),r?r.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return _(this,Ul)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>hn(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ph||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>al(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!C0(this.state.dataUpdatedAt,l)}onFocus(){var r;const l=this.observers.find(s=>s.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(r=_(this,pt))==null||r.continue()}onOnline(){var r;const l=this.observers.find(s=>s.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(r=_(this,pt))==null||r.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),_(this,dn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(r=>r!==l),this.observers.length||(_(this,pt)&&(_(this,Bl)||Se(this,Ft,_0).call(this)?_(this,pt).cancel({revert:!0}):_(this,pt).cancelRetry()),this.scheduleGc()),_(this,dn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Ft,sa).call(this,{type:"invalidate"})}async fetch(l,r){var g,v,x,b,w,C,A,E,T,N,j,M;if(this.state.fetchStatus!=="idle"&&((g=_(this,pt))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(_(this,pt))return _(this,pt).continueRetry(),_(this,pt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const z=this.observers.find(V=>V.options.queryFn);z&&this.setOptions(z.options)}const s=new AbortController,u=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(ne(this,Bl,!0),s.signal)})},f=()=>{const z=R0(this.options,r),P=(()=>{const Y={client:_(this,Hl),queryKey:this.queryKey,meta:this.meta};return u(Y),Y})();return ne(this,Bl,!1),this.options.persister?this.options.persister(z,P,this):z(P)},m=(()=>{const z={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:_(this,Hl),state:this.state,fetchFn:f};return u(z),z})();(v=this.options.behavior)==null||v.onFetch(m,this),ne(this,Zi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&Se(this,Ft,sa).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta}),ne(this,pt,A0({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:z=>{z instanceof Ld&&z.revert&&this.setState({..._(this,Zi),fetchStatus:"idle"}),s.abort()},onFail:(z,V)=>{Se(this,Ft,sa).call(this,{type:"failed",failureCount:z,error:V})},onPause:()=>{Se(this,Ft,sa).call(this,{type:"pause"})},onContinue:()=>{Se(this,Ft,sa).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const z=await _(this,pt).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(C=(w=_(this,dn).config).onSuccess)==null||C.call(w,z,this),(E=(A=_(this,dn).config).onSettled)==null||E.call(A,z,this.state.error,this),z}catch(z){if(z instanceof Ld){if(z.silent)return _(this,pt).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw Se(this,Ft,sa).call(this,{type:"error",error:z}),(N=(T=_(this,dn).config).onError)==null||N.call(T,z,this),(M=(j=_(this,dn).config).onSettled)==null||M.call(j,this.state.data,z,this),z}finally{this.scheduleGc()}}},Ul=new WeakMap,Zi=new WeakMap,dn=new WeakMap,Hl=new WeakMap,pt=new WeakMap,Es=new WeakMap,Bl=new WeakMap,Ft=new WeakSet,_0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},sa=function(l){const r=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...j0(s.data,this.options),fetchMeta:l.meta??null};case"success":const u={...s,...sy(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Zi,l.manual?u:void 0),u;case"error":const f=l.error;return{...s,error:f,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=r(this.state),ft.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),_(this,dn).notify({query:this,type:"updated",action:l})})},p0);function j0(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:N0(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function sy(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function oy(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,r=l!==void 0,s=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ht,_e,ws,Nt,kl,Fi,ua,$a,Cs,Ii,$i,ql,Vl,Ja,Ji,ke,ds,Ud,Hd,Bd,kd,qd,Vd,Yd,M0,v0,g2=(v0=class extends lr{constructor(l,r){super();ce(this,ke);ce(this,Ht);ce(this,_e);ce(this,ws);ce(this,Nt);ce(this,kl);ce(this,Fi);ce(this,ua);ce(this,$a);ce(this,Cs);ce(this,Ii);ce(this,$i);ce(this,ql);ce(this,Vl);ce(this,Ja);ce(this,Ji,new Set);this.options=r,ne(this,Ht,l),ne(this,$a,null),ne(this,ua,zd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,_e).addObserver(this),uy(_(this,_e),this.options)?Se(this,ke,ds).call(this):this.updateResult(),Se(this,ke,kd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gd(_(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gd(_(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,ke,qd).call(this),Se(this,ke,Vd).call(this),_(this,_e).removeObserver(this)}setOptions(l){const r=this.options,s=_(this,_e);if(this.options=_(this,Ht).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hn(this.options.enabled,_(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,ke,Yd).call(this),_(this,_e).setOptions(this.options),r._defaulted&&!gu(this.options,r)&&_(this,Ht).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,_e),observer:this});const u=this.hasListeners();u&&cy(_(this,_e),s,this.options,r)&&Se(this,ke,ds).call(this),this.updateResult(),u&&(_(this,_e)!==s||hn(this.options.enabled,_(this,_e))!==hn(r.enabled,_(this,_e))||al(this.options.staleTime,_(this,_e))!==al(r.staleTime,_(this,_e)))&&Se(this,ke,Ud).call(this);const f=Se(this,ke,Hd).call(this);u&&(_(this,_e)!==s||hn(this.options.enabled,_(this,_e))!==hn(r.enabled,_(this,_e))||f!==_(this,Ja))&&Se(this,ke,Bd).call(this,f)}getOptimisticResult(l){const r=_(this,Ht).getQueryCache().build(_(this,Ht),l),s=this.createResult(r,l);return b2(this,s)&&(ne(this,Nt,s),ne(this,Fi,this.options),ne(this,kl,_(this,_e).state)),s}getCurrentResult(){return _(this,Nt)}trackResult(l,r){return new Proxy(l,{get:(s,u)=>(this.trackProp(u),r==null||r(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_(this,ua).status==="pending"&&_(this,ua).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,u))})}trackProp(l){_(this,Ji).add(l)}getCurrentQuery(){return _(this,_e)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const r=_(this,Ht).defaultQueryOptions(l),s=_(this,Ht).getQueryCache().build(_(this,Ht),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(l){return Se(this,ke,ds).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Nt)))}createResult(l,r){var ae;const s=_(this,_e),u=this.options,f=_(this,Nt),h=_(this,kl),m=_(this,Fi),v=l!==s?l.state:_(this,ws),{state:x}=l;let b={...x},w=!1,C;if(r._optimisticResults){const ie=this.hasListeners(),oe=!ie&&uy(l,r),W=ie&&cy(l,s,r,u);(oe||W)&&(b={...b,...j0(x.data,l.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:A,errorUpdatedAt:E,status:T}=b;C=b.data;let N=!1;if(r.placeholderData!==void 0&&C===void 0&&T==="pending"){let ie;f!=null&&f.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(ie=f.data,N=!0):ie=typeof r.placeholderData=="function"?r.placeholderData((ae=_(this,$i))==null?void 0:ae.state.data,_(this,$i)):r.placeholderData,ie!==void 0&&(T="success",C=Dd(f==null?void 0:f.data,ie,r),w=!0)}if(r.select&&C!==void 0&&!N)if(f&&C===(h==null?void 0:h.data)&&r.select===_(this,Cs))C=_(this,Ii);else try{ne(this,Cs,r.select),C=r.select(C),C=Dd(f==null?void 0:f.data,C,r),ne(this,Ii,C),ne(this,$a,null)}catch(ie){ne(this,$a,ie)}_(this,$a)&&(A=_(this,$a),C=_(this,Ii),E=Date.now(),T="error");const j=b.fetchStatus==="fetching",M=T==="pending",z=T==="error",V=M&&j,P=C!==void 0,I={status:T,fetchStatus:b.fetchStatus,isPending:M,isSuccess:T==="success",isError:z,isInitialLoading:V,isLoading:V,data:C,dataUpdatedAt:b.dataUpdatedAt,error:A,errorUpdatedAt:E,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:j,isRefetching:j&&!M,isLoadingError:z&&!P,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:z&&P,isStale:gh(l,r),refetch:this.refetch,promise:_(this,ua),isEnabled:hn(r.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const ie=I.data!==void 0,oe=I.status==="error"&&!ie,W=de=>{oe?de.reject(I.error):ie&&de.resolve(I.data)},pe=()=>{const de=ne(this,ua,I.promise=zd());W(de)},ue=_(this,ua);switch(ue.status){case"pending":l.queryHash===s.queryHash&&W(ue);break;case"fulfilled":(oe||I.data!==ue.value)&&pe();break;case"rejected":(!oe||I.error!==ue.reason)&&pe();break}}return I}updateResult(){const l=_(this,Nt),r=this.createResult(_(this,_e),this.options);if(ne(this,kl,_(this,_e).state),ne(this,Fi,this.options),_(this,kl).data!==void 0&&ne(this,$i,_(this,_e)),gu(r,l))return;ne(this,Nt,r);const s=()=>{if(!l)return!0;const{notifyOnChangeProps:u}=this.options,f=typeof u=="function"?u():u;if(f==="all"||!f&&!_(this,Ji).size)return!0;const h=new Set(f??_(this,Ji));return this.options.throwOnError&&h.add("error"),Object.keys(_(this,Nt)).some(m=>{const g=m;return _(this,Nt)[g]!==l[g]&&h.has(g)})};Se(this,ke,M0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,ke,kd).call(this)}},Ht=new WeakMap,_e=new WeakMap,ws=new WeakMap,Nt=new WeakMap,kl=new WeakMap,Fi=new WeakMap,ua=new WeakMap,$a=new WeakMap,Cs=new WeakMap,Ii=new WeakMap,$i=new WeakMap,ql=new WeakMap,Vl=new WeakMap,Ja=new WeakMap,Ji=new WeakMap,ke=new WeakSet,ds=function(l){Se(this,ke,Yd).call(this);let r=_(this,_e).fetch(this.options,l);return l!=null&&l.throwOnError||(r=r.catch(At)),r},Ud=function(){Se(this,ke,qd).call(this);const l=al(this.options.staleTime,_(this,_e));if(gs.isServer()||_(this,Nt).isStale||!jd(l))return;const s=C0(_(this,Nt).dataUpdatedAt,l)+1;ne(this,ql,Dl.setTimeout(()=>{_(this,Nt).isStale||this.updateResult()},s))},Hd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,_e)):this.options.refetchInterval)??!1},Bd=function(l){Se(this,ke,Vd).call(this),ne(this,Ja,l),!(gs.isServer()||hn(this.options.enabled,_(this,_e))===!1||!jd(_(this,Ja))||_(this,Ja)===0)&&ne(this,Vl,Dl.setInterval(()=>{(this.options.refetchIntervalInBackground||hh.isFocused())&&Se(this,ke,ds).call(this)},_(this,Ja)))},kd=function(){Se(this,ke,Ud).call(this),Se(this,ke,Bd).call(this,Se(this,ke,Hd).call(this))},qd=function(){_(this,ql)&&(Dl.clearTimeout(_(this,ql)),ne(this,ql,void 0))},Vd=function(){_(this,Vl)&&(Dl.clearInterval(_(this,Vl)),ne(this,Vl,void 0))},Yd=function(){const l=_(this,Ht).getQueryCache().build(_(this,Ht),this.options);if(l===_(this,_e))return;const r=_(this,_e);ne(this,_e,l),ne(this,ws,l.state),this.hasListeners()&&(r==null||r.removeObserver(this),l.addObserver(this))},M0=function(l){ft.batch(()=>{l.listeners&&this.listeners.forEach(r=>{r(_(this,Nt))}),_(this,Ht).getQueryCache().notify({query:_(this,_e),type:"observerResultsUpdated"})})},v0);function y2(n,l){return hn(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function uy(n,l){return y2(n,l)||n.state.data!==void 0&&Gd(n,l,l.refetchOnMount)}function Gd(n,l,r){if(hn(l.enabled,n)!==!1&&al(l.staleTime,n)!=="static"){const s=typeof r=="function"?r(n):r;return s==="always"||s!==!1&&gh(n,l)}return!1}function cy(n,l,r,s){return(n!==l||hn(s.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&gh(n,r)}function gh(n,l){return hn(l.enabled,n)!==!1&&n.isStaleByTime(al(l.staleTime,n))}function b2(n,l){return!gu(n.getCurrentResult(),l)}function fy(n){return{onFetch:(l,r)=>{var x,b,w,C,A;const s=l.options,u=(w=(b=(x=l.fetchOptions)==null?void 0:x.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,f=((C=l.state.data)==null?void 0:C.pages)||[],h=((A=l.state.data)==null?void 0:A.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const v=async()=>{let E=!1;const T=M=>{f2(M,()=>l.signal,()=>E=!0)},N=R0(l.options,l.fetchOptions),j=async(M,z,V)=>{if(E)return Promise.reject();if(z==null&&M.pages.length)return Promise.resolve(M);const Y=(()=>{const oe={client:l.client,queryKey:l.queryKey,pageParam:z,direction:V?"backward":"forward",meta:l.options.meta};return T(oe),oe})(),I=await N(Y),{maxPages:ae}=l.options,ie=V?c2:u2;return{pages:ie(M.pages,I,ae),pageParams:ie(M.pageParams,z,ae)}};if(u&&f.length){const M=u==="backward",z=M?x2:dy,V={pages:f,pageParams:h},P=z(s,V);m=await j(V,P,M)}else{const M=n??f.length;do{const z=g===0?h[0]??s.initialPageParam:dy(s,m);if(g>0&&z==null)break;m=await j(m,z),g++}while(g<M)}return m};l.options.persister?l.fetchFn=()=>{var E,T;return(T=(E=l.options).persister)==null?void 0:T.call(E,v,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r)}:l.fetchFn=v}}}function dy(n,{pages:l,pageParams:r}){const s=l.length-1;return l.length>0?n.getNextPageParam(l[s],l,r[s],r):void 0}function x2(n,{pages:l,pageParams:r}){var s;return l.length>0?(s=n.getPreviousPageParam)==null?void 0:s.call(n,l[0],l,r[0],r):void 0}var Ts,_n,wt,Yl,jn,Ka,g0,S2=(g0=class extends O0{constructor(l){super();ce(this,jn);ce(this,Ts);ce(this,_n);ce(this,wt);ce(this,Yl);ne(this,Ts,l.client),this.mutationId=l.mutationId,ne(this,wt,l.mutationCache),ne(this,_n,[]),this.state=l.state||D0(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){_(this,_n).includes(l)||(_(this,_n).push(l),this.clearGcTimeout(),_(this,wt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){ne(this,_n,_(this,_n).filter(r=>r!==l)),this.scheduleGc(),_(this,wt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){_(this,_n).length||(this.state.status==="pending"?this.scheduleGc():_(this,wt).remove(this))}continue(){var l;return((l=_(this,Yl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var h,m,g,v,x,b,w,C,A,E,T,N,j,M,z,V,P,Y;const r=()=>{Se(this,jn,Ka).call(this,{type:"continue"})},s={client:_(this,Ts),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,Yl,A0({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(I,ae)=>{Se(this,jn,Ka).call(this,{type:"failed",failureCount:I,error:ae})},onPause:()=>{Se(this,jn,Ka).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,wt).canRun(this)}));const u=this.state.status==="pending",f=!_(this,Yl).canStart();try{if(u)r();else{Se(this,jn,Ka).call(this,{type:"pending",variables:l,isPaused:f}),_(this,wt).config.onMutate&&await _(this,wt).config.onMutate(l,this,s);const ae=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,l,s));ae!==this.state.context&&Se(this,jn,Ka).call(this,{type:"pending",context:ae,variables:l,isPaused:f})}const I=await _(this,Yl).start();return await((v=(g=_(this,wt).config).onSuccess)==null?void 0:v.call(g,I,l,this.state.context,this,s)),await((b=(x=this.options).onSuccess)==null?void 0:b.call(x,I,l,this.state.context,s)),await((C=(w=_(this,wt).config).onSettled)==null?void 0:C.call(w,I,null,this.state.variables,this.state.context,this,s)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,I,null,l,this.state.context,s)),Se(this,jn,Ka).call(this,{type:"success",data:I}),I}catch(I){try{await((N=(T=_(this,wt).config).onError)==null?void 0:N.call(T,I,l,this.state.context,this,s))}catch(ae){Promise.reject(ae)}try{await((M=(j=this.options).onError)==null?void 0:M.call(j,I,l,this.state.context,s))}catch(ae){Promise.reject(ae)}try{await((V=(z=_(this,wt).config).onSettled)==null?void 0:V.call(z,void 0,I,this.state.variables,this.state.context,this,s))}catch(ae){Promise.reject(ae)}try{await((Y=(P=this.options).onSettled)==null?void 0:Y.call(P,void 0,I,l,this.state.context,s))}catch(ae){Promise.reject(ae)}throw Se(this,jn,Ka).call(this,{type:"error",error:I}),I}finally{_(this,wt).runNext(this)}}},Ts=new WeakMap,_n=new WeakMap,wt=new WeakMap,Yl=new WeakMap,jn=new WeakSet,Ka=function(l){const r=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ft.batch(()=>{_(this,_n).forEach(s=>{s.onMutationUpdate(l)}),_(this,wt).notify({mutation:this,type:"updated",action:l})})},g0);function D0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ca,En,Rs,y0,E2=(y0=class extends lr{constructor(l={}){super();ce(this,ca);ce(this,En);ce(this,Rs);this.config=l,ne(this,ca,new Set),ne(this,En,new Map),ne(this,Rs,0)}build(l,r,s){const u=new S2({client:l,mutationCache:this,mutationId:++Wo(this,Rs)._,options:l.defaultMutationOptions(r),state:s});return this.add(u),u}add(l){_(this,ca).add(l);const r=eu(l);if(typeof r=="string"){const s=_(this,En).get(r);s?s.push(l):_(this,En).set(r,[l])}this.notify({type:"added",mutation:l})}remove(l){if(_(this,ca).delete(l)){const r=eu(l);if(typeof r=="string"){const s=_(this,En).get(r);if(s)if(s.length>1){const u=s.indexOf(l);u!==-1&&s.splice(u,1)}else s[0]===l&&_(this,En).delete(r)}}this.notify({type:"removed",mutation:l})}canRun(l){const r=eu(l);if(typeof r=="string"){const s=_(this,En).get(r),u=s==null?void 0:s.find(f=>f.state.status==="pending");return!u||u===l}else return!0}runNext(l){var s;const r=eu(l);if(typeof r=="string"){const u=(s=_(this,En).get(r))==null?void 0:s.find(f=>f!==l&&f.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{_(this,ca).forEach(l=>{this.notify({type:"removed",mutation:l})}),_(this,ca).clear(),_(this,En).clear()})}getAll(){return Array.from(_(this,ca))}find(l){const r={exact:!0,...l};return this.getAll().find(s=>ly(r,s))}findAll(l={}){return this.getAll().filter(r=>ly(l,r))}notify(l){ft.batch(()=>{this.listeners.forEach(r=>{r(l)})})}resumePausedMutations(){const l=this.getAll().filter(r=>r.state.isPaused);return ft.batch(()=>Promise.all(l.map(r=>r.continue().catch(At))))}},ca=new WeakMap,En=new WeakMap,Rs=new WeakMap,y0);function eu(n){var l;return(l=n.options.scope)==null?void 0:l.id}var fa,Wa,Bt,da,ha,cu,Qd,b0,w2=(b0=class extends lr{constructor(r,s){super();ce(this,ha);ce(this,fa);ce(this,Wa);ce(this,Bt);ce(this,da);ne(this,fa,r),this.setOptions(s),this.bindMethods(),Se(this,ha,cu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var u;const s=this.options;this.options=_(this,fa).defaultMutationOptions(r),gu(this.options,s)||_(this,fa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Bt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Gl(s.mutationKey)!==Gl(this.options.mutationKey)?this.reset():((u=_(this,Bt))==null?void 0:u.state.status)==="pending"&&_(this,Bt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=_(this,Bt))==null||r.removeObserver(this)}onMutationUpdate(r){Se(this,ha,cu).call(this),Se(this,ha,Qd).call(this,r)}getCurrentResult(){return _(this,Wa)}reset(){var r;(r=_(this,Bt))==null||r.removeObserver(this),ne(this,Bt,void 0),Se(this,ha,cu).call(this),Se(this,ha,Qd).call(this)}mutate(r,s){var u;return ne(this,da,s),(u=_(this,Bt))==null||u.removeObserver(this),ne(this,Bt,_(this,fa).getMutationCache().build(_(this,fa),this.options)),_(this,Bt).addObserver(this),_(this,Bt).execute(r)}},fa=new WeakMap,Wa=new WeakMap,Bt=new WeakMap,da=new WeakMap,ha=new WeakSet,cu=function(){var s;const r=((s=_(this,Bt))==null?void 0:s.state)??D0();ne(this,Wa,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qd=function(r){ft.batch(()=>{var s,u,f,h,m,g,v,x;if(_(this,da)&&this.hasListeners()){const b=_(this,Wa).variables,w=_(this,Wa).context,C={client:_(this,fa),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(u=(s=_(this,da)).onSuccess)==null||u.call(s,r.data,b,w,C)}catch(A){Promise.reject(A)}try{(h=(f=_(this,da)).onSettled)==null||h.call(f,r.data,null,b,w,C)}catch(A){Promise.reject(A)}}else if((r==null?void 0:r.type)==="error"){try{(g=(m=_(this,da)).onError)==null||g.call(m,r.error,b,w,C)}catch(A){Promise.reject(A)}try{(x=(v=_(this,da)).onSettled)==null||x.call(v,void 0,r.error,b,w,C)}catch(A){Promise.reject(A)}}}this.listeners.forEach(b=>{b(_(this,Wa))})})},b0),Mn,x0,C2=(x0=class extends lr{constructor(l={}){super();ce(this,Mn);this.config=l,ne(this,Mn,new Map)}build(l,r,s){const u=r.queryKey,f=r.queryHash??mh(u,r);let h=this.get(f);return h||(h=new v2({client:l,queryKey:u,queryHash:f,options:l.defaultQueryOptions(r),state:s,defaultOptions:l.getQueryDefaults(u)}),this.add(h)),h}add(l){_(this,Mn).has(l.queryHash)||(_(this,Mn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const r=_(this,Mn).get(l.queryHash);r&&(l.destroy(),r===l&&_(this,Mn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){ft.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return _(this,Mn).get(l)}getAll(){return[..._(this,Mn).values()]}find(l){const r={exact:!0,...l};return this.getAll().find(s=>ay(r,s))}findAll(l={}){const r=this.getAll();return Object.keys(l).length>0?r.filter(s=>ay(l,s)):r}notify(l){ft.batch(()=>{this.listeners.forEach(r=>{r(l)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Mn=new WeakMap,x0),nt,el,tl,Wi,er,nl,tr,nr,S0,T2=(S0=class{constructor(n={}){ce(this,nt);ce(this,el);ce(this,tl);ce(this,Wi);ce(this,er);ce(this,nl);ce(this,tr);ce(this,nr);ne(this,nt,n.queryCache||new C2),ne(this,el,n.mutationCache||new E2),ne(this,tl,n.defaultOptions||{}),ne(this,Wi,new Map),ne(this,er,new Map),ne(this,nl,0)}mount(){Wo(this,nl)._++,_(this,nl)===1&&(ne(this,tr,hh.subscribe(async n=>{n&&(await this.resumePausedMutations(),_(this,nt).onFocus())})),ne(this,nr,yu.subscribe(async n=>{n&&(await this.resumePausedMutations(),_(this,nt).onOnline())})))}unmount(){var n,l;Wo(this,nl)._--,_(this,nl)===0&&((n=_(this,tr))==null||n.call(this),ne(this,tr,void 0),(l=_(this,nr))==null||l.call(this),ne(this,nr,void 0))}isFetching(n){return _(this,nt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return _(this,el).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=_(this,nt).get(l.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),r=_(this,nt).build(this,l),s=r.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(al(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(s))}getQueriesData(n){return _(this,nt).findAll(n).map(({queryKey:l,state:r})=>{const s=r.data;return[l,s]})}setQueryData(n,l,r){const s=this.defaultQueryOptions({queryKey:n}),u=_(this,nt).get(s.queryHash),f=u==null?void 0:u.state.data,h=r2(l,f);if(h!==void 0)return _(this,nt).build(this,s).setData(h,{...r,manual:!0})}setQueriesData(n,l,r){return ft.batch(()=>_(this,nt).findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,l,r)]))}getQueryState(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=_(this,nt).get(l.queryHash))==null?void 0:r.state}removeQueries(n){const l=_(this,nt);ft.batch(()=>{l.findAll(n).forEach(r=>{l.remove(r)})})}resetQueries(n,l){const r=_(this,nt);return ft.batch(()=>(r.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const r={revert:!0,...l},s=ft.batch(()=>_(this,nt).findAll(n).map(u=>u.cancel(r)));return Promise.all(s).then(At).catch(At)}invalidateQueries(n,l={}){return ft.batch(()=>(_(this,nt).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},l)))}refetchQueries(n,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},s=ft.batch(()=>_(this,nt).findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,r);return r.throwOnError||(f=f.catch(At)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(At)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const r=_(this,nt).build(this,l);return r.isStaleByTime(al(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(At).catch(At)}fetchInfiniteQuery(n){return n.behavior=fy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(At).catch(At)}ensureInfiniteQueryData(n){return n.behavior=fy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return yu.isOnline()?_(this,el).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,nt)}getMutationCache(){return _(this,el)}getDefaultOptions(){return _(this,tl)}setDefaultOptions(n){ne(this,tl,n)}setQueryDefaults(n,l){_(this,Wi).set(Gl(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[..._(this,Wi).values()],r={};return l.forEach(s=>{vs(n,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(n,l){_(this,er).set(Gl(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[..._(this,er).values()],r={};return l.forEach(s=>{vs(n,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const l={..._(this,tl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=mh(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===ph&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{..._(this,tl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){_(this,nt).clear(),_(this,el).clear()}},nt=new WeakMap,el=new WeakMap,tl=new WeakMap,Wi=new WeakMap,er=new WeakMap,nl=new WeakMap,tr=new WeakMap,nr=new WeakMap,S0),z0=y.createContext(void 0),yh=n=>{const l=y.useContext(z0);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},R2=({client:n,children:l})=>(y.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(z0.Provider,{value:n,children:l})),L0=y.createContext(!1),N2=()=>y.useContext(L0);L0.Provider;function A2(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var O2=y.createContext(A2()),_2=()=>y.useContext(O2),j2=(n,l,r)=>{const s=r!=null&&r.state.error&&typeof n.throwOnError=="function"?vh(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(l.isReset()||(n.retryOnMount=!1))},M2=n=>{y.useEffect(()=>{n.clearReset()},[n])},D2=({result:n,errorResetBoundary:l,throwOnError:r,query:s,suspense:u})=>n.isError&&!l.isReset()&&!n.isFetching&&s&&(u&&n.data===void 0||vh(r,[n.error,s])),z2=n=>{if(n.suspense){const r=u=>u==="static"?u:Math.max(u??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...u)=>r(s(...u)):r(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},L2=(n,l)=>n.isLoading&&n.isFetching&&!l,U2=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,hy=(n,l,r)=>l.fetchOptimistic(n).catch(()=>{r.clearReset()});function H2(n,l,r){var w,C,A,E;const s=N2(),u=_2(),f=yh(),h=f.defaultQueryOptions(n);(C=(w=f.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||C.call(w,h);const m=f.getQueryCache().get(h.queryHash);h._optimisticResults=s?"isRestoring":"optimistic",z2(h),j2(h,u,m),M2(u);const g=!f.getQueryCache().get(h.queryHash),[v]=y.useState(()=>new l(f,h)),x=v.getOptimisticResult(h),b=!s&&n.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(T=>{const N=b?v.subscribe(ft.batchCalls(T)):At;return v.updateResult(),N},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),y.useEffect(()=>{v.setOptions(h)},[h,v]),U2(h,x))throw hy(h,v,u);if(D2({result:x,errorResetBoundary:u,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw x.error;if((E=(A=f.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||E.call(A,h,x),h.experimental_prefetchInRender&&!gs.isServer()&&L2(x,s)){const T=g?hy(h,v,u):m==null?void 0:m.promise;T==null||T.catch(At).finally(()=>{v.updateResult()})}return h.notifyOnChangeProps?x:v.trackResult(x)}function Ns(n,l){return H2(n,g2)}function B2(n,l){const r=yh(),[s]=y.useState(()=>new w2(r,n));y.useEffect(()=>{s.setOptions(n)},[s,n]);const u=y.useSyncExternalStore(y.useCallback(h=>s.subscribe(ft.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=y.useCallback((h,m)=>{s.mutate(h,m).catch(At)},[s]);if(u.error&&vh(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}/**
|
|
50
|
-
* react-router v7.13.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var my="popstate";function py(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function k2(n={}){function l(s,u){var v;let f=(v=u.state)==null?void 0:v.masked,{pathname:h,search:m,hash:g}=f||s.location;return Xd("",{pathname:h,search:m,hash:g},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,u){return typeof u=="string"?u:ys(u)}return V2(l,r,null,n)}function We(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Hn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function q2(){return Math.random().toString(36).substring(2,10)}function vy(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Xd(n,l,r=null,s,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?ir(l):l,state:r,key:l&&l.key||s||q2(),unstable_mask:u}}function ys({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function ir(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let s=n.indexOf("?");s>=0&&(l.search=n.substring(s),n=n.substring(0,s)),n&&(l.pathname=n)}return l}function V2(n,l,r,s={}){let{window:u=document.defaultView,v5Compat:f=!1}=s,h=u.history,m="POP",g=null,v=x();v==null&&(v=0,h.replaceState({...h.state,idx:v},""));function x(){return(h.state||{idx:null}).idx}function b(){m="POP";let T=x(),N=T==null?null:T-v;v=T,g&&g({action:m,location:E.location,delta:N})}function w(T,N){m="PUSH";let j=py(T)?T:Xd(E.location,T,N);v=x()+1;let M=vy(j,v),z=E.createHref(j.unstable_mask||j);try{h.pushState(M,"",z)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;u.location.assign(z)}f&&g&&g({action:m,location:E.location,delta:1})}function C(T,N){m="REPLACE";let j=py(T)?T:Xd(E.location,T,N);v=x();let M=vy(j,v),z=E.createHref(j.unstable_mask||j);h.replaceState(M,"",z),f&&g&&g({action:m,location:E.location,delta:0})}function A(T){return Y2(T)}let E={get action(){return m},get location(){return n(u,h)},listen(T){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(my,b),g=T,()=>{u.removeEventListener(my,b),g=null}},createHref(T){return l(u,T)},createURL:A,encodeLocation(T){let N=A(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:w,replace:C,go(T){return h.go(T)}};return E}function Y2(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),We(r,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:ys(n);return s=s.replace(/ $/,"%20"),!l&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function U0(n,l,r="/"){return G2(n,l,r,!1)}function G2(n,l,r,s){let u=typeof l=="string"?ir(l):l,f=ma(u.pathname||"/",r);if(f==null)return null;let h=H0(n);Q2(h);let m=null;for(let g=0;m==null&&g<h.length;++g){let v=tw(f);m=W2(h[g],v,s)}return m}function H0(n,l=[],r=[],s="",u=!1){let f=(h,m,g=u,v)=>{let x={relativePath:v===void 0?h.path||"":v,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&g)return;We(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let b=Ln([s,x.relativePath]),w=r.concat(x);h.children&&h.children.length>0&&(We(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),H0(h.children,l,w,b,g)),!(h.path==null&&!h.index)&&l.push({path:b,score:$2(b,h.index),routesMeta:w})};return n.forEach((h,m)=>{var g;if(h.path===""||!((g=h.path)!=null&&g.includes("?")))f(h,m);else for(let v of B0(h.path))f(h,m,!0,v)}),l}function B0(n){let l=n.split("/");if(l.length===0)return[];let[r,...s]=l,u=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return u?[f,""]:[f];let h=B0(s.join("/")),m=[];return m.push(...h.map(g=>g===""?f:[f,g].join("/"))),u&&m.push(...h),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function Q2(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:J2(l.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var X2=/^:[\w-]+$/,K2=3,P2=2,Z2=1,F2=10,I2=-2,gy=n=>n==="*";function $2(n,l){let r=n.split("/"),s=r.length;return r.some(gy)&&(s+=I2),l&&(s+=P2),r.filter(u=>!gy(u)).reduce((u,f)=>u+(X2.test(f)?K2:f===""?Z2:F2),s)}function J2(n,l){return n.length===l.length&&n.slice(0,-1).every((s,u)=>s===l[u])?n[n.length-1]-l[l.length-1]:0}function W2(n,l,r=!1){let{routesMeta:s}=n,u={},f="/",h=[];for(let m=0;m<s.length;++m){let g=s[m],v=m===s.length-1,x=f==="/"?l:l.slice(f.length)||"/",b=bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},x),w=g.route;if(!b&&v&&r&&!s[s.length-1].route.index&&(b=bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!b)return null;Object.assign(u,b.params),h.push({params:u,pathname:Ln([f,b.pathname]),pathnameBase:iw(Ln([f,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(f=Ln([f,b.pathnameBase]))}return h}function bu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,s]=ew(n.path,n.caseSensitive,n.end),u=l.match(r);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:s.reduce((v,{paramName:x,isOptional:b},w)=>{if(x==="*"){let A=m[w]||"";h=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const C=m[w];return b&&!C?v[x]=void 0:v[x]=(C||"").replace(/%2F/g,"/"),v},{}),pathname:f,pathnameBase:h,pattern:n}}function ew(n,l=!1,r=!0){Hn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,g,v,x)=>{if(s.push({paramName:m,isOptional:g!=null}),g){let b=x.charAt(v+h.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),s]}function tw(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Hn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function ma(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,s=n.charAt(r);return s&&s!=="/"?null:n.slice(r)||"/"}var nw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function aw(n,l="/"){let{pathname:r,search:s="",hash:u=""}=typeof n=="string"?ir(n):n,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=yy(r.substring(1),"/"):f=yy(r,l)):f=l,{pathname:f,search:rw(s),hash:sw(u)}}function yy(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function fd(n,l,r,s){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lw(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function k0(n){let l=lw(n);return l.map((r,s)=>s===l.length-1?r.pathname:r.pathnameBase)}function bh(n,l,r,s=!1){let u;typeof n=="string"?u=ir(n):(u={...n},We(!u.pathname||!u.pathname.includes("?"),fd("?","pathname","search",u)),We(!u.pathname||!u.pathname.includes("#"),fd("#","pathname","hash",u)),We(!u.search||!u.search.includes("#"),fd("#","search","hash",u)));let f=n===""||u.pathname==="",h=f?"/":u.pathname,m;if(h==null)m=r;else{let b=l.length-1;if(!s&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),b-=1;u.pathname=w.join("/")}m=b>=0?l[b]:"/"}let g=aw(u,m),v=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(v||x)&&(g.pathname+="/"),g}var Ln=n=>n.join("/").replace(/\/\/+/g,"/"),iw=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),rw=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,sw=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,ow=class{constructor(n,l,r,s=!1){this.status=n,this.statusText=l||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function uw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function cw(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var q0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function V0(n,l){let r=n;if(typeof r!="string"||!nw.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,u=!1;if(q0)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=ma(h.pathname,l);h.origin===f.origin&&m!=null?r=m+h.search+h.hash:u=!0}catch{Hn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Y0=["POST","PUT","PATCH","DELETE"];new Set(Y0);var fw=["GET",...Y0];new Set(fw);var rr=y.createContext(null);rr.displayName="DataRouter";var _u=y.createContext(null);_u.displayName="DataRouterState";var dw=y.createContext(!1),G0=y.createContext({isTransitioning:!1});G0.displayName="ViewTransition";var hw=y.createContext(new Map);hw.displayName="Fetchers";var mw=y.createContext(null);mw.displayName="Await";var gn=y.createContext(null);gn.displayName="Navigation";var As=y.createContext(null);As.displayName="Location";var Bn=y.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var xh=y.createContext(null);xh.displayName="RouteError";var Q0="REACT_ROUTER_ERROR",pw="REDIRECT",vw="ROUTE_ERROR_RESPONSE";function gw(n){if(n.startsWith(`${Q0}:${pw}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function yw(n){if(n.startsWith(`${Q0}:${vw}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new ow(l.status,l.statusText,l.data)}catch{}}function bw(n,{relative:l}={}){We(Os(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=y.useContext(gn),{hash:u,pathname:f,search:h}=_s(n,{relative:l}),m=f;return r!=="/"&&(m=f==="/"?r:Ln([r,f])),s.createHref({pathname:m,search:h,hash:u})}function Os(){return y.useContext(As)!=null}function sl(){return We(Os(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(As).location}var X0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function K0(n){y.useContext(gn).static||y.useLayoutEffect(n)}function xw(){let{isDataRoute:n}=y.useContext(Bn);return n?Lw():Sw()}function Sw(){We(Os(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(rr),{basename:l,navigator:r}=y.useContext(gn),{matches:s}=y.useContext(Bn),{pathname:u}=sl(),f=JSON.stringify(k0(s)),h=y.useRef(!1);return K0(()=>{h.current=!0}),y.useCallback((g,v={})=>{if(Hn(h.current,X0),!h.current)return;if(typeof g=="number"){r.go(g);return}let x=bh(g,JSON.parse(f),u,v.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Ln([l,x.pathname])),(v.replace?r.replace:r.push)(x,v.state,v)},[l,r,f,u,n])}var Ew=y.createContext(null);function ww(n){let l=y.useContext(Bn).outlet;return y.useMemo(()=>l&&y.createElement(Ew.Provider,{value:n},l),[l,n])}function _s(n,{relative:l}={}){let{matches:r}=y.useContext(Bn),{pathname:s}=sl(),u=JSON.stringify(k0(r));return y.useMemo(()=>bh(n,JSON.parse(u),s,l==="path"),[n,u,s,l])}function Cw(n,l){return P0(n,l)}function P0(n,l,r){var T;We(Os(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=y.useContext(gn),{matches:u}=y.useContext(Bn),f=u[u.length-1],h=f?f.params:{},m=f?f.pathname:"/",g=f?f.pathnameBase:"/",v=f&&f.route;{let N=v&&v.path||"";F0(m,!v||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let x=sl(),b;if(l){let N=typeof l=="string"?ir(l):l;We(g==="/"||((T=N.pathname)==null?void 0:T.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=x;let w=b.pathname||"/",C=w;if(g!=="/"){let N=g.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=U0(n,{pathname:C});Hn(v||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Hn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=Ow(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:Ln([g,s.encodeLocation?s.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?g:Ln([g,s.encodeLocation?s.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),u,r);return l&&E?y.createElement(As.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},E):E}function Tw(){let n=zw(),l=uw(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:f},"ErrorBoundary")," or"," ",y.createElement("code",{style:f},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},l),r?y.createElement("pre",{style:u},r):null,h)}var Rw=y.createElement(Tw,null),Z0=class extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=yw(n.digest);r&&(n=r)}let l=n!==void 0?y.createElement(Bn.Provider,{value:this.props.routeContext},y.createElement(xh.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?y.createElement(Nw,{error:n},l):l}};Z0.contextType=dw;var dd=new WeakMap;function Nw({children:n,error:l}){let{basename:r}=y.useContext(gn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let s=gw(l.digest);if(s){let u=dd.get(l);if(u)throw u;let f=V0(s.location,r);if(q0&&!dd.get(l))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw dd.set(l,h),h}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function Aw({routeContext:n,match:l,children:r}){let s=y.useContext(rr);return s&&s.static&&s.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=l.route.id),y.createElement(Bn.Provider,{value:n},r)}function Ow(n,l=[],r){let s=r==null?void 0:r.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(l.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let u=n,f=s==null?void 0:s.errors;if(f!=null){let x=u.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);We(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let h=!1,m=-1;if(r&&s){h=s.renderFallback;for(let x=0;x<u.length;x++){let b=u[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(m=x),b.route.id){let{loaderData:w,errors:C}=s,A=b.route.loader&&!w.hasOwnProperty(b.route.id)&&(!C||C[b.route.id]===void 0);if(b.route.lazy||A){r.isStatic&&(h=!0),m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}}let g=r==null?void 0:r.onError,v=s&&g?(x,b)=>{var w,C;g(x,{location:s.location,params:((C=(w=s.matches)==null?void 0:w[0])==null?void 0:C.params)??{},unstable_pattern:cw(s.matches),errorInfo:b})}:void 0;return u.reduceRight((x,b,w)=>{let C,A=!1,E=null,T=null;s&&(C=f&&b.route.id?f[b.route.id]:void 0,E=b.route.errorElement||Rw,h&&(m<0&&w===0?(F0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,T=null):m===w&&(A=!0,T=b.route.hydrateFallbackElement||null)));let N=l.concat(u.slice(0,w+1)),j=()=>{let M;return C?M=E:A?M=T:b.route.Component?M=y.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=x,y.createElement(Aw,{match:b,routeContext:{outlet:x,matches:N,isDataRoute:s!=null},children:M})};return s&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?y.createElement(Z0,{location:s.location,revalidation:s.revalidation,component:E,error:C,children:j(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:v}):j()},null)}function Sh(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _w(n){let l=y.useContext(rr);return We(l,Sh(n)),l}function jw(n){let l=y.useContext(_u);return We(l,Sh(n)),l}function Mw(n){let l=y.useContext(Bn);return We(l,Sh(n)),l}function Eh(n){let l=Mw(n),r=l.matches[l.matches.length-1];return We(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Dw(){return Eh("useRouteId")}function zw(){var s;let n=y.useContext(xh),l=jw("useRouteError"),r=Eh("useRouteError");return n!==void 0?n:(s=l.errors)==null?void 0:s[r]}function Lw(){let{router:n}=_w("useNavigate"),l=Eh("useNavigate"),r=y.useRef(!1);return K0(()=>{r.current=!0}),y.useCallback(async(u,f={})=>{Hn(r.current,X0),r.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:l,...f}))},[n,l])}var by={};function F0(n,l,r){!l&&!by[n]&&(by[n]=!0,Hn(!1,r))}y.memo(Uw);function Uw({routes:n,future:l,state:r,isStatic:s,onError:u}){return P0(n,void 0,{state:r,isStatic:s,onError:u})}function Hw(n){return ww(n.context)}function Ui(n){We(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Bw({basename:n="/",children:l=null,location:r,navigationType:s="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){We(!Os(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),g=y.useMemo(()=>({basename:m,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[m,u,f,h]);typeof r=="string"&&(r=ir(r));let{pathname:v="/",search:x="",hash:b="",state:w=null,key:C="default",unstable_mask:A}=r,E=y.useMemo(()=>{let T=ma(v,m);return T==null?null:{location:{pathname:T,search:x,hash:b,state:w,key:C,unstable_mask:A},navigationType:s}},[m,v,x,b,w,C,s,A]);return Hn(E!=null,`<Router basename="${m}"> is not able to match the URL "${v}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:y.createElement(gn.Provider,{value:g},y.createElement(As.Provider,{children:l,value:E}))}function kw({children:n,location:l}){return Cw(Kd(n),l)}function Kd(n,l=[]){let r=[];return y.Children.forEach(n,(s,u)=>{if(!y.isValidElement(s))return;let f=[...l,u];if(s.type===y.Fragment){r.push.apply(r,Kd(s.props.children,f));return}We(s.type===Ui,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),We(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Kd(s.props.children,f)),r.push(h)}),r}var fu="get",du="application/x-www-form-urlencoded";function ju(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function qw(n){return ju(n)&&n.tagName.toLowerCase()==="button"}function Vw(n){return ju(n)&&n.tagName.toLowerCase()==="form"}function Yw(n){return ju(n)&&n.tagName.toLowerCase()==="input"}function Gw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Qw(n,l){return n.button===0&&(!l||l==="_self")&&!Gw(n)}var tu=null;function Xw(){if(tu===null)try{new FormData(document.createElement("form"),0),tu=!1}catch{tu=!0}return tu}var Kw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hd(n){return n!=null&&!Kw.has(n)?(Hn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${du}"`),null):n}function Pw(n,l){let r,s,u,f,h;if(Vw(n)){let m=n.getAttribute("action");s=m?ma(m,l):null,r=n.getAttribute("method")||fu,u=hd(n.getAttribute("enctype"))||du,f=new FormData(n)}else if(qw(n)||Yw(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(s=g?ma(g,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||fu,u=hd(n.getAttribute("formenctype"))||hd(m.getAttribute("enctype"))||du,f=new FormData(m,n),!Xw()){let{name:v,type:x,value:b}=n;if(x==="image"){let w=v?`${v}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else v&&f.append(v,b)}}else{if(ju(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=fu,s=null,u=du,h=n}return f&&u==="text/plain"&&(h=f,f=void 0),{action:s,method:r.toLowerCase(),encType:u,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function wh(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Zw(n,l,r,s){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${s}`:u.pathname=`${u.pathname}.${s}`:u.pathname==="/"?u.pathname=`_root.${s}`:l&&ma(u.pathname,l)==="/"?u.pathname=`${l.replace(/\/$/,"")}/_root.${s}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${s}`,u}async function Fw(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Iw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function $w(n,l,r){let s=await Promise.all(n.map(async u=>{let f=l.routes[u.route.id];if(f){let h=await Fw(f,r);return h.links?h.links():[]}return[]}));return tC(s.flat(1).filter(Iw).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function xy(n,l,r,s,u,f){let h=(g,v)=>r[v]?g.route.id!==r[v].route.id:!0,m=(g,v)=>{var x;return r[v].pathname!==g.pathname||((x=r[v].route.path)==null?void 0:x.endsWith("*"))&&r[v].params["*"]!==g.params["*"]};return f==="assets"?l.filter((g,v)=>h(g,v)||m(g,v)):f==="data"?l.filter((g,v)=>{var b;let x=s.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(h(g,v)||m(g,v))return!0;if(g.route.shouldRevalidate){let w=g.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Jw(n,l,{includeHydrateFallback:r}={}){return Ww(n.map(s=>{let u=l.routes[s.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function Ww(n){return[...new Set(n)]}function eC(n){let l={},r=Object.keys(n).sort();for(let s of r)l[s]=n[s];return l}function tC(n,l){let r=new Set;return new Set(l),n.reduce((s,u)=>{let f=JSON.stringify(eC(u));return r.has(f)||(r.add(f),s.push({key:f,link:u})),s},[])}function I0(){let n=y.useContext(rr);return wh(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function nC(){let n=y.useContext(_u);return wh(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ch=y.createContext(void 0);Ch.displayName="FrameworkContext";function $0(){let n=y.useContext(Ch);return wh(n,"You must render this element inside a <HydratedRouter> element"),n}function aC(n,l){let r=y.useContext(Ch),[s,u]=y.useState(!1),[f,h]=y.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:v,onMouseLeave:x,onTouchStart:b}=l,w=y.useRef(null);y.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let E=N=>{N.forEach(j=>{h(j.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return w.current&&T.observe(w.current),()=>{T.disconnect()}}},[n]),y.useEffect(()=>{if(s){let E=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(E)}}},[s]);let C=()=>{u(!0)},A=()=>{u(!1),h(!1)};return r?n!=="intent"?[f,w,{}]:[f,w,{onFocus:rs(m,C),onBlur:rs(g,A),onMouseEnter:rs(v,C),onMouseLeave:rs(x,A),onTouchStart:rs(b,C)}]:[!1,w,{}]}function rs(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function lC({page:n,...l}){let{router:r}=I0(),s=y.useMemo(()=>U0(r.routes,n,r.basename),[r.routes,n,r.basename]);return s?y.createElement(rC,{page:n,matches:s,...l}):null}function iC(n){let{manifest:l,routeModules:r}=$0(),[s,u]=y.useState([]);return y.useEffect(()=>{let f=!1;return $w(n,l,r).then(h=>{f||u(h)}),()=>{f=!0}},[n,l,r]),s}function rC({page:n,matches:l,...r}){let s=sl(),{future:u,manifest:f,routeModules:h}=$0(),{basename:m}=I0(),{loaderData:g,matches:v}=nC(),x=y.useMemo(()=>xy(n,l,v,f,s,"data"),[n,l,v,f,s]),b=y.useMemo(()=>xy(n,l,v,f,s,"assets"),[n,l,v,f,s]),w=y.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let E=new Set,T=!1;if(l.forEach(j=>{var z;let M=f.routes[j.route.id];!M||!M.hasLoader||(!x.some(V=>V.route.id===j.route.id)&&j.route.id in g&&((z=h[j.route.id])!=null&&z.shouldRevalidate)||M.hasClientLoader?T=!0:E.add(j.route.id))}),E.size===0)return[];let N=Zw(n,m,u.unstable_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&N.searchParams.set("_routes",l.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[N.pathname+N.search]},[m,u.unstable_trailingSlashAwareDataRequests,g,s,f,x,l,n,h]),C=y.useMemo(()=>Jw(b,f),[b,f]),A=iC(b);return y.createElement(y.Fragment,null,w.map(E=>y.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),C.map(E=>y.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),A.map(({key:E,link:T})=>y.createElement("link",{key:E,nonce:r.nonce,...T,crossOrigin:T.crossOrigin??r.crossOrigin})))}function sC(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var oC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{oC&&(window.__reactRouterVersion="7.13.1")}catch{}function uC({basename:n,children:l,unstable_useTransitions:r,window:s}){let u=y.useRef();u.current==null&&(u.current=k2({window:s,v5Compat:!0}));let f=u.current,[h,m]=y.useState({action:f.action,location:f.location}),g=y.useCallback(v=>{r===!1?m(v):y.startTransition(()=>m(v))},[r]);return y.useLayoutEffect(()=>f.listen(g),[f,g]),y.createElement(Bw,{basename:n,children:l,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:r})}var J0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,W0=y.forwardRef(function({onClick:l,discover:r="render",prefetch:s="none",relative:u,reloadDocument:f,replace:h,unstable_mask:m,state:g,target:v,to:x,preventScrollReset:b,viewTransition:w,unstable_defaultShouldRevalidate:C,...A},E){let{basename:T,navigator:N,unstable_useTransitions:j}=y.useContext(gn),M=typeof x=="string"&&J0.test(x),z=V0(x,T);x=z.to;let V=bw(x,{relative:u}),P=sl(),Y=null;if(m){let de=bh(m,[],P.unstable_mask?P.unstable_mask.pathname:"/",!0);T!=="/"&&(de.pathname=de.pathname==="/"?T:Ln([T,de.pathname])),Y=N.createHref(de)}let[I,ae,ie]=aC(s,A),oe=dC(x,{replace:h,unstable_mask:m,state:g,target:v,preventScrollReset:b,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:C,unstable_useTransitions:j});function W(de){l&&l(de),de.defaultPrevented||oe(de)}let pe=!(z.isExternal||f),ue=y.createElement("a",{...A,...ie,href:(pe?Y:void 0)||z.absoluteURL||V,onClick:pe?W:l,ref:sC(E,ae),target:v,"data-discover":!M&&r==="render"?"true":void 0});return I&&!M?y.createElement(y.Fragment,null,ue,y.createElement(lC,{page:V})):ue});W0.displayName="Link";var eb=y.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:s="",end:u=!1,style:f,to:h,viewTransition:m,children:g,...v},x){let b=_s(h,{relative:v.relative}),w=sl(),C=y.useContext(_u),{navigator:A,basename:E}=y.useContext(gn),T=C!=null&&gC(b)&&m===!0,N=A.encodeLocation?A.encodeLocation(b).pathname:b.pathname,j=w.pathname,M=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(j=j.toLowerCase(),M=M?M.toLowerCase():null,N=N.toLowerCase()),M&&E&&(M=ma(M,E)||M);const z=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let V=j===N||!u&&j.startsWith(N)&&j.charAt(z)==="/",P=M!=null&&(M===N||!u&&M.startsWith(N)&&M.charAt(N.length)==="/"),Y={isActive:V,isPending:P,isTransitioning:T},I=V?l:void 0,ae;typeof s=="function"?ae=s(Y):ae=[s,V?"active":null,P?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ie=typeof f=="function"?f(Y):f;return y.createElement(W0,{...v,"aria-current":I,className:ae,ref:x,style:ie,to:h,viewTransition:m},typeof g=="function"?g(Y):g)});eb.displayName="NavLink";var cC=y.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:s,replace:u,state:f,method:h=fu,action:m,onSubmit:g,relative:v,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:w,...C},A)=>{let{unstable_useTransitions:E}=y.useContext(gn),T=pC(),N=vC(m,{relative:v}),j=h.toLowerCase()==="get"?"get":"post",M=typeof m=="string"&&J0.test(m),z=V=>{if(g&&g(V),V.defaultPrevented)return;V.preventDefault();let P=V.nativeEvent.submitter,Y=(P==null?void 0:P.getAttribute("formmethod"))||h,I=()=>T(P||V.currentTarget,{fetcherKey:l,method:Y,navigate:r,replace:u,state:f,relative:v,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:w});E&&r!==!1?y.startTransition(()=>I()):I()};return y.createElement("form",{ref:A,method:j,action:N,onSubmit:s?g:z,...C,"data-discover":!M&&n==="render"?"true":void 0})});cC.displayName="Form";function fC(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tb(n){let l=y.useContext(rr);return We(l,fC(n)),l}function dC(n,{target:l,replace:r,unstable_mask:s,state:u,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:g,unstable_useTransitions:v}={}){let x=xw(),b=sl(),w=_s(n,{relative:h});return y.useCallback(C=>{if(Qw(C,l)){C.preventDefault();let A=r!==void 0?r:ys(b)===ys(w),E=()=>x(n,{replace:A,unstable_mask:s,state:u,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:g});v?y.startTransition(()=>E()):E()}},[b,x,w,r,s,u,l,n,f,h,m,g,v])}var hC=0,mC=()=>`__${String(++hC)}__`;function pC(){let{router:n}=tb("useSubmit"),{basename:l}=y.useContext(gn),r=Dw(),s=n.fetch,u=n.navigate;return y.useCallback(async(f,h={})=>{let{action:m,method:g,encType:v,formData:x,body:b}=Pw(f,l);if(h.navigate===!1){let w=h.fetcherKey||mC();await s(w,r,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||g,formEncType:h.encType||v,flushSync:h.flushSync})}else await u(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||g,formEncType:h.encType||v,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,u,l,r])}function vC(n,{relative:l}={}){let{basename:r}=y.useContext(gn),s=y.useContext(Bn);We(s,"useFormAction must be used inside a RouteContext");let[u]=s.matches.slice(-1),f={..._s(n||".",{relative:l})},h=sl();if(n==null){f.search=h.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(x=>x==="")){m.delete("index"),g.filter(b=>b).forEach(b=>m.append("index",b));let x=m.toString();f.search=x?`?${x}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Ln([r,f.pathname])),ys(f)}function gC(n,{relative:l}={}){let r=y.useContext(G0);We(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=tb("useViewTransitionState"),u=_s(n,{relative:l});if(!r.isTransitioning)return!1;let f=ma(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=ma(r.nextLocation.pathname,s)||r.nextLocation.pathname;return bu(u.pathname,h)!=null||bu(u.pathname,f)!=null}var js=w0();const yC=fh(js),nb="myco-ui-theme",bC="system",Sy="dark",ab="(prefers-color-scheme: dark)",lb=y.createContext(void 0);function xC(){const n=localStorage.getItem(nb);return n==="light"||n==="dark"||n==="system"?n:bC}function Ey(n){const l=document.documentElement;n==="dark"||n==="system"&&window.matchMedia(ab).matches?l.classList.add(Sy):l.classList.remove(Sy)}function SC({children:n}){const[l,r]=y.useState(xC),s=u=>{localStorage.setItem(nb,u),r(u)};return y.useEffect(()=>{Ey(l)},[l]),y.useEffect(()=>{if(l!=="system")return;const u=window.matchMedia(ab),f=()=>Ey("system");return u.addEventListener("change",f),()=>u.removeEventListener("change",f)},[l]),d.jsx(lb.Provider,{value:{theme:l,setTheme:s},children:n})}function EC(){const n=y.useContext(lb);if(!n)throw new Error("useTheme must be used within a ThemeProvider");return n}const ib="myco-ui-font",wC="geist-mono",CC="--font-ui",rb={"geist-mono":"'Geist Mono', 'SF Mono', 'Fira Code', monospace",system:"ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace","sf-mono":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","fira-code":"'Fira Code', 'Fira Mono', ui-monospace, monospace","jetbrains-mono":"'JetBrains Mono', ui-monospace, monospace"},TC=new Set(Object.keys(rb)),sb=y.createContext(void 0);function RC(){const n=localStorage.getItem(ib);return n&&TC.has(n)?n:wC}function NC(n){document.documentElement.style.setProperty(CC,rb[n])}function AC({children:n}){const[l,r]=y.useState(RC),s=u=>{localStorage.setItem(ib,u),r(u)};return y.useEffect(()=>{NC(l)},[l]),d.jsx(sb.Provider,{value:{font:l,setFont:s},children:n})}function OC(){const n=y.useContext(sb);if(!n)throw new Error("useFont must be used within a FontProvider");return n}const wy=6e4,_C=3e5,jC=200,Cy={active:1,idle:2,deep_sleep:5,hidden:10},Ty=["mousemove","mousedown","keydown","scroll","touchstart"],ob=y.createContext(void 0);function MC({children:n}){const[l,r]=y.useState("active"),s=y.useRef(null),u=y.useRef(null),f=y.useRef(Date.now()),h=y.useCallback(()=>{s.current&&(clearTimeout(s.current),s.current=null),u.current&&(clearTimeout(u.current),u.current=null)},[]),m=y.useCallback(()=>{h(),s.current=setTimeout(()=>{r("idle"),u.current=setTimeout(()=>{r("deep_sleep")},_C-wy)},wy)},[h]),g=y.useCallback(()=>{const x=Date.now();x-f.current<jC||(f.current=x,r("active"),m())},[m]),v=y.useCallback(()=>{document.hidden?(h(),r("hidden")):(r("active"),f.current=Date.now(),m())},[h,m]);return y.useEffect(()=>{m();for(const x of Ty)document.addEventListener(x,g,{passive:!0});return document.addEventListener("visibilitychange",v),()=>{h();for(const x of Ty)document.removeEventListener(x,g);document.removeEventListener("visibilitychange",v)}},[g,v,m,h]),d.jsx(ob.Provider,{value:{powerState:l},children:n})}function DC(){const n=y.useContext(ob);if(!n)throw new Error("usePowerState must be used within a PowerProvider");return n.powerState}/**
|
|
61
|
-
* @license lucide-react v0.460.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const zC=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ub=(...n)=>n.filter((l,r,s)=>!!l&&l.trim()!==""&&s.indexOf(l)===r).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.460.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var LC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
-
* @license lucide-react v0.460.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const UC=y.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:h,...m},g)=>y.createElement("svg",{ref:g,...LC,width:l,height:l,stroke:n,strokeWidth:s?Number(r)*24/Number(l):r,className:ub("lucide",u),...m},[...h.map(([v,x])=>y.createElement(v,x)),...Array.isArray(f)?f:[f]]));/**
|
|
76
|
-
* @license lucide-react v0.460.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 je=(n,l)=>{const r=y.forwardRef(({className:s,...u},f)=>y.createElement(UC,{ref:f,iconNode:l,className:ub(`lucide-${zC(n)}`,s),...u}));return r.displayName=`${n}`,r};/**
|
|
81
|
-
* @license lucide-react v0.460.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 HC=je("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
-
* @license lucide-react v0.460.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 BC=je("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
91
|
-
* @license lucide-react v0.460.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 Pd=je("Brain",[["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"}]]);/**
|
|
96
|
-
* @license lucide-react v0.460.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 kC=je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
101
|
-
* @license lucide-react v0.460.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 cb=je("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
106
|
-
* @license lucide-react v0.460.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 qC=je("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
111
|
-
* @license lucide-react v0.460.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 VC=je("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
116
|
-
* @license lucide-react v0.460.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 YC=je("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
121
|
-
* @license lucide-react v0.460.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 fb=je("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
126
|
-
* @license lucide-react v0.460.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 db=je("CircleX",[["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"}]]);/**
|
|
131
|
-
* @license lucide-react v0.460.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 hb=je("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
136
|
-
* @license lucide-react v0.460.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 GC=je("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
141
|
-
* @license lucide-react v0.460.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 QC=je("FolderOpen",[["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"}]]);/**
|
|
146
|
-
* @license lucide-react v0.460.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 XC=je("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
151
|
-
* @license lucide-react v0.460.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 KC=je("LayoutDashboard",[["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"}]]);/**
|
|
156
|
-
* @license lucide-react v0.460.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 xu=je("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
161
|
-
* @license lucide-react v0.460.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 PC=je("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
166
|
-
* @license lucide-react v0.460.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 ZC=je("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
171
|
-
* @license lucide-react v0.460.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 FC=je("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
176
|
-
* @license lucide-react v0.460.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 mb=je("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
181
|
-
* @license lucide-react v0.460.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 IC=je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
186
|
-
* @license lucide-react v0.460.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 Ml=je("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
191
|
-
* @license lucide-react v0.460.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 $C=je("RotateCcw",[["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"}]]);/**
|
|
196
|
-
* @license lucide-react v0.460.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 JC=je("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
201
|
-
* @license lucide-react v0.460.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 pb=je("ScrollText",[["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"}]]);/**
|
|
206
|
-
* @license lucide-react v0.460.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 WC=je("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
211
|
-
* @license lucide-react v0.460.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 vb=je("Settings",[["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"}]]);/**
|
|
216
|
-
* @license lucide-react v0.460.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 gb=je("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
221
|
-
* @license lucide-react v0.460.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 eT=je("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
226
|
-
* @license lucide-react v0.460.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 tT=je("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
|
|
231
|
-
* @license lucide-react v0.460.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 nT=je("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
236
|
-
* @license lucide-react v0.460.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 yb=je("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
241
|
-
* @license lucide-react v0.460.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 aT=je("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
246
|
-
* @license lucide-react v0.460.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 bb=je("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
251
|
-
* @license lucide-react v0.460.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 lT=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),iT=6e4,rT=3e4;function sT(n,l,r){if(l==="heartbeat"){const s=n*Cy[r];return r==="hidden"?Math.min(s,iT):r==="deep_sleep"?Math.min(s,rT):s}return r==="deep_sleep"||r==="hidden"?!1:n*Cy[r]}function xb(n){const l=DC(),{pollCategory:r,refetchInterval:s,...u}=n,f=sT(s,r,l);return Ns({...u,refetchInterval:f})}const oT="/api";async function ol(n,l){var h;const r=(h=l==null?void 0:l.method)==null?void 0:h.toUpperCase(),u=r==="POST"||r==="PUT"?{"Content-Type":"application/json",...l==null?void 0:l.headers}:l==null?void 0:l.headers,f=await fetch(`${oT}${n}`,{...l,headers:u});if(!f.ok){const m=await f.json().catch(()=>({}));throw new cT(f.status,m)}return f.json()}async function Su(n,l){return ol(n,{method:"POST",body:l?JSON.stringify(l):void 0})}async function uT(n,l){return ol(n,{method:"PUT",body:JSON.stringify(l)})}class cT extends Error{constructor(l,r){super(`API error ${l}`),this.status=l,this.body=r}}const Th={STATS:1e4,LOGS:3e3,PROGRESS:1e3},fT=1e4,dT=3e4;function Ms(){return xb({queryKey:["daemon-stats"],queryFn:({signal:n})=>ol("/stats",{signal:n}),refetchInterval:Th.STATS,pollCategory:"standard"})}const md=500,hT=3e4;function Sb(){const[n,l]=y.useState(!1),r=y.useRef(null);return{restart:y.useCallback(async(u=!1)=>{l(!0);try{const f=await Su("/restart",{force:u});if(f.status==="busy")return l(!1),f;const h=Date.now()+hT;r.current=new AbortController,await new Promise((m,g)=>{const v=async()=>{if(Date.now()>h){g(new Error("Restart timeout"));return}try{if((await fetch("/health",{signal:r.current.signal})).ok){m();return}setTimeout(v,md)}catch{setTimeout(v,md)}};setTimeout(v,md)}),window.location.reload()}catch(f){throw l(!1),f}},[]),isRestarting:n}}function Eb(n){var l,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(l=0;l<u;l++)n[l]&&(r=Eb(n[l]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function wb(){for(var n,l,r=0,s="",u=arguments.length;r<u;r++)(n=arguments[r])&&(l=Eb(n))&&(s&&(s+=" "),s+=l);return s}const Ry=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Ny=wb,Cb=(n,l)=>r=>{var s;if((l==null?void 0:l.variants)==null)return Ny(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:u,defaultVariants:f}=l,h=Object.keys(u).map(v=>{const x=r==null?void 0:r[v],b=f==null?void 0:f[v];if(x===null)return null;const w=Ry(x)||Ry(b);return u[v][w]}),m=r&&Object.entries(r).reduce((v,x)=>{let[b,w]=x;return w===void 0||(v[b]=w),v},{}),g=l==null||(s=l.compoundVariants)===null||s===void 0?void 0:s.reduce((v,x)=>{let{class:b,className:w,...C}=x;return Object.entries(C).every(A=>{let[E,T]=A;return Array.isArray(T)?T.includes({...f,...m}[E]):{...f,...m}[E]===T})?[...v,b,w]:v},[]);return Ny(n,h,g,r==null?void 0:r.class,r==null?void 0:r.className)},Rh="-",mT=n=>{const l=vT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:h=>{const m=h.split(Rh);return m[0]===""&&m.length!==1&&m.shift(),Tb(m,l)||pT(h)},getConflictingClassGroupIds:(h,m)=>{const g=r[h]||[];return m&&s[h]?[...g,...s[h]]:g}}},Tb=(n,l)=>{var h;if(n.length===0)return l.classGroupId;const r=n[0],s=l.nextPart.get(r),u=s?Tb(n.slice(1),s):void 0;if(u)return u;if(l.validators.length===0)return;const f=n.join(Rh);return(h=l.validators.find(({validator:m})=>m(f)))==null?void 0:h.classGroupId},Ay=/^\[(.+)\]$/,pT=n=>{if(Ay.test(n)){const l=Ay.exec(n)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},vT=n=>{const{theme:l,prefix:r}=n,s={nextPart:new Map,validators:[]};return yT(Object.entries(n.classGroups),r).forEach(([f,h])=>{Zd(h,s,f,l)}),s},Zd=(n,l,r,s)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?l:Oy(l,u);f.classGroupId=r;return}if(typeof u=="function"){if(gT(u)){Zd(u(s),l,r,s);return}l.validators.push({validator:u,classGroupId:r});return}Object.entries(u).forEach(([f,h])=>{Zd(h,Oy(l,f),r,s)})})},Oy=(n,l)=>{let r=n;return l.split(Rh).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},gT=n=>n.isThemeGetter,yT=(n,l)=>l?n.map(([r,s])=>{const u=s.map(f=>typeof f=="string"?l+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([h,m])=>[l+h,m])):f);return[r,u]}):n,bT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,s=new Map;const u=(f,h)=>{r.set(f,h),l++,l>n&&(l=0,s=r,r=new Map)};return{get(f){let h=r.get(f);if(h!==void 0)return h;if((h=s.get(f))!==void 0)return u(f,h),h},set(f,h){r.has(f)?r.set(f,h):u(f,h)}}},Rb="!",xT=n=>{const{separator:l,experimentalParseClassName:r}=n,s=l.length===1,u=l[0],f=l.length,h=m=>{const g=[];let v=0,x=0,b;for(let T=0;T<m.length;T++){let N=m[T];if(v===0){if(N===u&&(s||m.slice(T,T+f)===l)){g.push(m.slice(x,T)),x=T+f;continue}if(N==="/"){b=T;continue}}N==="["?v++:N==="]"&&v--}const w=g.length===0?m:m.substring(x),C=w.startsWith(Rb),A=C?w.substring(1):w,E=b&&b>x?b-x:void 0;return{modifiers:g,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:E}};return r?m=>r({className:m,parseClassName:h}):h},ST=n=>{if(n.length<=1)return n;const l=[];let r=[];return n.forEach(s=>{s[0]==="["?(l.push(...r.sort(),s),r=[]):r.push(s)}),l.push(...r.sort()),l},ET=n=>({cache:bT(n.cacheSize),parseClassName:xT(n),...mT(n)}),wT=/\s+/,CT=(n,l)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:u}=l,f=[],h=n.trim().split(wT);let m="";for(let g=h.length-1;g>=0;g-=1){const v=h[g],{modifiers:x,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:C}=r(v);let A=!!C,E=s(A?w.substring(0,C):w);if(!E){if(!A){m=v+(m.length>0?" "+m:m);continue}if(E=s(w),!E){m=v+(m.length>0?" "+m:m);continue}A=!1}const T=ST(x).join(":"),N=b?T+Rb:T,j=N+E;if(f.includes(j))continue;f.push(j);const M=u(E,A);for(let z=0;z<M.length;++z){const V=M[z];f.push(N+V)}m=v+(m.length>0?" "+m:m)}return m};function TT(){let n=0,l,r,s="";for(;n<arguments.length;)(l=arguments[n++])&&(r=Nb(l))&&(s&&(s+=" "),s+=r);return s}const Nb=n=>{if(typeof n=="string")return n;let l,r="";for(let s=0;s<n.length;s++)n[s]&&(l=Nb(n[s]))&&(r&&(r+=" "),r+=l);return r};function RT(n,...l){let r,s,u,f=h;function h(g){const v=l.reduce((x,b)=>b(x),n());return r=ET(v),s=r.cache.get,u=r.cache.set,f=m,m(g)}function m(g){const v=s(g);if(v)return v;const x=CT(g,r);return u(g,x),x}return function(){return f(TT.apply(null,arguments))}}const Fe=n=>{const l=r=>r[n]||[];return l.isThemeGetter=!0,l},Ab=/^\[(?:([a-z-]+):)?(.+)\]$/i,NT=/^\d+\/\d+$/,AT=new Set(["px","full","screen"]),OT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_T=/\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$/,jT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,MT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ra=n=>qi(n)||AT.has(n)||NT.test(n),Qa=n=>sr(n,"length",VT),qi=n=>!!n&&!Number.isNaN(Number(n)),pd=n=>sr(n,"number",qi),ss=n=>!!n&&Number.isInteger(Number(n)),zT=n=>n.endsWith("%")&&qi(n.slice(0,-1)),Ee=n=>Ab.test(n),Xa=n=>OT.test(n),LT=new Set(["length","size","percentage"]),UT=n=>sr(n,LT,Ob),HT=n=>sr(n,"position",Ob),BT=new Set(["image","url"]),kT=n=>sr(n,BT,GT),qT=n=>sr(n,"",YT),os=()=>!0,sr=(n,l,r)=>{const s=Ab.exec(n);return s?s[1]?typeof l=="string"?s[1]===l:l.has(s[1]):r(s[2]):!1},VT=n=>_T.test(n)&&!jT.test(n),Ob=()=>!1,YT=n=>MT.test(n),GT=n=>DT.test(n),QT=()=>{const n=Fe("colors"),l=Fe("spacing"),r=Fe("blur"),s=Fe("brightness"),u=Fe("borderColor"),f=Fe("borderRadius"),h=Fe("borderSpacing"),m=Fe("borderWidth"),g=Fe("contrast"),v=Fe("grayscale"),x=Fe("hueRotate"),b=Fe("invert"),w=Fe("gap"),C=Fe("gradientColorStops"),A=Fe("gradientColorStopPositions"),E=Fe("inset"),T=Fe("margin"),N=Fe("opacity"),j=Fe("padding"),M=Fe("saturate"),z=Fe("scale"),V=Fe("sepia"),P=Fe("skew"),Y=Fe("space"),I=Fe("translate"),ae=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",Ee,l],W=()=>[Ee,l],pe=()=>["",ra,Qa],ue=()=>["auto",qi,Ee],de=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",Ee],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[qi,Ee];return{cacheSize:500,separator:":",theme:{colors:[os],spacing:[ra,Qa],blur:["none","",Xa,Ee],brightness:R(),borderColor:[n],borderRadius:["none","","full",Xa,Ee],borderSpacing:W(),borderWidth:pe(),contrast:R(),grayscale:$(),hueRotate:R(),invert:$(),gap:W(),gradientColorStops:[n],gradientColorStopPositions:[zT,Qa],inset:oe(),margin:oe(),opacity:R(),padding:W(),saturate:R(),scale:R(),sepia:$(),skew:R(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",Ee]}],container:["container"],columns:[{columns:[Xa]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...de(),Ee]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ss,Ee]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ee]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",ss,Ee]}],"grid-cols":[{"grid-cols":[os]}],"col-start-end":[{col:["auto",{span:["full",ss,Ee]},Ee]}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":[os]}],"row-start-end":[{row:["auto",{span:[ss,Ee]},Ee]}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ee]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ee,l]}],"min-w":[{"min-w":[Ee,l,"min","max","fit"]}],"max-w":[{"max-w":[Ee,l,"none","full","min","max","fit","prose",{screen:[Xa]},Xa]}],h:[{h:[Ee,l,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ee,l,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ee,l,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ee,l,"auto","min","max","fit"]}],"font-size":[{text:["base",Xa,Qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pd]}],"font-family":[{font:[os]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ee]}],"line-clamp":[{"line-clamp":["none",qi,pd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ra,Ee]}],"list-image":[{"list-image":["none",Ee]}],"list-style-type":[{list:["none","disc","decimal",Ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ra,Qa]}],"underline-offset":[{"underline-offset":["auto",ra,Ee]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...de(),HT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",UT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kT]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:U()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[ra,Ee]}],"outline-w":[{outline:[ra,Qa]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[ra,Qa]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Xa,qT]}],"shadow-color":[{shadow:[os]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",Xa,Ee]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[b]}],saturate:[{saturate:[M]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[h]}],"border-spacing-x":[{"border-spacing-x":[h]}],"border-spacing-y":[{"border-spacing-y":[h]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ee]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",Ee]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[ss,Ee]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ee]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",Ee]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[ra,Qa,pd]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},XT=RT(QT);function Be(...n){return XT(wb(n))}const KT=Cb("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-primary-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ct=y.forwardRef(({className:n,variant:l,size:r,...s},u)=>d.jsx("button",{className:Be(KT({variant:l,size:r,className:n})),ref:u,...s}));Ct.displayName="Button";const PT=[{to:"/",label:"Dashboard",icon:KC},{to:"/configuration",label:"Configuration",icon:vb},{to:"/operations",label:"Operations",icon:bb},{to:"/logs",label:"Logs",icon:pb}],ZT=[{value:"obsidian",label:"Obsidian"},{value:"vscode",label:"VS Code"},{value:"finder",label:"Finder"}],FT=[{value:"geist-mono",label:"Geist Mono"},{value:"system",label:"System"},{value:"sf-mono",label:"SF Mono"},{value:"fira-code",label:"Fira Code"},{value:"jetbrains-mono",label:"JetBrains"}],_b={compact:.85,normal:1,comfy:1.15},IT={compact:"Compact",normal:"Normal",comfy:"Comfy"},us=["compact","normal","comfy"],_y="myco-ui-sidebar-collapsed",jb="myco-ui-density",$T="--density",JT="normal";function WT(){const n=localStorage.getItem(jb);return n&&n in _b?n:JT}function eR(n){const l=_b[n];document.documentElement.style.setProperty($T,String(l)),document.documentElement.style.fontSize=`calc(14px * ${l})`}function tR(){const[n,l]=y.useState(WT),r=y.useCallback(s=>{localStorage.setItem(jb,s),l(s)},[]);return y.useEffect(()=>{eR(n)},[n]),{density:n,setDensity:r}}function nR(){const[n,l]=y.useState(()=>localStorage.getItem(_y)==="true"),r=y.useCallback(()=>{l(s=>{const u=!s;return localStorage.setItem(_y,String(u)),u})},[]);return{collapsed:n,toggle:r}}function aR(){const{theme:n,setTheme:l}=EC(),r=()=>{l(n==="dark"?"light":"dark")},s=n==="dark"||n==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches;return d.jsxs(Ct,{variant:"ghost",size:"sm",onClick:r,className:"w-full justify-start gap-2 text-muted-foreground hover:text-foreground",children:[s?d.jsx(eT,{className:"h-4 w-4"}):d.jsx(ZC,{className:"h-4 w-4"}),d.jsx("span",{children:s?"Light mode":"Dark mode"})]})}function lR(){const{restart:n,isRestarting:l}=Sb();return d.jsxs(Ct,{variant:"ghost",size:"sm",onClick:()=>n(),disabled:l,className:"w-full justify-start gap-2 text-muted-foreground hover:text-foreground",children:[d.jsx($C,{className:Be("h-4 w-4",l&&"animate-spin")}),d.jsx("span",{children:l?"Restarting...":"Restart Daemon"})]})}function iR(){const{data:n}=Ms(),l=r=>{if(!n)return;let s;r==="obsidian"?s=`obsidian://open?vault=${encodeURIComponent(n.vault.name)}`:r==="vscode"?s=`vscode://file${n.vault.path}`:s=`file://${n.vault.path}`,window.location.href=s};return d.jsxs("label",{className:"flex items-center gap-2 px-2 py-1 text-sm text-muted-foreground hover:text-foreground cursor-pointer",children:[d.jsx(QC,{className:"h-4 w-4 shrink-0"}),d.jsxs("select",{value:"",onChange:r=>{r.target.value&&l(r.target.value),r.target.value=""},disabled:!n,className:"w-full bg-transparent border-none outline-none cursor-pointer text-sm appearance-none disabled:opacity-50",children:[d.jsx("option",{value:"",disabled:!0,children:"Open Vault"}),ZT.map(r=>d.jsx("option",{value:r.value,children:r.label},r.value))]})]})}function rR(){const{font:n,setFont:l}=OC();return d.jsxs("label",{className:"flex items-center gap-2 px-2 py-1 text-sm text-muted-foreground hover:text-foreground cursor-pointer",children:[d.jsx(aT,{className:"h-4 w-4 shrink-0"}),d.jsx("select",{value:n,onChange:r=>l(r.target.value),className:"w-full bg-transparent border-none outline-none cursor-pointer text-sm appearance-none",children:FT.map(r=>d.jsx("option",{value:r.value,children:r.label},r.value))})]})}function sR(){const{density:n,setDensity:l}=tR(),r=us.indexOf(n),s=()=>{r>0&&l(us[r-1])},u=()=>{r<us.length-1&&l(us[r+1])};return d.jsxs("div",{className:"flex items-center gap-1 px-3 py-1",children:[d.jsx("button",{onClick:s,disabled:r===0,className:"rounded p-0.5 text-muted-foreground hover:text-foreground disabled:opacity-30","aria-label":"Decrease density",children:d.jsx(PC,{className:"h-3 w-3"})}),d.jsx("div",{className:"flex flex-1 justify-center",children:d.jsx("span",{className:"text-xs text-muted-foreground select-none",children:IT[n]})}),d.jsx("button",{onClick:u,disabled:r===us.length-1,className:"rounded p-0.5 text-muted-foreground hover:text-foreground disabled:opacity-30","aria-label":"Increase density",children:d.jsx(IC,{className:"h-3 w-3"})})]})}function oR(){const{collapsed:n,toggle:l}=nR(),{data:r}=Ms(),s=r==null?void 0:r.vault.name;return d.jsxs("div",{className:"flex h-screen bg-background",children:[d.jsxs("aside",{className:Be("flex flex-col border-r border-border bg-card transition-[width] duration-200",n?"w-14":"w-56"),children:[d.jsx("div",{className:Be("px-4 py-5",n&&"px-2 py-4 flex justify-center"),children:n?d.jsxs("div",{className:"relative flex items-center",children:[d.jsx("span",{className:"text-base font-bold tracking-tight text-primary",children:"m"}),d.jsx("span",{className:"ml-1 h-2 w-2 rounded-full bg-muted-foreground/40"})]}):d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center",children:[d.jsx("span",{className:"text-sm font-medium tracking-tight text-muted-foreground",children:"myco"}),d.jsx("span",{className:"ml-2 h-2 w-2 rounded-full bg-muted-foreground/40"})]}),s&&d.jsx("span",{className:"text-lg font-bold tracking-tight text-primary",children:s})]})}),d.jsx("nav",{className:"flex-1 space-y-1 px-2 py-2",children:PT.map(u=>d.jsxs(eb,{to:u.to,end:u.to==="/",title:n?u.label:void 0,className:({isActive:f})=>Be("flex items-center rounded-md text-sm font-medium transition-colors",n?"justify-center px-2 py-2":"gap-3 px-3 py-2",f?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[d.jsx(u.icon,{className:"h-4 w-4 shrink-0"}),!n&&u.label]},u.to))}),!n&&d.jsxs("div",{className:"border-t border-border px-2 py-3 space-y-1",children:[d.jsx(lR,{}),d.jsx(iR,{}),d.jsx(rR,{}),d.jsx(sR,{}),d.jsx(aR,{})]}),d.jsx("div",{className:Be("border-t border-border px-2 py-2",n&&"flex justify-center"),children:d.jsxs(Ct,{variant:"ghost",size:"sm",onClick:l,className:Be("text-muted-foreground hover:text-foreground",n?"w-8 p-0 justify-center":"w-full justify-start gap-2"),title:n?"Expand sidebar":"Collapse sidebar",children:[n?d.jsx(VC,{className:"h-4 w-4"}):d.jsx(qC,{className:"h-4 w-4"}),!n&&d.jsx("span",{children:"Collapse"})]})})]}),d.jsx("main",{className:"flex-1 overflow-auto",children:d.jsx(Hw,{})})]})}function Fd(n){return Object.values(n).reduce((l,r)=>l+r,0)}const uR=500,cR=400,Hi=240,Bi=195,Id=44,vd=50,fR=62,bs="3s",jy="4s",My=12,dR=9,hR=7,mR=14,pR=9,vR=1.8,Dy=2,gR="svg text { font-family: var(--font-ui, ui-monospace, monospace); }",gd=.25,zy=.55,$d={daemon:"hsl(142, 71%, 45%)",processor:"hsl(160, 60%, 40%)",digest:"hsl(142, 50%, 55%)",consolidation:"hsl(165, 55%, 48%)",embedding:"hsl(175, 50%, 40%)",vault:"hsl(130, 45%, 35%)",sessions:"hsl(155, 60%, 50%)"},yR="hsl(38, 92%, 50%)",bR="hsl(215, 10%, 40%)",xR="hsl(215, 10%, 25%)",Eu={processor:{x:100,y:80,radius:38},digest:{x:400,y:110,radius:36},consolidation:{x:480,y:195,radius:24},embedding:{x:75,y:310,radius:38},vault:{x:415,y:290,radius:38},sessions:{x:250,y:360,radius:36}};function Mb(n,l){switch(l){case"active":case"idle":return $d[n]??$d.daemon;case"cooling":return yR;case"dormant":return bR;case"off":return xR}}function Db(n){return n==="active"}function Ly(n,l){if(!l)return"off";if(!n)return"dormant";switch(n){case"active":return"active";case"cooling":return"cooling";case"dormant":return"dormant";default:return"idle"}}function SR(n){var m,g,v;const l=n.daemon.active_sessions.length>0,r=((m=n.digest)==null?void 0:m.enabled)??!1,s=((g=n.digest)==null?void 0:g.metabolism_state)??null,u=((v=n.digest)==null?void 0:v.consolidation_enabled)??!1,h=[{id:"processor",label:"Spores",detail:`${Fd(n.vault.spore_counts)} total`,status:l?"active":n.intelligence.processor?"idle":"off"},{id:"digest",label:"Digest",detail:s??(r?"ready":"disabled"),status:Ly(s,r)},{id:"embedding",label:"Index",detail:`${n.index.fts_entries}f ${n.index.vector_count}v`,status:n.intelligence.embedding?"idle":"off"},{id:"vault",label:"Vault",detail:`${Fd(n.vault.spore_counts)}s ${n.vault.session_count}n`,status:"active"},{id:"sessions",label:"Sessions",detail:`${n.daemon.active_sessions.length} active`,status:l?"active":"idle"}];if(u){const x=Ly(s,r);h.push({id:"consolidation",label:"Consolidate",detail:"pre-pass",status:x==="active"?"active":r?"idle":"off"})}return h}function ER(n){const l=Eu[n];if(!l)return"";const r=l.x-Hi,s=l.y-Bi,u=Math.sqrt(r*r+s*s),f=-s/u,h=r/u,g={processor:25,digest:-30,embedding:-20,vault:35,sessions:15}[n]??20,v=r/u,x=s/u,b=Hi+v*Id,w=Bi+x*Id,C=l.x-v*l.radius,A=l.y-x*l.radius,E=C-b,T=A-w,N=b+E*.35+f*g,j=w+T*.35+h*g,M=b+E*.65+f*g*.6,z=w+T*.65+h*g*.6;return`M ${b} ${w} C ${N} ${j}, ${M} ${z}, ${C} ${A}`}const zb={consolidation:"digest"},nu=12;function wR(n){const l=zb[n];if(!l)return"";const r=Eu[l],s=Eu[n];if(!r||!s)return"";const u=s.x-r.x,f=s.y-r.y,h=Math.sqrt(u*u+f*f),m=u/h,g=f/h,v=r.x+m*r.radius,x=r.y+g*r.radius,b=s.x-m*s.radius,w=s.y-g*s.radius,C=b-v,A=w-x,E=Math.sqrt(C*C+A*A),T=-A/E,N=C/E,j=v+C*.4+T*nu,M=x+A*.4+N*nu,z=v+C*.7+T*nu*.5,V=x+A*.7+N*nu*.5;return`M ${v} ${x} C ${j} ${M}, ${z} ${V}, ${b} ${w}`}function CR({node:n}){const l=Mb(n.id,n.status),r=Db(n.status),s=`hypha-${n.id}`,f=n.id in zb?wR(n.id):ER(n.id);return d.jsxs("g",{children:[d.jsx("path",{id:s,d:f,fill:"none",stroke:l,strokeWidth:r?2:1.5,strokeDasharray:n.status==="off"?"6 4":void 0,opacity:r?zy:gd,strokeLinecap:"round",children:r&&d.jsx("animate",{attributeName:"opacity",values:`${gd};${zy};${gd}`,dur:bs,repeatCount:"indefinite"})}),r&&Array.from({length:Dy},(h,m)=>{const g=m/Dy;return d.jsxs("circle",{r:vR,fill:l,opacity:0,children:[d.jsx("animateMotion",{dur:jy,repeatCount:"indefinite",begin:`${g*4}s`,path:f}),d.jsx("animate",{attributeName:"opacity",values:"0;0.6;0.8;0.6;0",dur:jy,repeatCount:"indefinite",begin:`${g*4}s`})]},m)})]})}function TR({node:n}){const l=Eu[n.id];if(!l)return null;const{x:r,y:s,radius:u}=l,f=Mb(n.id,n.status),h=Db(n.status),m=u+8;return d.jsxs("g",{children:[d.jsx("title",{children:`${n.label}: ${n.detail}`}),h&&d.jsxs("circle",{cx:r,cy:s,r:m,fill:f,opacity:0,children:[d.jsx("animate",{attributeName:"opacity",values:"0;0.12;0",dur:bs,repeatCount:"indefinite"}),d.jsx("animate",{attributeName:"r",values:`${m};${m+10};${m}`,dur:bs,repeatCount:"indefinite"})]}),d.jsx("circle",{cx:r,cy:s,r:u,fill:f,fillOpacity:.1,stroke:f,strokeWidth:1.5,strokeOpacity:n.status==="off"?.25:.65}),d.jsx("text",{x:r,y:s-4,textAnchor:"middle",fill:"currentColor",fontSize:dR,fontWeight:600,opacity:.9,children:n.label}),d.jsx("text",{x:r,y:s+8,textAnchor:"middle",fill:"currentColor",fontSize:hR,opacity:.5,children:n.detail.length>My?n.detail.slice(0,My-1)+"…":n.detail})]})}function RR(){const n=[{cx:170,cy:140,delay:"0s"},{cx:320,cy:250,delay:"1.5s"},{cx:130,cy:200,delay:"3s"},{cx:360,cy:170,delay:"2s"},{cx:200,cy:330,delay:"0.8s"},{cx:300,cy:100,delay:"2.5s"}];return d.jsx("g",{opacity:.3,children:n.map((l,r)=>d.jsxs("circle",{cx:l.cx,cy:l.cy,r:1.2,fill:"hsl(142, 50%, 50%)",children:[d.jsx("animate",{attributeName:"opacity",values:"0;0.5;0",dur:"5s",begin:l.delay,repeatCount:"indefinite"}),d.jsx("animate",{attributeName:"r",values:"1;2;1",dur:"5s",begin:l.delay,repeatCount:"indefinite"})]},r))})}function NR({stats:n}){const l=SR(n),r=$d.daemon,s=n.daemon.active_sessions.length>0;return d.jsxs("svg",{viewBox:`0 0 ${uR} ${cR}`,width:"100%",className:"max-h-[400px]",role:"img","aria-label":"Myco system topology",style:{fontSize:"calc(1em * var(--density, 1))"},children:[d.jsx("style",{children:gR}),d.jsx(RR,{}),l.map(u=>d.jsx(CR,{node:u},u.id)),s&&d.jsxs("circle",{cx:Hi,cy:Bi,r:vd,fill:r,opacity:0,children:[d.jsx("animate",{attributeName:"opacity",values:"0;0.1;0",dur:bs,repeatCount:"indefinite"}),d.jsx("animate",{attributeName:"r",values:`${vd};${fR};${vd}`,dur:bs,repeatCount:"indefinite"})]}),d.jsx("circle",{cx:Hi,cy:Bi,r:Id,fill:r,fillOpacity:.13,stroke:r,strokeWidth:2,strokeOpacity:.75}),d.jsx("text",{x:Hi,y:Bi-4,textAnchor:"middle",fill:"currentColor",fontSize:mR,fontWeight:700,opacity:.9,children:"myco"}),d.jsxs("text",{x:Hi,y:Bi+12,textAnchor:"middle",fill:"currentColor",fontSize:pR,opacity:.45,children:["v",n.daemon.version]}),d.jsxs("title",{children:["Myco Daemon — v",n.daemon.version]}),l.map(u=>d.jsx(TR,{node:u},u.id))]})}const $t=y.forwardRef(({className:n,...l},r)=>d.jsx("div",{ref:r,className:Be("rounded-lg border border-border bg-card text-card-foreground shadow-sm",n),...l}));$t.displayName="Card";const pn=y.forwardRef(({className:n,...l},r)=>d.jsx("div",{ref:r,className:Be("flex flex-col space-y-1.5 p-6",n),...l}));pn.displayName="CardHeader";const vn=y.forwardRef(({className:n,...l},r)=>d.jsx("h3",{ref:r,className:Be("font-semibold leading-none tracking-tight",n),...l}));vn.displayName="CardTitle";const Vi=y.forwardRef(({className:n,...l},r)=>d.jsx("p",{ref:r,className:Be("text-sm text-muted-foreground",n),...l}));Vi.displayName="CardDescription";const Jt=y.forwardRef(({className:n,...l},r)=>d.jsx("div",{ref:r,className:Be("p-6 pt-0",n),...l}));Jt.displayName="CardContent";const AR=y.forwardRef(({className:n,...l},r)=>d.jsx("div",{ref:r,className:Be("flex items-center p-6 pt-0",n),...l}));AR.displayName="CardFooter";function Nh({isLoading:n,error:l,loadingText:r="Loading...",children:s}){return n?d.jsxs("div",{className:"flex h-64 items-center justify-center gap-2 text-muted-foreground",children:[d.jsx(xu,{className:"h-5 w-5 animate-spin"}),d.jsx("span",{children:r})]}):l?d.jsxs("div",{className:"flex h-64 flex-col items-center justify-center gap-2 text-destructive",children:[d.jsx(YC,{className:"h-5 w-5"}),d.jsx("span",{children:"Failed to connect to daemon"}),d.jsx("span",{className:"text-xs text-muted-foreground",children:l.message})]}):d.jsx(d.Fragment,{children:s})}const ms=60,ki=3600,ps=86400;function OR(n){if(n<ms)return`${Math.floor(n)}s`;if(n<ki)return`${Math.floor(n/ms)}m`;if(n<ps){const s=Math.floor(n/ki),u=Math.floor(n%ki/ms);return`${s}h ${u}m`}const l=Math.floor(n/ps),r=Math.floor(n%ps/ki);return`${l}d ${r}h`}function _R(n){const l=(Date.now()-new Date(n).getTime())/1e3;return l<ms?"just now":l<ki?`${Math.floor(l/ms)}m ago`:l<ps?`${Math.floor(l/ki)}h ago`:`${Math.floor(l/ps)}d ago`}const jR=Cb("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-primary-foreground shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Wt({className:n,variant:l,...r}){return d.jsx("div",{className:Be(jR({variant:l}),n),...r})}const MR=6;function DR(n){return Object.entries(n).sort((l,r)=>r[1]-l[1]).slice(0,MR)}function Ot({label:n,value:l,badge:r,badgeVariant:s}){return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-muted-foreground",children:n}),r?d.jsx(Wt,{variant:s??"secondary",className:"text-xs",children:l}):d.jsx("span",{className:"font-mono text-foreground",children:l})]})}function yd({label:n,info:l}){return d.jsxs("div",{className:"flex items-center justify-between gap-2",children:[d.jsx("span",{className:"text-muted-foreground",children:n}),l?d.jsx("span",{className:"truncate font-mono text-xs text-foreground",title:`${l.provider}/${l.model}`,children:l.model}):d.jsx("span",{className:"text-xs text-muted-foreground/60",children:"none"})]})}function zR({stats:n}){return d.jsxs($t,{children:[d.jsx(pn,{className:"pb-3",children:d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(HC,{className:"h-4 w-4 text-primary"}),"Daemon"]})}),d.jsxs(Jt,{className:"space-y-2 text-sm",children:[d.jsx(Ot,{label:"Uptime",value:OR(n.daemon.uptime_seconds)}),d.jsx(Ot,{label:"Version",value:`v${n.daemon.version}`}),d.jsx(Ot,{label:"Port",value:String(n.daemon.port)}),d.jsx(Ot,{label:"PID",value:String(n.daemon.pid)})]})]})}function LR({stats:n}){return d.jsxs($t,{children:[d.jsx(pn,{className:"pb-3",children:d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(XC,{className:"h-4 w-4 text-primary"}),"Vault"]})}),d.jsxs(Jt,{className:"space-y-2 text-sm",children:[d.jsx(Ot,{label:"Sessions",value:String(n.vault.session_count)}),d.jsx(Ot,{label:"Spores",value:String(Fd(n.vault.spore_counts))}),d.jsx(Ot,{label:"Plans & Artifacts",value:String(n.vault.plan_count+n.vault.artifact_count)}),d.jsx(Ot,{label:"Name",value:n.vault.name})]})]})}function UR({stats:n}){const l=DR(n.vault.spore_counts);return d.jsxs($t,{children:[d.jsx(pn,{className:"pb-3",children:d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(gb,{className:"h-4 w-4 text-primary"}),"Spores by Type"]})}),d.jsx(Jt,{children:l.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No spores yet"}):d.jsx("div",{className:"space-y-1.5",children:l.map(([r,s])=>d.jsxs("div",{className:"flex items-center justify-between text-sm",children:[d.jsx("span",{className:"text-muted-foreground",children:r}),d.jsx(Wt,{variant:"secondary",className:"text-xs font-mono",children:s})]},r))})})]})}function HR({stats:n}){return d.jsxs($t,{children:[d.jsx(pn,{className:"pb-3",children:d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(WC,{className:"h-4 w-4 text-primary"}),"Index"]})}),d.jsxs(Jt,{className:"space-y-2 text-sm",children:[d.jsx(Ot,{label:"FTS entries",value:String(n.index.fts_entries)}),d.jsx(Ot,{label:"Vectors",value:String(n.index.vector_count)})]})]})}function BR({stats:n}){const l=n.digest;return d.jsxs($t,{children:[d.jsx(pn,{className:"pb-3",children:d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(tT,{className:"h-4 w-4 text-primary"}),"Digest"]})}),d.jsx(Jt,{className:"space-y-2 text-sm",children:l?d.jsxs(d.Fragment,{children:[d.jsx(Ot,{label:"Metabolism",value:l.metabolism_state??"dormant",badge:!0,badgeVariant:l.metabolism_state==="active"?"default":"secondary"}),d.jsx(Ot,{label:"Queue",value:String(l.substrate_queue)}),l.last_cycle?d.jsxs(d.Fragment,{children:[d.jsx(Ot,{label:"Last cycle",value:_R(l.last_cycle.timestamp)}),d.jsx(Ot,{label:"Tier",value:`T${l.last_cycle.tier}`}),d.jsx(Ot,{label:"Substrate",value:String(l.last_cycle.substrate_count)})]}):d.jsx("p",{className:"text-xs text-muted-foreground",children:"No cycles yet"})]}):d.jsx("p",{className:"text-muted-foreground",children:"Disabled"})})]})}function kR({stats:n}){return d.jsxs($t,{children:[d.jsx(pn,{className:"pb-3",children:d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(Pd,{className:"h-4 w-4 text-primary"}),"Intelligence"]})}),d.jsxs(Jt,{className:"space-y-2 text-sm",children:[d.jsx(yd,{label:"Processor",info:n.intelligence.processor}),d.jsx(yd,{label:"Digest",info:n.intelligence.digest}),d.jsx(yd,{label:"Embedding",info:n.intelligence.embedding})]})]})}function qR(){const{data:n,isLoading:l,isError:r,error:s}=Ms();return d.jsx(Nh,{isLoading:l,error:r?s instanceof Error?s:new Error("Unable to reach daemon"):null,loadingText:"Connecting to daemon...",children:n&&d.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[d.jsx($t,{className:"overflow-hidden",children:d.jsx(Jt,{className:"p-4",children:d.jsx(NR,{stats:n})})}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"System Status"}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[d.jsx(zR,{stats:n}),d.jsx(LR,{stats:n}),d.jsx(UR,{stats:n}),d.jsx(HR,{stats:n}),d.jsx(BR,{stats:n}),d.jsx(kR,{stats:n})]})]})]})})}function VR(){const n=yh(),l=Ns({queryKey:["config"],queryFn:({signal:s})=>ol("/config",{signal:s})}),r=B2({mutationFn:s=>uT("/config",s),onSuccess:()=>n.invalidateQueries({queryKey:["config"]})});return{config:l.data,isLoading:l.isLoading,error:l.error,saveConfig:r.mutateAsync,isSaving:r.isPending,saveError:r.error}}function Ie(n,l,{checkForDefaultPrevented:r=!0}={}){return function(u){if(n==null||n(u),r===!1||!u.defaultPrevented)return l==null?void 0:l(u)}}function Uy(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Lb(...n){return l=>{let r=!1;const s=n.map(u=>{const f=Uy(u,l);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let u=0;u<s.length;u++){const f=s[u];typeof f=="function"?f():Uy(n[u],null)}}}}function it(...n){return y.useCallback(Lb(...n),n)}function YR(n,l){const r=y.createContext(l),s=f=>{const{children:h,...m}=f,g=y.useMemo(()=>m,Object.values(m));return d.jsx(r.Provider,{value:g,children:h})};s.displayName=n+"Provider";function u(f){const h=y.useContext(r);if(h)return h;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[s,u]}function Mu(n,l=[]){let r=[];function s(f,h){const m=y.createContext(h),g=r.length;r=[...r,h];const v=b=>{var N;const{scope:w,children:C,...A}=b,E=((N=w==null?void 0:w[n])==null?void 0:N[g])||m,T=y.useMemo(()=>A,Object.values(A));return d.jsx(E.Provider,{value:T,children:C})};v.displayName=f+"Provider";function x(b,w){var E;const C=((E=w==null?void 0:w[n])==null?void 0:E[g])||m,A=y.useContext(C);if(A)return A;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[v,x]}const u=()=>{const f=r.map(h=>y.createContext(h));return function(m){const g=(m==null?void 0:m[n])||f;return y.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return u.scopeName=n,[s,GR(u,...l)]}function GR(...n){const l=n[0];if(n.length===1)return l;const r=()=>{const s=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const h=s.reduce((m,{useScope:g,scopeName:v})=>{const b=g(f)[`__scope${v}`];return{...m,...b}},{});return y.useMemo(()=>({[`__scope${l.scopeName}`]:h}),[h])}};return r.scopeName=l.scopeName,r}var Tt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},QR=E0[" useId ".trim().toString()]||(()=>{}),XR=0;function Yi(n){const[l,r]=y.useState(QR());return Tt(()=>{r(s=>s??String(XR++))},[n]),l?`radix-${l}`:""}var KR=E0[" useInsertionEffect ".trim().toString()]||Tt;function Jd({prop:n,defaultProp:l,onChange:r=()=>{},caller:s}){const[u,f,h]=PR({defaultProp:l,onChange:r}),m=n!==void 0,g=m?n:u;{const x=y.useRef(n!==void 0);y.useEffect(()=>{const b=x.current;b!==m&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,s])}const v=y.useCallback(x=>{var b;if(m){const w=ZR(x)?x(n):x;w!==n&&((b=h.current)==null||b.call(h,w))}else f(x)},[m,n,f,h]);return[g,v]}function PR({defaultProp:n,onChange:l}){const[r,s]=y.useState(n),u=y.useRef(r),f=y.useRef(l);return KR(()=>{f.current=l},[l]),y.useEffect(()=>{var h;u.current!==r&&((h=f.current)==null||h.call(f,r),u.current=r)},[r,u]),[r,s,f]}function ZR(n){return typeof n=="function"}function xs(n){const l=FR(n),r=y.forwardRef((s,u)=>{const{children:f,...h}=s,m=y.Children.toArray(f),g=m.find($R);if(g){const v=g.props.children,x=m.map(b=>b===g?y.Children.count(v)>1?y.Children.only(null):y.isValidElement(v)?v.props.children:null:b);return d.jsx(l,{...h,ref:u,children:y.isValidElement(v)?y.cloneElement(v,void 0,x):null})}return d.jsx(l,{...h,ref:u,children:f})});return r.displayName=`${n}.Slot`,r}function FR(n){const l=y.forwardRef((r,s)=>{const{children:u,...f}=r;if(y.isValidElement(u)){const h=WR(u),m=JR(f,u.props);return u.type!==y.Fragment&&(m.ref=s?Lb(s,h):h),y.cloneElement(u,m)}return y.Children.count(u)>1?y.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var IR=Symbol("radix.slottable");function $R(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===IR}function JR(n,l){const r={...l};for(const s in l){const u=n[s],f=l[s];/^on[A-Z]/.test(s)?u&&f?r[s]=(...m)=>{const g=f(...m);return u(...m),g}:u&&(r[s]=u):s==="style"?r[s]={...u,...f}:s==="className"&&(r[s]=[u,f].filter(Boolean).join(" "))}return{...n,...r}}function WR(n){var s,u;let l=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var eN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=eN.reduce((n,l)=>{const r=xs(`Primitive.${l}`),s=y.forwardRef((u,f)=>{const{asChild:h,...m}=u,g=h?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(g,{...m,ref:f})});return s.displayName=`Primitive.${l}`,{...n,[l]:s}},{});function tN(n,l){n&&js.flushSync(()=>n.dispatchEvent(l))}function Ql(n){const l=y.useRef(n);return y.useEffect(()=>{l.current=n}),y.useMemo(()=>(...r)=>{var s;return(s=l.current)==null?void 0:s.call(l,...r)},[])}function nN(n,l=globalThis==null?void 0:globalThis.document){const r=Ql(n);y.useEffect(()=>{const s=u=>{u.key==="Escape"&&r(u)};return l.addEventListener("keydown",s,{capture:!0}),()=>l.removeEventListener("keydown",s,{capture:!0})},[r,l])}var aN="DismissableLayer",Wd="dismissableLayer.update",lN="dismissableLayer.pointerDownOutside",iN="dismissableLayer.focusOutside",Hy,Ub=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ah=y.forwardRef((n,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...g}=n,v=y.useContext(Ub),[x,b]=y.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=y.useState({}),A=it(l,Y=>b(Y)),E=Array.from(v.layers),[T]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),N=E.indexOf(T),j=x?E.indexOf(x):-1,M=v.layersWithOutsidePointerEventsDisabled.size>0,z=j>=N,V=oN(Y=>{const I=Y.target,ae=[...v.branches].some(ie=>ie.contains(I));!z||ae||(u==null||u(Y),h==null||h(Y),Y.defaultPrevented||m==null||m())},w),P=uN(Y=>{const I=Y.target;[...v.branches].some(ie=>ie.contains(I))||(f==null||f(Y),h==null||h(Y),Y.defaultPrevented||m==null||m())},w);return nN(Y=>{j===v.layers.size-1&&(s==null||s(Y),!Y.defaultPrevented&&m&&(Y.preventDefault(),m()))},w),y.useEffect(()=>{if(x)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Hy=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(x)),v.layers.add(x),By(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Hy)}},[x,w,r,v]),y.useEffect(()=>()=>{x&&(v.layers.delete(x),v.layersWithOutsidePointerEventsDisabled.delete(x),By())},[x,v]),y.useEffect(()=>{const Y=()=>C({});return document.addEventListener(Wd,Y),()=>document.removeEventListener(Wd,Y)},[]),d.jsx(Ke.div,{...g,ref:A,style:{pointerEvents:M?z?"auto":"none":void 0,...n.style},onFocusCapture:Ie(n.onFocusCapture,P.onFocusCapture),onBlurCapture:Ie(n.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ie(n.onPointerDownCapture,V.onPointerDownCapture)})});Ah.displayName=aN;var rN="DismissableLayerBranch",sN=y.forwardRef((n,l)=>{const r=y.useContext(Ub),s=y.useRef(null),u=it(l,s);return y.useEffect(()=>{const f=s.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),d.jsx(Ke.div,{...n,ref:u})});sN.displayName=rN;function oN(n,l=globalThis==null?void 0:globalThis.document){const r=Ql(n),s=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const f=m=>{if(m.target&&!s.current){let g=function(){Hb(lN,r,v,{discrete:!0})};const v={originalEvent:m};m.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=g,l.addEventListener("click",u.current,{once:!0})):g()}else l.removeEventListener("click",u.current);s.current=!1},h=window.setTimeout(()=>{l.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),l.removeEventListener("pointerdown",f),l.removeEventListener("click",u.current)}},[l,r]),{onPointerDownCapture:()=>s.current=!0}}function uN(n,l=globalThis==null?void 0:globalThis.document){const r=Ql(n),s=y.useRef(!1);return y.useEffect(()=>{const u=f=>{f.target&&!s.current&&Hb(iN,r,{originalEvent:f},{discrete:!1})};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[l,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function By(){const n=new CustomEvent(Wd);document.dispatchEvent(n)}function Hb(n,l,r,{discrete:s}){const u=r.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});l&&u.addEventListener(n,l,{once:!0}),s?tN(u,f):u.dispatchEvent(f)}var bd="focusScope.autoFocusOnMount",xd="focusScope.autoFocusOnUnmount",ky={bubbles:!1,cancelable:!0},cN="FocusScope",Oh=y.forwardRef((n,l)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...h}=n,[m,g]=y.useState(null),v=Ql(u),x=Ql(f),b=y.useRef(null),w=it(l,E=>g(E)),C=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(s){let E=function(M){if(C.paused||!m)return;const z=M.target;m.contains(z)?b.current=z:Pa(b.current,{select:!0})},T=function(M){if(C.paused||!m)return;const z=M.relatedTarget;z!==null&&(m.contains(z)||Pa(b.current,{select:!0}))},N=function(M){if(document.activeElement===document.body)for(const V of M)V.removedNodes.length>0&&Pa(m)};document.addEventListener("focusin",E),document.addEventListener("focusout",T);const j=new MutationObserver(N);return m&&j.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),j.disconnect()}}},[s,m,C.paused]),y.useEffect(()=>{if(m){Vy.add(C);const E=document.activeElement;if(!m.contains(E)){const N=new CustomEvent(bd,ky);m.addEventListener(bd,v),m.dispatchEvent(N),N.defaultPrevented||(fN(vN(Bb(m)),{select:!0}),document.activeElement===E&&Pa(m))}return()=>{m.removeEventListener(bd,v),setTimeout(()=>{const N=new CustomEvent(xd,ky);m.addEventListener(xd,x),m.dispatchEvent(N),N.defaultPrevented||Pa(E??document.body,{select:!0}),m.removeEventListener(xd,x),Vy.remove(C)},0)}}},[m,v,x,C]);const A=y.useCallback(E=>{if(!r&&!s||C.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,N=document.activeElement;if(T&&N){const j=E.currentTarget,[M,z]=dN(j);M&&z?!E.shiftKey&&N===z?(E.preventDefault(),r&&Pa(M,{select:!0})):E.shiftKey&&N===M&&(E.preventDefault(),r&&Pa(z,{select:!0})):N===j&&E.preventDefault()}},[r,s,C.paused]);return d.jsx(Ke.div,{tabIndex:-1,...h,ref:w,onKeyDown:A})});Oh.displayName=cN;function fN(n,{select:l=!1}={}){const r=document.activeElement;for(const s of n)if(Pa(s,{select:l}),document.activeElement!==r)return}function dN(n){const l=Bb(n),r=qy(l,n),s=qy(l.reverse(),n);return[r,s]}function Bb(n){const l=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function qy(n,l){for(const r of n)if(!hN(r,{upTo:l}))return r}function hN(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function mN(n){return n instanceof HTMLInputElement&&"select"in n}function Pa(n,{select:l=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&mN(n)&&l&&n.select()}}var Vy=pN();function pN(){let n=[];return{add(l){const r=n[0];l!==r&&(r==null||r.pause()),n=Yy(n,l),n.unshift(l)},remove(l){var r;n=Yy(n,l),(r=n[0])==null||r.resume()}}}function Yy(n,l){const r=[...n],s=r.indexOf(l);return s!==-1&&r.splice(s,1),r}function vN(n){return n.filter(l=>l.tagName!=="A")}var gN="Portal",_h=y.forwardRef((n,l)=>{var m;const{container:r,...s}=n,[u,f]=y.useState(!1);Tt(()=>f(!0),[]);const h=r||u&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?yC.createPortal(d.jsx(Ke.div,{...s,ref:l}),h):null});_h.displayName=gN;function yN(n,l){return y.useReducer((r,s)=>l[r][s]??r,n)}var Du=n=>{const{present:l,children:r}=n,s=bN(l),u=typeof r=="function"?r({present:s.isPresent}):y.Children.only(r),f=it(s.ref,xN(u));return typeof r=="function"||s.isPresent?y.cloneElement(u,{ref:f}):null};Du.displayName="Presence";function bN(n){const[l,r]=y.useState(),s=y.useRef(null),u=y.useRef(n),f=y.useRef("none"),h=n?"mounted":"unmounted",[m,g]=yN(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const v=au(s.current);f.current=m==="mounted"?v:"none"},[m]),Tt(()=>{const v=s.current,x=u.current;if(x!==n){const w=f.current,C=au(v);n?g("MOUNT"):C==="none"||(v==null?void 0:v.display)==="none"?g("UNMOUNT"):g(x&&w!==C?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,g]),Tt(()=>{if(l){let v;const x=l.ownerDocument.defaultView??window,b=C=>{const E=au(s.current).includes(CSS.escape(C.animationName));if(C.target===l&&E&&(g("ANIMATION_END"),!u.current)){const T=l.style.animationFillMode;l.style.animationFillMode="forwards",v=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=T)})}},w=C=>{C.target===l&&(f.current=au(s.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",b),l.addEventListener("animationend",b),()=>{x.clearTimeout(v),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",b),l.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[l,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:y.useCallback(v=>{s.current=v?getComputedStyle(v):null,r(v)},[])}}function au(n){return(n==null?void 0:n.animationName)||"none"}function xN(n){var s,u;let l=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var Sd=0;function kb(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Gy()),document.body.insertAdjacentElement("beforeend",n[1]??Gy()),Sd++,()=>{Sd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Sd--}},[])}function Gy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Dn=function(){return Dn=Object.assign||function(l){for(var r,s=1,u=arguments.length;s<u;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(l[f]=r[f])}return l},Dn.apply(this,arguments)};function qb(n,l){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&l.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)l.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(r[s[u]]=n[s[u]]);return r}function SN(n,l,r){if(r||arguments.length===2)for(var s=0,u=l.length,f;s<u;s++)(f||!(s in l))&&(f||(f=Array.prototype.slice.call(l,0,s)),f[s]=l[s]);return n.concat(f||Array.prototype.slice.call(l))}var hu="right-scroll-bar-position",mu="width-before-scroll-bar",EN="with-scroll-bars-hidden",wN="--removed-body-scroll-bar-size";function Ed(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function CN(n,l){var r=y.useState(function(){return{value:n,callback:l,facade:{get current(){return r.value},set current(s){var u=r.value;u!==s&&(r.value=s,r.callback(s,u))}}}})[0];return r.callback=l,r.facade}var TN=typeof window<"u"?y.useLayoutEffect:y.useEffect,Qy=new WeakMap;function RN(n,l){var r=CN(null,function(s){return n.forEach(function(u){return Ed(u,s)})});return TN(function(){var s=Qy.get(r);if(s){var u=new Set(s),f=new Set(n),h=r.current;u.forEach(function(m){f.has(m)||Ed(m,null)}),f.forEach(function(m){u.has(m)||Ed(m,h)})}Qy.set(r,n)},[n]),r}function NN(n){return n}function AN(n,l){l===void 0&&(l=NN);var r=[],s=!1,u={read:function(){if(s)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]:n},useMedium:function(f){var h=l(f,s);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(s=!0;r.length;){var h=r;r=[],h.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){s=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(f),h=r}var g=function(){var x=h;h=[],x.forEach(f)},v=function(){return Promise.resolve().then(g)};v(),r={push:function(x){h.push(x),v()},filter:function(x){return h=h.filter(x),r}}}};return u}function ON(n){n===void 0&&(n={});var l=AN(null);return l.options=Dn({async:!0,ssr:!1},n),l}var Vb=function(n){var l=n.sideCar,r=qb(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=l.read();if(!s)throw new Error("Sidecar medium not found");return y.createElement(s,Dn({},r))};Vb.isSideCarExport=!0;function _N(n,l){return n.useMedium(l),Vb}var Yb=ON(),wd=function(){},zu=y.forwardRef(function(n,l){var r=y.useRef(null),s=y.useState({onScrollCapture:wd,onWheelCapture:wd,onTouchMoveCapture:wd}),u=s[0],f=s[1],h=n.forwardProps,m=n.children,g=n.className,v=n.removeScrollBar,x=n.enabled,b=n.shards,w=n.sideCar,C=n.noRelative,A=n.noIsolation,E=n.inert,T=n.allowPinchZoom,N=n.as,j=N===void 0?"div":N,M=n.gapMode,z=qb(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=w,P=RN([r,l]),Y=Dn(Dn({},z),u);return y.createElement(y.Fragment,null,x&&y.createElement(V,{sideCar:Yb,removeScrollBar:v,shards:b,noRelative:C,noIsolation:A,inert:E,setCallbacks:f,allowPinchZoom:!!T,lockRef:r,gapMode:M}),h?y.cloneElement(y.Children.only(m),Dn(Dn({},Y),{ref:P})):y.createElement(j,Dn({},Y,{className:g,ref:P}),m))});zu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zu.classNames={fullWidth:mu,zeroRight:hu};var jN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MN(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=jN();return l&&n.setAttribute("nonce",l),n}function DN(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function zN(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var LN=function(){var n=0,l=null;return{add:function(r){n==0&&(l=MN())&&(DN(l,r),zN(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},UN=function(){var n=LN();return function(l,r){y.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},Gb=function(){var n=UN(),l=function(r){var s=r.styles,u=r.dynamic;return n(s,u),null};return l},HN={left:0,top:0,right:0,gap:0},Cd=function(n){return parseInt(n||"",10)||0},BN=function(n){var l=window.getComputedStyle(document.body),r=l[n==="padding"?"paddingLeft":"marginLeft"],s=l[n==="padding"?"paddingTop":"marginTop"],u=l[n==="padding"?"paddingRight":"marginRight"];return[Cd(r),Cd(s),Cd(u)]},kN=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return HN;var l=BN(n),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,s-r+l[2]-l[0])}},qN=Gb(),Gi="data-scroll-locked",VN=function(n,l,r,s){var u=n.left,f=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
256
|
-
.`.concat(EN,` {
|
|
257
|
-
overflow: hidden `).concat(s,`;
|
|
258
|
-
padding-right: `).concat(m,"px ").concat(s,`;
|
|
259
|
-
}
|
|
260
|
-
body[`).concat(Gi,`] {
|
|
261
|
-
overflow: hidden `).concat(s,`;
|
|
262
|
-
overscroll-behavior: contain;
|
|
263
|
-
`).concat([l&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
264
|
-
padding-left: `.concat(u,`px;
|
|
265
|
-
padding-top: `).concat(f,`px;
|
|
266
|
-
padding-right: `).concat(h,`px;
|
|
267
|
-
margin-left:0;
|
|
268
|
-
margin-top:0;
|
|
269
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
270
|
-
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.`).concat(hu,` {
|
|
274
|
-
right: `).concat(m,"px ").concat(s,`;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.`).concat(mu,` {
|
|
278
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.`).concat(hu," .").concat(hu,` {
|
|
282
|
-
right: 0 `).concat(s,`;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.`).concat(mu," .").concat(mu,` {
|
|
286
|
-
margin-right: 0 `).concat(s,`;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
body[`).concat(Gi,`] {
|
|
290
|
-
`).concat(wN,": ").concat(m,`px;
|
|
291
|
-
}
|
|
292
|
-
`)},Xy=function(){var n=parseInt(document.body.getAttribute(Gi)||"0",10);return isFinite(n)?n:0},YN=function(){y.useEffect(function(){return document.body.setAttribute(Gi,(Xy()+1).toString()),function(){var n=Xy()-1;n<=0?document.body.removeAttribute(Gi):document.body.setAttribute(Gi,n.toString())}},[])},GN=function(n){var l=n.noRelative,r=n.noImportant,s=n.gapMode,u=s===void 0?"margin":s;YN();var f=y.useMemo(function(){return kN(u)},[u]);return y.createElement(qN,{styles:VN(f,!l,u,r?"":"!important")})},eh=!1;if(typeof window<"u")try{var lu=Object.defineProperty({},"passive",{get:function(){return eh=!0,!0}});window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,lu)}catch{eh=!1}var Di=eh?{passive:!1}:!1,QN=function(n){return n.tagName==="TEXTAREA"},Qb=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!QN(n)&&r[l]==="visible")},XN=function(n){return Qb(n,"overflowY")},KN=function(n){return Qb(n,"overflowX")},Ky=function(n,l){var r=l.ownerDocument,s=l;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var u=Xb(n,s);if(u){var f=Kb(n,s),h=f[1],m=f[2];if(h>m)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},PN=function(n){var l=n.scrollTop,r=n.scrollHeight,s=n.clientHeight;return[l,r,s]},ZN=function(n){var l=n.scrollLeft,r=n.scrollWidth,s=n.clientWidth;return[l,r,s]},Xb=function(n,l){return n==="v"?XN(l):KN(l)},Kb=function(n,l){return n==="v"?PN(l):ZN(l)},FN=function(n,l){return n==="h"&&l==="rtl"?-1:1},IN=function(n,l,r,s,u){var f=FN(n,window.getComputedStyle(l).direction),h=f*s,m=r.target,g=l.contains(m),v=!1,x=h>0,b=0,w=0;do{if(!m)break;var C=Kb(n,m),A=C[0],E=C[1],T=C[2],N=E-T-f*A;(A||N)&&Xb(n,m)&&(b+=N,w+=A);var j=m.parentNode;m=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!g&&m!==document.body||g&&(l.contains(m)||l===m));return(x&&Math.abs(b)<1||!x&&Math.abs(w)<1)&&(v=!0),v},iu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Py=function(n){return[n.deltaX,n.deltaY]},Zy=function(n){return n&&"current"in n?n.current:n},$N=function(n,l){return n[0]===l[0]&&n[1]===l[1]},JN=function(n){return`
|
|
293
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
294
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
295
|
-
`)},WN=0,zi=[];function eA(n){var l=y.useRef([]),r=y.useRef([0,0]),s=y.useRef(),u=y.useState(WN++)[0],f=y.useState(Gb)[0],h=y.useRef(n);y.useEffect(function(){h.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var E=SN([n.lockRef.current],(n.shards||[]).map(Zy),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var m=y.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!h.current.allowPinchZoom;var N=iu(E),j=r.current,M="deltaX"in E?E.deltaX:j[0]-N[0],z="deltaY"in E?E.deltaY:j[1]-N[1],V,P=E.target,Y=Math.abs(M)>Math.abs(z)?"h":"v";if("touches"in E&&Y==="h"&&P.type==="range")return!1;var I=window.getSelection(),ae=I&&I.anchorNode,ie=ae?ae===P||ae.contains(P):!1;if(ie)return!1;var oe=Ky(Y,P);if(!oe)return!0;if(oe?V=Y:(V=Y==="v"?"h":"v",oe=Ky(Y,P)),!oe)return!1;if(!s.current&&"changedTouches"in E&&(M||z)&&(s.current=V),!V)return!0;var W=s.current||V;return IN(W,T,E,W==="h"?M:z)},[]),g=y.useCallback(function(E){var T=E;if(!(!zi.length||zi[zi.length-1]!==f)){var N="deltaY"in T?Py(T):iu(T),j=l.current.filter(function(V){return V.name===T.type&&(V.target===T.target||T.target===V.shadowParent)&&$N(V.delta,N)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var M=(h.current.shards||[]).map(Zy).filter(Boolean).filter(function(V){return V.contains(T.target)}),z=M.length>0?m(T,M[0]):!h.current.noIsolation;z&&T.cancelable&&T.preventDefault()}}},[]),v=y.useCallback(function(E,T,N,j){var M={name:E,delta:T,target:N,should:j,shadowParent:tA(N)};l.current.push(M),setTimeout(function(){l.current=l.current.filter(function(z){return z!==M})},1)},[]),x=y.useCallback(function(E){r.current=iu(E),s.current=void 0},[]),b=y.useCallback(function(E){v(E.type,Py(E),E.target,m(E,n.lockRef.current))},[]),w=y.useCallback(function(E){v(E.type,iu(E),E.target,m(E,n.lockRef.current))},[]);y.useEffect(function(){return zi.push(f),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",g,Di),document.addEventListener("touchmove",g,Di),document.addEventListener("touchstart",x,Di),function(){zi=zi.filter(function(E){return E!==f}),document.removeEventListener("wheel",g,Di),document.removeEventListener("touchmove",g,Di),document.removeEventListener("touchstart",x,Di)}},[]);var C=n.removeScrollBar,A=n.inert;return y.createElement(y.Fragment,null,A?y.createElement(f,{styles:JN(u)}):null,C?y.createElement(GN,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function tA(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const nA=_N(Yb,eA);var jh=y.forwardRef(function(n,l){return y.createElement(zu,Dn({},n,{ref:l,sideCar:nA}))});jh.classNames=zu.classNames;var aA=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Li=new WeakMap,ru=new WeakMap,su={},Td=0,Pb=function(n){return n&&(n.host||Pb(n.parentNode))},lA=function(n,l){return l.map(function(r){if(n.contains(r))return r;var s=Pb(r);return s&&n.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},iA=function(n,l,r,s){var u=lA(l,Array.isArray(n)?n:[n]);su[r]||(su[r]=new WeakMap);var f=su[r],h=[],m=new Set,g=new Set(u),v=function(b){!b||m.has(b)||(m.add(b),v(b.parentNode))};u.forEach(v);var x=function(b){!b||g.has(b)||Array.prototype.forEach.call(b.children,function(w){if(m.has(w))x(w);else try{var C=w.getAttribute(s),A=C!==null&&C!=="false",E=(Li.get(w)||0)+1,T=(f.get(w)||0)+1;Li.set(w,E),f.set(w,T),h.push(w),E===1&&A&&ru.set(w,!0),T===1&&w.setAttribute(r,"true"),A||w.setAttribute(s,"true")}catch(N){console.error("aria-hidden: cannot operate on ",w,N)}})};return x(l),m.clear(),Td++,function(){h.forEach(function(b){var w=Li.get(b)-1,C=f.get(b)-1;Li.set(b,w),f.set(b,C),w||(ru.has(b)||b.removeAttribute(s),ru.delete(b)),C||b.removeAttribute(r)}),Td--,Td||(Li=new WeakMap,Li=new WeakMap,ru=new WeakMap,su={})}},Zb=function(n,l,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),u=aA(n);return u?(s.push.apply(s,Array.from(u.querySelectorAll("[aria-live], script"))),iA(s,u,r,"aria-hidden")):function(){return null}},Lu="Dialog",[Fb]=Mu(Lu),[rA,Tn]=Fb(Lu),Ib=n=>{const{__scopeDialog:l,children:r,open:s,defaultOpen:u,onOpenChange:f,modal:h=!0}=n,m=y.useRef(null),g=y.useRef(null),[v,x]=Jd({prop:s,defaultProp:u??!1,onChange:f,caller:Lu});return d.jsx(rA,{scope:l,triggerRef:m,contentRef:g,contentId:Yi(),titleId:Yi(),descriptionId:Yi(),open:v,onOpenChange:x,onOpenToggle:y.useCallback(()=>x(b=>!b),[x]),modal:h,children:r})};Ib.displayName=Lu;var $b="DialogTrigger",sA=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn($b,r),f=it(l,u.triggerRef);return d.jsx(Ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":zh(u.open),...s,ref:f,onClick:Ie(n.onClick,u.onOpenToggle)})});sA.displayName=$b;var Mh="DialogPortal",[oA,Jb]=Fb(Mh,{forceMount:void 0}),Wb=n=>{const{__scopeDialog:l,forceMount:r,children:s,container:u}=n,f=Tn(Mh,l);return d.jsx(oA,{scope:l,forceMount:r,children:y.Children.map(s,h=>d.jsx(Du,{present:r||f.open,children:d.jsx(_h,{asChild:!0,container:u,children:h})}))})};Wb.displayName=Mh;var wu="DialogOverlay",ex=y.forwardRef((n,l)=>{const r=Jb(wu,n.__scopeDialog),{forceMount:s=r.forceMount,...u}=n,f=Tn(wu,n.__scopeDialog);return f.modal?d.jsx(Du,{present:s||f.open,children:d.jsx(cA,{...u,ref:l})}):null});ex.displayName=wu;var uA=xs("DialogOverlay.RemoveScroll"),cA=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(wu,r);return d.jsx(jh,{as:uA,allowPinchZoom:!0,shards:[u.contentRef],children:d.jsx(Ke.div,{"data-state":zh(u.open),...s,ref:l,style:{pointerEvents:"auto",...s.style}})})}),Xl="DialogContent",tx=y.forwardRef((n,l)=>{const r=Jb(Xl,n.__scopeDialog),{forceMount:s=r.forceMount,...u}=n,f=Tn(Xl,n.__scopeDialog);return d.jsx(Du,{present:s||f.open,children:f.modal?d.jsx(fA,{...u,ref:l}):d.jsx(dA,{...u,ref:l})})});tx.displayName=Xl;var fA=y.forwardRef((n,l)=>{const r=Tn(Xl,n.__scopeDialog),s=y.useRef(null),u=it(l,r.contentRef,s);return y.useEffect(()=>{const f=s.current;if(f)return Zb(f)},[]),d.jsx(nx,{...n,ref:u,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(n.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Ie(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:Ie(n.onFocusOutside,f=>f.preventDefault())})}),dA=y.forwardRef((n,l)=>{const r=Tn(Xl,n.__scopeDialog),s=y.useRef(!1),u=y.useRef(!1);return d.jsx(nx,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,f),f.defaultPrevented||(s.current||(m=r.triggerRef.current)==null||m.focus(),f.preventDefault()),s.current=!1,u.current=!1},onInteractOutside:f=>{var g,v;(g=n.onInteractOutside)==null||g.call(n,f),f.defaultPrevented||(s.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const h=f.target;((v=r.triggerRef.current)==null?void 0:v.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),nx=y.forwardRef((n,l)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:f,...h}=n,m=Tn(Xl,r),g=y.useRef(null),v=it(l,g);return kb(),d.jsxs(d.Fragment,{children:[d.jsx(Oh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:u,onUnmountAutoFocus:f,children:d.jsx(Ah,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":zh(m.open),...h,ref:v,onDismiss:()=>m.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(hA,{titleId:m.titleId}),d.jsx(pA,{contentRef:g,descriptionId:m.descriptionId})]})]})}),Dh="DialogTitle",ax=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(Dh,r);return d.jsx(Ke.h2,{id:u.titleId,...s,ref:l})});ax.displayName=Dh;var lx="DialogDescription",ix=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(lx,r);return d.jsx(Ke.p,{id:u.descriptionId,...s,ref:l})});ix.displayName=lx;var rx="DialogClose",sx=y.forwardRef((n,l)=>{const{__scopeDialog:r,...s}=n,u=Tn(rx,r);return d.jsx(Ke.button,{type:"button",...s,ref:l,onClick:Ie(n.onClick,()=>u.onOpenChange(!1))})});sx.displayName=rx;function zh(n){return n?"open":"closed"}var ox="DialogTitleWarning",[rj,ux]=YR(ox,{contentName:Xl,titleName:Dh,docsSlug:"dialog"}),hA=({titleId:n})=>{const l=ux(ox),r=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
|
|
296
|
-
|
|
297
|
-
If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
298
|
-
|
|
299
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},mA="DialogDescriptionWarning",pA=({contentRef:n,descriptionId:l})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ux(mA).contentName}}.`;return y.useEffect(()=>{var f;const u=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");l&&u&&(document.getElementById(l)||console.warn(s))},[s,n,l]),null},vA=Ib,gA=Wb,cx=ex,fx=tx,dx=ax,hx=ix,yA=sx;const bA=vA,xA=gA,mx=y.forwardRef(({className:n,...l},r)=>d.jsx(cx,{ref:r,className:Be("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l}));mx.displayName=cx.displayName;const px=y.forwardRef(({className:n,children:l,...r},s)=>d.jsxs(xA,{children:[d.jsx(mx,{}),d.jsxs(fx,{ref:s,className:Be("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...r,children:[l,d.jsxs(yA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(lT,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));px.displayName=fx.displayName;function vx({className:n,...l}){return d.jsx("div",{className:Be("flex flex-col space-y-1.5 text-center sm:text-left",n),...l})}vx.displayName="DialogHeader";function gx({className:n,...l}){return d.jsx("div",{className:Be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l})}gx.displayName="DialogFooter";const yx=y.forwardRef(({className:n,...l},r)=>d.jsx(dx,{ref:r,className:Be("text-lg font-semibold leading-none tracking-tight",n),...l}));yx.displayName=dx.displayName;const bx=y.forwardRef(({className:n,...l},r)=>d.jsx(hx,{ref:r,className:Be("text-sm text-muted-foreground",n),...l}));bx.displayName=hx.displayName;const xx=["ollama","lm-studio","anthropic","openai-compatible"],SA=["ollama","lm-studio","openai-compatible"],Rd={ollama:"http://localhost:11434","lm-studio":"http://localhost:1234","openai-compatible":void 0},EA=["debug","info","warn","error"],wA=["git","obsidian-sync","manual"],CA=[{value:2048,label:"2K"},{value:4096,label:"4K"},{value:8192,label:"8K"},{value:16384,label:"16K"},{value:32768,label:"32K"},{value:65536,label:"64K"},{value:131072,label:"128K"}],Fy=[1500,3e3,5e3,7500,1e4],Sx=CA.map(n=>({value:String(n.value),label:`${n.label} (${n.value.toLocaleString()})`})),TA=["Stage 1 (warm)","Stage 2 (cooling)","Stage 3 (cold)"],RA=["Seconds between cycles after initial activity subsides","Seconds between cycles as activity continues to drop","Seconds between cycles just before dormancy"],NA={metabolism:{active_interval:900,cooldown_intervals:[1800,3600,7200],dormancy_threshold:14400}};function Ce({label:n,description:l,children:r}){return d.jsxs("div",{className:"grid gap-1.5",children:[d.jsx("label",{className:"text-sm font-medium text-foreground",children:n}),l&&d.jsx("p",{className:"text-xs text-muted-foreground",children:l}),r]})}function pu({checked:n,onChange:l}){return d.jsx("button",{type:"button",role:"switch","aria-checked":n,onClick:()=>l(!n),className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${n?"bg-primary":"bg-muted"}`,children:d.jsx("span",{className:`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform duration-200 ${n?"translate-x-5":"translate-x-0"}`})})}function ll({value:n,onChange:l,options:r,disabled:s,className:u}){return d.jsx("select",{value:n,onChange:f=>l(f.target.value),disabled:s,className:Be("w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:opacity-50",u),children:r.map(f=>{const h=typeof f=="string"?f:f.value,m=typeof f=="string"?f:f.label;return d.jsx("option",{value:h,children:m},h)})})}const mn=(n,l)=>r=>{const s=parseInt(r.target.value,10);isNaN(s)||n(l,s)};function _l(n,l){return JSON.stringify(n)!==JSON.stringify(l)}function or({title:n,description:l,isDirty:r,defaultOpen:s=!1,children:u}){const[f,h]=y.useState(s);return d.jsxs($t,{children:[d.jsxs(pn,{className:"cursor-pointer select-none",onClick:()=>h(m=>!m),children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(vn,{className:"text-base",children:n}),r&&d.jsx("span",{className:"h-2 w-2 rounded-full bg-primary",title:"Unsaved changes"})]}),d.jsx(cb,{className:Be("h-4 w-4 text-muted-foreground transition-transform duration-200",!f&&"-rotate-90")})]}),l&&d.jsx(Vi,{children:l})]}),f&&d.jsx(Jt,{children:u})]})}const Je=y.forwardRef(({className:n,type:l,...r},s)=>d.jsx("input",{type:l,className:Be("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...r}));Je.displayName="Input";const Ex=new Set(["openai-compatible"]);function AA(n,l,r){const s=n?Ex.has(n):!1;return Ns({queryKey:["models",n,l,r],queryFn:({signal:f})=>{const h=new URLSearchParams({provider:n});return l&&h.set("base_url",l),r&&h.set("type",r),ol(`/models?${h.toString()}`,{signal:f})},enabled:!!n&&(!s||!!l),staleTime:dT})}const OA=500;function th({provider:n,baseUrl:l,value:r,onChange:s,placeholder:u,modelType:f}){const m=(n?Ex.has(n):!1)&&!l,[g,v]=y.useState(l);y.useEffect(()=>{const C=setTimeout(()=>v(l),OA);return()=>clearTimeout(C)},[l]);const{data:x,isLoading:b}=AA(n,g,f),w=(x==null?void 0:x.models)??[];return y.useEffect(()=>{if(b||m||w.length===0||w.includes(r))return;const A=w.find(E=>E.startsWith(r+":")||r.startsWith(E+":")||E===r)??w[0];A!==r&&s(A)},[w,b,m,r,s]),d.jsxs("select",{value:r,onChange:C=>s(C.target.value),disabled:b||!n||m,className:"w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:opacity-50",children:[m&&d.jsx("option",{value:"",children:u??"Enter base URL first"}),!m&&b&&d.jsx("option",{value:r,children:"Loading models..."}),!m&&!b&&!n&&d.jsx("option",{value:"",children:u??"Select provider first"}),!m&&!b&&n&&w.length===0&&d.jsx("option",{value:"",children:u??"No models available"}),!m&&!b&&w.map(C=>d.jsx("option",{value:C,children:C},C))]})}function _A({intelligence:n,isDirty:l,updateLlm:r,updateEmbedding:s}){return d.jsx(or,{title:"Intelligence",description:"LLM and embedding provider configuration",isDirty:l,defaultOpen:!0,children:d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"LLM"}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Provider",description:"Which LLM service to use for processing sessions",children:d.jsx(ll,{value:n.llm.provider,onChange:u=>r("provider",u),options:[...xx]})}),n.llm.provider==="openai-compatible"&&d.jsx(Ce,{label:"Base URL",description:"OpenAI-compatible API endpoint (e.g., http://localhost:8080/v1)",children:d.jsx(Je,{value:n.llm.base_url??"",onChange:u=>r("base_url",u.target.value),placeholder:"http://localhost:8080/v1"})}),d.jsx(Ce,{label:"Model",description:"The model for extraction, summaries, and titles — speed matters more than depth",children:d.jsx(th,{provider:n.llm.provider,baseUrl:n.llm.base_url,value:n.llm.model,onChange:u=>r("model",u),modelType:"llm"})}),d.jsx(Ce,{label:"Context Window",description:"How much text the model can read per operation",children:d.jsx(ll,{value:String(n.llm.context_window),onChange:u=>r("context_window",parseInt(u,10)),options:Sx})})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Embedding"}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Provider",description:"Which service generates vector embeddings for search",children:d.jsx(ll,{value:n.embedding.provider,onChange:u=>s("provider",u),options:[...SA]})}),n.embedding.provider==="openai-compatible"&&d.jsx(Ce,{label:"Base URL",description:"OpenAI-compatible embedding API endpoint",children:d.jsx(Je,{value:n.embedding.base_url??"",onChange:u=>s("base_url",u.target.value),placeholder:"http://localhost:8080/v1"})}),d.jsx(Ce,{label:"Model",description:"The embedding model for semantic search and similarity",children:d.jsx(th,{provider:n.embedding.provider,baseUrl:n.embedding.base_url,value:n.embedding.model,onChange:u=>s("model",u),modelType:"embedding"})})]})]})]})})}function jA({digest:n,intelligence:l,isDirty:r,updateDigest:s,updateDigestIntelligence:u,updateDigestMetabolism:f,updateDigestSubstrate:h,updateDigestConsolidation:m}){const g=n.intelligence.provider??l.llm.provider,v=n.intelligence.base_url??l.llm.base_url;return d.jsx(or,{title:"Digest",description:"Continuous synthesis of vault knowledge into pre-computed context",isDirty:r,children:d.jsxs("div",{className:"space-y-6",children:[d.jsx(Ce,{label:"Enabled",description:"Run continuous vault synthesis in the background",children:d.jsx(pu,{checked:n.enabled,onChange:x=>s("enabled",x)})}),d.jsxs("div",{children:[d.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Consolidation"}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Enabled",description:"Automatically consolidate related spores into wisdom notes before each digest cycle",children:d.jsx(pu,{checked:n.consolidation.enabled,onChange:x=>m("enabled",x)})}),d.jsx(Ce,{label:"Max Tokens",description:"Token budget for wisdom note generation — higher values produce more comprehensive notes",children:d.jsx(Je,{type:"number",value:n.consolidation.max_tokens,onChange:x=>{const b=parseInt(x.target.value,10);isNaN(b)||m("max_tokens",b)}})})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Intelligence"}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Provider",description:"Override the processor model for digest — use a larger model for better synthesis",children:d.jsx(ll,{value:n.intelligence.provider??"__null__",onChange:x=>u("provider",x==="__null__"?null:x),options:[{value:"__null__",label:"Use main provider"},...xx.map(x=>({value:x,label:x}))]})}),d.jsx(Ce,{label:"Model",description:"Digest model — quality matters more than speed here",children:d.jsx(th,{provider:g,baseUrl:v,value:n.intelligence.model??"",onChange:x=>u("model",x||null),placeholder:"Use main model",modelType:"llm"})}),d.jsx(Ce,{label:"Context Window",description:"How much vault content the digest model can process per cycle",children:d.jsx(ll,{value:String(n.intelligence.context_window),onChange:x=>u("context_window",parseInt(x,10)),options:Sx})}),d.jsx(Ce,{label:"Keep Alive",description:"How long to keep the digest model loaded between cycles (Ollama duration string)",children:d.jsx(Je,{value:n.intelligence.keep_alive??"",placeholder:"Provider default",onChange:x=>u("keep_alive",x.target.value||null)})}),d.jsx(Ce,{label:"GPU KV Cache",description:"Offload key-value cache to GPU — faster but uses more VRAM",children:d.jsx(pu,{checked:n.intelligence.gpu_kv_cache,onChange:x=>u("gpu_kv_cache",x)})})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Tiers"}),d.jsx(Ce,{label:"Token budgets",description:"Pre-computed context sizes available for session injection",children:d.jsx("div",{className:"flex flex-wrap gap-2",children:Fy.map(x=>d.jsx(Wt,{variant:"secondary",children:x.toLocaleString()},x))})}),d.jsx("div",{className:"mt-4",children:d.jsx(Ce,{label:"Inject Tier",description:"Which tier to inject at session start — larger tiers give agents more context",children:d.jsx(ll,{value:n.inject_tier!==null?String(n.inject_tier):"__null__",onChange:x=>s("inject_tier",x==="__null__"?null:parseInt(x,10)),options:[{value:"__null__",label:"None (disabled)"},...Fy.map(x=>({value:String(x),label:`${x.toLocaleString()} tokens`}))]})})})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[d.jsx("h4",{className:"text-sm font-medium text-muted-foreground",children:"Metabolism"}),d.jsx("button",{type:"button",onClick:()=>{const x=NA.metabolism;f("active_interval",x.active_interval),f("dormancy_threshold",x.dormancy_threshold),f("cooldown_intervals",[...x.cooldown_intervals])},className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Reset to recommended"})]}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Active Interval (sec)",description:"Seconds between digest cycles when new content is arriving",children:d.jsx(Je,{type:"number",value:n.metabolism.active_interval,onChange:x=>{const b=parseInt(x.target.value,10);isNaN(b)||f("active_interval",b)}})}),d.jsx(Ce,{label:"Dormancy Threshold (sec)",description:"Seconds of inactivity before the digest engine goes dormant",children:d.jsx(Je,{type:"number",value:n.metabolism.dormancy_threshold,onChange:x=>{const b=parseInt(x.target.value,10);isNaN(b)||f("dormancy_threshold",b)}})})]}),d.jsxs("div",{className:"mt-4",children:[d.jsx("h5",{className:"mb-3 text-xs font-medium text-muted-foreground",children:"Cooldown Intervals (sec)"}),d.jsx("div",{className:"grid gap-4 sm:grid-cols-3",children:TA.map((x,b)=>d.jsx(Ce,{label:x,description:RA[b],children:d.jsx(Je,{type:"number",value:n.metabolism.cooldown_intervals[b]??"",onChange:w=>{const C=parseInt(w.target.value,10);if(!isNaN(C)){const A=[...n.metabolism.cooldown_intervals];A[b]=C,f("cooldown_intervals",A)}}})},x))})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Substrate"}),d.jsx(Ce,{label:"Max Notes Per Cycle",description:"Maximum vault notes to process in a single digest cycle",children:d.jsx(Je,{type:"number",value:n.substrate.max_notes_per_cycle,onChange:x=>{const b=parseInt(x.target.value,10);isNaN(b)||h("max_notes_per_cycle",b)}})})]})]})})}function MA({capture:n,isDirty:l,updateCapture:r}){return d.jsx(or,{title:"Capture",description:"Event buffering and token budgets for LLM processing",isDirty:l,children:d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Buffer Max Events",description:"Maximum events to buffer per session before flushing",children:d.jsx(Je,{type:"number",value:n.buffer_max_events,onChange:mn(r,"buffer_max_events")})}),d.jsx(Ce,{label:"Extraction Max Tokens",description:"Output token limit for observation extraction from sessions",children:d.jsx(Je,{type:"number",value:n.extraction_max_tokens,onChange:mn(r,"extraction_max_tokens")})}),d.jsx(Ce,{label:"Summary Max Tokens",description:"Output token limit for session summary generation",children:d.jsx(Je,{type:"number",value:n.summary_max_tokens,onChange:mn(r,"summary_max_tokens")})}),d.jsx(Ce,{label:"Title Max Tokens",description:"Output token limit for session title generation",children:d.jsx(Je,{type:"number",value:n.title_max_tokens,onChange:mn(r,"title_max_tokens")})}),d.jsx(Ce,{label:"Classification Max Tokens",description:"Output token limit for artifact classification",children:d.jsx(Je,{type:"number",value:n.classification_max_tokens,onChange:mn(r,"classification_max_tokens")})})]})})}function DA({context:n,isDirty:l,updateContext:r,updateContextLayer:s}){return d.jsx(or,{title:"Context",description:"Context injection token budget and layer allocations",isDirty:l,children:d.jsxs("div",{className:"space-y-4",children:[d.jsx(Ce,{label:"Max Tokens",description:"Total token budget for per-prompt context injection",children:d.jsx(Je,{type:"number",value:n.max_tokens,onChange:mn(r,"max_tokens")})}),d.jsxs("div",{children:[d.jsx("h4",{className:"mb-1 text-sm font-medium text-muted-foreground",children:"Layer Allocations"}),d.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"How the budget is split across vault content types"}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Plans",description:"Tokens allocated to active plan context",children:d.jsx(Je,{type:"number",value:n.layers.plans,onChange:mn(s,"plans")})}),d.jsx(Ce,{label:"Sessions",description:"Tokens allocated to recent session context",children:d.jsx(Je,{type:"number",value:n.layers.sessions,onChange:mn(s,"sessions")})}),d.jsx(Ce,{label:"Spores",description:"Tokens allocated to relevant spore context",children:d.jsx(Je,{type:"number",value:n.layers.spores,onChange:mn(s,"spores")})}),d.jsx(Ce,{label:"Team",description:"Tokens allocated to team member context",children:d.jsx(Je,{type:"number",value:n.layers.team,onChange:mn(s,"team")})})]})]})]})})}function zA({daemon:n,isDirty:l,updateDaemon:r}){return d.jsx(or,{title:"Daemon",description:"Daemon process settings",isDirty:l,children:d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"Port",description:"Auto-derived from vault path — the daemon binds to this port on startup",children:d.jsx(Je,{type:"number",value:n.port??"",placeholder:"Auto",disabled:!0,className:"disabled:cursor-default disabled:opacity-70"})}),d.jsx(Ce,{label:"Log Level",description:"Minimum severity level for daemon log output",children:d.jsx(ll,{value:n.log_level,onChange:s=>r("log_level",s),options:EA})}),d.jsx(Ce,{label:"Grace Period (sec)",description:"Seconds to wait before shutting down when no sessions are active",children:d.jsx(Je,{type:"number",value:n.grace_period,onChange:mn(r,"grace_period")})}),d.jsx(Ce,{label:"Max Log Size (bytes)",description:"Maximum daemon log file size in bytes before rotation",children:d.jsx(Je,{type:"number",value:n.max_log_size,onChange:mn(r,"max_log_size")})})]})})}function LA({team:n,isDirty:l,updateTeam:r}){return d.jsx(or,{title:"Team",description:"Multi-user collaboration settings",isDirty:l,children:d.jsxs("div",{className:"space-y-4",children:[d.jsx(Ce,{label:"Enabled",description:"Enable team knowledge sharing across vault users",children:d.jsx(pu,{checked:n.enabled,onChange:s=>r("enabled",s)})}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsx(Ce,{label:"User Name",description:"Your display name for team attribution",children:d.jsx(Je,{value:n.user,onChange:s=>r("user",s.target.value)})}),d.jsx(Ce,{label:"Sync Mode",description:"How team knowledge is synchronized between machines",children:d.jsx(ll,{value:n.sync,onChange:s=>r("sync",s),options:wA})})]})]})})}function UA({config:n,onSave:l,isSaving:r}){const[s,u]=y.useState(n),[f,h]=y.useState(!1),[m,g]=y.useState(null),{data:v}=Ms(),{restart:x,isRestarting:b}=Sb();y.useEffect(()=>{u(n)},[n]);const w=(v==null?void 0:v.daemon.config_hash)??null,C=m!==null&&m!==w,A=_l(s,n),E=_l(s.intelligence,n.intelligence),T=_l(s.digest,n.digest),N=_l(s.capture,n.capture),j=_l(s.context,n.context),M=_l(s.daemon,n.daemon),z=_l(s.team,n.team),V=y.useCallback(($,te)=>u(R=>{const G={[$]:te};return $==="provider"&&typeof te=="string"&&(G.base_url=Rd[te]??void 0),{...R,intelligence:{...R.intelligence,llm:{...R.intelligence.llm,...G}}}}),[]),P=y.useCallback(($,te)=>u(R=>{const G={[$]:te};return $==="provider"&&(G.base_url=Rd[te]??void 0),{...R,intelligence:{...R.intelligence,embedding:{...R.intelligence.embedding,...G}}}}),[]),Y=y.useCallback(($,te)=>u(R=>({...R,digest:{...R.digest,[$]:te}})),[]),I=y.useCallback(($,te)=>u(R=>{const G={[$]:te};return $==="provider"&&(G.base_url=typeof te=="string"?Rd[te]??void 0:null),{...R,digest:{...R.digest,intelligence:{...R.digest.intelligence,...G}}}}),[]),ae=y.useCallback(($,te)=>u(R=>({...R,digest:{...R.digest,metabolism:{...R.digest.metabolism,[$]:te}}})),[]),ie=y.useCallback(($,te)=>u(R=>({...R,digest:{...R.digest,substrate:{...R.digest.substrate,[$]:te}}})),[]),oe=y.useCallback(($,te)=>u(R=>({...R,digest:{...R.digest,consolidation:{...R.digest.consolidation,[$]:te}}})),[]),W=y.useCallback(($,te)=>u(R=>({...R,capture:{...R.capture,[$]:te}})),[]),pe=y.useCallback(($,te)=>u(R=>({...R,context:{...R.context,[$]:te}})),[]),ue=y.useCallback(($,te)=>u(R=>({...R,context:{...R.context,layers:{...R.context.layers,[$]:te}}})),[]),de=y.useCallback(($,te)=>u(R=>({...R,daemon:{...R.daemon,[$]:te}})),[]),U=y.useCallback(($,te)=>u(R=>({...R,team:{...R.team,[$]:te}})),[]),Z=async()=>{const $=await l(s);return w&&g(w),h(!0),$},F=async()=>{h(!1),await x(!0)};return d.jsxs("div",{className:"space-y-4",children:[C&&d.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-yellow-500/50 bg-yellow-500/10 px-4 py-3",children:[d.jsx(yb,{className:"h-4 w-4 shrink-0 text-yellow-500"}),d.jsx("span",{className:"flex-1 text-sm text-yellow-700 dark:text-yellow-400",children:"Configuration changed — restart required for changes to take effect"}),d.jsxs(Ct,{size:"sm",variant:"outline",className:"gap-1.5 border-yellow-500/50 text-yellow-700 hover:bg-yellow-500/10 dark:text-yellow-400",onClick:F,disabled:b,children:[b?d.jsx(Ml,{className:"h-3.5 w-3.5 animate-spin"}):d.jsx(Ml,{className:"h-3.5 w-3.5"}),"Restart Now"]})]}),d.jsx(_A,{intelligence:s.intelligence,isDirty:E,updateLlm:V,updateEmbedding:P}),d.jsx(jA,{digest:s.digest,intelligence:s.intelligence,isDirty:T,updateDigest:Y,updateDigestIntelligence:I,updateDigestMetabolism:ae,updateDigestSubstrate:ie,updateDigestConsolidation:oe}),d.jsx(MA,{capture:s.capture,isDirty:N,updateCapture:W}),d.jsx(DA,{context:s.context,isDirty:j,updateContext:pe,updateContextLayer:ue}),d.jsx(zA,{daemon:s.daemon,isDirty:M,updateDaemon:de}),d.jsx(LA,{team:s.team,isDirty:z,updateTeam:U}),d.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[A&&d.jsx("span",{className:"text-sm text-muted-foreground",children:"Unsaved changes"}),d.jsxs(Ct,{onClick:Z,disabled:!A||r,className:"gap-2",children:[r?d.jsx(Ml,{className:"h-4 w-4 animate-spin"}):d.jsx(JC,{className:"h-4 w-4"}),r?"Saving...":"Save Configuration"]})]}),d.jsx(bA,{open:f,onOpenChange:h,children:d.jsxs(px,{children:[d.jsxs(vx,{children:[d.jsx(yx,{children:"Configuration Saved"}),d.jsx(bx,{children:"Changes have been saved to disk. Some settings require a daemon restart to take effect."})]}),d.jsxs(gx,{children:[d.jsx(Ct,{variant:"outline",onClick:()=>h(!1),children:"Later"}),d.jsxs(Ct,{onClick:F,disabled:b,className:"gap-2",children:[b?d.jsx(Ml,{className:"h-4 w-4 animate-spin"}):d.jsx(Ml,{className:"h-4 w-4"}),b?"Restarting...":"Restart Now"]})]})]})})]})}function HA(){const{config:n,isLoading:l,error:r,saveConfig:s,isSaving:u}=VR();return d.jsx(Nh,{isLoading:l,error:r,loadingText:"Loading configuration...",children:n&&d.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(vb,{className:"h-5 w-5 text-primary"}),d.jsx("h1",{className:"text-xl font-semibold",children:"Configuration"})]}),d.jsx(UA,{config:n,onSave:s,isSaving:u})]})})}function wx(n){return Ns({queryKey:["progress",n],queryFn:({signal:l})=>ol(`/progress/${n}`,{signal:l}),enabled:!!n,refetchInterval:l=>{const r=l.state.data;return(r==null?void 0:r.status)==="completed"||(r==null?void 0:r.status)==="failed"?!1:Th.PROGRESS}})}const BA=4e3;function Lh({label:n,endpoint:l,body:r,description:s,icon:u,onComplete:f,disabled:h}){const[m,g]=y.useState("idle"),[v,x]=y.useState(null),[b,w]=y.useState(null),{data:C}=wx(v);y.useEffect(()=>{C&&(C.status==="completed"?(g("complete"),w(C.message??"Done"),x(null),f==null||f(C.result)):C.status==="failed"&&(g("failed"),w(C.message??"Failed"),x(null)))},[C,f]),y.useEffect(()=>{if(m!=="complete"&&m!=="failed")return;const j=setTimeout(()=>{g("idle"),w(null)},BA);return()=>clearTimeout(j)},[m]);const A=y.useCallback(async()=>{g("submitting");try{const j=await Su(l,r);j.token?(x(j.token),g("tracking")):(g("complete"),w("Done"),f==null||f(j))}catch{g("failed"),w("Request failed")}},[l,r,f]),E=m==="submitting"||m==="tracking",T=m==="tracking"&&(C==null?void 0:C.percent)!=null?C.percent:null,N=m==="tracking"?C==null?void 0:C.message:null;return d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs(Ct,{variant:"outline",size:"sm",className:Be("gap-2 transition-colors",m==="complete"&&"border-primary/50 text-primary",m==="failed"&&"border-destructive/50 text-destructive"),disabled:E||h,onClick:A,children:[E?d.jsx(xu,{className:"h-4 w-4 animate-spin"}):m==="complete"?d.jsx(fb,{className:"h-4 w-4"}):m==="failed"?d.jsx(db,{className:"h-4 w-4"}):u,E?N??"Running...":b??n]}),T!==null&&d.jsxs("span",{className:"text-xs font-mono text-muted-foreground",children:[Math.round(T),"%"]})]}),E&&T!==null&&d.jsx("div",{className:"mt-2 h-1.5 w-full rounded-full bg-muted overflow-hidden",children:d.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-300",style:{width:`${T}%`}})}),s&&m==="idle"&&d.jsx("p",{className:"text-xs text-muted-foreground",children:s})]})}const kA=6e3;function qA(){const[n,l]=y.useState("idle"),[r,s]=y.useState(null),[u,f]=y.useState(null),[h,m]=y.useState("idle"),[g,v]=y.useState(null),[x,b]=y.useState(null),{data:w}=wx(g);y.useEffect(()=>{w&&(w.status==="completed"?(m("complete"),b(w.message??"Curation complete"),v(null),s(null),l("idle")):w.status==="failed"&&(m("failed"),b(w.message??"Curation failed"),v(null)))},[w]),y.useEffect(()=>{if(h!=="complete"&&h!=="failed")return;const N=setTimeout(()=>{m("idle"),b(null)},kA);return()=>clearTimeout(N)},[h]);const C=y.useCallback(async()=>{l("loading"),f(null);try{const N=await Su("/curate",{dry_run:!0});s(N),l("loaded")}catch{f("Failed to load curation preview"),l("error")}},[]),A=y.useCallback(async()=>{m("submitting");try{const N=await Su("/curate",{dry_run:!1});N.token?(v(N.token),m("tracking")):(m("complete"),b("Curation complete"))}catch{m("failed"),b("Curation request failed")}},[]),E=h==="submitting"||h==="tracking",T=h==="tracking"&&(w==null?void 0:w.percent)!=null?w.percent:null;return d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[d.jsxs(Ct,{variant:"outline",size:"sm",className:"gap-2",disabled:n==="loading"||E,onClick:C,children:[n==="loading"?d.jsx(xu,{className:"h-4 w-4 animate-spin"}):d.jsx(GC,{className:"h-4 w-4"}),n==="loading"?"Scanning...":"Preview"]}),d.jsxs(Ct,{variant:"outline",size:"sm",className:Be("gap-2 transition-colors",h==="complete"&&"border-primary/50 text-primary",h==="failed"&&"border-destructive/50 text-destructive"),disabled:E||n==="loading",onClick:A,children:[E?d.jsx(xu,{className:"h-4 w-4 animate-spin"}):h==="complete"?d.jsx(fb,{className:"h-4 w-4"}):h==="failed"?d.jsx(db,{className:"h-4 w-4"}):d.jsx(mb,{className:"h-4 w-4"}),E?(w==null?void 0:w.message)??"Curating...":x??"Execute"]}),T!==null&&d.jsxs("span",{className:"text-xs font-mono text-muted-foreground",children:[Math.round(T),"%"]})]}),E&&T!==null&&d.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-secondary",children:d.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-300",style:{width:`${T}%`}})}),n==="error"&&u&&d.jsx("p",{className:"text-sm text-destructive",children:u}),n==="loaded"&&r&&d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"rounded-md border border-border bg-background p-3 text-sm space-y-1.5",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-muted-foreground",children:"Spores scanned"}),d.jsx(Wt,{variant:"secondary",className:"font-mono text-xs",children:r.scanned})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-muted-foreground",children:"Clusters evaluated"}),d.jsx(Wt,{variant:"secondary",className:"font-mono text-xs",children:r.clustersEvaluated})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-muted-foreground",children:"Would supersede"}),d.jsx(Wt,{variant:r.superseded>0?"destructive":"secondary",className:"font-mono text-xs",children:r.superseded})]})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:r.superseded===0?"No duplicate spores found.":`${r.superseded} spore${r.superseded===1?"":"s"} would be superseded. Run Execute to apply.`})]})]})}function Iy(n,[l,r]){return Math.min(r,Math.max(l,n))}function VA(n){const l=n+"CollectionProvider",[r,s]=Mu(l),[u,f]=r(l,{collectionRef:{current:null},itemMap:new Map}),h=E=>{const{scope:T,children:N}=E,j=oa.useRef(null),M=oa.useRef(new Map).current;return d.jsx(u,{scope:T,itemMap:M,collectionRef:j,children:N})};h.displayName=l;const m=n+"CollectionSlot",g=xs(m),v=oa.forwardRef((E,T)=>{const{scope:N,children:j}=E,M=f(m,N),z=it(T,M.collectionRef);return d.jsx(g,{ref:z,children:j})});v.displayName=m;const x=n+"CollectionItemSlot",b="data-radix-collection-item",w=xs(x),C=oa.forwardRef((E,T)=>{const{scope:N,children:j,...M}=E,z=oa.useRef(null),V=it(T,z),P=f(x,N);return oa.useEffect(()=>(P.itemMap.set(z,{ref:z,...M}),()=>void P.itemMap.delete(z))),d.jsx(w,{[b]:"",ref:V,children:j})});C.displayName=x;function A(E){const T=f(n+"CollectionConsumer",E);return oa.useCallback(()=>{const j=T.collectionRef.current;if(!j)return[];const M=Array.from(j.querySelectorAll(`[${b}]`));return Array.from(T.itemMap.values()).sort((P,Y)=>M.indexOf(P.ref.current)-M.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:h,Slot:v,ItemSlot:C},A,s]}var YA=y.createContext(void 0);function GA(n){const l=y.useContext(YA);return n||l||"ltr"}const QA=["top","right","bottom","left"],il=Math.min,It=Math.max,Cu=Math.round,ou=Math.floor,Un=n=>({x:n,y:n}),XA={left:"right",right:"left",bottom:"top",top:"bottom"};function nh(n,l,r){return It(n,il(l,r))}function pa(n,l){return typeof n=="function"?n(l):n}function va(n){return n.split("-")[0]}function ur(n){return n.split("-")[1]}function Uh(n){return n==="x"?"y":"x"}function Hh(n){return n==="y"?"height":"width"}function zn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function Bh(n){return Uh(zn(n))}function KA(n,l,r){r===void 0&&(r=!1);const s=ur(n),u=Bh(n),f=Hh(u);let h=u==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return l.reference[f]>l.floating[f]&&(h=Tu(h)),[h,Tu(h)]}function PA(n){const l=Tu(n);return[ah(n),l,ah(l)]}function ah(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const $y=["left","right"],Jy=["right","left"],ZA=["top","bottom"],FA=["bottom","top"];function IA(n,l,r){switch(n){case"top":case"bottom":return r?l?Jy:$y:l?$y:Jy;case"left":case"right":return l?ZA:FA;default:return[]}}function $A(n,l,r,s){const u=ur(n);let f=IA(va(n),r==="start",s);return u&&(f=f.map(h=>h+"-"+u),l&&(f=f.concat(f.map(ah)))),f}function Tu(n){const l=va(n);return XA[l]+n.slice(l.length)}function JA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Cx(n){return typeof n!="number"?JA(n):{top:n,right:n,bottom:n,left:n}}function Ru(n){const{x:l,y:r,width:s,height:u}=n;return{width:s,height:u,top:r,left:l,right:l+s,bottom:r+u,x:l,y:r}}function Wy(n,l,r){let{reference:s,floating:u}=n;const f=zn(l),h=Bh(l),m=Hh(h),g=va(l),v=f==="y",x=s.x+s.width/2-u.width/2,b=s.y+s.height/2-u.height/2,w=s[m]/2-u[m]/2;let C;switch(g){case"top":C={x,y:s.y-u.height};break;case"bottom":C={x,y:s.y+s.height};break;case"right":C={x:s.x+s.width,y:b};break;case"left":C={x:s.x-u.width,y:b};break;default:C={x:s.x,y:s.y}}switch(ur(l)){case"start":C[h]-=w*(r&&v?-1:1);break;case"end":C[h]+=w*(r&&v?-1:1);break}return C}async function WA(n,l){var r;l===void 0&&(l={});const{x:s,y:u,platform:f,rects:h,elements:m,strategy:g}=n,{boundary:v="clippingAncestors",rootBoundary:x="viewport",elementContext:b="floating",altBoundary:w=!1,padding:C=0}=pa(l,n),A=Cx(C),T=m[w?b==="floating"?"reference":"floating":b],N=Ru(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(T)))==null||r?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:v,rootBoundary:x,strategy:g})),j=b==="floating"?{x:s,y:u,width:h.floating.width,height:h.floating.height}:h.reference,M=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),z=await(f.isElement==null?void 0:f.isElement(M))?await(f.getScale==null?void 0:f.getScale(M))||{x:1,y:1}:{x:1,y:1},V=Ru(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:j,offsetParent:M,strategy:g}):j);return{top:(N.top-V.top+A.top)/z.y,bottom:(V.bottom-N.bottom+A.bottom)/z.y,left:(N.left-V.left+A.left)/z.x,right:(V.right-N.right+A.right)/z.x}}const eO=50,tO=async(n,l,r)=>{const{placement:s="bottom",strategy:u="absolute",middleware:f=[],platform:h}=r,m=h.detectOverflow?h:{...h,detectOverflow:WA},g=await(h.isRTL==null?void 0:h.isRTL(l));let v=await h.getElementRects({reference:n,floating:l,strategy:u}),{x,y:b}=Wy(v,s,g),w=s,C=0;const A={};for(let E=0;E<f.length;E++){const T=f[E];if(!T)continue;const{name:N,fn:j}=T,{x:M,y:z,data:V,reset:P}=await j({x,y:b,initialPlacement:s,placement:w,strategy:u,middlewareData:A,rects:v,platform:m,elements:{reference:n,floating:l}});x=M??x,b=z??b,A[N]={...A[N],...V},P&&C<eO&&(C++,typeof P=="object"&&(P.placement&&(w=P.placement),P.rects&&(v=P.rects===!0?await h.getElementRects({reference:n,floating:l,strategy:u}):P.rects),{x,y:b}=Wy(v,w,g)),E=-1)}return{x,y:b,placement:w,strategy:u,middlewareData:A}},nO=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:s,placement:u,rects:f,platform:h,elements:m,middlewareData:g}=l,{element:v,padding:x=0}=pa(n,l)||{};if(v==null)return{};const b=Cx(x),w={x:r,y:s},C=Bh(u),A=Hh(C),E=await h.getDimensions(v),T=C==="y",N=T?"top":"left",j=T?"bottom":"right",M=T?"clientHeight":"clientWidth",z=f.reference[A]+f.reference[C]-w[C]-f.floating[A],V=w[C]-f.reference[C],P=await(h.getOffsetParent==null?void 0:h.getOffsetParent(v));let Y=P?P[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(P)))&&(Y=m.floating[M]||f.floating[A]);const I=z/2-V/2,ae=Y/2-E[A]/2-1,ie=il(b[N],ae),oe=il(b[j],ae),W=ie,pe=Y-E[A]-oe,ue=Y/2-E[A]/2+I,de=nh(W,ue,pe),U=!g.arrow&&ur(u)!=null&&ue!==de&&f.reference[A]/2-(ue<W?ie:oe)-E[A]/2<0,Z=U?ue<W?ue-W:ue-pe:0;return{[C]:w[C]+Z,data:{[C]:de,centerOffset:ue-de-Z,...U&&{alignmentOffset:Z}},reset:U}}}),aO=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,s;const{placement:u,middlewareData:f,rects:h,initialPlacement:m,platform:g,elements:v}=l,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...T}=pa(n,l);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const N=va(u),j=zn(m),M=va(m)===m,z=await(g.isRTL==null?void 0:g.isRTL(v.floating)),V=w||(M||!E?[Tu(m)]:PA(m)),P=A!=="none";!w&&P&&V.push(...$A(m,E,A,z));const Y=[m,...V],I=await g.detectOverflow(l,T),ae=[];let ie=((s=f.flip)==null?void 0:s.overflows)||[];if(x&&ae.push(I[N]),b){const ue=KA(u,h,z);ae.push(I[ue[0]],I[ue[1]])}if(ie=[...ie,{placement:u,overflows:ae}],!ae.every(ue=>ue<=0)){var oe,W;const ue=(((oe=f.flip)==null?void 0:oe.index)||0)+1,de=Y[ue];if(de&&(!(b==="alignment"?j!==zn(de):!1)||ie.every(F=>zn(F.placement)===j?F.overflows[0]>0:!0)))return{data:{index:ue,overflows:ie},reset:{placement:de}};let U=(W=ie.filter(Z=>Z.overflows[0]<=0).sort((Z,F)=>Z.overflows[1]-F.overflows[1])[0])==null?void 0:W.placement;if(!U)switch(C){case"bestFit":{var pe;const Z=(pe=ie.filter(F=>{if(P){const $=zn(F.placement);return $===j||$==="y"}return!0}).map(F=>[F.placement,F.overflows.filter($=>$>0).reduce(($,te)=>$+te,0)]).sort((F,$)=>F[1]-$[1])[0])==null?void 0:pe[0];Z&&(U=Z);break}case"initialPlacement":U=m;break}if(u!==U)return{reset:{placement:U}}}return{}}}};function e0(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function t0(n){return QA.some(l=>n[l]>=0)}const lO=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:r,platform:s}=l,{strategy:u="referenceHidden",...f}=pa(n,l);switch(u){case"referenceHidden":{const h=await s.detectOverflow(l,{...f,elementContext:"reference"}),m=e0(h,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:t0(m)}}}case"escaped":{const h=await s.detectOverflow(l,{...f,altBoundary:!0}),m=e0(h,r.floating);return{data:{escapedOffsets:m,escaped:t0(m)}}}default:return{}}}}},Tx=new Set(["left","top"]);async function iO(n,l){const{placement:r,platform:s,elements:u}=n,f=await(s.isRTL==null?void 0:s.isRTL(u.floating)),h=va(r),m=ur(r),g=zn(r)==="y",v=Tx.has(h)?-1:1,x=f&&g?-1:1,b=pa(l,n);let{mainAxis:w,crossAxis:C,alignmentAxis:A}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof A=="number"&&(C=m==="end"?A*-1:A),g?{x:C*x,y:w*v}:{x:w*v,y:C*x}}const rO=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,s;const{x:u,y:f,placement:h,middlewareData:m}=l,g=await iO(l,n);return h===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:u+g.x,y:f+g.y,data:{...g,placement:h}}}}},sO=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:s,placement:u,platform:f}=l,{mainAxis:h=!0,crossAxis:m=!1,limiter:g={fn:N=>{let{x:j,y:M}=N;return{x:j,y:M}}},...v}=pa(n,l),x={x:r,y:s},b=await f.detectOverflow(l,v),w=zn(va(u)),C=Uh(w);let A=x[C],E=x[w];if(h){const N=C==="y"?"top":"left",j=C==="y"?"bottom":"right",M=A+b[N],z=A-b[j];A=nh(M,A,z)}if(m){const N=w==="y"?"top":"left",j=w==="y"?"bottom":"right",M=E+b[N],z=E-b[j];E=nh(M,E,z)}const T=g.fn({...l,[C]:A,[w]:E});return{...T,data:{x:T.x-r,y:T.y-s,enabled:{[C]:h,[w]:m}}}}}},oO=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:r,y:s,placement:u,rects:f,middlewareData:h}=l,{offset:m=0,mainAxis:g=!0,crossAxis:v=!0}=pa(n,l),x={x:r,y:s},b=zn(u),w=Uh(b);let C=x[w],A=x[b];const E=pa(m,l),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(g){const M=w==="y"?"height":"width",z=f.reference[w]-f.floating[M]+T.mainAxis,V=f.reference[w]+f.reference[M]-T.mainAxis;C<z?C=z:C>V&&(C=V)}if(v){var N,j;const M=w==="y"?"width":"height",z=Tx.has(va(u)),V=f.reference[b]-f.floating[M]+(z&&((N=h.offset)==null?void 0:N[b])||0)+(z?0:T.crossAxis),P=f.reference[b]+f.reference[M]+(z?0:((j=h.offset)==null?void 0:j[b])||0)-(z?T.crossAxis:0);A<V?A=V:A>P&&(A=P)}return{[w]:C,[b]:A}}}},uO=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var r,s;const{placement:u,rects:f,platform:h,elements:m}=l,{apply:g=()=>{},...v}=pa(n,l),x=await h.detectOverflow(l,v),b=va(u),w=ur(u),C=zn(u)==="y",{width:A,height:E}=f.floating;let T,N;b==="top"||b==="bottom"?(T=b,N=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(N=b,T=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,M=A-x.left-x.right,z=il(E-x[T],j),V=il(A-x[N],M),P=!l.middlewareData.shift;let Y=z,I=V;if((r=l.middlewareData.shift)!=null&&r.enabled.x&&(I=M),(s=l.middlewareData.shift)!=null&&s.enabled.y&&(Y=j),P&&!w){const ie=It(x.left,0),oe=It(x.right,0),W=It(x.top,0),pe=It(x.bottom,0);C?I=A-2*(ie!==0||oe!==0?ie+oe:It(x.left,x.right)):Y=E-2*(W!==0||pe!==0?W+pe:It(x.top,x.bottom))}await g({...l,availableWidth:I,availableHeight:Y});const ae=await h.getDimensions(m.floating);return A!==ae.width||E!==ae.height?{reset:{rects:!0}}:{}}}};function Uu(){return typeof window<"u"}function cr(n){return Rx(n)?(n.nodeName||"").toLowerCase():"#document"}function en(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function kn(n){var l;return(l=(Rx(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Rx(n){return Uu()?n instanceof Node||n instanceof en(n).Node:!1}function wn(n){return Uu()?n instanceof Element||n instanceof en(n).Element:!1}function ga(n){return Uu()?n instanceof HTMLElement||n instanceof en(n).HTMLElement:!1}function n0(n){return!Uu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof en(n).ShadowRoot}function Ds(n){const{overflow:l,overflowX:r,overflowY:s,display:u}=Cn(n);return/auto|scroll|overlay|hidden|clip/.test(l+s+r)&&u!=="inline"&&u!=="contents"}function cO(n){return/^(table|td|th)$/.test(cr(n))}function Hu(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const fO=/transform|translate|scale|rotate|perspective|filter/,dO=/paint|layout|strict|content/,jl=n=>!!n&&n!=="none";let Nd;function kh(n){const l=wn(n)?Cn(n):n;return jl(l.transform)||jl(l.translate)||jl(l.scale)||jl(l.rotate)||jl(l.perspective)||!qh()&&(jl(l.backdropFilter)||jl(l.filter))||fO.test(l.willChange||"")||dO.test(l.contain||"")}function hO(n){let l=rl(n);for(;ga(l)&&!ar(l);){if(kh(l))return l;if(Hu(l))return null;l=rl(l)}return null}function qh(){return Nd==null&&(Nd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nd}function ar(n){return/^(html|body|#document)$/.test(cr(n))}function Cn(n){return en(n).getComputedStyle(n)}function Bu(n){return wn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function rl(n){if(cr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||n0(n)&&n.host||kn(n);return n0(l)?l.host:l}function Nx(n){const l=rl(n);return ar(l)?n.ownerDocument?n.ownerDocument.body:n.body:ga(l)&&Ds(l)?l:Nx(l)}function Ss(n,l,r){var s;l===void 0&&(l=[]),r===void 0&&(r=!0);const u=Nx(n),f=u===((s=n.ownerDocument)==null?void 0:s.body),h=en(u);if(f){const m=lh(h);return l.concat(h,h.visualViewport||[],Ds(u)?u:[],m&&r?Ss(m):[])}else return l.concat(u,Ss(u,[],r))}function lh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ax(n){const l=Cn(n);let r=parseFloat(l.width)||0,s=parseFloat(l.height)||0;const u=ga(n),f=u?n.offsetWidth:r,h=u?n.offsetHeight:s,m=Cu(r)!==f||Cu(s)!==h;return m&&(r=f,s=h),{width:r,height:s,$:m}}function Vh(n){return wn(n)?n:n.contextElement}function Qi(n){const l=Vh(n);if(!ga(l))return Un(1);const r=l.getBoundingClientRect(),{width:s,height:u,$:f}=Ax(l);let h=(f?Cu(r.width):r.width)/s,m=(f?Cu(r.height):r.height)/u;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const mO=Un(0);function Ox(n){const l=en(n);return!qh()||!l.visualViewport?mO:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function pO(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==en(n)?!1:l}function Kl(n,l,r,s){l===void 0&&(l=!1),r===void 0&&(r=!1);const u=n.getBoundingClientRect(),f=Vh(n);let h=Un(1);l&&(s?wn(s)&&(h=Qi(s)):h=Qi(n));const m=pO(f,r,s)?Ox(f):Un(0);let g=(u.left+m.x)/h.x,v=(u.top+m.y)/h.y,x=u.width/h.x,b=u.height/h.y;if(f){const w=en(f),C=s&&wn(s)?en(s):s;let A=w,E=lh(A);for(;E&&s&&C!==A;){const T=Qi(E),N=E.getBoundingClientRect(),j=Cn(E),M=N.left+(E.clientLeft+parseFloat(j.paddingLeft))*T.x,z=N.top+(E.clientTop+parseFloat(j.paddingTop))*T.y;g*=T.x,v*=T.y,x*=T.x,b*=T.y,g+=M,v+=z,A=en(E),E=lh(A)}}return Ru({width:x,height:b,x:g,y:v})}function ku(n,l){const r=Bu(n).scrollLeft;return l?l.left+r:Kl(kn(n)).left+r}function _x(n,l){const r=n.getBoundingClientRect(),s=r.left+l.scrollLeft-ku(n,r),u=r.top+l.scrollTop;return{x:s,y:u}}function vO(n){let{elements:l,rect:r,offsetParent:s,strategy:u}=n;const f=u==="fixed",h=kn(s),m=l?Hu(l.floating):!1;if(s===h||m&&f)return r;let g={scrollLeft:0,scrollTop:0},v=Un(1);const x=Un(0),b=ga(s);if((b||!b&&!f)&&((cr(s)!=="body"||Ds(h))&&(g=Bu(s)),b)){const C=Kl(s);v=Qi(s),x.x=C.x+s.clientLeft,x.y=C.y+s.clientTop}const w=h&&!b&&!f?_x(h,g):Un(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-g.scrollLeft*v.x+x.x+w.x,y:r.y*v.y-g.scrollTop*v.y+x.y+w.y}}function gO(n){return Array.from(n.getClientRects())}function yO(n){const l=kn(n),r=Bu(n),s=n.ownerDocument.body,u=It(l.scrollWidth,l.clientWidth,s.scrollWidth,s.clientWidth),f=It(l.scrollHeight,l.clientHeight,s.scrollHeight,s.clientHeight);let h=-r.scrollLeft+ku(n);const m=-r.scrollTop;return Cn(s).direction==="rtl"&&(h+=It(l.clientWidth,s.clientWidth)-u),{width:u,height:f,x:h,y:m}}const a0=25;function bO(n,l){const r=en(n),s=kn(n),u=r.visualViewport;let f=s.clientWidth,h=s.clientHeight,m=0,g=0;if(u){f=u.width,h=u.height;const x=qh();(!x||x&&l==="fixed")&&(m=u.offsetLeft,g=u.offsetTop)}const v=ku(s);if(v<=0){const x=s.ownerDocument,b=x.body,w=getComputedStyle(b),C=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(s.clientWidth-b.clientWidth-C);A<=a0&&(f-=A)}else v<=a0&&(f+=v);return{width:f,height:h,x:m,y:g}}function xO(n,l){const r=Kl(n,!0,l==="fixed"),s=r.top+n.clientTop,u=r.left+n.clientLeft,f=ga(n)?Qi(n):Un(1),h=n.clientWidth*f.x,m=n.clientHeight*f.y,g=u*f.x,v=s*f.y;return{width:h,height:m,x:g,y:v}}function l0(n,l,r){let s;if(l==="viewport")s=bO(n,r);else if(l==="document")s=yO(kn(n));else if(wn(l))s=xO(l,r);else{const u=Ox(n);s={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return Ru(s)}function jx(n,l){const r=rl(n);return r===l||!wn(r)||ar(r)?!1:Cn(r).position==="fixed"||jx(r,l)}function SO(n,l){const r=l.get(n);if(r)return r;let s=Ss(n,[],!1).filter(m=>wn(m)&&cr(m)!=="body"),u=null;const f=Cn(n).position==="fixed";let h=f?rl(n):n;for(;wn(h)&&!ar(h);){const m=Cn(h),g=kh(h);!g&&m.position==="fixed"&&(u=null),(f?!g&&!u:!g&&m.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Ds(h)&&!g&&jx(n,h))?s=s.filter(x=>x!==h):u=m,h=rl(h)}return l.set(n,s),s}function EO(n){let{element:l,boundary:r,rootBoundary:s,strategy:u}=n;const h=[...r==="clippingAncestors"?Hu(l)?[]:SO(l,this._c):[].concat(r),s],m=l0(l,h[0],u);let g=m.top,v=m.right,x=m.bottom,b=m.left;for(let w=1;w<h.length;w++){const C=l0(l,h[w],u);g=It(C.top,g),v=il(C.right,v),x=il(C.bottom,x),b=It(C.left,b)}return{width:v-b,height:x-g,x:b,y:g}}function wO(n){const{width:l,height:r}=Ax(n);return{width:l,height:r}}function CO(n,l,r){const s=ga(l),u=kn(l),f=r==="fixed",h=Kl(n,!0,f,l);let m={scrollLeft:0,scrollTop:0};const g=Un(0);function v(){g.x=ku(u)}if(s||!s&&!f)if((cr(l)!=="body"||Ds(u))&&(m=Bu(l)),s){const C=Kl(l,!0,f,l);g.x=C.x+l.clientLeft,g.y=C.y+l.clientTop}else u&&v();f&&!s&&u&&v();const x=u&&!s&&!f?_x(u,m):Un(0),b=h.left+m.scrollLeft-g.x-x.x,w=h.top+m.scrollTop-g.y-x.y;return{x:b,y:w,width:h.width,height:h.height}}function Ad(n){return Cn(n).position==="static"}function i0(n,l){if(!ga(n)||Cn(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return kn(n)===r&&(r=r.ownerDocument.body),r}function Mx(n,l){const r=en(n);if(Hu(n))return r;if(!ga(n)){let u=rl(n);for(;u&&!ar(u);){if(wn(u)&&!Ad(u))return u;u=rl(u)}return r}let s=i0(n,l);for(;s&&cO(s)&&Ad(s);)s=i0(s,l);return s&&ar(s)&&Ad(s)&&!kh(s)?r:s||hO(n)||r}const TO=async function(n){const l=this.getOffsetParent||Mx,r=this.getDimensions,s=await r(n.floating);return{reference:CO(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function RO(n){return Cn(n).direction==="rtl"}const NO={convertOffsetParentRelativeRectToViewportRelativeRect:vO,getDocumentElement:kn,getClippingRect:EO,getOffsetParent:Mx,getElementRects:TO,getClientRects:gO,getDimensions:wO,getScale:Qi,isElement:wn,isRTL:RO};function Dx(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function AO(n,l){let r=null,s;const u=kn(n);function f(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function h(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),f();const v=n.getBoundingClientRect(),{left:x,top:b,width:w,height:C}=v;if(m||l(),!w||!C)return;const A=ou(b),E=ou(u.clientWidth-(x+w)),T=ou(u.clientHeight-(b+C)),N=ou(x),M={rootMargin:-A+"px "+-E+"px "+-T+"px "+-N+"px",threshold:It(0,il(1,g))||1};let z=!0;function V(P){const Y=P[0].intersectionRatio;if(Y!==g){if(!z)return h();Y?h(!1,Y):s=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!Dx(v,n.getBoundingClientRect())&&h(),z=!1}try{r=new IntersectionObserver(V,{...M,root:u.ownerDocument})}catch{r=new IntersectionObserver(V,M)}r.observe(n)}return h(!0),f}function OO(n,l,r,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=s,v=Vh(n),x=u||f?[...v?Ss(v):[],...l?Ss(l):[]]:[];x.forEach(N=>{u&&N.addEventListener("scroll",r,{passive:!0}),f&&N.addEventListener("resize",r)});const b=v&&m?AO(v,r):null;let w=-1,C=null;h&&(C=new ResizeObserver(N=>{let[j]=N;j&&j.target===v&&C&&l&&(C.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=C)==null||M.observe(l)})),r()}),v&&!g&&C.observe(v),l&&C.observe(l));let A,E=g?Kl(n):null;g&&T();function T(){const N=Kl(n);E&&!Dx(E,N)&&r(),E=N,A=requestAnimationFrame(T)}return r(),()=>{var N;x.forEach(j=>{u&&j.removeEventListener("scroll",r),f&&j.removeEventListener("resize",r)}),b==null||b(),(N=C)==null||N.disconnect(),C=null,g&&cancelAnimationFrame(A)}}const _O=rO,jO=sO,MO=aO,DO=uO,zO=lO,r0=nO,LO=oO,UO=(n,l,r)=>{const s=new Map,u={platform:NO,...r},f={...u.platform,_c:s};return tO(n,l,{...u,platform:f})};var HO=typeof document<"u",BO=function(){},vu=HO?y.useLayoutEffect:BO;function Nu(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let r,s,u;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==l.length)return!1;for(s=r;s--!==0;)if(!Nu(n[s],l[s]))return!1;return!0}if(u=Object.keys(n),r=u.length,r!==Object.keys(l).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(l,u[s]))return!1;for(s=r;s--!==0;){const f=u[s];if(!(f==="_owner"&&n.$$typeof)&&!Nu(n[f],l[f]))return!1}return!0}return n!==n&&l!==l}function zx(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function s0(n,l){const r=zx(n);return Math.round(l*r)/r}function Od(n){const l=y.useRef(n);return vu(()=>{l.current=n}),l}function kO(n){n===void 0&&(n={});const{placement:l="bottom",strategy:r="absolute",middleware:s=[],platform:u,elements:{reference:f,floating:h}={},transform:m=!0,whileElementsMounted:g,open:v}=n,[x,b]=y.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[w,C]=y.useState(s);Nu(w,s)||C(s);const[A,E]=y.useState(null),[T,N]=y.useState(null),j=y.useCallback(F=>{F!==P.current&&(P.current=F,E(F))},[]),M=y.useCallback(F=>{F!==Y.current&&(Y.current=F,N(F))},[]),z=f||A,V=h||T,P=y.useRef(null),Y=y.useRef(null),I=y.useRef(x),ae=g!=null,ie=Od(g),oe=Od(u),W=Od(v),pe=y.useCallback(()=>{if(!P.current||!Y.current)return;const F={placement:l,strategy:r,middleware:w};oe.current&&(F.platform=oe.current),UO(P.current,Y.current,F).then($=>{const te={...$,isPositioned:W.current!==!1};ue.current&&!Nu(I.current,te)&&(I.current=te,js.flushSync(()=>{b(te)}))})},[w,l,r,oe,W]);vu(()=>{v===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,b(F=>({...F,isPositioned:!1})))},[v]);const ue=y.useRef(!1);vu(()=>(ue.current=!0,()=>{ue.current=!1}),[]),vu(()=>{if(z&&(P.current=z),V&&(Y.current=V),z&&V){if(ie.current)return ie.current(z,V,pe);pe()}},[z,V,pe,ie,ae]);const de=y.useMemo(()=>({reference:P,floating:Y,setReference:j,setFloating:M}),[j,M]),U=y.useMemo(()=>({reference:z,floating:V}),[z,V]),Z=y.useMemo(()=>{const F={position:r,left:0,top:0};if(!U.floating)return F;const $=s0(U.floating,x.x),te=s0(U.floating,x.y);return m?{...F,transform:"translate("+$+"px, "+te+"px)",...zx(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:te}},[r,m,U.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:pe,refs:de,elements:U,floatingStyles:Z}),[x,pe,de,U,Z])}const qO=n=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:s,padding:u}=typeof n=="function"?n(r):n;return s&&l(s)?s.current!=null?r0({element:s.current,padding:u}).fn(r):{}:s?r0({element:s,padding:u}).fn(r):{}}}},VO=(n,l)=>{const r=_O(n);return{name:r.name,fn:r.fn,options:[n,l]}},YO=(n,l)=>{const r=jO(n);return{name:r.name,fn:r.fn,options:[n,l]}},GO=(n,l)=>({fn:LO(n).fn,options:[n,l]}),QO=(n,l)=>{const r=MO(n);return{name:r.name,fn:r.fn,options:[n,l]}},XO=(n,l)=>{const r=DO(n);return{name:r.name,fn:r.fn,options:[n,l]}},KO=(n,l)=>{const r=zO(n);return{name:r.name,fn:r.fn,options:[n,l]}},PO=(n,l)=>{const r=qO(n);return{name:r.name,fn:r.fn,options:[n,l]}};var ZO="Arrow",Lx=y.forwardRef((n,l)=>{const{children:r,width:s=10,height:u=5,...f}=n;return d.jsx(Ke.svg,{...f,ref:l,width:s,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lx.displayName=ZO;var FO=Lx;function IO(n){const[l,r]=y.useState(void 0);return Tt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let h,m;if("borderBoxSize"in f){const g=f.borderBoxSize,v=Array.isArray(g)?g[0]:g;h=v.inlineSize,m=v.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else r(void 0)},[n]),l}var Yh="Popper",[Ux,Hx]=Mu(Yh),[$O,Bx]=Ux(Yh),kx=n=>{const{__scopePopper:l,children:r}=n,[s,u]=y.useState(null);return d.jsx($O,{scope:l,anchor:s,onAnchorChange:u,children:r})};kx.displayName=Yh;var qx="PopperAnchor",Vx=y.forwardRef((n,l)=>{const{__scopePopper:r,virtualRef:s,...u}=n,f=Bx(qx,r),h=y.useRef(null),m=it(l,h),g=y.useRef(null);return y.useEffect(()=>{const v=g.current;g.current=(s==null?void 0:s.current)||h.current,v!==g.current&&f.onAnchorChange(g.current)}),s?null:d.jsx(Ke.div,{...u,ref:m})});Vx.displayName=qx;var Gh="PopperContent",[JO,WO]=Ux(Gh),Yx=y.forwardRef((n,l)=>{var ee,be,we,De,Me,ze;const{__scopePopper:r,side:s="bottom",sideOffset:u=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:A,...E}=n,T=Bx(Gh,r),[N,j]=y.useState(null),M=it(l,St=>j(St)),[z,V]=y.useState(null),P=IO(z),Y=(P==null?void 0:P.width)??0,I=(P==null?void 0:P.height)??0,ae=s+(f!=="center"?"-"+f:""),ie=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},oe=Array.isArray(v)?v:[v],W=oe.length>0,pe={padding:ie,boundary:oe.filter(t_),altBoundary:W},{refs:ue,floatingStyles:de,placement:U,isPositioned:Z,middlewareData:F}=kO({strategy:"fixed",placement:ae,whileElementsMounted:(...St)=>OO(...St,{animationFrame:C==="always"}),elements:{reference:T.anchor},middleware:[VO({mainAxis:u+I,alignmentAxis:h}),g&&YO({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?GO():void 0,...pe}),g&&QO({...pe}),XO({...pe,apply:({elements:St,rects:dt,availableWidth:qn,availableHeight:Vn})=>{const{width:fl,height:zs}=dt.reference,ya=St.floating.style;ya.setProperty("--radix-popper-available-width",`${qn}px`),ya.setProperty("--radix-popper-available-height",`${Vn}px`),ya.setProperty("--radix-popper-anchor-width",`${fl}px`),ya.setProperty("--radix-popper-anchor-height",`${zs}px`)}}),z&&PO({element:z,padding:m}),n_({arrowWidth:Y,arrowHeight:I}),w&&KO({strategy:"referenceHidden",...pe})]}),[$,te]=Xx(U),R=Ql(A);Tt(()=>{Z&&(R==null||R())},[Z,R]);const G=(ee=F.arrow)==null?void 0:ee.x,J=(be=F.arrow)==null?void 0:be.y,le=((we=F.arrow)==null?void 0:we.centerOffset)!==0,[me,ve]=y.useState();return Tt(()=>{N&&ve(window.getComputedStyle(N).zIndex)},[N]),d.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:Z?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(De=F.transformOrigin)==null?void 0:De.x,(Me=F.transformOrigin)==null?void 0:Me.y].join(" "),...((ze=F.hide)==null?void 0:ze.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:d.jsx(JO,{scope:r,placedSide:$,onArrowChange:V,arrowX:G,arrowY:J,shouldHideArrow:le,children:d.jsx(Ke.div,{"data-side":$,"data-align":te,...E,ref:M,style:{...E.style,animation:Z?void 0:"none"}})})})});Yx.displayName=Gh;var Gx="PopperArrow",e_={top:"bottom",right:"left",bottom:"top",left:"right"},Qx=y.forwardRef(function(l,r){const{__scopePopper:s,...u}=l,f=WO(Gx,s),h=e_[f.placedSide];return d.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:d.jsx(FO,{...u,ref:r,style:{...u.style,display:"block"}})})});Qx.displayName=Gx;function t_(n){return n!==null}var n_=n=>({name:"transformOrigin",options:n,fn(l){var T,N,j;const{placement:r,rects:s,middlewareData:u}=l,h=((T=u.arrow)==null?void 0:T.centerOffset)!==0,m=h?0:n.arrowWidth,g=h?0:n.arrowHeight,[v,x]=Xx(r),b={start:"0%",center:"50%",end:"100%"}[x],w=(((N=u.arrow)==null?void 0:N.x)??0)+m/2,C=(((j=u.arrow)==null?void 0:j.y)??0)+g/2;let A="",E="";return v==="bottom"?(A=h?b:`${w}px`,E=`${-g}px`):v==="top"?(A=h?b:`${w}px`,E=`${s.floating.height+g}px`):v==="right"?(A=`${-g}px`,E=h?b:`${C}px`):v==="left"&&(A=`${s.floating.width+g}px`,E=h?b:`${C}px`),{data:{x:A,y:E}}}});function Xx(n){const[l,r="center"]=n.split("-");return[l,r]}var a_=kx,l_=Vx,i_=Yx,r_=Qx;function s_(n){const l=y.useRef({value:n,previous:n});return y.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var Kx=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"}),o_="VisuallyHidden",u_=y.forwardRef((n,l)=>d.jsx(Ke.span,{...n,ref:l,style:{...Kx,...n.style}}));u_.displayName=o_;var c_=[" ","Enter","ArrowUp","ArrowDown"],f_=[" ","Enter"],Pl="Select",[qu,Vu,d_]=VA(Pl),[fr]=Mu(Pl,[d_,Hx]),Yu=Hx(),[h_,ul]=fr(Pl),[m_,p_]=fr(Pl),Px=n=>{const{__scopeSelect:l,children:r,open:s,defaultOpen:u,onOpenChange:f,value:h,defaultValue:m,onValueChange:g,dir:v,name:x,autoComplete:b,disabled:w,required:C,form:A}=n,E=Yu(l),[T,N]=y.useState(null),[j,M]=y.useState(null),[z,V]=y.useState(!1),P=GA(v),[Y,I]=Jd({prop:s,defaultProp:u??!1,onChange:f,caller:Pl}),[ae,ie]=Jd({prop:h,defaultProp:m,onChange:g,caller:Pl}),oe=y.useRef(null),W=T?A||!!T.closest("form"):!0,[pe,ue]=y.useState(new Set),de=Array.from(pe).map(U=>U.props.value).join(";");return d.jsx(a_,{...E,children:d.jsxs(h_,{required:C,scope:l,trigger:T,onTriggerChange:N,valueNode:j,onValueNodeChange:M,valueNodeHasChildren:z,onValueNodeHasChildrenChange:V,contentId:Yi(),value:ae,onValueChange:ie,open:Y,onOpenChange:I,dir:P,triggerPointerDownPosRef:oe,disabled:w,children:[d.jsx(qu.Provider,{scope:l,children:d.jsx(m_,{scope:n.__scopeSelect,onNativeOptionAdd:y.useCallback(U=>{ue(Z=>new Set(Z).add(U))},[]),onNativeOptionRemove:y.useCallback(U=>{ue(Z=>{const F=new Set(Z);return F.delete(U),F})},[]),children:r})}),W?d.jsxs(hS,{"aria-hidden":!0,required:C,tabIndex:-1,name:x,autoComplete:b,value:ae,onChange:U=>ie(U.target.value),disabled:w,form:A,children:[ae===void 0?d.jsx("option",{value:""}):null,Array.from(pe)]},de):null]})})};Px.displayName=Pl;var Zx="SelectTrigger",Fx=y.forwardRef((n,l)=>{const{__scopeSelect:r,disabled:s=!1,...u}=n,f=Yu(r),h=ul(Zx,r),m=h.disabled||s,g=it(l,h.onTriggerChange),v=Vu(r),x=y.useRef("touch"),[b,w,C]=pS(E=>{const T=v().filter(M=>!M.disabled),N=T.find(M=>M.value===h.value),j=vS(T,E,N);j!==void 0&&h.onValueChange(j.value)}),A=E=>{m||(h.onOpenChange(!0),C()),E&&(h.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return d.jsx(l_,{asChild:!0,...f,children:d.jsx(Ke.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":mS(h.value)?"":void 0,...u,ref:g,onClick:Ie(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&A(E)}),onPointerDown:Ie(u.onPointerDown,E=>{x.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(A(E),E.preventDefault())}),onKeyDown:Ie(u.onKeyDown,E=>{const T=b.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(T&&E.key===" ")&&c_.includes(E.key)&&(A(),E.preventDefault())})})})});Fx.displayName=Zx;var Ix="SelectValue",$x=y.forwardRef((n,l)=>{const{__scopeSelect:r,className:s,style:u,children:f,placeholder:h="",...m}=n,g=ul(Ix,r),{onValueNodeHasChildrenChange:v}=g,x=f!==void 0,b=it(l,g.onValueNodeChange);return Tt(()=>{v(x)},[v,x]),d.jsx(Ke.span,{...m,ref:b,style:{pointerEvents:"none"},children:mS(g.value)?d.jsx(d.Fragment,{children:h}):f})});$x.displayName=Ix;var v_="SelectIcon",Jx=y.forwardRef((n,l)=>{const{__scopeSelect:r,children:s,...u}=n;return d.jsx(Ke.span,{"aria-hidden":!0,...u,ref:l,children:s||"▼"})});Jx.displayName=v_;var g_="SelectPortal",Wx=n=>d.jsx(_h,{asChild:!0,...n});Wx.displayName=g_;var Zl="SelectContent",eS=y.forwardRef((n,l)=>{const r=ul(Zl,n.__scopeSelect),[s,u]=y.useState();if(Tt(()=>{u(new DocumentFragment)},[]),!r.open){const f=s;return f?js.createPortal(d.jsx(tS,{scope:n.__scopeSelect,children:d.jsx(qu.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),f):null}return d.jsx(nS,{...n,ref:l})});eS.displayName=Zl;var Sn=10,[tS,cl]=fr(Zl),y_="SelectContentImpl",b_=xs("SelectContent.RemoveScroll"),nS=y.forwardRef((n,l)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:h,side:m,sideOffset:g,align:v,alignOffset:x,arrowPadding:b,collisionBoundary:w,collisionPadding:C,sticky:A,hideWhenDetached:E,avoidCollisions:T,...N}=n,j=ul(Zl,r),[M,z]=y.useState(null),[V,P]=y.useState(null),Y=it(l,ee=>z(ee)),[I,ae]=y.useState(null),[ie,oe]=y.useState(null),W=Vu(r),[pe,ue]=y.useState(!1),de=y.useRef(!1);y.useEffect(()=>{if(M)return Zb(M)},[M]),kb();const U=y.useCallback(ee=>{const[be,...we]=W().map(ze=>ze.ref.current),[De]=we.slice(-1),Me=document.activeElement;for(const ze of ee)if(ze===Me||(ze==null||ze.scrollIntoView({block:"nearest"}),ze===be&&V&&(V.scrollTop=0),ze===De&&V&&(V.scrollTop=V.scrollHeight),ze==null||ze.focus(),document.activeElement!==Me))return},[W,V]),Z=y.useCallback(()=>U([I,M]),[U,I,M]);y.useEffect(()=>{pe&&Z()},[pe,Z]);const{onOpenChange:F,triggerPointerDownPosRef:$}=j;y.useEffect(()=>{if(M){let ee={x:0,y:0};const be=De=>{var Me,ze;ee={x:Math.abs(Math.round(De.pageX)-(((Me=$.current)==null?void 0:Me.x)??0)),y:Math.abs(Math.round(De.pageY)-(((ze=$.current)==null?void 0:ze.y)??0))}},we=De=>{ee.x<=10&&ee.y<=10?De.preventDefault():M.contains(De.target)||F(!1),document.removeEventListener("pointermove",be),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",we,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",we,{capture:!0})}}},[M,F,$]),y.useEffect(()=>{const ee=()=>F(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[F]);const[te,R]=pS(ee=>{const be=W().filter(Me=>!Me.disabled),we=be.find(Me=>Me.ref.current===document.activeElement),De=vS(be,ee,we);De&&setTimeout(()=>De.ref.current.focus())}),G=y.useCallback((ee,be,we)=>{const De=!de.current&&!we;(j.value!==void 0&&j.value===be||De)&&(ae(ee),De&&(de.current=!0))},[j.value]),J=y.useCallback(()=>M==null?void 0:M.focus(),[M]),le=y.useCallback((ee,be,we)=>{const De=!de.current&&!we;(j.value!==void 0&&j.value===be||De)&&oe(ee)},[j.value]),me=s==="popper"?ih:aS,ve=me===ih?{side:m,sideOffset:g,align:v,alignOffset:x,arrowPadding:b,collisionBoundary:w,collisionPadding:C,sticky:A,hideWhenDetached:E,avoidCollisions:T}:{};return d.jsx(tS,{scope:r,content:M,viewport:V,onViewportChange:P,itemRefCallback:G,selectedItem:I,onItemLeave:J,itemTextRefCallback:le,focusSelectedItem:Z,selectedItemText:ie,position:s,isPositioned:pe,searchRef:te,children:d.jsx(jh,{as:b_,allowPinchZoom:!0,children:d.jsx(Oh,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Ie(u,ee=>{var be;(be=j.trigger)==null||be.focus({preventScroll:!0}),ee.preventDefault()}),children:d.jsx(Ah,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:d.jsx(me,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ee=>ee.preventDefault(),...N,...ve,onPlaced:()=>ue(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Ie(N.onKeyDown,ee=>{const be=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!be&&ee.key.length===1&&R(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let De=W().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Me=ee.target,ze=De.indexOf(Me);De=De.slice(ze+1)}setTimeout(()=>U(De)),ee.preventDefault()}})})})})})})});nS.displayName=y_;var x_="SelectItemAlignedPosition",aS=y.forwardRef((n,l)=>{const{__scopeSelect:r,onPlaced:s,...u}=n,f=ul(Zl,r),h=cl(Zl,r),[m,g]=y.useState(null),[v,x]=y.useState(null),b=it(l,Y=>x(Y)),w=Vu(r),C=y.useRef(!1),A=y.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:N,focusSelectedItem:j}=h,M=y.useCallback(()=>{if(f.trigger&&f.valueNode&&m&&v&&E&&T&&N){const Y=f.trigger.getBoundingClientRect(),I=v.getBoundingClientRect(),ae=f.valueNode.getBoundingClientRect(),ie=N.getBoundingClientRect();if(f.dir!=="rtl"){const Me=ie.left-I.left,ze=ae.left-Me,St=Y.left-ze,dt=Y.width+St,qn=Math.max(dt,I.width),Vn=window.innerWidth-Sn,fl=Iy(ze,[Sn,Math.max(Sn,Vn-qn)]);m.style.minWidth=dt+"px",m.style.left=fl+"px"}else{const Me=I.right-ie.right,ze=window.innerWidth-ae.right-Me,St=window.innerWidth-Y.right-ze,dt=Y.width+St,qn=Math.max(dt,I.width),Vn=window.innerWidth-Sn,fl=Iy(ze,[Sn,Math.max(Sn,Vn-qn)]);m.style.minWidth=dt+"px",m.style.right=fl+"px"}const oe=w(),W=window.innerHeight-Sn*2,pe=E.scrollHeight,ue=window.getComputedStyle(v),de=parseInt(ue.borderTopWidth,10),U=parseInt(ue.paddingTop,10),Z=parseInt(ue.borderBottomWidth,10),F=parseInt(ue.paddingBottom,10),$=de+U+pe+F+Z,te=Math.min(T.offsetHeight*5,$),R=window.getComputedStyle(E),G=parseInt(R.paddingTop,10),J=parseInt(R.paddingBottom,10),le=Y.top+Y.height/2-Sn,me=W-le,ve=T.offsetHeight/2,ee=T.offsetTop+ve,be=de+U+ee,we=$-be;if(be<=le){const Me=oe.length>0&&T===oe[oe.length-1].ref.current;m.style.bottom="0px";const ze=v.clientHeight-E.offsetTop-E.offsetHeight,St=Math.max(me,ve+(Me?J:0)+ze+Z),dt=be+St;m.style.height=dt+"px"}else{const Me=oe.length>0&&T===oe[0].ref.current;m.style.top="0px";const St=Math.max(le,de+E.offsetTop+(Me?G:0)+ve)+we;m.style.height=St+"px",E.scrollTop=be-le+E.offsetTop}m.style.margin=`${Sn}px 0`,m.style.minHeight=te+"px",m.style.maxHeight=W+"px",s==null||s(),requestAnimationFrame(()=>C.current=!0)}},[w,f.trigger,f.valueNode,m,v,E,T,N,f.dir,s]);Tt(()=>M(),[M]);const[z,V]=y.useState();Tt(()=>{v&&V(window.getComputedStyle(v).zIndex)},[v]);const P=y.useCallback(Y=>{Y&&A.current===!0&&(M(),j==null||j(),A.current=!1)},[M,j]);return d.jsx(E_,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:C,onScrollButtonChange:P,children:d.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:d.jsx(Ke.div,{...u,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});aS.displayName=x_;var S_="SelectPopperPosition",ih=y.forwardRef((n,l)=>{const{__scopeSelect:r,align:s="start",collisionPadding:u=Sn,...f}=n,h=Yu(r);return d.jsx(i_,{...h,...f,ref:l,align:s,collisionPadding:u,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ih.displayName=S_;var[E_,Qh]=fr(Zl,{}),rh="SelectViewport",lS=y.forwardRef((n,l)=>{const{__scopeSelect:r,nonce:s,...u}=n,f=cl(rh,r),h=Qh(rh,r),m=it(l,f.onViewportChange),g=y.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(qu.Slot,{scope:r,children:d.jsx(Ke.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Ie(u.onScroll,v=>{const x=v.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&b){const C=Math.abs(g.current-x.scrollTop);if(C>0){const A=window.innerHeight-Sn*2,E=parseFloat(b.style.minHeight),T=parseFloat(b.style.height),N=Math.max(E,T);if(N<A){const j=N+C,M=Math.min(A,j),z=j-M;b.style.height=M+"px",b.style.bottom==="0px"&&(x.scrollTop=z>0?z:0,b.style.justifyContent="flex-end")}}}g.current=x.scrollTop})})})]})});lS.displayName=rh;var iS="SelectGroup",[w_,C_]=fr(iS),T_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n,u=Yi();return d.jsx(w_,{scope:r,id:u,children:d.jsx(Ke.div,{role:"group","aria-labelledby":u,...s,ref:l})})});T_.displayName=iS;var rS="SelectLabel",R_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n,u=C_(rS,r);return d.jsx(Ke.div,{id:u.id,...s,ref:l})});R_.displayName=rS;var Au="SelectItem",[N_,sS]=fr(Au),oS=y.forwardRef((n,l)=>{const{__scopeSelect:r,value:s,disabled:u=!1,textValue:f,...h}=n,m=ul(Au,r),g=cl(Au,r),v=m.value===s,[x,b]=y.useState(f??""),[w,C]=y.useState(!1),A=it(l,j=>{var M;return(M=g.itemRefCallback)==null?void 0:M.call(g,j,s,u)}),E=Yi(),T=y.useRef("touch"),N=()=>{u||(m.onValueChange(s),m.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(N_,{scope:r,value:s,disabled:u,textId:E,isSelected:v,onItemTextChange:y.useCallback(j=>{b(M=>M||((j==null?void 0:j.textContent)??"").trim())},[]),children:d.jsx(qu.ItemSlot,{scope:r,value:s,disabled:u,textValue:x,children:d.jsx(Ke.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":v&&w,"data-state":v?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...h,ref:A,onFocus:Ie(h.onFocus,()=>C(!0)),onBlur:Ie(h.onBlur,()=>C(!1)),onClick:Ie(h.onClick,()=>{T.current!=="mouse"&&N()}),onPointerUp:Ie(h.onPointerUp,()=>{T.current==="mouse"&&N()}),onPointerDown:Ie(h.onPointerDown,j=>{T.current=j.pointerType}),onPointerMove:Ie(h.onPointerMove,j=>{var M;T.current=j.pointerType,u?(M=g.onItemLeave)==null||M.call(g):T.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(h.onPointerLeave,j=>{var M;j.currentTarget===document.activeElement&&((M=g.onItemLeave)==null||M.call(g))}),onKeyDown:Ie(h.onKeyDown,j=>{var z;((z=g.searchRef)==null?void 0:z.current)!==""&&j.key===" "||(f_.includes(j.key)&&N(),j.key===" "&&j.preventDefault())})})})})});oS.displayName=Au;var hs="SelectItemText",uS=y.forwardRef((n,l)=>{const{__scopeSelect:r,className:s,style:u,...f}=n,h=ul(hs,r),m=cl(hs,r),g=sS(hs,r),v=p_(hs,r),[x,b]=y.useState(null),w=it(l,N=>b(N),g.onItemTextChange,N=>{var j;return(j=m.itemTextRefCallback)==null?void 0:j.call(m,N,g.value,g.disabled)}),C=x==null?void 0:x.textContent,A=y.useMemo(()=>d.jsx("option",{value:g.value,disabled:g.disabled,children:C},g.value),[g.disabled,g.value,C]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=v;return Tt(()=>(E(A),()=>T(A)),[E,T,A]),d.jsxs(d.Fragment,{children:[d.jsx(Ke.span,{id:g.textId,...f,ref:w}),g.isSelected&&h.valueNode&&!h.valueNodeHasChildren?js.createPortal(f.children,h.valueNode):null]})});uS.displayName=hs;var cS="SelectItemIndicator",fS=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n;return sS(cS,r).isSelected?d.jsx(Ke.span,{"aria-hidden":!0,...s,ref:l}):null});fS.displayName=cS;var sh="SelectScrollUpButton",A_=y.forwardRef((n,l)=>{const r=cl(sh,n.__scopeSelect),s=Qh(sh,n.__scopeSelect),[u,f]=y.useState(!1),h=it(l,s.onScrollButtonChange);return Tt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const v=g.scrollTop>0;f(v)};const g=r.viewport;return m(),g.addEventListener("scroll",m),()=>g.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?d.jsx(dS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:g}=r;m&&g&&(m.scrollTop=m.scrollTop-g.offsetHeight)}}):null});A_.displayName=sh;var oh="SelectScrollDownButton",O_=y.forwardRef((n,l)=>{const r=cl(oh,n.__scopeSelect),s=Qh(oh,n.__scopeSelect),[u,f]=y.useState(!1),h=it(l,s.onScrollButtonChange);return Tt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const v=g.scrollHeight-g.clientHeight,x=Math.ceil(g.scrollTop)<v;f(x)};const g=r.viewport;return m(),g.addEventListener("scroll",m),()=>g.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?d.jsx(dS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:g}=r;m&&g&&(m.scrollTop=m.scrollTop+g.offsetHeight)}}):null});O_.displayName=oh;var dS=y.forwardRef((n,l)=>{const{__scopeSelect:r,onAutoScroll:s,...u}=n,f=cl("SelectScrollButton",r),h=y.useRef(null),m=Vu(r),g=y.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return y.useEffect(()=>()=>g(),[g]),Tt(()=>{var x;const v=m().find(b=>b.ref.current===document.activeElement);(x=v==null?void 0:v.ref.current)==null||x.scrollIntoView({block:"nearest"})},[m]),d.jsx(Ke.div,{"aria-hidden":!0,...u,ref:l,style:{flexShrink:0,...u.style},onPointerDown:Ie(u.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(s,50))}),onPointerMove:Ie(u.onPointerMove,()=>{var v;(v=f.onItemLeave)==null||v.call(f),h.current===null&&(h.current=window.setInterval(s,50))}),onPointerLeave:Ie(u.onPointerLeave,()=>{g()})})}),__="SelectSeparator",j_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n;return d.jsx(Ke.div,{"aria-hidden":!0,...s,ref:l})});j_.displayName=__;var uh="SelectArrow",M_=y.forwardRef((n,l)=>{const{__scopeSelect:r,...s}=n,u=Yu(r),f=ul(uh,r),h=cl(uh,r);return f.open&&h.position==="popper"?d.jsx(r_,{...u,...s,ref:l}):null});M_.displayName=uh;var D_="SelectBubbleInput",hS=y.forwardRef(({__scopeSelect:n,value:l,...r},s)=>{const u=y.useRef(null),f=it(s,u),h=s_(l);return y.useEffect(()=>{const m=u.current;if(!m)return;const g=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(g,"value").set;if(h!==l&&x){const b=new Event("change",{bubbles:!0});x.call(m,l),m.dispatchEvent(b)}},[h,l]),d.jsx(Ke.select,{...r,style:{...Kx,...r.style},ref:f,defaultValue:l})});hS.displayName=D_;function mS(n){return n===""||n===void 0}function pS(n){const l=Ql(n),r=y.useRef(""),s=y.useRef(0),u=y.useCallback(h=>{const m=r.current+h;l(m),(function g(v){r.current=v,window.clearTimeout(s.current),v!==""&&(s.current=window.setTimeout(()=>g(""),1e3))})(m)},[l]),f=y.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,u,f]}function vS(n,l,r){const u=l.length>1&&Array.from(l).every(v=>v===l[0])?l[0]:l,f=r?n.indexOf(r):-1;let h=z_(n,Math.max(f,0));u.length===1&&(h=h.filter(v=>v!==r));const g=h.find(v=>v.textValue.toLowerCase().startsWith(u.toLowerCase()));return g!==r?g:void 0}function z_(n,l){return n.map((r,s)=>n[(l+s)%n.length])}var L_=Px,gS=Fx,U_=$x,H_=Jx,B_=Wx,yS=eS,k_=lS,bS=oS,q_=uS,V_=fS;const xS=L_,SS=U_,Xh=y.forwardRef(({className:n,children:l,...r},s)=>d.jsxs(gS,{ref:s,className:Be("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...r,children:[l,d.jsx(H_,{asChild:!0,children:d.jsx(cb,{className:"h-4 w-4 opacity-50"})})]}));Xh.displayName=gS.displayName;const Kh=y.forwardRef(({className:n,children:l,position:r="popper",...s},u)=>d.jsx(B_,{children:d.jsx(yS,{ref:u,className:Be("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card text-card-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:r,...s,children:d.jsx(k_,{className:Be("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l})})}));Kh.displayName=yS.displayName;const Ou=y.forwardRef(({className:n,children:l,...r},s)=>d.jsxs(bS,{ref:s,className:Be("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[d.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(V_,{children:d.jsx(kC,{className:"h-4 w-4"})})}),d.jsx(q_,{children:l})]}));Ou.displayName=bS.displayName;const Y_=3e4,cs="__all__",o0="all",fs="date",uu="failed",_d="index-only";function G_(){const[n,l]=y.useState(o0),[r,s]=y.useState(cs),{data:u}=Ns({queryKey:["sessions"],queryFn:({signal:b})=>ol("/sessions",{signal:b}),staleTime:Y_}),f=(u==null?void 0:u.dates)??[],h=(u==null?void 0:u.sessions)??[],m=h.filter(b=>b.hasFailed).length,g=y.useMemo(()=>{switch(n){case fs:return r!==cs?{date:r}:{};case uu:return{failed:!0};case _d:return{index_only:!0};default:return{}}},[n,r]),v=y.useMemo(()=>n===fs&&r!==cs?h.filter(b=>b.date===r).length:n===uu?m:h.length,[n,r,h,m]),x=y.useMemo(()=>{switch(n){case fs:return r!==cs?`Reprocess ${r}`:"Reprocess All";case uu:return`Reprocess ${m} Failed`;case _d:return"Re-index Only (no LLM)";default:return"Reprocess All"}},[n,r,m]);return d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"flex flex-wrap items-center gap-2",children:[[o0,"All Sessions"],[fs,"By Date"],[uu,"Failed Only"],[_d,"Index Only"]].map(([b,w])=>d.jsx("button",{type:"button",onClick:()=>l(b),className:`rounded-md border px-3 py-1 text-xs transition-colors ${n===b?"border-primary bg-primary text-primary-foreground":"border-input bg-transparent text-muted-foreground hover:text-foreground"}`,children:w},b))}),n===fs&&f.length>0&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-sm text-muted-foreground",children:"Date:"}),d.jsxs(xS,{value:r,onValueChange:s,children:[d.jsx(Xh,{className:"w-40",children:d.jsx(SS,{})}),d.jsxs(Kh,{children:[d.jsx(Ou,{value:cs,children:"All dates"}),f.map(b=>d.jsx(Ou,{value:b,children:b},b))]})]})]}),d.jsx(Lh,{label:x,endpoint:"/reprocess",body:g,icon:d.jsx(hb,{className:"h-4 w-4"}),description:`Re-extract observations and regenerate summaries for ${v} session(s).`}),d.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-muted-foreground",children:"Sessions:"}),d.jsx(Wt,{variant:"secondary",className:"font-mono text-xs",children:h.length})]}),m>0&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(yb,{className:"h-3.5 w-3.5 text-yellow-500"}),d.jsx("span",{className:"text-muted-foreground",children:"Failed:"}),d.jsx(Wt,{variant:"secondary",className:"font-mono text-xs text-yellow-600 dark:text-yellow-400",children:m})]})]})]})}const Q_=[1500,3e3,5e3,7500,1e4],X_="3000";function K_(){var u,f;const{data:n,isLoading:l,isError:r,error:s}=Ms();return d.jsx(Nh,{isLoading:l,error:r?s instanceof Error?s:new Error("Unable to reach daemon"):null,loadingText:"Connecting to daemon...",children:n&&d.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(bb,{className:"h-5 w-5 text-primary"}),d.jsx("h1",{className:"text-xl font-semibold",children:"Operations"})]}),d.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[d.jsxs($t,{children:[d.jsxs(pn,{children:[d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(gb,{className:"h-4 w-4 text-primary"}),"Curation"]}),d.jsx(Vi,{children:"Find and consolidate duplicate spores in the vault. Preview shows which pairs would be merged; execute performs the consolidation."})]}),d.jsx(Jt,{children:d.jsx(qA,{})})]}),d.jsxs($t,{children:[d.jsxs(pn,{children:[d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(Ml,{className:"h-4 w-4 text-primary"}),"Rebuild Index"]}),d.jsx(Vi,{children:"Reindex all vault notes for full-text search and vector embeddings."})]}),d.jsx(Jt,{children:d.jsxs("div",{className:"space-y-4",children:[d.jsx(Lh,{label:"Rebuild",endpoint:"/rebuild",icon:d.jsx(Ml,{className:"h-4 w-4"}),description:"Rebuilds FTS5 and vector indexes from all vault notes."}),d.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-muted-foreground",children:"FTS entries:"}),d.jsx(Wt,{variant:"secondary",className:"font-mono text-xs",children:n.index.fts_entries})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-muted-foreground",children:"Vectors:"}),d.jsx(Wt,{variant:"secondary",className:"font-mono text-xs",children:n.index.vector_count})]})]})]})})]}),d.jsx(P_,{digestEnabled:!!n.digest,metabolismState:((u=n.digest)==null?void 0:u.metabolism_state)??null,substrateQueue:((f=n.digest)==null?void 0:f.substrate_queue)??0}),d.jsxs($t,{children:[d.jsxs(pn,{children:[d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(hb,{className:"h-4 w-4 text-primary"}),"Reprocess"]}),d.jsx(Vi,{children:"Re-extract observations and regenerate summaries for past sessions. Useful after LLM configuration changes or processing failures."})]}),d.jsx(Jt,{children:d.jsx(G_,{})})]})]})]})})}function P_({digestEnabled:n,metabolismState:l,substrateQueue:r}){const[s,u]=y.useState(X_),[f,h]=y.useState("tier"),m=y.useMemo(()=>f==="full"?{full:!0}:{tier:Number(s)},[f,s]);return d.jsxs($t,{children:[d.jsxs(pn,{children:[d.jsxs(vn,{className:"flex items-center gap-2 text-sm",children:[d.jsx(Pd,{className:"h-4 w-4 text-primary"}),"Manual Digest"]}),d.jsx(Vi,{children:"Trigger a digest cycle to synthesize vault knowledge into context extracts."})]}),d.jsx(Jt,{children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Ct,{variant:f==="tier"?"default":"outline",size:"sm",onClick:()=>h("tier"),children:"Single Tier"}),d.jsx(Ct,{variant:f==="full"?"default":"outline",size:"sm",onClick:()=>h("full"),children:"Full Digest"})]}),f==="tier"&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-sm text-muted-foreground",children:"Tier:"}),d.jsxs(xS,{value:s,onValueChange:u,children:[d.jsx(Xh,{className:"w-28",children:d.jsx(SS,{})}),d.jsx(Kh,{children:Q_.map(g=>d.jsxs(Ou,{value:String(g),children:["T",g]},g))})]})]}),d.jsx(Lh,{label:f==="full"?"Run Full Digest":`Run T${s} Digest`,endpoint:"/digest",body:m,icon:d.jsx(Pd,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-muted-foreground",children:"Status:"}),d.jsx(Wt,{variant:n?"default":"secondary",className:"text-xs",children:n?l??"dormant":"disabled"})]}),n&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-muted-foreground",children:"Queue:"}),d.jsx(Wt,{variant:"secondary",className:"font-mono text-xs",children:r})]})]})]})})]})}const Z_=["debug","info","warn","error"],F_=200,u0=2e3,I_=40,c0={debug:0,info:1,warn:2,error:3},$_={debug:"border-transparent bg-muted text-muted-foreground",info:"border-transparent bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",warn:"border-transparent bg-amber-500/15 text-amber-600 dark:text-amber-400",error:"border-transparent bg-red-500/15 text-red-600 dark:text-red-400"};function J_(n){const l=new Date(n),r=String(l.getHours()).padStart(2,"0"),s=String(l.getMinutes()).padStart(2,"0"),u=String(l.getSeconds()).padStart(2,"0");return`${r}:${s}:${u}`}function W_(n){return n.scrollHeight-n.scrollTop-n.clientHeight<=I_}function ej(){const[n,l]=y.useState([]),[r,s]=y.useState(void 0),[u,f]=y.useState("debug"),[h,m]=y.useState(""),[g,v]=y.useState(!0),[x,b]=y.useState(!1),w=y.useRef(null),C=y.useRef(g);C.current=g;const A=y.useRef(r);A.current=r;const{data:E}=xb({queryKey:["logs"],queryFn:({signal:z})=>{const V=new URLSearchParams({limit:String(F_)});return A.current&&V.set("since",A.current),ol(`/logs?${V.toString()}`,{signal:z})},refetchInterval:Th.LOGS,pollCategory:"standard"});y.useEffect(()=>{E!=null&&E.entries.length&&(l(z=>{let V;if(E.cursor_reset){const P=new Set(z.map(I=>`${I.timestamp}|${I.message}`)),Y=E.entries.filter(I=>!P.has(`${I.timestamp}|${I.message}`));V=Y.length?[...z,...Y]:z}else V=[...z,...E.entries];return V.length>u0?V.slice(-u0):V}),s(E.cursor),C.current||b(!0))},[E]),y.useEffect(()=>{!g||!w.current||(w.current.scrollTop=w.current.scrollHeight,b(!1))},[n,g]);const T=y.useCallback(()=>{const z=w.current;z&&(W_(z)?(v(!0),b(!1)):v(!1))},[]),N=y.useCallback(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight,v(!0),b(!1))},[]),j=y.useCallback(()=>{l([]),b(!1)},[]),M=y.useMemo(()=>{const z=c0[u],V=h.trim().toLowerCase();return n.filter(P=>!(c0[P.level]<z||V&&!P.message.toLowerCase().includes(V)))},[n,u,h]);return d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border bg-card px-4 py-3",children:[d.jsxs("div",{className:"flex items-center gap-2 mr-2",children:[d.jsx(pb,{className:"h-4 w-4 text-primary"}),d.jsx("span",{className:"text-sm font-semibold",children:"Logs"})]}),d.jsx("div",{className:"flex items-center gap-1",children:Z_.map(z=>d.jsx(Ct,{size:"sm",variant:u===z?"default":"outline",className:"h-7 px-2 text-xs capitalize",onClick:()=>f(z),children:z},z))}),d.jsx(Je,{className:"h-7 w-48 text-xs",placeholder:"Filter messages...",value:h,onChange:z=>m(z.target.value)}),d.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[d.jsxs(Ct,{size:"sm",variant:g?"default":"outline",className:"h-7 gap-1.5 px-2 text-xs",onClick:()=>{g?v(!1):N()},title:g?"Pause auto-scroll":"Resume auto-scroll",children:[g?d.jsx(FC,{className:"h-3 w-3"}):d.jsx(mb,{className:"h-3 w-3"}),g?"Pause":"Resume"]}),d.jsxs(Ct,{size:"sm",variant:"outline",className:"h-7 gap-1.5 px-2 text-xs text-muted-foreground",onClick:j,title:"Clear log entries",children:[d.jsx(nT,{className:"h-3 w-3"}),"Clear"]})]})]}),d.jsxs("div",{className:"relative flex-1 overflow-hidden",children:[d.jsx("div",{ref:w,onScroll:T,className:"h-full overflow-y-auto font-mono text-xs",children:M.length===0?d.jsx("div",{className:"flex h-32 items-center justify-center text-muted-foreground",children:"No log entries"}):d.jsx("table",{className:"w-full border-collapse",children:d.jsx("tbody",{children:M.map((z,V)=>d.jsx(tj,{entry:z},`${z.timestamp}-${V}`))})})}),x&&!g&&d.jsxs("button",{type:"button",onClick:N,className:Be("absolute bottom-4 left-1/2 -translate-x-1/2","flex items-center gap-1.5 rounded-full border border-border","bg-card px-3 py-1.5 text-xs font-medium shadow-md","text-muted-foreground transition-colors hover:text-foreground"),children:[d.jsx(BC,{className:"h-3 w-3"}),"New entries below"]})]})]})}function tj({entry:n}){return d.jsxs("tr",{className:"border-b border-border/40 hover:bg-accent/30 transition-colors",children:[d.jsx("td",{className:"whitespace-nowrap py-1 pl-4 pr-3 text-muted-foreground/70 align-top w-[68px]",children:J_(n.timestamp)}),d.jsx("td",{className:"whitespace-nowrap py-1 pr-3 align-top w-[54px]",children:d.jsx(Wt,{className:Be("px-1.5 py-0 text-[10px] font-medium uppercase",$_[n.level]),children:n.level})}),d.jsx("td",{className:"whitespace-nowrap py-1 pr-3 text-muted-foreground align-top w-[120px] truncate max-w-[120px]",children:n.category}),d.jsx("td",{className:"py-1 pr-4 text-foreground align-top break-words",children:n.message})]})}function nj(){return d.jsx(kw,{children:d.jsxs(Ui,{element:d.jsx(oR,{}),children:[d.jsx(Ui,{path:"/",element:d.jsx(qR,{})}),d.jsx(Ui,{path:"/configuration",element:d.jsx(HA,{})}),d.jsx(Ui,{path:"/operations",element:d.jsx(K_,{})}),d.jsx(Ui,{path:"/logs",element:d.jsx(ej,{})})]})})}const aj=new T2({defaultOptions:{queries:{staleTime:fT}}});e2.createRoot(document.getElementById("root")).render(d.jsx(oa.StrictMode,{children:d.jsx(SC,{children:d.jsx(AC,{children:d.jsx(MC,{children:d.jsx(R2,{client:aj,children:d.jsx(uC,{children:d.jsx(nj,{})})})})})})}));
|