openspecui 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +17 -16
- package/dist/index.mjs +1 -1
- package/dist/{open-CmiqsyCQ.mjs → open-Cw_l4kh9.mjs} +11 -11
- package/dist/{src-D7s-EgJ2.mjs → src-BS3LYQ6T.mjs} +959 -98
- package/package.json +3 -3
- package/web/assets/index-DU-ty3pA.css +1 -0
- package/web/assets/index-noSlrtA-.js +337 -0
- package/web/index.html +2 -2
- package/web/assets/index-DIHAzyX3.js +0 -332
- package/web/assets/index-DuIo-wPB.css +0 -1
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BdAV_C_H.js","assets/tex-CxkMU7Pf.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-CE9lU5zL.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DnHKYNfI.js","assets/vue-html-CChd_i61.js","assets/vue-vine-8moa0y9V.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var VT=Object.defineProperty;var W_=e=>{throw TypeError(e)};var HT=(e,t,n)=>t in e?VT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var W=(e,t,n)=>HT(e,typeof t!="symbol"?t+"":t,n),Pd=(e,t,n)=>t.has(e)||W_("Cannot "+n);var M=(e,t,n)=>(Pd(e,t,"read from private field"),n?n.call(e):t.get(e)),ye=(e,t,n)=>t.has(e)?W_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,i)=>(Pd(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Re=(e,t,n)=>(Pd(e,t,"access private method"),n);var rc=(e,t,n,i)=>({set _(s){ce(e,t,s,n)},get _(){return M(e,t,i)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function mp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zd={exports:{}},Kl={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var e0;function GT(){if(e0)return Kl;e0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,o){var u=null;if(o!==void 0&&(u=""+o),s.key!==void 0&&(u=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:o}}return Kl.Fragment=t,Kl.jsx=n,Kl.jsxs=n,Kl}var t0;function FT(){return t0||(t0=1,zd.exports=GT()),zd.exports}var S=FT(),Id={exports:{}},Xl={},Bd={exports:{}},Ud={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* scheduler.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var n0;function QT(){return n0||(n0=1,(function(e){function t(H,ne){var fe=H.length;H.push(ne);e:for(;0<fe;){var Ee=fe-1>>>1,D=H[Ee];if(0<s(D,ne))H[Ee]=ne,H[fe]=D,fe=Ee;else break e}}function n(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var ne=H[0],fe=H.pop();if(fe!==ne){H[0]=fe;e:for(var Ee=0,D=H.length,z=D>>>1;Ee<z;){var X=2*(Ee+1)-1,A=H[X],ue=X+1,ge=H[ue];if(0>s(A,fe))ue<D&&0>s(ge,A)?(H[Ee]=ge,H[ue]=fe,Ee=ue):(H[Ee]=A,H[X]=fe,Ee=X);else if(ue<D&&0>s(ge,fe))H[Ee]=ge,H[ue]=fe,Ee=ue;else break e}}return ne}function s(H,ne){var fe=H.sortIndex-ne.sortIndex;return fe!==0?fe:H.id-ne.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],d=[],y=1,p=null,_=3,v=!1,x=!1,E=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function P(H){for(var ne=n(d);ne!==null;){if(ne.callback===null)i(d);else if(ne.startTime<=H)i(d),ne.sortIndex=ne.expirationTime,t(h,ne);else break;ne=n(d)}}function V(H){if(E=!1,P(H),!x)if(n(h)!==null)x=!0,L||(L=!0,ie());else{var ne=n(d);ne!==null&&ae(V,ne.startTime-H)}}var L=!1,B=-1,q=5,te=-1;function N(){return C?!0:!(e.unstable_now()-te<q)}function $(){if(C=!1,L){var H=e.unstable_now();te=H;var ne=!0;try{e:{x=!1,E&&(E=!1,k(B),B=-1),v=!0;var fe=_;try{t:{for(P(H),p=n(h);p!==null&&!(p.expirationTime>H&&N());){var Ee=p.callback;if(typeof Ee=="function"){p.callback=null,_=p.priorityLevel;var D=Ee(p.expirationTime<=H);if(H=e.unstable_now(),typeof D=="function"){p.callback=D,P(H),ne=!0;break t}p===n(h)&&i(h),P(H)}else i(h);p=n(h)}if(p!==null)ne=!0;else{var z=n(d);z!==null&&ae(V,z.startTime-H),ne=!1}}break e}finally{p=null,_=fe,v=!1}ne=void 0}}finally{ne?ie():L=!1}}}var ie;if(typeof O=="function")ie=function(){O($)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,le=me.port2;me.port1.onmessage=$,ie=function(){le.postMessage(null)}}else ie=function(){T($,0)};function ae(H,ne){B=T(function(){H(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(H){switch(_){case 1:case 2:case 3:var ne=3;break;default:ne=_}var fe=_;_=ne;try{return H()}finally{_=fe}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(H,ne){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var fe=_;_=H;try{return ne()}finally{_=fe}},e.unstable_scheduleCallback=function(H,ne,fe){var Ee=e.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?Ee+fe:Ee):fe=Ee,H){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=fe+D,H={id:y++,callback:ne,priorityLevel:H,startTime:fe,expirationTime:D,sortIndex:-1},fe>Ee?(H.sortIndex=fe,t(d,H),n(h)===null&&H===n(d)&&(E?(k(B),B=-1):E=!0,ae(V,fe-Ee))):(H.sortIndex=D,t(h,H),x||v||(x=!0,L||(L=!0,ie()))),H},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(H){var ne=_;return function(){var fe=_;_=ne;try{return H.apply(this,arguments)}finally{_=fe}}}})(Ud)),Ud}var r0;function $T(){return r0||(r0=1,Bd.exports=QT()),Bd.exports}var qd={exports:{}},we={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* react.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var i0;function YT(){if(i0)return we;i0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),_=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=_&&z[_]||z["@@iterator"],typeof z=="function"?z:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function T(z,X,A){this.props=z,this.context=X,this.refs=C,this.updater=A||x}T.prototype.isReactComponent={},T.prototype.setState=function(z,X){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,X,"setState")},T.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function k(){}k.prototype=T.prototype;function O(z,X,A){this.props=z,this.context=X,this.refs=C,this.updater=A||x}var P=O.prototype=new k;P.constructor=O,E(P,T.prototype),P.isPureReactComponent=!0;var V=Array.isArray;function L(){}var B={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function te(z,X,A){var ue=A.ref;return{$$typeof:e,type:z,key:X,ref:ue!==void 0?ue:null,props:A}}function N(z,X){return te(z.type,X,z.props)}function $(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ie(z){var X={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(A){return X[A]})}var me=/\/+/g;function le(z,X){return typeof z=="object"&&z!==null&&z.key!=null?ie(""+z.key):X.toString(36)}function ae(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(L,L):(z.status="pending",z.then(function(X){z.status==="pending"&&(z.status="fulfilled",z.value=X)},function(X){z.status==="pending"&&(z.status="rejected",z.reason=X)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function H(z,X,A,ue,ge){var he=typeof z;(he==="undefined"||he==="boolean")&&(z=null);var Se=!1;if(z===null)Se=!0;else switch(he){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(z.$$typeof){case e:case t:Se=!0;break;case y:return Se=z._init,H(Se(z._payload),X,A,ue,ge)}}if(Se)return ge=ge(z),Se=ue===""?"."+le(z,0):ue,V(ge)?(A="",Se!=null&&(A=Se.replace(me,"$&/")+"/"),H(ge,X,A,"",function(jt){return jt})):ge!=null&&($(ge)&&(ge=N(ge,A+(ge.key==null||z&&z.key===ge.key?"":(""+ge.key).replace(me,"$&/")+"/")+Se)),X.push(ge)),1;Se=0;var $e=ue===""?".":ue+":";if(V(z))for(var Me=0;Me<z.length;Me++)ue=z[Me],he=$e+le(ue,Me),Se+=H(ue,X,A,he,ge);else if(Me=v(z),typeof Me=="function")for(z=Me.call(z),Me=0;!(ue=z.next()).done;)ue=ue.value,he=$e+le(ue,Me++),Se+=H(ue,X,A,he,ge);else if(he==="object"){if(typeof z.then=="function")return H(ae(z),X,A,ue,ge);throw X=String(z),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function ne(z,X,A){if(z==null)return z;var ue=[],ge=0;return H(z,ue,"","",function(he){return X.call(A,he,ge++)}),ue}function fe(z){if(z._status===-1){var X=z._result;X=X(),X.then(function(A){(z._status===0||z._status===-1)&&(z._status=1,z._result=A)},function(A){(z._status===0||z._status===-1)&&(z._status=2,z._result=A)}),z._status===-1&&(z._status=0,z._result=X)}if(z._status===1)return z._result.default;throw z._result}var Ee=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},D={map:ne,forEach:function(z,X,A){ne(z,function(){X.apply(this,arguments)},A)},count:function(z){var X=0;return ne(z,function(){X++}),X},toArray:function(z){return ne(z,function(X){return X})||[]},only:function(z){if(!$(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return we.Activity=p,we.Children=D,we.Component=T,we.Fragment=n,we.Profiler=s,we.PureComponent=O,we.StrictMode=i,we.Suspense=h,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,we.__COMPILER_RUNTIME={__proto__:null,c:function(z){return B.H.useMemoCache(z)}},we.cache=function(z){return function(){return z.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(z,X,A){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ue=E({},z.props),ge=z.key;if(X!=null)for(he in X.key!==void 0&&(ge=""+X.key),X)!q.call(X,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&X.ref===void 0||(ue[he]=X[he]);var he=arguments.length-2;if(he===1)ue.children=A;else if(1<he){for(var Se=Array(he),$e=0;$e<he;$e++)Se[$e]=arguments[$e+2];ue.children=Se}return te(z.type,ge,ue)},we.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:o,_context:z},z},we.createElement=function(z,X,A){var ue,ge={},he=null;if(X!=null)for(ue in X.key!==void 0&&(he=""+X.key),X)q.call(X,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ge[ue]=X[ue]);var Se=arguments.length-2;if(Se===1)ge.children=A;else if(1<Se){for(var $e=Array(Se),Me=0;Me<Se;Me++)$e[Me]=arguments[Me+2];ge.children=$e}if(z&&z.defaultProps)for(ue in Se=z.defaultProps,Se)ge[ue]===void 0&&(ge[ue]=Se[ue]);return te(z,he,ge)},we.createRef=function(){return{current:null}},we.forwardRef=function(z){return{$$typeof:f,render:z}},we.isValidElement=$,we.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:fe}},we.memo=function(z,X){return{$$typeof:d,type:z,compare:X===void 0?null:X}},we.startTransition=function(z){var X=B.T,A={};B.T=A;try{var ue=z(),ge=B.S;ge!==null&&ge(A,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(L,Ee)}catch(he){Ee(he)}finally{X!==null&&A.types!==null&&(X.types=A.types),B.T=X}},we.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},we.use=function(z){return B.H.use(z)},we.useActionState=function(z,X,A){return B.H.useActionState(z,X,A)},we.useCallback=function(z,X){return B.H.useCallback(z,X)},we.useContext=function(z){return B.H.useContext(z)},we.useDebugValue=function(){},we.useDeferredValue=function(z,X){return B.H.useDeferredValue(z,X)},we.useEffect=function(z,X){return B.H.useEffect(z,X)},we.useEffectEvent=function(z){return B.H.useEffectEvent(z)},we.useId=function(){return B.H.useId()},we.useImperativeHandle=function(z,X,A){return B.H.useImperativeHandle(z,X,A)},we.useInsertionEffect=function(z,X){return B.H.useInsertionEffect(z,X)},we.useLayoutEffect=function(z,X){return B.H.useLayoutEffect(z,X)},we.useMemo=function(z,X){return B.H.useMemo(z,X)},we.useOptimistic=function(z,X){return B.H.useOptimistic(z,X)},we.useReducer=function(z,X,A){return B.H.useReducer(z,X,A)},we.useRef=function(z){return B.H.useRef(z)},we.useState=function(z){return B.H.useState(z)},we.useSyncExternalStore=function(z,X,A){return B.H.useSyncExternalStore(z,X,A)},we.useTransition=function(){return B.H.useTransition()},we.version="19.2.0",we}var a0;function Do(){return a0||(a0=1,qd.exports=YT()),qd.exports}var Vd={exports:{}},Mt={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var s0;function KT(){if(s0)return Mt;s0=1;var e=Do();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(h,d,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:h,containerInfo:d,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mt.createPortal=function(h,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(h,d,null,y)},Mt.flushSync=function(h){var d=u.T,y=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=d,i.p=y,i.d.f()}},Mt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(h,d))},Mt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Mt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var y=d.as,p=f(y,d.crossOrigin),_=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?i.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:_,fetchPriority:v}):y==="script"&&i.d.X(h,{crossOrigin:p,integrity:_,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Mt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=f(d.as,d.crossOrigin);i.d.M(h,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(h)},Mt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,p=f(y,d.crossOrigin);i.d.L(h,y,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Mt.preloadModule=function(h,d){if(typeof h=="string")if(d){var y=f(d.as,d.crossOrigin);i.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(h)},Mt.requestFormReset=function(h){i.d.r(h)},Mt.unstable_batchedUpdates=function(h,d){return h(d)},Mt.useFormState=function(h,d,y){return u.H.useFormState(h,d,y)},Mt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mt.version="19.2.0",Mt}var l0;function wx(){if(l0)return Vd.exports;l0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vd.exports=KT(),Vd.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var o0;function XT(){if(o0)return Xl;o0=1;var e=$T(),t=Do(),n=wx();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function h(r){if(o(r)!==r)throw Error(i(188))}function d(r){var a=r.alternate;if(!a){if(a=o(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,c=a;;){var m=l.return;if(m===null)break;var g=m.alternate;if(g===null){if(c=m.return,c!==null){l=c;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===l)return h(m),r;if(g===c)return h(m),a;g=g.sibling}throw Error(i(188))}if(l.return!==c.return)l=m,c=g;else{for(var b=!1,w=m.child;w;){if(w===l){b=!0,l=m,c=g;break}if(w===c){b=!0,c=m,l=g;break}w=w.sibling}if(!b){for(w=g.child;w;){if(w===l){b=!0,l=g,c=m;break}if(w===c){b=!0,c=g,l=m;break}w=w.sibling}if(!b)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,_=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function ie(r){return r===null||typeof r!="object"?null:(r=$&&r[$]||r["@@iterator"],typeof r=="function"?r:null)}var me=Symbol.for("react.client.reference");function le(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===me?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case T:return"Profiler";case C:return"StrictMode";case V:return"Suspense";case L:return"SuspenseList";case te:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case x:return"Portal";case O:return r.displayName||"Context";case k:return(r._context.displayName||"Context")+".Consumer";case P:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case B:return a=r.displayName||null,a!==null?a:le(r.type)||"Memo";case q:a=r._payload,r=r._init;try{return le(r(a))}catch{}}return null}var ae=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},Ee=[],D=-1;function z(r){return{current:r}}function X(r){0>D||(r.current=Ee[D],Ee[D]=null,D--)}function A(r,a){D++,Ee[D]=r.current,r.current=a}var ue=z(null),ge=z(null),he=z(null),Se=z(null);function $e(r,a){switch(A(he,a),A(ge,r),A(ue,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?S_(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=S_(a),r=E_(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}X(ue),A(ue,r)}function Me(){X(ue),X(ge),X(he)}function jt(r){r.memoizedState!==null&&A(Se,r);var a=ue.current,l=E_(a,r.type);a!==l&&(A(ge,r),A(ue,l))}function on(r){ge.current===r&&(X(ue),X(ge)),Se.current===r&&(X(Se),Fl._currentValue=fe)}var un,Oa;function Un(r){if(un===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);un=a&&a[1]||"",Oa=-1<l.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+un+r+Oa}var hr=!1;function Fr(r,a){if(!r||hr)return"";hr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Y){var Q=Y}Reflect.construct(r,[],ee)}else{try{ee.call()}catch(Y){Q=Y}r.call(ee.prototype)}}else{try{throw Error()}catch(Y){Q=Y}(ee=r())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(Y){if(Y&&Q&&typeof Y.stack=="string")return[Y.stack,Q.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),b=g[0],w=g[1];if(b&&w){var j=b.split(`
|
|
45
|
+
`),F=w.split(`
|
|
46
|
+
`);for(m=c=0;c<j.length&&!j[c].includes("DetermineComponentFrameRoot");)c++;for(;m<F.length&&!F[m].includes("DetermineComponentFrameRoot");)m++;if(c===j.length||m===F.length)for(c=j.length-1,m=F.length-1;1<=c&&0<=m&&j[c]!==F[m];)m--;for(;1<=c&&0<=m;c--,m--)if(j[c]!==F[m]){if(c!==1||m!==1)do if(c--,m--,0>m||j[c]!==F[m]){var K=`
|
|
47
|
+
`+j[c].replace(" at new "," at ");return r.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",r.displayName)),K}while(1<=c&&0<=m);break}}}finally{hr=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Un(l):""}function La(r,a){switch(r.tag){case 26:case 27:case 5:return Un(r.type);case 16:return Un("Lazy");case 13:return r.child!==a&&a!==null?Un("Suspense Fallback"):Un("Suspense");case 19:return Un("SuspenseList");case 0:case 15:return Fr(r.type,!1);case 11:return Fr(r.type.render,!1);case 1:return Fr(r.type,!0);case 31:return Un("Activity");default:return""}}function Na(r){try{var a="",l=null;do a+=La(r,l),l=r,r=r.return;while(r);return a}catch(c){return`
|
|
48
|
+
Error generating stack: `+c.message+`
|
|
49
|
+
`+c.stack}}var qn=Object.prototype.hasOwnProperty,Vn=e.unstable_scheduleCallback,Qr=e.unstable_cancelCallback,Da=e.unstable_shouldYield,Ue=e.unstable_requestPaint,Be=e.unstable_now,Ut=e.unstable_getCurrentPriorityLevel,Z=e.unstable_ImmediatePriority,oe=e.unstable_UserBlockingPriority,xe=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,cn=e.log,dr=e.unstable_setDisableYieldValue,qt=null,_t=null;function Kt(r){if(typeof cn=="function"&&dr(r),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(qt,r)}catch{}}var We=Math.clz32?Math.clz32:RE,$r=Math.log,Hn=Math.LN2;function RE(r){return r>>>=0,r===0?32:31-($r(r)/Hn|0)|0}var qo=256,Vo=262144,Ho=4194304;function Bi(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Go(r,a,l){var c=r.pendingLanes;if(c===0)return 0;var m=0,g=r.suspendedLanes,b=r.pingedLanes;r=r.warmLanes;var w=c&134217727;return w!==0?(c=w&~g,c!==0?m=Bi(c):(b&=w,b!==0?m=Bi(b):l||(l=w&~r,l!==0&&(m=Bi(l))))):(w=c&~g,w!==0?m=Bi(w):b!==0?m=Bi(b):l||(l=c&~r,l!==0&&(m=Bi(l)))),m===0?0:a!==0&&a!==m&&(a&g)===0&&(g=m&-m,l=a&-a,g>=l||g===32&&(l&4194048)!==0)?a:m}function il(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function AE(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 rg(){var r=Ho;return Ho<<=1,(Ho&62914560)===0&&(Ho=4194304),r}function wf(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function al(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function OE(r,a,l,c,m,g){var b=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var w=r.entanglements,j=r.expirationTimes,F=r.hiddenUpdates;for(l=b&~l;0<l;){var K=31-We(l),ee=1<<K;w[K]=0,j[K]=-1;var Q=F[K];if(Q!==null)for(F[K]=null,K=0;K<Q.length;K++){var Y=Q[K];Y!==null&&(Y.lane&=-536870913)}l&=~ee}c!==0&&ig(r,c,0),g!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=g&~(b&~a))}function ig(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-We(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|l&261930}function ag(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var c=31-We(l),m=1<<c;m&a|r[c]&a&&(r[c]|=a),l&=~m}}function sg(r,a){var l=a&-a;return l=(l&42)!==0?1:Tf(l),(l&(r.suspendedLanes|a))!==0?0:l}function Tf(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Cf(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function lg(){var r=ne.p;return r!==0?r:(r=window.event,r===void 0?32:Q_(r.type))}function og(r,a){var l=ne.p;try{return ne.p=r,a()}finally{ne.p=l}}var Yr=Math.random().toString(36).slice(2),At="__reactFiber$"+Yr,Xt="__reactProps$"+Yr,ja="__reactContainer$"+Yr,kf="__reactEvents$"+Yr,LE="__reactListeners$"+Yr,NE="__reactHandles$"+Yr,ug="__reactResources$"+Yr,sl="__reactMarker$"+Yr;function Rf(r){delete r[At],delete r[Xt],delete r[kf],delete r[LE],delete r[NE]}function Ma(r){var a=r[At];if(a)return a;for(var l=r.parentNode;l;){if(a=l[ja]||l[At]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=O_(r);r!==null;){if(l=r[At])return l;r=O_(r)}return a}r=l,l=r.parentNode}return null}function Pa(r){if(r=r[At]||r[ja]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function ll(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function za(r){var a=r[ug];return a||(a=r[ug]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Tt(r){r[sl]=!0}var cg=new Set,fg={};function Ui(r,a){Ia(r,a),Ia(r+"Capture",a)}function Ia(r,a){for(fg[r]=a,r=0;r<a.length;r++)cg.add(a[r])}var DE=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]*$"),hg={},dg={};function jE(r){return qn.call(dg,r)?!0:qn.call(hg,r)?!1:DE.test(r)?dg[r]=!0:(hg[r]=!0,!1)}function Fo(r,a,l){if(jE(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function Qo(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function mr(r,a,l,c){if(c===null)r.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+c)}}function xn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function mg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ME(r,a,l){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,g=c.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return m.call(this)},set:function(b){l=""+b,g.call(this,b)}}),Object.defineProperty(r,a,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Af(r){if(!r._valueTracker){var a=mg(r)?"checked":"value";r._valueTracker=ME(r,a,""+r[a])}}function pg(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),c="";return r&&(c=mg(r)?r.checked?"true":"false":r.value),r=c,r!==l?(a.setValue(r),!0):!1}function $o(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var PE=/[\n"\\]/g;function Sn(r){return r.replace(PE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Of(r,a,l,c,m,g,b,w){r.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?r.type=b:r.removeAttribute("type"),a!=null?b==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+xn(a)):r.value!==""+xn(a)&&(r.value=""+xn(a)):b!=="submit"&&b!=="reset"||r.removeAttribute("value"),a!=null?Lf(r,b,xn(a)):l!=null?Lf(r,b,xn(l)):c!=null&&r.removeAttribute("value"),m==null&&g!=null&&(r.defaultChecked=!!g),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.name=""+xn(w):r.removeAttribute("name")}function gg(r,a,l,c,m,g,b,w){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),a!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||a!=null)){Af(r);return}l=l!=null?""+xn(l):"",a=a!=null?""+xn(a):l,w||a===r.value||(r.value=a),r.defaultValue=a}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=w?r.checked:!!c,r.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.name=b),Af(r)}function Lf(r,a,l){a==="number"&&$o(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function Ba(r,a,l,c){if(r=r.options,a){a={};for(var m=0;m<l.length;m++)a["$"+l[m]]=!0;for(l=0;l<r.length;l++)m=a.hasOwnProperty("$"+r[l].value),r[l].selected!==m&&(r[l].selected=m),m&&c&&(r[l].defaultSelected=!0)}else{for(l=""+xn(l),a=null,m=0;m<r.length;m++){if(r[m].value===l){r[m].selected=!0,c&&(r[m].defaultSelected=!0);return}a!==null||r[m].disabled||(a=r[m])}a!==null&&(a.selected=!0)}}function yg(r,a,l){if(a!=null&&(a=""+xn(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+xn(l):""}function vg(r,a,l,c){if(a==null){if(c!=null){if(l!=null)throw Error(i(92));if(ae(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),a=l}l=xn(a),r.defaultValue=l,c=r.textContent,c===l&&c!==""&&c!==null&&(r.value=c),Af(r)}function Ua(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var zE=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 _g(r,a,l){var c=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,l):typeof l!="number"||l===0||zE.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function bg(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var m in a)c=a[m],a.hasOwnProperty(m)&&l[m]!==c&&_g(r,m,c)}else for(var g in a)a.hasOwnProperty(g)&&_g(r,g,a[g])}function Nf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 IE=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"]]),BE=/^[\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 Yo(r){return BE.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function pr(){}var Df=null;function jf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var qa=null,Va=null;function xg(r){var a=Pa(r);if(a&&(r=a.stateNode)){var l=r[Xt]||null;e:switch(r=a.stateNode,a.type){case"input":if(Of(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Sn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var c=l[a];if(c!==r&&c.form===r.form){var m=c[Xt]||null;if(!m)throw Error(i(90));Of(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<l.length;a++)c=l[a],c.form===r.form&&pg(c)}break e;case"textarea":yg(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Ba(r,!!l.multiple,a,!1)}}}var Mf=!1;function Sg(r,a,l){if(Mf)return r(a,l);Mf=!0;try{var c=r(a);return c}finally{if(Mf=!1,(qa!==null||Va!==null)&&(Mu(),qa&&(a=qa,r=Va,Va=qa=null,xg(a),r)))for(a=0;a<r.length;a++)xg(r[a])}}function ol(r,a){var l=r.stateNode;if(l===null)return null;var c=l[Xt]||null;if(c===null)return null;l=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pf=!1;if(gr)try{var ul={};Object.defineProperty(ul,"passive",{get:function(){Pf=!0}}),window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{Pf=!1}var Kr=null,zf=null,Ko=null;function Eg(){if(Ko)return Ko;var r,a=zf,l=a.length,c,m="value"in Kr?Kr.value:Kr.textContent,g=m.length;for(r=0;r<l&&a[r]===m[r];r++);var b=l-r;for(c=1;c<=b&&a[l-c]===m[g-c];c++);return Ko=m.slice(r,1<c?1-c:void 0)}function Xo(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Zo(){return!0}function wg(){return!1}function Zt(r){function a(l,c,m,g,b){this._reactName=l,this._targetInst=m,this.type=c,this.nativeEvent=g,this.target=b,this.currentTarget=null;for(var w in r)r.hasOwnProperty(w)&&(l=r[w],this[w]=l?l(g):g[w]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Zo:wg,this.isPropagationStopped=wg,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Zo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Zo)},persist:function(){},isPersistent:Zo}),a}var qi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jo=Zt(qi),cl=p({},qi,{view:0,detail:0}),UE=Zt(cl),If,Bf,fl,Wo=p({},cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==fl&&(fl&&r.type==="mousemove"?(If=r.screenX-fl.screenX,Bf=r.screenY-fl.screenY):Bf=If=0,fl=r),If)},movementY:function(r){return"movementY"in r?r.movementY:Bf}}),Tg=Zt(Wo),qE=p({},Wo,{dataTransfer:0}),VE=Zt(qE),HE=p({},cl,{relatedTarget:0}),Uf=Zt(HE),GE=p({},qi,{animationName:0,elapsedTime:0,pseudoElement:0}),FE=Zt(GE),QE=p({},qi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),$E=Zt(QE),YE=p({},qi,{data:0}),Cg=Zt(YE),KE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XE={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"},ZE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JE(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=ZE[r])?!!a[r]:!1}function qf(){return JE}var WE=p({},cl,{key:function(r){if(r.key){var a=KE[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Xo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?XE[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qf,charCode:function(r){return r.type==="keypress"?Xo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Xo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ew=Zt(WE),tw=p({},Wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kg=Zt(tw),nw=p({},cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qf}),rw=Zt(nw),iw=p({},qi,{propertyName:0,elapsedTime:0,pseudoElement:0}),aw=Zt(iw),sw=p({},Wo,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),lw=Zt(sw),ow=p({},qi,{newState:0,oldState:0}),uw=Zt(ow),cw=[9,13,27,32],Vf=gr&&"CompositionEvent"in window,hl=null;gr&&"documentMode"in document&&(hl=document.documentMode);var fw=gr&&"TextEvent"in window&&!hl,Rg=gr&&(!Vf||hl&&8<hl&&11>=hl),Ag=" ",Og=!1;function Lg(r,a){switch(r){case"keyup":return cw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ng(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ha=!1;function hw(r,a){switch(r){case"compositionend":return Ng(a);case"keypress":return a.which!==32?null:(Og=!0,Ag);case"textInput":return r=a.data,r===Ag&&Og?null:r;default:return null}}function dw(r,a){if(Ha)return r==="compositionend"||!Vf&&Lg(r,a)?(r=Eg(),Ko=zf=Kr=null,Ha=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Rg&&a.locale!=="ko"?null:a.data;default:return null}}var mw={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 Dg(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!mw[r.type]:a==="textarea"}function jg(r,a,l,c){qa?Va?Va.push(c):Va=[c]:qa=c,a=Vu(a,"onChange"),0<a.length&&(l=new Jo("onChange","change",null,l,c),r.push({event:l,listeners:a}))}var dl=null,ml=null;function pw(r){g_(r,0)}function eu(r){var a=ll(r);if(pg(a))return r}function Mg(r,a){if(r==="change")return a}var Pg=!1;if(gr){var Hf;if(gr){var Gf="oninput"in document;if(!Gf){var zg=document.createElement("div");zg.setAttribute("oninput","return;"),Gf=typeof zg.oninput=="function"}Hf=Gf}else Hf=!1;Pg=Hf&&(!document.documentMode||9<document.documentMode)}function Ig(){dl&&(dl.detachEvent("onpropertychange",Bg),ml=dl=null)}function Bg(r){if(r.propertyName==="value"&&eu(ml)){var a=[];jg(a,ml,r,jf(r)),Sg(pw,a)}}function gw(r,a,l){r==="focusin"?(Ig(),dl=a,ml=l,dl.attachEvent("onpropertychange",Bg)):r==="focusout"&&Ig()}function yw(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return eu(ml)}function vw(r,a){if(r==="click")return eu(a)}function _w(r,a){if(r==="input"||r==="change")return eu(a)}function bw(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var fn=typeof Object.is=="function"?Object.is:bw;function pl(r,a){if(fn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),c=Object.keys(a);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var m=l[c];if(!qn.call(a,m)||!fn(r[m],a[m]))return!1}return!0}function Ug(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function qg(r,a){var l=Ug(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=a&&c>=a)return{node:l,offset:a-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ug(l)}}function Vg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Vg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Hg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=$o(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=$o(r.document)}return a}function Ff(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var xw=gr&&"documentMode"in document&&11>=document.documentMode,Ga=null,Qf=null,gl=null,$f=!1;function Gg(r,a,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$f||Ga==null||Ga!==$o(c)||(c=Ga,"selectionStart"in c&&Ff(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),gl&&pl(gl,c)||(gl=c,c=Vu(Qf,"onSelect"),0<c.length&&(a=new Jo("onSelect","select",null,a,l),r.push({event:a,listeners:c}),a.target=Ga)))}function Vi(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var Fa={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionrun:Vi("Transition","TransitionRun"),transitionstart:Vi("Transition","TransitionStart"),transitioncancel:Vi("Transition","TransitionCancel"),transitionend:Vi("Transition","TransitionEnd")},Yf={},Fg={};gr&&(Fg=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function Hi(r){if(Yf[r])return Yf[r];if(!Fa[r])return r;var a=Fa[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in Fg)return Yf[r]=a[l];return r}var Qg=Hi("animationend"),$g=Hi("animationiteration"),Yg=Hi("animationstart"),Sw=Hi("transitionrun"),Ew=Hi("transitionstart"),ww=Hi("transitioncancel"),Kg=Hi("transitionend"),Xg=new Map,Kf="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(" ");Kf.push("scrollEnd");function Gn(r,a){Xg.set(r,a),Ui(a,[r])}var tu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},En=[],Qa=0,Xf=0;function nu(){for(var r=Qa,a=Xf=Qa=0;a<r;){var l=En[a];En[a++]=null;var c=En[a];En[a++]=null;var m=En[a];En[a++]=null;var g=En[a];if(En[a++]=null,c!==null&&m!==null){var b=c.pending;b===null?m.next=m:(m.next=b.next,b.next=m),c.pending=m}g!==0&&Zg(l,m,g)}}function ru(r,a,l,c){En[Qa++]=r,En[Qa++]=a,En[Qa++]=l,En[Qa++]=c,Xf|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function Zf(r,a,l,c){return ru(r,a,l,c),iu(r)}function Gi(r,a){return ru(r,null,null,a),iu(r)}function Zg(r,a,l){r.lanes|=l;var c=r.alternate;c!==null&&(c.lanes|=l);for(var m=!1,g=r.return;g!==null;)g.childLanes|=l,c=g.alternate,c!==null&&(c.childLanes|=l),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(m=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,m&&a!==null&&(m=31-We(l),r=g.hiddenUpdates,c=r[m],c===null?r[m]=[a]:c.push(a),a.lane=l|536870912),g):null}function iu(r){if(50<Il)throw Il=0,sd=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var $a={};function Tw(r,a,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(r,a,l,c){return new Tw(r,a,l,c)}function Jf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function yr(r,a){var l=r.alternate;return l===null?(l=hn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Jg(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function au(r,a,l,c,m,g){var b=0;if(c=r,typeof r=="function")Jf(r)&&(b=1);else if(typeof r=="string")b=OT(r,l,ue.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case te:return r=hn(31,l,a,m),r.elementType=te,r.lanes=g,r;case E:return Fi(l.children,m,g,a);case C:b=8,m|=24;break;case T:return r=hn(12,l,a,m|2),r.elementType=T,r.lanes=g,r;case V:return r=hn(13,l,a,m),r.elementType=V,r.lanes=g,r;case L:return r=hn(19,l,a,m),r.elementType=L,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case O:b=10;break e;case k:b=9;break e;case P:b=11;break e;case B:b=14;break e;case q:b=16,c=null;break e}b=29,l=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=hn(b,l,a,m),a.elementType=r,a.type=c,a.lanes=g,a}function Fi(r,a,l,c){return r=hn(7,r,c,a),r.lanes=l,r}function Wf(r,a,l){return r=hn(6,r,null,a),r.lanes=l,r}function Wg(r){var a=hn(18,null,null,0);return a.stateNode=r,a}function eh(r,a,l){return a=hn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var ey=new WeakMap;function wn(r,a){if(typeof r=="object"&&r!==null){var l=ey.get(r);return l!==void 0?l:(a={value:r,source:a,stack:Na(a)},ey.set(r,a),a)}return{value:r,source:a,stack:Na(a)}}var Ya=[],Ka=0,su=null,yl=0,Tn=[],Cn=0,Xr=null,Jn=1,Wn="";function vr(r,a){Ya[Ka++]=yl,Ya[Ka++]=su,su=r,yl=a}function ty(r,a,l){Tn[Cn++]=Jn,Tn[Cn++]=Wn,Tn[Cn++]=Xr,Xr=r;var c=Jn;r=Wn;var m=32-We(c)-1;c&=~(1<<m),l+=1;var g=32-We(a)+m;if(30<g){var b=m-m%5;g=(c&(1<<b)-1).toString(32),c>>=b,m-=b,Jn=1<<32-We(a)+m|l<<m|c,Wn=g+r}else Jn=1<<g|l<<m|c,Wn=r}function th(r){r.return!==null&&(vr(r,1),ty(r,1,0))}function nh(r){for(;r===su;)su=Ya[--Ka],Ya[Ka]=null,yl=Ya[--Ka],Ya[Ka]=null;for(;r===Xr;)Xr=Tn[--Cn],Tn[Cn]=null,Wn=Tn[--Cn],Tn[Cn]=null,Jn=Tn[--Cn],Tn[Cn]=null}function ny(r,a){Tn[Cn++]=Jn,Tn[Cn++]=Wn,Tn[Cn++]=Xr,Jn=a.id,Wn=a.overflow,Xr=r}var Ot=null,rt=null,Pe=!1,Zr=null,kn=!1,rh=Error(i(519));function Jr(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vl(wn(a,r)),rh}function ry(r){var a=r.stateNode,l=r.type,c=r.memoizedProps;switch(a[At]=r,a[Xt]=c,l){case"dialog":Le("cancel",a),Le("close",a);break;case"iframe":case"object":case"embed":Le("load",a);break;case"video":case"audio":for(l=0;l<Ul.length;l++)Le(Ul[l],a);break;case"source":Le("error",a);break;case"img":case"image":case"link":Le("error",a),Le("load",a);break;case"details":Le("toggle",a);break;case"input":Le("invalid",a),gg(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Le("invalid",a);break;case"textarea":Le("invalid",a),vg(a,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||c.suppressHydrationWarning===!0||b_(a.textContent,l)?(c.popover!=null&&(Le("beforetoggle",a),Le("toggle",a)),c.onScroll!=null&&Le("scroll",a),c.onScrollEnd!=null&&Le("scrollend",a),c.onClick!=null&&(a.onclick=pr),a=!0):a=!1,a||Jr(r,!0)}function iy(r){for(Ot=r.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:Ot=Ot.return}}function Xa(r){if(r!==Ot)return!1;if(!Pe)return iy(r),Pe=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||xd(r.type,r.memoizedProps)),l=!l),l&&rt&&Jr(r),iy(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=A_(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=A_(r)}else a===27?(a=rt,hi(r.type)?(r=Cd,Cd=null,rt=r):rt=a):rt=Ot?An(r.stateNode.nextSibling):null;return!0}function Qi(){rt=Ot=null,Pe=!1}function ih(){var r=Zr;return r!==null&&(tn===null?tn=r:tn.push.apply(tn,r),Zr=null),r}function vl(r){Zr===null?Zr=[r]:Zr.push(r)}var ah=z(null),$i=null,_r=null;function Wr(r,a,l){A(ah,a._currentValue),a._currentValue=l}function br(r){r._currentValue=ah.current,X(ah)}function sh(r,a,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===l)break;r=r.return}}function lh(r,a,l,c){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var g=m.dependencies;if(g!==null){var b=m.child;g=g.firstContext;e:for(;g!==null;){var w=g;g=m;for(var j=0;j<a.length;j++)if(w.context===a[j]){g.lanes|=l,w=g.alternate,w!==null&&(w.lanes|=l),sh(g.return,l,r),c||(b=null);break e}g=w.next}}else if(m.tag===18){if(b=m.return,b===null)throw Error(i(341));b.lanes|=l,g=b.alternate,g!==null&&(g.lanes|=l),sh(b,l,r),b=null}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===r){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}}function Za(r,a,l,c){r=null;for(var m=a,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var b=m.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var w=m.type;fn(m.pendingProps.value,b.value)||(r!==null?r.push(w):r=[w])}}else if(m===Se.current){if(b=m.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push(Fl):r=[Fl])}m=m.return}r!==null&&lh(a,r,l,c),a.flags|=262144}function lu(r){for(r=r.firstContext;r!==null;){if(!fn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Yi(r){$i=r,_r=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Lt(r){return ay($i,r)}function ou(r,a){return $i===null&&Yi(r),ay(r,a)}function ay(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},_r===null){if(r===null)throw Error(i(308));_r=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else _r=_r.next=a;return l}var Cw=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},kw=e.unstable_scheduleCallback,Rw=e.unstable_NormalPriority,dt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oh(){return{controller:new Cw,data:new Map,refCount:0}}function _l(r){r.refCount--,r.refCount===0&&kw(Rw,function(){r.controller.abort()})}var bl=null,uh=0,Ja=0,Wa=null;function Aw(r,a){if(bl===null){var l=bl=[];uh=0,Ja=hd(),Wa={status:"pending",value:void 0,then:function(c){l.push(c)}}}return uh++,a.then(sy,sy),a}function sy(){if(--uh===0&&bl!==null){Wa!==null&&(Wa.status="fulfilled");var r=bl;bl=null,Ja=0,Wa=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Ow(r,a){var l=[],c={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var m=0;m<l.length;m++)(0,l[m])(a)},function(m){for(c.status="rejected",c.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),c}var ly=H.S;H.S=function(r,a){Gv=Be(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Aw(r,a),ly!==null&&ly(r,a)};var Ki=z(null);function ch(){var r=Ki.current;return r!==null?r:et.pooledCache}function uu(r,a){a===null?A(Ki,Ki.current):A(Ki,a.pool)}function oy(){var r=ch();return r===null?null:{parent:dt._currentValue,pool:r}}var es=Error(i(460)),fh=Error(i(474)),cu=Error(i(542)),fu={then:function(){}};function uy(r){return r=r.status,r==="fulfilled"||r==="rejected"}function cy(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(pr,pr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,hy(r),r;default:if(typeof a.status=="string")a.then(pr,pr);else{if(r=et,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=c}},function(c){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,hy(r),r}throw Zi=a,es}}function Xi(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Zi=l,es):l}}var Zi=null;function fy(){if(Zi===null)throw Error(i(459));var r=Zi;return Zi=null,r}function hy(r){if(r===es||r===cu)throw Error(i(483))}var ts=null,xl=0;function hu(r){var a=xl;return xl+=1,ts===null&&(ts=[]),cy(ts,r,a)}function Sl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function du(r,a){throw a.$$typeof===_?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function dy(r){function a(U,I){if(r){var G=U.deletions;G===null?(U.deletions=[I],U.flags|=16):G.push(I)}}function l(U,I){if(!r)return null;for(;I!==null;)a(U,I),I=I.sibling;return null}function c(U){for(var I=new Map;U!==null;)U.key!==null?I.set(U.key,U):I.set(U.index,U),U=U.sibling;return I}function m(U,I){return U=yr(U,I),U.index=0,U.sibling=null,U}function g(U,I,G){return U.index=G,r?(G=U.alternate,G!==null?(G=G.index,G<I?(U.flags|=67108866,I):G):(U.flags|=67108866,I)):(U.flags|=1048576,I)}function b(U){return r&&U.alternate===null&&(U.flags|=67108866),U}function w(U,I,G,J){return I===null||I.tag!==6?(I=Wf(G,U.mode,J),I.return=U,I):(I=m(I,G),I.return=U,I)}function j(U,I,G,J){var ve=G.type;return ve===E?K(U,I,G.props.children,J,G.key):I!==null&&(I.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===q&&Xi(ve)===I.type)?(I=m(I,G.props),Sl(I,G),I.return=U,I):(I=au(G.type,G.key,G.props,null,U.mode,J),Sl(I,G),I.return=U,I)}function F(U,I,G,J){return I===null||I.tag!==4||I.stateNode.containerInfo!==G.containerInfo||I.stateNode.implementation!==G.implementation?(I=eh(G,U.mode,J),I.return=U,I):(I=m(I,G.children||[]),I.return=U,I)}function K(U,I,G,J,ve){return I===null||I.tag!==7?(I=Fi(G,U.mode,J,ve),I.return=U,I):(I=m(I,G),I.return=U,I)}function ee(U,I,G){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Wf(""+I,U.mode,G),I.return=U,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case v:return G=au(I.type,I.key,I.props,null,U.mode,G),Sl(G,I),G.return=U,G;case x:return I=eh(I,U.mode,G),I.return=U,I;case q:return I=Xi(I),ee(U,I,G)}if(ae(I)||ie(I))return I=Fi(I,U.mode,G,null),I.return=U,I;if(typeof I.then=="function")return ee(U,hu(I),G);if(I.$$typeof===O)return ee(U,ou(U,I),G);du(U,I)}return null}function Q(U,I,G,J){var ve=I!==null?I.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return ve!==null?null:w(U,I,""+G,J);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case v:return G.key===ve?j(U,I,G,J):null;case x:return G.key===ve?F(U,I,G,J):null;case q:return G=Xi(G),Q(U,I,G,J)}if(ae(G)||ie(G))return ve!==null?null:K(U,I,G,J,null);if(typeof G.then=="function")return Q(U,I,hu(G),J);if(G.$$typeof===O)return Q(U,I,ou(U,G),J);du(U,G)}return null}function Y(U,I,G,J,ve){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return U=U.get(G)||null,w(I,U,""+J,ve);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case v:return U=U.get(J.key===null?G:J.key)||null,j(I,U,J,ve);case x:return U=U.get(J.key===null?G:J.key)||null,F(I,U,J,ve);case q:return J=Xi(J),Y(U,I,G,J,ve)}if(ae(J)||ie(J))return U=U.get(G)||null,K(I,U,J,ve,null);if(typeof J.then=="function")return Y(U,I,G,hu(J),ve);if(J.$$typeof===O)return Y(U,I,G,ou(I,J),ve);du(I,J)}return null}function de(U,I,G,J){for(var ve=null,qe=null,pe=I,Ce=I=0,je=null;pe!==null&&Ce<G.length;Ce++){pe.index>Ce?(je=pe,pe=null):je=pe.sibling;var Ve=Q(U,pe,G[Ce],J);if(Ve===null){pe===null&&(pe=je);break}r&&pe&&Ve.alternate===null&&a(U,pe),I=g(Ve,I,Ce),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve,pe=je}if(Ce===G.length)return l(U,pe),Pe&&vr(U,Ce),ve;if(pe===null){for(;Ce<G.length;Ce++)pe=ee(U,G[Ce],J),pe!==null&&(I=g(pe,I,Ce),qe===null?ve=pe:qe.sibling=pe,qe=pe);return Pe&&vr(U,Ce),ve}for(pe=c(pe);Ce<G.length;Ce++)je=Y(pe,U,Ce,G[Ce],J),je!==null&&(r&&je.alternate!==null&&pe.delete(je.key===null?Ce:je.key),I=g(je,I,Ce),qe===null?ve=je:qe.sibling=je,qe=je);return r&&pe.forEach(function(yi){return a(U,yi)}),Pe&&vr(U,Ce),ve}function be(U,I,G,J){if(G==null)throw Error(i(151));for(var ve=null,qe=null,pe=I,Ce=I=0,je=null,Ve=G.next();pe!==null&&!Ve.done;Ce++,Ve=G.next()){pe.index>Ce?(je=pe,pe=null):je=pe.sibling;var yi=Q(U,pe,Ve.value,J);if(yi===null){pe===null&&(pe=je);break}r&&pe&&yi.alternate===null&&a(U,pe),I=g(yi,I,Ce),qe===null?ve=yi:qe.sibling=yi,qe=yi,pe=je}if(Ve.done)return l(U,pe),Pe&&vr(U,Ce),ve;if(pe===null){for(;!Ve.done;Ce++,Ve=G.next())Ve=ee(U,Ve.value,J),Ve!==null&&(I=g(Ve,I,Ce),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve);return Pe&&vr(U,Ce),ve}for(pe=c(pe);!Ve.done;Ce++,Ve=G.next())Ve=Y(pe,U,Ce,Ve.value,J),Ve!==null&&(r&&Ve.alternate!==null&&pe.delete(Ve.key===null?Ce:Ve.key),I=g(Ve,I,Ce),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve);return r&&pe.forEach(function(qT){return a(U,qT)}),Pe&&vr(U,Ce),ve}function Je(U,I,G,J){if(typeof G=="object"&&G!==null&&G.type===E&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case v:e:{for(var ve=G.key;I!==null;){if(I.key===ve){if(ve=G.type,ve===E){if(I.tag===7){l(U,I.sibling),J=m(I,G.props.children),J.return=U,U=J;break e}}else if(I.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===q&&Xi(ve)===I.type){l(U,I.sibling),J=m(I,G.props),Sl(J,G),J.return=U,U=J;break e}l(U,I);break}else a(U,I);I=I.sibling}G.type===E?(J=Fi(G.props.children,U.mode,J,G.key),J.return=U,U=J):(J=au(G.type,G.key,G.props,null,U.mode,J),Sl(J,G),J.return=U,U=J)}return b(U);case x:e:{for(ve=G.key;I!==null;){if(I.key===ve)if(I.tag===4&&I.stateNode.containerInfo===G.containerInfo&&I.stateNode.implementation===G.implementation){l(U,I.sibling),J=m(I,G.children||[]),J.return=U,U=J;break e}else{l(U,I);break}else a(U,I);I=I.sibling}J=eh(G,U.mode,J),J.return=U,U=J}return b(U);case q:return G=Xi(G),Je(U,I,G,J)}if(ae(G))return de(U,I,G,J);if(ie(G)){if(ve=ie(G),typeof ve!="function")throw Error(i(150));return G=ve.call(G),be(U,I,G,J)}if(typeof G.then=="function")return Je(U,I,hu(G),J);if(G.$$typeof===O)return Je(U,I,ou(U,G),J);du(U,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,I!==null&&I.tag===6?(l(U,I.sibling),J=m(I,G),J.return=U,U=J):(l(U,I),J=Wf(G,U.mode,J),J.return=U,U=J),b(U)):l(U,I)}return function(U,I,G,J){try{xl=0;var ve=Je(U,I,G,J);return ts=null,ve}catch(pe){if(pe===es||pe===cu)throw pe;var qe=hn(29,pe,null,U.mode);return qe.lanes=J,qe.return=U,qe}finally{}}}var Ji=dy(!0),my=dy(!1),ei=!1;function hh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dh(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ti(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ni(r,a,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(He&2)!==0){var m=c.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),c.pending=a,a=iu(r),Zg(r,null,l),a}return ru(r,c,a,l),iu(r)}function El(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,ag(r,l)}}function mh(r,a){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var m=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?m=g=b:g=g.next=b,l=l.next}while(l!==null);g===null?m=g=a:g=g.next=a}else m=g=a;l={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var ph=!1;function wl(){if(ph){var r=Wa;if(r!==null)throw r}}function Tl(r,a,l,c){ph=!1;var m=r.updateQueue;ei=!1;var g=m.firstBaseUpdate,b=m.lastBaseUpdate,w=m.shared.pending;if(w!==null){m.shared.pending=null;var j=w,F=j.next;j.next=null,b===null?g=F:b.next=F,b=j;var K=r.alternate;K!==null&&(K=K.updateQueue,w=K.lastBaseUpdate,w!==b&&(w===null?K.firstBaseUpdate=F:w.next=F,K.lastBaseUpdate=j))}if(g!==null){var ee=m.baseState;b=0,K=F=j=null,w=g;do{var Q=w.lane&-536870913,Y=Q!==w.lane;if(Y?(De&Q)===Q:(c&Q)===Q){Q!==0&&Q===Ja&&(ph=!0),K!==null&&(K=K.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var de=r,be=w;Q=a;var Je=l;switch(be.tag){case 1:if(de=be.payload,typeof de=="function"){ee=de.call(Je,ee,Q);break e}ee=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=be.payload,Q=typeof de=="function"?de.call(Je,ee,Q):de,Q==null)break e;ee=p({},ee,Q);break e;case 2:ei=!0}}Q=w.callback,Q!==null&&(r.flags|=64,Y&&(r.flags|=8192),Y=m.callbacks,Y===null?m.callbacks=[Q]:Y.push(Q))}else Y={lane:Q,tag:w.tag,payload:w.payload,callback:w.callback,next:null},K===null?(F=K=Y,j=ee):K=K.next=Y,b|=Q;if(w=w.next,w===null){if(w=m.shared.pending,w===null)break;Y=w,w=Y.next,Y.next=null,m.lastBaseUpdate=Y,m.shared.pending=null}}while(!0);K===null&&(j=ee),m.baseState=j,m.firstBaseUpdate=F,m.lastBaseUpdate=K,g===null&&(m.shared.lanes=0),li|=b,r.lanes=b,r.memoizedState=ee}}function py(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function gy(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)py(l[r],a)}var ns=z(null),mu=z(0);function yy(r,a){r=Ar,A(mu,r),A(ns,a),Ar=r|a.baseLanes}function gh(){A(mu,Ar),A(ns,ns.current)}function yh(){Ar=mu.current,X(ns),X(mu)}var dn=z(null),Rn=null;function ri(r){var a=r.alternate;A(ct,ct.current&1),A(dn,r),Rn===null&&(a===null||ns.current!==null||a.memoizedState!==null)&&(Rn=r)}function vh(r){A(ct,ct.current),A(dn,r),Rn===null&&(Rn=r)}function vy(r){r.tag===22?(A(ct,ct.current),A(dn,r),Rn===null&&(Rn=r)):ii()}function ii(){A(ct,ct.current),A(dn,dn.current)}function mn(r){X(dn),Rn===r&&(Rn=null),X(ct)}var ct=z(0);function pu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||wd(l)||Td(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var xr=0,Te=null,Xe=null,mt=null,gu=!1,rs=!1,Wi=!1,yu=0,Cl=0,is=null,Lw=0;function st(){throw Error(i(321))}function _h(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!fn(r[l],a[l]))return!1;return!0}function bh(r,a,l,c,m,g){return xr=g,Te=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,H.H=r===null||r.memoizedState===null?tv:Mh,Wi=!1,g=l(c,m),Wi=!1,rs&&(g=by(a,l,c,m)),_y(r),g}function _y(r){H.H=Al;var a=Xe!==null&&Xe.next!==null;if(xr=0,mt=Xe=Te=null,gu=!1,Cl=0,is=null,a)throw Error(i(300));r===null||pt||(r=r.dependencies,r!==null&&lu(r)&&(pt=!0))}function by(r,a,l,c){Te=r;var m=0;do{if(rs&&(is=null),Cl=0,rs=!1,25<=m)throw Error(i(301));if(m+=1,mt=Xe=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}H.H=nv,g=a(l,c)}while(rs);return g}function Nw(){var r=H.H,a=r.useState()[0];return a=typeof a.then=="function"?kl(a):a,r=r.useState()[0],(Xe!==null?Xe.memoizedState:null)!==r&&(Te.flags|=1024),a}function xh(){var r=yu!==0;return yu=0,r}function Sh(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function Eh(r){if(gu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}gu=!1}xr=0,mt=Xe=Te=null,rs=!1,Cl=yu=0,is=null}function Vt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Te.memoizedState=mt=r:mt=mt.next=r,mt}function ft(){if(Xe===null){var r=Te.alternate;r=r!==null?r.memoizedState:null}else r=Xe.next;var a=mt===null?Te.memoizedState:mt.next;if(a!==null)mt=a,Xe=r;else{if(r===null)throw Te.alternate===null?Error(i(467)):Error(i(310));Xe=r,r={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},mt===null?Te.memoizedState=mt=r:mt=mt.next=r}return mt}function vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(r){var a=Cl;return Cl+=1,is===null&&(is=[]),r=cy(is,r,a),a=Te,(mt===null?a.memoizedState:mt.next)===null&&(a=a.alternate,H.H=a===null||a.memoizedState===null?tv:Mh),r}function _u(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return kl(r);if(r.$$typeof===O)return Lt(r)}throw Error(i(438,String(r)))}function wh(r){var a=null,l=Te.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var c=Te.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=vu(),Te.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),c=0;c<r;c++)l[c]=N;return a.index++,l}function Sr(r,a){return typeof a=="function"?a(r):a}function bu(r){var a=ft();return Th(a,Xe,r)}function Th(r,a,l){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var m=r.baseQueue,g=c.pending;if(g!==null){if(m!==null){var b=m.next;m.next=g.next,g.next=b}a.baseQueue=m=g,c.pending=null}if(g=r.baseState,m===null)r.memoizedState=g;else{a=m.next;var w=b=null,j=null,F=a,K=!1;do{var ee=F.lane&-536870913;if(ee!==F.lane?(De&ee)===ee:(xr&ee)===ee){var Q=F.revertLane;if(Q===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ee===Ja&&(K=!0);else if((xr&Q)===Q){F=F.next,Q===Ja&&(K=!0);continue}else ee={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(w=j=ee,b=g):j=j.next=ee,Te.lanes|=Q,li|=Q;ee=F.action,Wi&&l(g,ee),g=F.hasEagerState?F.eagerState:l(g,ee)}else Q={lane:ee,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(w=j=Q,b=g):j=j.next=Q,Te.lanes|=ee,li|=ee;F=F.next}while(F!==null&&F!==a);if(j===null?b=g:j.next=w,!fn(g,r.memoizedState)&&(pt=!0,K&&(l=Wa,l!==null)))throw l;r.memoizedState=g,r.baseState=b,r.baseQueue=j,c.lastRenderedState=g}return m===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Ch(r){var a=ft(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,m=l.pending,g=a.memoizedState;if(m!==null){l.pending=null;var b=m=m.next;do g=r(g,b.action),b=b.next;while(b!==m);fn(g,a.memoizedState)||(pt=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),l.lastRenderedState=g}return[g,c]}function xy(r,a,l){var c=Te,m=ft(),g=Pe;if(g){if(l===void 0)throw Error(i(407));l=l()}else l=a();var b=!fn((Xe||m).memoizedState,l);if(b&&(m.memoizedState=l,pt=!0),m=m.queue,Ah(wy.bind(null,c,m,r),[r]),m.getSnapshot!==a||b||mt!==null&&mt.memoizedState.tag&1){if(c.flags|=2048,as(9,{destroy:void 0},Ey.bind(null,c,m,l,a),null),et===null)throw Error(i(349));g||(xr&127)!==0||Sy(c,a,l)}return l}function Sy(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Te.updateQueue,a===null?(a=vu(),Te.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function Ey(r,a,l,c){a.value=l,a.getSnapshot=c,Ty(a)&&Cy(r)}function wy(r,a,l){return l(function(){Ty(a)&&Cy(r)})}function Ty(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!fn(r,l)}catch{return!0}}function Cy(r){var a=Gi(r,2);a!==null&&nn(a,r,2)}function kh(r){var a=Vt();if(typeof r=="function"){var l=r;if(r=l(),Wi){Kt(!0);try{l()}finally{Kt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:r},a}function ky(r,a,l,c){return r.baseState=l,Th(r,Xe,typeof c=="function"?c:Sr)}function Dw(r,a,l,c,m){if(Eu(r))throw Error(i(485));if(r=a.action,r!==null){var g={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){g.listeners.push(b)}};H.T!==null?l(!0):g.isTransition=!1,c(g),l=a.pending,l===null?(g.next=a.pending=g,Ry(a,g)):(g.next=l.next,a.pending=l.next=g)}}function Ry(r,a){var l=a.action,c=a.payload,m=r.state;if(a.isTransition){var g=H.T,b={};H.T=b;try{var w=l(m,c),j=H.S;j!==null&&j(b,w),Ay(r,a,w)}catch(F){Rh(r,a,F)}finally{g!==null&&b.types!==null&&(g.types=b.types),H.T=g}}else try{g=l(m,c),Ay(r,a,g)}catch(F){Rh(r,a,F)}}function Ay(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){Oy(r,a,c)},function(c){return Rh(r,a,c)}):Oy(r,a,l)}function Oy(r,a,l){a.status="fulfilled",a.value=l,Ly(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,Ry(r,l)))}function Rh(r,a,l){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=l,Ly(a),a=a.next;while(a!==c)}r.action=null}function Ly(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Ny(r,a){return a}function Dy(r,a){if(Pe){var l=et.formState;if(l!==null){e:{var c=Te;if(Pe){if(rt){t:{for(var m=rt,g=kn;m.nodeType!==8;){if(!g){m=null;break t}if(m=An(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){rt=An(m.nextSibling),c=m.data==="F!";break e}}Jr(c)}c=!1}c&&(a=l[0])}}return l=Vt(),l.memoizedState=l.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ny,lastRenderedState:a},l.queue=c,l=Jy.bind(null,Te,c),c.dispatch=l,c=kh(!1),g=jh.bind(null,Te,!1,c.queue),c=Vt(),m={state:a,dispatch:null,action:r,pending:null},c.queue=m,l=Dw.bind(null,Te,m,g,l),m.dispatch=l,c.memoizedState=r,[a,l,!1]}function jy(r){var a=ft();return My(a,Xe,r)}function My(r,a,l){if(a=Th(r,a,Ny)[0],r=bu(Sr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=kl(a)}catch(b){throw b===es?cu:b}else c=a;a=ft();var m=a.queue,g=m.dispatch;return l!==a.memoizedState&&(Te.flags|=2048,as(9,{destroy:void 0},jw.bind(null,m,l),null)),[c,g,r]}function jw(r,a){r.action=a}function Py(r){var a=ft(),l=Xe;if(l!==null)return My(a,l,r);ft(),a=a.memoizedState,l=ft();var c=l.queue.dispatch;return l.memoizedState=r,[a,c,!1]}function as(r,a,l,c){return r={tag:r,create:l,deps:c,inst:a,next:null},a=Te.updateQueue,a===null&&(a=vu(),Te.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,a.lastEffect=r),r}function zy(){return ft().memoizedState}function xu(r,a,l,c){var m=Vt();Te.flags|=r,m.memoizedState=as(1|a,{destroy:void 0},l,c===void 0?null:c)}function Su(r,a,l,c){var m=ft();c=c===void 0?null:c;var g=m.memoizedState.inst;Xe!==null&&c!==null&&_h(c,Xe.memoizedState.deps)?m.memoizedState=as(a,g,l,c):(Te.flags|=r,m.memoizedState=as(1|a,g,l,c))}function Iy(r,a){xu(8390656,8,r,a)}function Ah(r,a){Su(2048,8,r,a)}function Mw(r){Te.flags|=4;var a=Te.updateQueue;if(a===null)a=vu(),Te.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function By(r){var a=ft().memoizedState;return Mw({ref:a,nextImpl:r}),function(){if((He&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Uy(r,a){return Su(4,2,r,a)}function qy(r,a){return Su(4,4,r,a)}function Vy(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Hy(r,a,l){l=l!=null?l.concat([r]):null,Su(4,4,Vy.bind(null,a,r),l)}function Oh(){}function Gy(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;return a!==null&&_h(a,c[1])?c[0]:(l.memoizedState=[r,a],r)}function Fy(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;if(a!==null&&_h(a,c[1]))return c[0];if(c=r(),Wi){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c}function Lh(r,a,l){return l===void 0||(xr&1073741824)!==0&&(De&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=Qv(),Te.lanes|=r,li|=r,l)}function Qy(r,a,l,c){return fn(l,a)?l:ns.current!==null?(r=Lh(r,l,c),fn(r,a)||(pt=!0),r):(xr&42)===0||(xr&1073741824)!==0&&(De&261930)===0?(pt=!0,r.memoizedState=l):(r=Qv(),Te.lanes|=r,li|=r,a)}function $y(r,a,l,c,m){var g=ne.p;ne.p=g!==0&&8>g?g:8;var b=H.T,w={};H.T=w,jh(r,!1,a,l);try{var j=m(),F=H.S;if(F!==null&&F(w,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var K=Ow(j,c);Rl(r,a,K,yn(r))}else Rl(r,a,c,yn(r))}catch(ee){Rl(r,a,{then:function(){},status:"rejected",reason:ee},yn())}finally{ne.p=g,b!==null&&w.types!==null&&(b.types=w.types),H.T=b}}function Pw(){}function Nh(r,a,l,c){if(r.tag!==5)throw Error(i(476));var m=Yy(r).queue;$y(r,m,a,fe,l===null?Pw:function(){return Ky(r),l(c)})}function Yy(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:fe},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Ky(r){var a=Yy(r);a.next===null&&(a=r.alternate.memoizedState),Rl(r,a.next.queue,{},yn())}function Dh(){return Lt(Fl)}function Xy(){return ft().memoizedState}function Zy(){return ft().memoizedState}function zw(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=yn();r=ti(l);var c=ni(a,r,l);c!==null&&(nn(c,a,l),El(c,a,l)),a={cache:oh()},r.payload=a;return}a=a.return}}function Iw(r,a,l){var c=yn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Eu(r)?Wy(a,l):(l=Zf(r,a,l,c),l!==null&&(nn(l,r,c),ev(l,a,c)))}function Jy(r,a,l){var c=yn();Rl(r,a,l,c)}function Rl(r,a,l,c){var m={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Eu(r))Wy(a,m);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var b=a.lastRenderedState,w=g(b,l);if(m.hasEagerState=!0,m.eagerState=w,fn(w,b))return ru(r,a,m,0),et===null&&nu(),!1}catch{}finally{}if(l=Zf(r,a,m,c),l!==null)return nn(l,r,c),ev(l,a,c),!0}return!1}function jh(r,a,l,c){if(c={lane:2,revertLane:hd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Eu(r)){if(a)throw Error(i(479))}else a=Zf(r,l,c,2),a!==null&&nn(a,r,2)}function Eu(r){var a=r.alternate;return r===Te||a!==null&&a===Te}function Wy(r,a){rs=gu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function ev(r,a,l){if((l&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,ag(r,l)}}var Al={readContext:Lt,use:_u,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Al.useEffectEvent=st;var tv={readContext:Lt,use:_u,useCallback:function(r,a){return Vt().memoizedState=[r,a===void 0?null:a],r},useContext:Lt,useEffect:Iy,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,xu(4194308,4,Vy.bind(null,a,r),l)},useLayoutEffect:function(r,a){return xu(4194308,4,r,a)},useInsertionEffect:function(r,a){xu(4,2,r,a)},useMemo:function(r,a){var l=Vt();a=a===void 0?null:a;var c=r();if(Wi){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c},useReducer:function(r,a,l){var c=Vt();if(l!==void 0){var m=l(a);if(Wi){Kt(!0);try{l(a)}finally{Kt(!1)}}}else m=a;return c.memoizedState=c.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},c.queue=r,r=r.dispatch=Iw.bind(null,Te,r),[c.memoizedState,r]},useRef:function(r){var a=Vt();return r={current:r},a.memoizedState=r},useState:function(r){r=kh(r);var a=r.queue,l=Jy.bind(null,Te,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:Oh,useDeferredValue:function(r,a){var l=Vt();return Lh(l,r,a)},useTransition:function(){var r=kh(!1);return r=$y.bind(null,Te,r.queue,!0,!1),Vt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var c=Te,m=Vt();if(Pe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),et===null)throw Error(i(349));(De&127)!==0||Sy(c,a,l)}m.memoizedState=l;var g={value:l,getSnapshot:a};return m.queue=g,Iy(wy.bind(null,c,g,r),[r]),c.flags|=2048,as(9,{destroy:void 0},Ey.bind(null,c,g,l,a),null),l},useId:function(){var r=Vt(),a=et.identifierPrefix;if(Pe){var l=Wn,c=Jn;l=(c&~(1<<32-We(c)-1)).toString(32)+l,a="_"+a+"R_"+l,l=yu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=Lw++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Dh,useFormState:Dy,useActionState:Dy,useOptimistic:function(r){var a=Vt();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=jh.bind(null,Te,!0,l),l.dispatch=a,[r,a]},useMemoCache:wh,useCacheRefresh:function(){return Vt().memoizedState=zw.bind(null,Te)},useEffectEvent:function(r){var a=Vt(),l={impl:r};return a.memoizedState=l,function(){if((He&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Mh={readContext:Lt,use:_u,useCallback:Gy,useContext:Lt,useEffect:Ah,useImperativeHandle:Hy,useInsertionEffect:Uy,useLayoutEffect:qy,useMemo:Fy,useReducer:bu,useRef:zy,useState:function(){return bu(Sr)},useDebugValue:Oh,useDeferredValue:function(r,a){var l=ft();return Qy(l,Xe.memoizedState,r,a)},useTransition:function(){var r=bu(Sr)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:kl(r),a]},useSyncExternalStore:xy,useId:Xy,useHostTransitionStatus:Dh,useFormState:jy,useActionState:jy,useOptimistic:function(r,a){var l=ft();return ky(l,Xe,r,a)},useMemoCache:wh,useCacheRefresh:Zy};Mh.useEffectEvent=By;var nv={readContext:Lt,use:_u,useCallback:Gy,useContext:Lt,useEffect:Ah,useImperativeHandle:Hy,useInsertionEffect:Uy,useLayoutEffect:qy,useMemo:Fy,useReducer:Ch,useRef:zy,useState:function(){return Ch(Sr)},useDebugValue:Oh,useDeferredValue:function(r,a){var l=ft();return Xe===null?Lh(l,r,a):Qy(l,Xe.memoizedState,r,a)},useTransition:function(){var r=Ch(Sr)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:kl(r),a]},useSyncExternalStore:xy,useId:Xy,useHostTransitionStatus:Dh,useFormState:Py,useActionState:Py,useOptimistic:function(r,a){var l=ft();return Xe!==null?ky(l,Xe,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:wh,useCacheRefresh:Zy};nv.useEffectEvent=By;function Ph(r,a,l,c){a=r.memoizedState,l=l(c,a),l=l==null?a:p({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var zh={enqueueSetState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ti(c);m.payload=a,l!=null&&(m.callback=l),a=ni(r,m,c),a!==null&&(nn(a,r,c),El(a,r,c))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ti(c);m.tag=1,m.payload=a,l!=null&&(m.callback=l),a=ni(r,m,c),a!==null&&(nn(a,r,c),El(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=yn(),c=ti(l);c.tag=2,a!=null&&(c.callback=a),a=ni(r,c,l),a!==null&&(nn(a,r,l),El(a,r,l))}};function rv(r,a,l,c,m,g,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,b):a.prototype&&a.prototype.isPureReactComponent?!pl(l,c)||!pl(m,g):!0}function iv(r,a,l,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,c),a.state!==r&&zh.enqueueReplaceState(a,a.state,null)}function ea(r,a){var l=a;if("ref"in a){l={};for(var c in a)c!=="ref"&&(l[c]=a[c])}if(r=r.defaultProps){l===a&&(l=p({},l));for(var m in r)l[m]===void 0&&(l[m]=r[m])}return l}function av(r){tu(r)}function sv(r){console.error(r)}function lv(r){tu(r)}function wu(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function ov(r,a,l){try{var c=r.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Ih(r,a,l){return l=ti(l),l.tag=3,l.payload={element:null},l.callback=function(){wu(r,a)},l}function uv(r){return r=ti(r),r.tag=3,r}function cv(r,a,l,c){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var g=c.value;r.payload=function(){return m(g)},r.callback=function(){ov(a,l,c)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(r.callback=function(){ov(a,l,c),typeof m!="function"&&(oi===null?oi=new Set([this]):oi.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function Bw(r,a,l,c,m){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=l.alternate,a!==null&&Za(a,l,m,!0),l=dn.current,l!==null){switch(l.tag){case 31:case 13:return Rn===null?Pu():l.alternate===null&<===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=m,c===fu?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([c]):a.add(c),ud(r,c,m)),!1;case 22:return l.flags|=65536,c===fu?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([c]):l.add(c)),ud(r,c,m)),!1}throw Error(i(435,l.tag))}return ud(r,c,m),Pu(),!1}if(Pe)return a=dn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,c!==rh&&(r=Error(i(422),{cause:c}),vl(wn(r,l)))):(c!==rh&&(a=Error(i(423),{cause:c}),vl(wn(a,l))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,c=wn(c,l),m=Ih(r.stateNode,c,m),mh(r,m),lt!==4&&(lt=2)),!1;var g=Error(i(520),{cause:c});if(g=wn(g,l),zl===null?zl=[g]:zl.push(g),lt!==4&&(lt=2),a===null)return!0;c=wn(c,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=m&-m,l.lanes|=r,r=Ih(l.stateNode,c,r),mh(l,r),!1;case 1:if(a=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(oi===null||!oi.has(g))))return l.flags|=65536,m&=-m,l.lanes|=m,m=uv(m),cv(m,r,l,c),mh(l,m),!1}l=l.return}while(l!==null);return!1}var Bh=Error(i(461)),pt=!1;function Nt(r,a,l,c){a.child=r===null?my(a,null,l,c):Ji(a,r.child,l,c)}function fv(r,a,l,c,m){l=l.render;var g=a.ref;if("ref"in c){var b={};for(var w in c)w!=="ref"&&(b[w]=c[w])}else b=c;return Yi(a),c=bh(r,a,l,b,g,m),w=xh(),r!==null&&!pt?(Sh(r,a,m),Er(r,a,m)):(Pe&&w&&th(a),a.flags|=1,Nt(r,a,c,m),a.child)}function hv(r,a,l,c,m){if(r===null){var g=l.type;return typeof g=="function"&&!Jf(g)&&g.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=g,dv(r,a,g,c,m)):(r=au(l.type,null,c,a,a.mode,m),r.ref=a.ref,r.return=a,a.child=r)}if(g=r.child,!$h(r,m)){var b=g.memoizedProps;if(l=l.compare,l=l!==null?l:pl,l(b,c)&&r.ref===a.ref)return Er(r,a,m)}return a.flags|=1,r=yr(g,c),r.ref=a.ref,r.return=a,a.child=r}function dv(r,a,l,c,m){if(r!==null){var g=r.memoizedProps;if(pl(g,c)&&r.ref===a.ref)if(pt=!1,a.pendingProps=c=g,$h(r,m))(r.flags&131072)!==0&&(pt=!0);else return a.lanes=r.lanes,Er(r,a,m)}return Uh(r,a,l,c,m)}function mv(r,a,l,c){var m=c.children,g=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,r!==null){for(c=a.child=r.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~g}else c=0,a.child=null;return pv(r,a,g,l,c)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&uu(a,g!==null?g.cachePool:null),g!==null?yy(a,g):gh(),vy(a);else return c=a.lanes=536870912,pv(r,a,g!==null?g.baseLanes|l:l,l,c)}else g!==null?(uu(a,g.cachePool),yy(a,g),ii(),a.memoizedState=null):(r!==null&&uu(a,null),gh(),ii());return Nt(r,a,m,l),a.child}function Ol(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function pv(r,a,l,c,m){var g=ch();return g=g===null?null:{parent:dt._currentValue,pool:g},a.memoizedState={baseLanes:l,cachePool:g},r!==null&&uu(a,null),gh(),vy(a),r!==null&&Za(r,a,c,!0),a.childLanes=m,null}function Tu(r,a){return a=ku({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function gv(r,a,l){return Ji(a,r.child,null,l),r=Tu(a,a.pendingProps),r.flags|=2,mn(a),a.memoizedState=null,r}function Uw(r,a,l){var c=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Pe){if(c.mode==="hidden")return r=Tu(a,c),a.lanes=536870912,Ol(null,r);if(vh(a),(r=rt)?(r=R_(r,kn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Xr!==null?{id:Jn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},l=Wg(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw Jr(a);return a.lanes=536870912,null}return Tu(a,c)}var g=r.memoizedState;if(g!==null){var b=g.dehydrated;if(vh(a),m)if(a.flags&256)a.flags&=-257,a=gv(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(pt||Za(r,a,l,!1),m=(l&r.childLanes)!==0,pt||m){if(c=et,c!==null&&(b=sg(c,l),b!==0&&b!==g.retryLane))throw g.retryLane=b,Gi(r,b),nn(c,r,b),Bh;Pu(),a=gv(r,a,l)}else r=g.treeContext,rt=An(b.nextSibling),Ot=a,Pe=!0,Zr=null,kn=!1,r!==null&&ny(a,r),a=Tu(a,c),a.flags|=4096;return a}return r=yr(r.child,{mode:c.mode,children:c.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Cu(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function Uh(r,a,l,c,m){return Yi(a),l=bh(r,a,l,c,void 0,m),c=xh(),r!==null&&!pt?(Sh(r,a,m),Er(r,a,m)):(Pe&&c&&th(a),a.flags|=1,Nt(r,a,l,m),a.child)}function yv(r,a,l,c,m,g){return Yi(a),a.updateQueue=null,l=by(a,c,l,m),_y(r),c=xh(),r!==null&&!pt?(Sh(r,a,g),Er(r,a,g)):(Pe&&c&&th(a),a.flags|=1,Nt(r,a,l,g),a.child)}function vv(r,a,l,c,m){if(Yi(a),a.stateNode===null){var g=$a,b=l.contextType;typeof b=="object"&&b!==null&&(g=Lt(b)),g=new l(c,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=zh,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=c,g.state=a.memoizedState,g.refs={},hh(a),b=l.contextType,g.context=typeof b=="object"&&b!==null?Lt(b):$a,g.state=a.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Ph(a,l,b,c),g.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(b=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),b!==g.state&&zh.enqueueReplaceState(g,g.state,null),Tl(a,c,g,m),wl(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){g=a.stateNode;var w=a.memoizedProps,j=ea(l,w);g.props=j;var F=g.context,K=l.contextType;b=$a,typeof K=="object"&&K!==null&&(b=Lt(K));var ee=l.getDerivedStateFromProps;K=typeof ee=="function"||typeof g.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,K||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w||F!==b)&&iv(a,g,c,b),ei=!1;var Q=a.memoizedState;g.state=Q,Tl(a,c,g,m),wl(),F=a.memoizedState,w||Q!==F||ei?(typeof ee=="function"&&(Ph(a,l,ee,c),F=a.memoizedState),(j=ei||rv(a,l,j,c,Q,F,b))?(K||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=F),g.props=c,g.state=F,g.context=b,c=j):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{g=a.stateNode,dh(r,a),b=a.memoizedProps,K=ea(l,b),g.props=K,ee=a.pendingProps,Q=g.context,F=l.contextType,j=$a,typeof F=="object"&&F!==null&&(j=Lt(F)),w=l.getDerivedStateFromProps,(F=typeof w=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(b!==ee||Q!==j)&&iv(a,g,c,j),ei=!1,Q=a.memoizedState,g.state=Q,Tl(a,c,g,m),wl();var Y=a.memoizedState;b!==ee||Q!==Y||ei||r!==null&&r.dependencies!==null&&lu(r.dependencies)?(typeof w=="function"&&(Ph(a,l,w,c),Y=a.memoizedState),(K=ei||rv(a,l,K,c,Q,Y,j)||r!==null&&r.dependencies!==null&&lu(r.dependencies))?(F||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,Y,j),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,Y,j)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||b===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=Y),g.props=c,g.state=Y,g.context=j,c=K):(typeof g.componentDidUpdate!="function"||b===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),c=!1)}return g=c,Cu(r,a),c=(a.flags&128)!==0,g||c?(g=a.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,r!==null&&c?(a.child=Ji(a,r.child,null,m),a.child=Ji(a,null,l,m)):Nt(r,a,l,m),a.memoizedState=g.state,r=a.child):r=Er(r,a,m),r}function _v(r,a,l,c){return Qi(),a.flags|=256,Nt(r,a,l,c),a.child}var qh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vh(r){return{baseLanes:r,cachePool:oy()}}function Hh(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=gn),r}function bv(r,a,l){var c=a.pendingProps,m=!1,g=(a.flags&128)!==0,b;if((b=g)||(b=r!==null&&r.memoizedState===null?!1:(ct.current&2)!==0),b&&(m=!0,a.flags&=-129),b=(a.flags&32)!==0,a.flags&=-33,r===null){if(Pe){if(m?ri(a):ii(),(r=rt)?(r=R_(r,kn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Xr!==null?{id:Jn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},l=Wg(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw Jr(a);return Td(r)?a.lanes=32:a.lanes=536870912,null}var w=c.children;return c=c.fallback,m?(ii(),m=a.mode,w=ku({mode:"hidden",children:w},m),c=Fi(c,m,l,null),w.return=a,c.return=a,w.sibling=c,a.child=w,c=a.child,c.memoizedState=Vh(l),c.childLanes=Hh(r,b,l),a.memoizedState=qh,Ol(null,c)):(ri(a),Gh(a,w))}var j=r.memoizedState;if(j!==null&&(w=j.dehydrated,w!==null)){if(g)a.flags&256?(ri(a),a.flags&=-257,a=Fh(r,a,l)):a.memoizedState!==null?(ii(),a.child=r.child,a.flags|=128,a=null):(ii(),w=c.fallback,m=a.mode,c=ku({mode:"visible",children:c.children},m),w=Fi(w,m,l,null),w.flags|=2,c.return=a,w.return=a,c.sibling=w,a.child=c,Ji(a,r.child,null,l),c=a.child,c.memoizedState=Vh(l),c.childLanes=Hh(r,b,l),a.memoizedState=qh,a=Ol(null,c));else if(ri(a),Td(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var F=b.dgst;b=F,c=Error(i(419)),c.stack="",c.digest=b,vl({value:c,source:null,stack:null}),a=Fh(r,a,l)}else if(pt||Za(r,a,l,!1),b=(l&r.childLanes)!==0,pt||b){if(b=et,b!==null&&(c=sg(b,l),c!==0&&c!==j.retryLane))throw j.retryLane=c,Gi(r,c),nn(b,r,c),Bh;wd(w)||Pu(),a=Fh(r,a,l)}else wd(w)?(a.flags|=192,a.child=r.child,a=null):(r=j.treeContext,rt=An(w.nextSibling),Ot=a,Pe=!0,Zr=null,kn=!1,r!==null&&ny(a,r),a=Gh(a,c.children),a.flags|=4096);return a}return m?(ii(),w=c.fallback,m=a.mode,j=r.child,F=j.sibling,c=yr(j,{mode:"hidden",children:c.children}),c.subtreeFlags=j.subtreeFlags&65011712,F!==null?w=yr(F,w):(w=Fi(w,m,l,null),w.flags|=2),w.return=a,c.return=a,c.sibling=w,a.child=c,Ol(null,c),c=a.child,w=r.child.memoizedState,w===null?w=Vh(l):(m=w.cachePool,m!==null?(j=dt._currentValue,m=m.parent!==j?{parent:j,pool:j}:m):m=oy(),w={baseLanes:w.baseLanes|l,cachePool:m}),c.memoizedState=w,c.childLanes=Hh(r,b,l),a.memoizedState=qh,Ol(r.child,c)):(ri(a),l=r.child,r=l.sibling,l=yr(l,{mode:"visible",children:c.children}),l.return=a,l.sibling=null,r!==null&&(b=a.deletions,b===null?(a.deletions=[r],a.flags|=16):b.push(r)),a.child=l,a.memoizedState=null,l)}function Gh(r,a){return a=ku({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function ku(r,a){return r=hn(22,r,null,a),r.lanes=0,r}function Fh(r,a,l){return Ji(a,r.child,null,l),r=Gh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function xv(r,a,l){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),sh(r.return,a,l)}function Qh(r,a,l,c,m,g){var b=r.memoizedState;b===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:m,treeForkCount:g}:(b.isBackwards=a,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=l,b.tailMode=m,b.treeForkCount=g)}function Sv(r,a,l){var c=a.pendingProps,m=c.revealOrder,g=c.tail;c=c.children;var b=ct.current,w=(b&2)!==0;if(w?(b=b&1|2,a.flags|=128):b&=1,A(ct,b),Nt(r,a,c,l),c=Pe?yl:0,!w&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&xv(r,l,a);else if(r.tag===19)xv(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(l=a.child,m=null;l!==null;)r=l.alternate,r!==null&&pu(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=a.child,a.child=null):(m=l.sibling,l.sibling=null),Qh(a,!1,m,l,g,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=a.child,a.child=null;m!==null;){if(r=m.alternate,r!==null&&pu(r)===null){a.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}Qh(a,!0,l,null,g,c);break;case"together":Qh(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Er(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),li|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(Za(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=yr(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=yr(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function $h(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&lu(r)))}function qw(r,a,l){switch(a.tag){case 3:$e(a,a.stateNode.containerInfo),Wr(a,dt,r.memoizedState.cache),Qi();break;case 27:case 5:jt(a);break;case 4:$e(a,a.stateNode.containerInfo);break;case 10:Wr(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,vh(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(ri(a),a.flags|=128,null):(l&a.child.childLanes)!==0?bv(r,a,l):(ri(a),r=Er(r,a,l),r!==null?r.sibling:null);ri(a);break;case 19:var m=(r.flags&128)!==0;if(c=(l&a.childLanes)!==0,c||(Za(r,a,l,!1),c=(l&a.childLanes)!==0),m){if(c)return Sv(r,a,l);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),A(ct,ct.current),c)break;return null;case 22:return a.lanes=0,mv(r,a,l,a.pendingProps);case 24:Wr(a,dt,r.memoizedState.cache)}return Er(r,a,l)}function Ev(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)pt=!0;else{if(!$h(r,l)&&(a.flags&128)===0)return pt=!1,qw(r,a,l);pt=(r.flags&131072)!==0}else pt=!1,Pe&&(a.flags&1048576)!==0&&ty(a,yl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(r=Xi(a.elementType),a.type=r,typeof r=="function")Jf(r)?(c=ea(r,c),a.tag=1,a=vv(null,a,r,c,l)):(a.tag=0,a=Uh(null,a,r,c,l));else{if(r!=null){var m=r.$$typeof;if(m===P){a.tag=11,a=fv(null,a,r,c,l);break e}else if(m===B){a.tag=14,a=hv(null,a,r,c,l);break e}}throw a=le(r)||r,Error(i(306,a,""))}}return a;case 0:return Uh(r,a,a.type,a.pendingProps,l);case 1:return c=a.type,m=ea(c,a.pendingProps),vv(r,a,c,m,l);case 3:e:{if($e(a,a.stateNode.containerInfo),r===null)throw Error(i(387));c=a.pendingProps;var g=a.memoizedState;m=g.element,dh(r,a),Tl(a,c,null,l);var b=a.memoizedState;if(c=b.cache,Wr(a,dt,c),c!==g.cache&&lh(a,[dt],l,!0),wl(),c=b.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:b.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=_v(r,a,c,l);break e}else if(c!==m){m=wn(Error(i(424)),a),vl(m),a=_v(r,a,c,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(rt=An(r.firstChild),Ot=a,Pe=!0,Zr=null,kn=!0,l=my(a,null,c,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Qi(),c===m){a=Er(r,a,l);break e}Nt(r,a,c,l)}a=a.child}return a;case 26:return Cu(r,a),r===null?(l=j_(a.type,null,a.pendingProps,null))?a.memoizedState=l:Pe||(l=a.type,r=a.pendingProps,c=Hu(he.current).createElement(l),c[At]=a,c[Xt]=r,Dt(c,l,r),Tt(c),a.stateNode=c):a.memoizedState=j_(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return jt(a),r===null&&Pe&&(c=a.stateNode=L_(a.type,a.pendingProps,he.current),Ot=a,kn=!0,m=rt,hi(a.type)?(Cd=m,rt=An(c.firstChild)):rt=m),Nt(r,a,a.pendingProps.children,l),Cu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Pe&&((m=c=rt)&&(c=yT(c,a.type,a.pendingProps,kn),c!==null?(a.stateNode=c,Ot=a,rt=An(c.firstChild),kn=!1,m=!0):m=!1),m||Jr(a)),jt(a),m=a.type,g=a.pendingProps,b=r!==null?r.memoizedProps:null,c=g.children,xd(m,g)?c=null:b!==null&&xd(m,b)&&(a.flags|=32),a.memoizedState!==null&&(m=bh(r,a,Nw,null,null,l),Fl._currentValue=m),Cu(r,a),Nt(r,a,c,l),a.child;case 6:return r===null&&Pe&&((r=l=rt)&&(l=vT(l,a.pendingProps,kn),l!==null?(a.stateNode=l,Ot=a,rt=null,r=!0):r=!1),r||Jr(a)),null;case 13:return bv(r,a,l);case 4:return $e(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=Ji(a,null,c,l):Nt(r,a,c,l),a.child;case 11:return fv(r,a,a.type,a.pendingProps,l);case 7:return Nt(r,a,a.pendingProps,l),a.child;case 8:return Nt(r,a,a.pendingProps.children,l),a.child;case 12:return Nt(r,a,a.pendingProps.children,l),a.child;case 10:return c=a.pendingProps,Wr(a,a.type,c.value),Nt(r,a,c.children,l),a.child;case 9:return m=a.type._context,c=a.pendingProps.children,Yi(a),m=Lt(m),c=c(m),a.flags|=1,Nt(r,a,c,l),a.child;case 14:return hv(r,a,a.type,a.pendingProps,l);case 15:return dv(r,a,a.type,a.pendingProps,l);case 19:return Sv(r,a,l);case 31:return Uw(r,a,l);case 22:return mv(r,a,l,a.pendingProps);case 24:return Yi(a),c=Lt(dt),r===null?(m=ch(),m===null&&(m=et,g=oh(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=l),m=g),a.memoizedState={parent:c,cache:m},hh(a),Wr(a,dt,m)):((r.lanes&l)!==0&&(dh(r,a),Tl(a,null,null,l),wl()),m=r.memoizedState,g=a.memoizedState,m.parent!==c?(m={parent:c,cache:c},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Wr(a,dt,c)):(c=g.cache,Wr(a,dt,c),c!==m.cache&&lh(a,[dt],l,!0))),Nt(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function wr(r){r.flags|=4}function Yh(r,a,l,c,m){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(Xv())r.flags|=8192;else throw Zi=fu,fh}else r.flags&=-16777217}function wv(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!B_(a))if(Xv())r.flags|=8192;else throw Zi=fu,fh}function Ru(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?rg():536870912,r.lanes|=a,us|=a)}function Ll(r,a){if(!Pe)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function it(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(a)for(var m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=c,r.childLanes=l,a}function Vw(r,a,l){var c=a.pendingProps;switch(nh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(a),null;case 1:return it(a),null;case 3:return l=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),br(dt),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Xa(a)?wr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ih())),it(a),null;case 26:var m=a.type,g=a.memoizedState;return r===null?(wr(a),g!==null?(it(a),wv(a,g)):(it(a),Yh(a,m,null,c,l))):g?g!==r.memoizedState?(wr(a),it(a),wv(a,g)):(it(a),a.flags&=-16777217):(r=r.memoizedProps,r!==c&&wr(a),it(a),Yh(a,m,r,c,l)),null;case 27:if(on(a),l=he.current,m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&wr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}r=ue.current,Xa(a)?ry(a):(r=L_(m,c,l),a.stateNode=r,wr(a))}return it(a),null;case 5:if(on(a),m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&wr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}if(g=ue.current,Xa(a))ry(a);else{var b=Hu(he.current);switch(g){case 1:g=b.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=b.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=b.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?b.createElement("select",{is:c.is}):b.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?b.createElement(m,{is:c.is}):b.createElement(m)}}g[At]=a,g[Xt]=c;e:for(b=a.child;b!==null;){if(b.tag===5||b.tag===6)g.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===a)break e;for(;b.sibling===null;){if(b.return===null||b.return===a)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}a.stateNode=g;e:switch(Dt(g,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&wr(a)}}return it(a),Yh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&wr(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=he.current,Xa(a)){if(r=a.stateNode,l=a.memoizedProps,c=null,m=Ot,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}r[At]=a,r=!!(r.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||b_(r.nodeValue,l)),r||Jr(a,!0)}else r=Hu(r).createTextNode(c),r[At]=a,a.stateNode=r}return it(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(c=Xa(a),l!==null){if(r===null){if(!c)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[At]=a}else Qi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),r=!1}else l=ih(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(mn(a),a):(mn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return it(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Xa(a),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[At]=a}else Qi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),m=!1}else m=ih(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(mn(a),a):(mn(a),null)}return mn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=c!==null,r=r!==null&&r.memoizedState!==null,l&&(c=a.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==m&&(c.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),Ru(a,a.updateQueue),it(a),null);case 4:return Me(),r===null&&gd(a.stateNode.containerInfo),it(a),null;case 10:return br(a.type),it(a),null;case 19:if(X(ct),c=a.memoizedState,c===null)return it(a),null;if(m=(a.flags&128)!==0,g=c.rendering,g===null)if(m)Ll(c,!1);else{if(lt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(g=pu(r),g!==null){for(a.flags|=128,Ll(c,!1),r=g.updateQueue,a.updateQueue=r,Ru(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)Jg(l,r),l=l.sibling;return A(ct,ct.current&1|2),Pe&&vr(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&Be()>Du&&(a.flags|=128,m=!0,Ll(c,!1),a.lanes=4194304)}else{if(!m)if(r=pu(g),r!==null){if(a.flags|=128,m=!0,r=r.updateQueue,a.updateQueue=r,Ru(a,r),Ll(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Pe)return it(a),null}else 2*Be()-c.renderingStartTime>Du&&l!==536870912&&(a.flags|=128,m=!0,Ll(c,!1),a.lanes=4194304);c.isBackwards?(g.sibling=a.child,a.child=g):(r=c.last,r!==null?r.sibling=g:a.child=g,c.last=g)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Be(),r.sibling=null,l=ct.current,A(ct,m?l&1|2:l&1),Pe&&vr(a,c.treeForkCount),r):(it(a),null);case 22:case 23:return mn(a),yh(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(l&536870912)!==0&&(a.flags&128)===0&&(it(a),a.subtreeFlags&6&&(a.flags|=8192)):it(a),l=a.updateQueue,l!==null&&Ru(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048),r!==null&&X(Ki),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),br(dt),it(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function Hw(r,a){switch(nh(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return br(dt),Me(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return on(a),null;case 31:if(a.memoizedState!==null){if(mn(a),a.alternate===null)throw Error(i(340));Qi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(mn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Qi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return X(ct),null;case 4:return Me(),null;case 10:return br(a.type),null;case 22:case 23:return mn(a),yh(),r!==null&&X(Ki),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return br(dt),null;case 25:return null;default:return null}}function Tv(r,a){switch(nh(a),a.tag){case 3:br(dt),Me();break;case 26:case 27:case 5:on(a);break;case 4:Me();break;case 31:a.memoizedState!==null&&mn(a);break;case 13:mn(a);break;case 19:X(ct);break;case 10:br(a.type);break;case 22:case 23:mn(a),yh(),r!==null&&X(Ki);break;case 24:br(dt)}}function Nl(r,a){try{var l=a.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var m=c.next;l=m;do{if((l.tag&r)===r){c=void 0;var g=l.create,b=l.inst;c=g(),b.destroy=c}l=l.next}while(l!==m)}}catch(w){Ke(a,a.return,w)}}function ai(r,a,l){try{var c=a.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var g=m.next;c=g;do{if((c.tag&r)===r){var b=c.inst,w=b.destroy;if(w!==void 0){b.destroy=void 0,m=a;var j=l,F=w;try{F()}catch(K){Ke(m,j,K)}}}c=c.next}while(c!==g)}}catch(K){Ke(a,a.return,K)}}function Cv(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{gy(a,l)}catch(c){Ke(r,r.return,c)}}}function kv(r,a,l){l.props=ea(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(c){Ke(r,a,c)}}function Dl(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof l=="function"?r.refCleanup=l(c):l.current=c}}catch(m){Ke(r,a,m)}}function er(r,a){var l=r.ref,c=r.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(m){Ke(r,a,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){Ke(r,a,m)}else l.current=null}function Rv(r){var a=r.type,l=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(m){Ke(r,r.return,m)}}function Kh(r,a,l){try{var c=r.stateNode;fT(c,r.type,l,a),c[Xt]=a}catch(m){Ke(r,r.return,m)}}function Av(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&hi(r.type)||r.tag===4}function Xh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Av(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&hi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Zh(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=pr));else if(c!==4&&(c===27&&hi(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(Zh(r,a,l),r=r.sibling;r!==null;)Zh(r,a,l),r=r.sibling}function Au(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(c!==4&&(c===27&&hi(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Au(r,a,l),r=r.sibling;r!==null;)Au(r,a,l),r=r.sibling}function Ov(r){var a=r.stateNode,l=r.memoizedProps;try{for(var c=r.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);Dt(a,c,l),a[At]=r,a[Xt]=l}catch(g){Ke(r,r.return,g)}}var Tr=!1,gt=!1,Jh=!1,Lv=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function Gw(r,a){if(r=r.containerInfo,_d=Xu,r=Hg(r),Ff(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var m=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var b=0,w=-1,j=-1,F=0,K=0,ee=r,Q=null;t:for(;;){for(var Y;ee!==l||m!==0&&ee.nodeType!==3||(w=b+m),ee!==g||c!==0&&ee.nodeType!==3||(j=b+c),ee.nodeType===3&&(b+=ee.nodeValue.length),(Y=ee.firstChild)!==null;)Q=ee,ee=Y;for(;;){if(ee===r)break t;if(Q===l&&++F===m&&(w=b),Q===g&&++K===c&&(j=b),(Y=ee.nextSibling)!==null)break;ee=Q,Q=ee.parentNode}ee=Y}l=w===-1||j===-1?null:{start:w,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(bd={focusedElem:r,selectionRange:l},Xu=!1,Ct=a;Ct!==null;)if(a=Ct,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Ct=r;else for(;Ct!==null;){switch(a=Ct,g=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)m=r[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,l=a,m=g.memoizedProps,g=g.memoizedState,c=l.stateNode;try{var de=ea(l.type,m);r=c.getSnapshotBeforeUpdate(de,g),c.__reactInternalSnapshotBeforeUpdate=r}catch(be){Ke(l,l.return,be)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)Ed(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Ed(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Ct=r;break}Ct=a.return}}function Nv(r,a,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:kr(r,l),c&4&&Nl(5,l);break;case 1:if(kr(r,l),c&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(b){Ke(l,l.return,b)}else{var m=ea(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(m,a,r.__reactInternalSnapshotBeforeUpdate)}catch(b){Ke(l,l.return,b)}}c&64&&Cv(l),c&512&&Dl(l,l.return);break;case 3:if(kr(r,l),c&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{gy(r,a)}catch(b){Ke(l,l.return,b)}}break;case 27:a===null&&c&4&&Ov(l);case 26:case 5:kr(r,l),a===null&&c&4&&Rv(l),c&512&&Dl(l,l.return);break;case 12:kr(r,l);break;case 31:kr(r,l),c&4&&Mv(r,l);break;case 13:kr(r,l),c&4&&Pv(r,l),c&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=Ww.bind(null,l),_T(r,l))));break;case 22:if(c=l.memoizedState!==null||Tr,!c){a=a!==null&&a.memoizedState!==null||gt,m=Tr;var g=gt;Tr=c,(gt=a)&&!g?Rr(r,l,(l.subtreeFlags&8772)!==0):kr(r,l),Tr=m,gt=g}break;case 30:break;default:kr(r,l)}}function Dv(r){var a=r.alternate;a!==null&&(r.alternate=null,Dv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Rf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var at=null,Jt=!1;function Cr(r,a,l){for(l=l.child;l!==null;)jv(r,a,l),l=l.sibling}function jv(r,a,l){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(qt,l)}catch{}switch(l.tag){case 26:gt||er(l,a),Cr(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:gt||er(l,a);var c=at,m=Jt;hi(l.type)&&(at=l.stateNode,Jt=!1),Cr(r,a,l),Vl(l.stateNode),at=c,Jt=m;break;case 5:gt||er(l,a);case 6:if(c=at,m=Jt,at=null,Cr(r,a,l),at=c,Jt=m,at!==null)if(Jt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(l.stateNode)}catch(g){Ke(l,a,g)}else try{at.removeChild(l.stateNode)}catch(g){Ke(l,a,g)}break;case 18:at!==null&&(Jt?(r=at,C_(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),ys(r)):C_(at,l.stateNode));break;case 4:c=at,m=Jt,at=l.stateNode.containerInfo,Jt=!0,Cr(r,a,l),at=c,Jt=m;break;case 0:case 11:case 14:case 15:ai(2,l,a),gt||ai(4,l,a),Cr(r,a,l);break;case 1:gt||(er(l,a),c=l.stateNode,typeof c.componentWillUnmount=="function"&&kv(l,a,c)),Cr(r,a,l);break;case 21:Cr(r,a,l);break;case 22:gt=(c=gt)||l.memoizedState!==null,Cr(r,a,l),gt=c;break;default:Cr(r,a,l)}}function Mv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{ys(r)}catch(l){Ke(a,a.return,l)}}}function Pv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{ys(r)}catch(l){Ke(a,a.return,l)}}function Fw(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new Lv),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new Lv),a;default:throw Error(i(435,r.tag))}}function Ou(r,a){var l=Fw(r);a.forEach(function(c){if(!l.has(c)){l.add(c);var m=eT.bind(null,r,c);c.then(m,m)}})}function Wt(r,a){var l=a.deletions;if(l!==null)for(var c=0;c<l.length;c++){var m=l[c],g=r,b=a,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(hi(w.type)){at=w.stateNode,Jt=!1;break e}break;case 5:at=w.stateNode,Jt=!1;break e;case 3:case 4:at=w.stateNode.containerInfo,Jt=!0;break e}w=w.return}if(at===null)throw Error(i(160));jv(g,b,m),at=null,Jt=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)zv(a,r),a=a.sibling}var Fn=null;function zv(r,a){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wt(a,r),en(r),c&4&&(ai(3,r,r.return),Nl(3,r),ai(5,r,r.return));break;case 1:Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),c&64&&Tr&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var m=Fn;if(Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),c&4){var g=l!==null?l.memoizedState:null;if(c=r.memoizedState,l===null)if(c===null)if(r.stateNode===null){e:{c=r.type,l=r.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":g=m.getElementsByTagName("title")[0],(!g||g[sl]||g[At]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(c),m.head.insertBefore(g,m.querySelector("head > title"))),Dt(g,c,l),g[At]=r,Tt(g),c=g;break e;case"link":var b=z_("link","href",m).get(c+(l.href||""));if(b){for(var w=0;w<b.length;w++)if(g=b[w],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(w,1);break t}}g=m.createElement(c),Dt(g,c,l),m.head.appendChild(g);break;case"meta":if(b=z_("meta","content",m).get(c+(l.content||""))){for(w=0;w<b.length;w++)if(g=b[w],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(w,1);break t}}g=m.createElement(c),Dt(g,c,l),m.head.appendChild(g);break;default:throw Error(i(468,c))}g[At]=r,Tt(g),c=g}r.stateNode=c}else I_(m,r.type,r.stateNode);else r.stateNode=P_(m,c,r.memoizedProps);else g!==c?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,c===null?I_(m,r.type,r.stateNode):P_(m,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Kh(r,r.memoizedProps,l.memoizedProps)}break;case 27:Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),l!==null&&c&4&&Kh(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Wt(a,r),en(r),c&512&&(gt||l===null||er(l,l.return)),r.flags&32){m=r.stateNode;try{Ua(m,"")}catch(de){Ke(r,r.return,de)}}c&4&&r.stateNode!=null&&(m=r.memoizedProps,Kh(r,m,l!==null?l.memoizedProps:m)),c&1024&&(Jh=!0);break;case 6:if(Wt(a,r),en(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,l=r.stateNode;try{l.nodeValue=c}catch(de){Ke(r,r.return,de)}}break;case 3:if(Qu=null,m=Fn,Fn=Gu(a.containerInfo),Wt(a,r),Fn=m,en(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{ys(a.containerInfo)}catch(de){Ke(r,r.return,de)}Jh&&(Jh=!1,Iv(r));break;case 4:c=Fn,Fn=Gu(r.stateNode.containerInfo),Wt(a,r),en(r),Fn=c;break;case 12:Wt(a,r),en(r);break;case 31:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Ou(r,c)));break;case 13:Wt(a,r),en(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Nu=Be()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Ou(r,c)));break;case 22:m=r.memoizedState!==null;var j=l!==null&&l.memoizedState!==null,F=Tr,K=gt;if(Tr=F||m,gt=K||j,Wt(a,r),gt=K,Tr=F,en(r),c&8192)e:for(a=r.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(l===null||j||Tr||gt||ta(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){j=l=a;try{if(g=j.stateNode,m)b=g.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=j.stateNode;var ee=j.memoizedProps.style,Q=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;w.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(de){Ke(j,j.return,de)}}}else if(a.tag===6){if(l===null){j=a;try{j.stateNode.nodeValue=m?"":j.memoizedProps}catch(de){Ke(j,j.return,de)}}}else if(a.tag===18){if(l===null){j=a;try{var Y=j.stateNode;m?k_(Y,!0):k_(j.stateNode,!1)}catch(de){Ke(j,j.return,de)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,Ou(r,l))));break;case 19:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Ou(r,c)));break;case 30:break;case 21:break;default:Wt(a,r),en(r)}}function en(r){var a=r.flags;if(a&2){try{for(var l,c=r.return;c!==null;){if(Av(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,g=Xh(r);Au(r,g,m);break;case 5:var b=l.stateNode;l.flags&32&&(Ua(b,""),l.flags&=-33);var w=Xh(r);Au(r,w,b);break;case 3:case 4:var j=l.stateNode.containerInfo,F=Xh(r);Zh(r,F,j);break;default:throw Error(i(161))}}catch(K){Ke(r,r.return,K)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Iv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Iv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function kr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Nv(r,a.alternate,a),a=a.sibling}function ta(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:ai(4,a,a.return),ta(a);break;case 1:er(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&kv(a,a.return,l),ta(a);break;case 27:Vl(a.stateNode);case 26:case 5:er(a,a.return),ta(a);break;case 22:a.memoizedState===null&&ta(a);break;case 30:ta(a);break;default:ta(a)}r=r.sibling}}function Rr(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,m=r,g=a,b=g.flags;switch(g.tag){case 0:case 11:case 15:Rr(m,g,l),Nl(4,g);break;case 1:if(Rr(m,g,l),c=g,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(F){Ke(c,c.return,F)}if(c=g,m=c.updateQueue,m!==null){var w=c.stateNode;try{var j=m.shared.hiddenCallbacks;if(j!==null)for(m.shared.hiddenCallbacks=null,m=0;m<j.length;m++)py(j[m],w)}catch(F){Ke(c,c.return,F)}}l&&b&64&&Cv(g),Dl(g,g.return);break;case 27:Ov(g);case 26:case 5:Rr(m,g,l),l&&c===null&&b&4&&Rv(g),Dl(g,g.return);break;case 12:Rr(m,g,l);break;case 31:Rr(m,g,l),l&&b&4&&Mv(m,g);break;case 13:Rr(m,g,l),l&&b&4&&Pv(m,g);break;case 22:g.memoizedState===null&&Rr(m,g,l),Dl(g,g.return);break;case 30:break;default:Rr(m,g,l)}a=a.sibling}}function Wh(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&_l(l))}function ed(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&_l(r))}function Qn(r,a,l,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Bv(r,a,l,c),a=a.sibling}function Bv(r,a,l,c){var m=a.flags;switch(a.tag){case 0:case 11:case 15:Qn(r,a,l,c),m&2048&&Nl(9,a);break;case 1:Qn(r,a,l,c);break;case 3:Qn(r,a,l,c),m&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&_l(r)));break;case 12:if(m&2048){Qn(r,a,l,c),r=a.stateNode;try{var g=a.memoizedProps,b=g.id,w=g.onPostCommit;typeof w=="function"&&w(b,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(j){Ke(a,a.return,j)}}else Qn(r,a,l,c);break;case 31:Qn(r,a,l,c);break;case 13:Qn(r,a,l,c);break;case 23:break;case 22:g=a.stateNode,b=a.alternate,a.memoizedState!==null?g._visibility&2?Qn(r,a,l,c):jl(r,a):g._visibility&2?Qn(r,a,l,c):(g._visibility|=2,ss(r,a,l,c,(a.subtreeFlags&10256)!==0||!1)),m&2048&&Wh(b,a);break;case 24:Qn(r,a,l,c),m&2048&&ed(a.alternate,a);break;default:Qn(r,a,l,c)}}function ss(r,a,l,c,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var g=r,b=a,w=l,j=c,F=b.flags;switch(b.tag){case 0:case 11:case 15:ss(g,b,w,j,m),Nl(8,b);break;case 23:break;case 22:var K=b.stateNode;b.memoizedState!==null?K._visibility&2?ss(g,b,w,j,m):jl(g,b):(K._visibility|=2,ss(g,b,w,j,m)),m&&F&2048&&Wh(b.alternate,b);break;case 24:ss(g,b,w,j,m),m&&F&2048&&ed(b.alternate,b);break;default:ss(g,b,w,j,m)}a=a.sibling}}function jl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,c=a,m=c.flags;switch(c.tag){case 22:jl(l,c),m&2048&&Wh(c.alternate,c);break;case 24:jl(l,c),m&2048&&ed(c.alternate,c);break;default:jl(l,c)}a=a.sibling}}var Ml=8192;function ls(r,a,l){if(r.subtreeFlags&Ml)for(r=r.child;r!==null;)Uv(r,a,l),r=r.sibling}function Uv(r,a,l){switch(r.tag){case 26:ls(r,a,l),r.flags&Ml&&r.memoizedState!==null&<(l,Fn,r.memoizedState,r.memoizedProps);break;case 5:ls(r,a,l);break;case 3:case 4:var c=Fn;Fn=Gu(r.stateNode.containerInfo),ls(r,a,l),Fn=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Ml,Ml=16777216,ls(r,a,l),Ml=c):ls(r,a,l));break;default:ls(r,a,l)}}function qv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Pl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Ct=c,Hv(c,r)}qv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Vv(r),r=r.sibling}function Vv(r){switch(r.tag){case 0:case 11:case 15:Pl(r),r.flags&2048&&ai(9,r,r.return);break;case 3:Pl(r);break;case 12:Pl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Lu(r)):Pl(r);break;default:Pl(r)}}function Lu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Ct=c,Hv(c,r)}qv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:ai(8,a,a.return),Lu(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Lu(a));break;default:Lu(a)}r=r.sibling}}function Hv(r,a){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:ai(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:_l(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,Ct=c;else e:for(l=r;Ct!==null;){c=Ct;var m=c.sibling,g=c.return;if(Dv(c),c===l){Ct=null;break e}if(m!==null){m.return=g,Ct=m;break e}Ct=g}}}var Qw={getCacheForType:function(r){var a=Lt(dt),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Lt(dt).controller.signal}},$w=typeof WeakMap=="function"?WeakMap:Map,He=0,et=null,Oe=null,De=0,Ye=0,pn=null,si=!1,os=!1,td=!1,Ar=0,lt=0,li=0,na=0,nd=0,gn=0,us=0,zl=null,tn=null,rd=!1,Nu=0,Gv=0,Du=1/0,ju=null,oi=null,bt=0,ui=null,cs=null,Or=0,id=0,ad=null,Fv=null,Il=0,sd=null;function yn(){return(He&2)!==0&&De!==0?De&-De:H.T!==null?hd():lg()}function Qv(){if(gn===0)if((De&536870912)===0||Pe){var r=Vo;Vo<<=1,(Vo&3932160)===0&&(Vo=262144),gn=r}else gn=536870912;return r=dn.current,r!==null&&(r.flags|=32),gn}function nn(r,a,l){(r===et&&(Ye===2||Ye===9)||r.cancelPendingCommit!==null)&&(fs(r,0),ci(r,De,gn,!1)),al(r,l),((He&2)===0||r!==et)&&(r===et&&((He&2)===0&&(na|=l),lt===4&&ci(r,De,gn,!1)),tr(r))}function $v(r,a,l){if((He&6)!==0)throw Error(i(327));var c=!l&&(a&127)===0&&(a&r.expiredLanes)===0||il(r,a),m=c?Xw(r,a):od(r,a,!0),g=c;do{if(m===0){os&&!c&&ci(r,a,0,!1);break}else{if(l=r.current.alternate,g&&!Yw(l)){m=od(r,a,!1),g=!1;continue}if(m===2){if(g=a,r.errorRecoveryDisabledLanes&g)var b=0;else b=r.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){a=b;e:{var w=r;m=zl;var j=w.current.memoizedState.isDehydrated;if(j&&(fs(w,b).flags|=256),b=od(w,b,!1),b!==2){if(td&&!j){w.errorRecoveryDisabledLanes|=g,na|=g,m=4;break e}g=tn,tn=m,g!==null&&(tn===null?tn=g:tn.push.apply(tn,g))}m=b}if(g=!1,m!==2)continue}}if(m===1){fs(r,0),ci(r,a,0,!0);break}e:{switch(c=r,g=m,g){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:ci(c,a,gn,!si);break e;case 2:tn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=Nu+300-Be(),10<m)){if(ci(c,a,gn,!si),Go(c,0,!0)!==0)break e;Or=a,c.timeoutHandle=w_(Yv.bind(null,c,l,tn,ju,rd,a,gn,na,us,si,g,"Throttled",-0,0),m);break e}Yv(c,l,tn,ju,rd,a,gn,na,us,si,g,null,-0,0)}}break}while(!0);tr(r)}function Yv(r,a,l,c,m,g,b,w,j,F,K,ee,Q,Y){if(r.timeoutHandle=-1,ee=a.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pr},Uv(a,g,ee);var de=(g&62914560)===g?Nu-Be():(g&4194048)===g?Gv-Be():0;if(de=NT(ee,de),de!==null){Or=g,r.cancelPendingCommit=de(n_.bind(null,r,a,g,l,c,m,b,w,j,K,ee,null,Q,Y)),ci(r,g,b,!F);return}}n_(r,a,g,l,c,m,b,w,j)}function Yw(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var m=l[c],g=m.getSnapshot;m=m.value;try{if(!fn(g(),m))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ci(r,a,l,c){a&=~nd,a&=~na,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var m=a;0<m;){var g=31-We(m),b=1<<g;c[g]=-1,m&=~b}l!==0&&ig(r,l,a)}function Mu(){return(He&6)===0?(Bl(0),!1):!0}function ld(){if(Oe!==null){if(Ye===0)var r=Oe.return;else r=Oe,_r=$i=null,Eh(r),ts=null,xl=0,r=Oe;for(;r!==null;)Tv(r.alternate,r),r=r.return;Oe=null}}function fs(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,mT(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Or=0,ld(),et=r,Oe=l=yr(r.current,null),De=a,Ye=0,pn=null,si=!1,os=il(r,a),td=!1,us=gn=nd=na=li=lt=0,tn=zl=null,rd=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var m=31-We(c),g=1<<m;a|=r[m],c&=~g}return Ar=a,nu(),l}function Kv(r,a){Te=null,H.H=Al,a===es||a===cu?(a=fy(),Ye=3):a===fh?(a=fy(),Ye=4):Ye=a===Bh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,pn=a,Oe===null&&(lt=1,wu(r,wn(a,r.current)))}function Xv(){var r=dn.current;return r===null?!0:(De&4194048)===De?Rn===null:(De&62914560)===De||(De&536870912)!==0?r===Rn:!1}function Zv(){var r=H.H;return H.H=Al,r===null?Al:r}function Jv(){var r=H.A;return H.A=Qw,r}function Pu(){lt=4,si||(De&4194048)!==De&&dn.current!==null||(os=!0),(li&134217727)===0&&(na&134217727)===0||et===null||ci(et,De,gn,!1)}function od(r,a,l){var c=He;He|=2;var m=Zv(),g=Jv();(et!==r||De!==a)&&(ju=null,fs(r,a)),a=!1;var b=lt;e:do try{if(Ye!==0&&Oe!==null){var w=Oe,j=pn;switch(Ye){case 8:ld(),b=6;break e;case 3:case 2:case 9:case 6:dn.current===null&&(a=!0);var F=Ye;if(Ye=0,pn=null,hs(r,w,j,F),l&&os){b=0;break e}break;default:F=Ye,Ye=0,pn=null,hs(r,w,j,F)}}Kw(),b=lt;break}catch(K){Kv(r,K)}while(!0);return a&&r.shellSuspendCounter++,_r=$i=null,He=c,H.H=m,H.A=g,Oe===null&&(et=null,De=0,nu()),b}function Kw(){for(;Oe!==null;)Wv(Oe)}function Xw(r,a){var l=He;He|=2;var c=Zv(),m=Jv();et!==r||De!==a?(ju=null,Du=Be()+500,fs(r,a)):os=il(r,a);e:do try{if(Ye!==0&&Oe!==null){a=Oe;var g=pn;t:switch(Ye){case 1:Ye=0,pn=null,hs(r,a,g,1);break;case 2:case 9:if(uy(g)){Ye=0,pn=null,e_(a);break}a=function(){Ye!==2&&Ye!==9||et!==r||(Ye=7),tr(r)},g.then(a,a);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:uy(g)?(Ye=0,pn=null,e_(a)):(Ye=0,pn=null,hs(r,a,g,7));break;case 5:var b=null;switch(Oe.tag){case 26:b=Oe.memoizedState;case 5:case 27:var w=Oe;if(b?B_(b):w.stateNode.complete){Ye=0,pn=null;var j=w.sibling;if(j!==null)Oe=j;else{var F=w.return;F!==null?(Oe=F,zu(F)):Oe=null}break t}}Ye=0,pn=null,hs(r,a,g,5);break;case 6:Ye=0,pn=null,hs(r,a,g,6);break;case 8:ld(),lt=6;break e;default:throw Error(i(462))}}Zw();break}catch(K){Kv(r,K)}while(!0);return _r=$i=null,H.H=c,H.A=m,He=l,Oe!==null?0:(et=null,De=0,nu(),lt)}function Zw(){for(;Oe!==null&&!Da();)Wv(Oe)}function Wv(r){var a=Ev(r.alternate,r,Ar);r.memoizedProps=r.pendingProps,a===null?zu(r):Oe=a}function e_(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=yv(l,a,a.pendingProps,a.type,void 0,De);break;case 11:a=yv(l,a,a.pendingProps,a.type.render,a.ref,De);break;case 5:Eh(a);default:Tv(l,a),a=Oe=Jg(a,Ar),a=Ev(l,a,Ar)}r.memoizedProps=r.pendingProps,a===null?zu(r):Oe=a}function hs(r,a,l,c){_r=$i=null,Eh(a),ts=null,xl=0;var m=a.return;try{if(Bw(r,m,a,l,De)){lt=1,wu(r,wn(l,r.current)),Oe=null;return}}catch(g){if(m!==null)throw Oe=m,g;lt=1,wu(r,wn(l,r.current)),Oe=null;return}a.flags&32768?(Pe||c===1?r=!0:os||(De&536870912)!==0?r=!1:(si=r=!0,(c===2||c===9||c===3||c===6)&&(c=dn.current,c!==null&&c.tag===13&&(c.flags|=16384))),t_(a,r)):zu(a)}function zu(r){var a=r;do{if((a.flags&32768)!==0){t_(a,si);return}r=a.return;var l=Vw(a.alternate,a,Ar);if(l!==null){Oe=l;return}if(a=a.sibling,a!==null){Oe=a;return}Oe=a=r}while(a!==null);lt===0&&(lt=5)}function t_(r,a){do{var l=Hw(r.alternate,r);if(l!==null){l.flags&=32767,Oe=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){Oe=r;return}Oe=r=l}while(r!==null);lt=6,Oe=null}function n_(r,a,l,c,m,g,b,w,j){r.cancelPendingCommit=null;do Iu();while(bt!==0);if((He&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(g=a.lanes|a.childLanes,g|=Xf,OE(r,l,g,b,w,j),r===et&&(Oe=et=null,De=0),cs=a,ui=r,Or=l,id=g,ad=m,Fv=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,tT(xe,function(){return l_(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=H.T,H.T=null,m=ne.p,ne.p=2,b=He,He|=4;try{Gw(r,a,l)}finally{He=b,ne.p=m,H.T=c}}bt=1,r_(),i_(),a_()}}function r_(){if(bt===1){bt=0;var r=ui,a=cs,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var c=ne.p;ne.p=2;var m=He;He|=4;try{zv(a,r);var g=bd,b=Hg(r.containerInfo),w=g.focusedElem,j=g.selectionRange;if(b!==w&&w&&w.ownerDocument&&Vg(w.ownerDocument.documentElement,w)){if(j!==null&&Ff(w)){var F=j.start,K=j.end;if(K===void 0&&(K=F),"selectionStart"in w)w.selectionStart=F,w.selectionEnd=Math.min(K,w.value.length);else{var ee=w.ownerDocument||document,Q=ee&&ee.defaultView||window;if(Q.getSelection){var Y=Q.getSelection(),de=w.textContent.length,be=Math.min(j.start,de),Je=j.end===void 0?be:Math.min(j.end,de);!Y.extend&&be>Je&&(b=Je,Je=be,be=b);var U=qg(w,be),I=qg(w,Je);if(U&&I&&(Y.rangeCount!==1||Y.anchorNode!==U.node||Y.anchorOffset!==U.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var G=ee.createRange();G.setStart(U.node,U.offset),Y.removeAllRanges(),be>Je?(Y.addRange(G),Y.extend(I.node,I.offset)):(G.setEnd(I.node,I.offset),Y.addRange(G))}}}}for(ee=[],Y=w;Y=Y.parentNode;)Y.nodeType===1&&ee.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<ee.length;w++){var J=ee[w];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Xu=!!_d,bd=_d=null}finally{He=m,ne.p=c,H.T=l}}r.current=a,bt=2}}function i_(){if(bt===2){bt=0;var r=ui,a=cs,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var c=ne.p;ne.p=2;var m=He;He|=4;try{Nv(r,a.alternate,a)}finally{He=m,ne.p=c,H.T=l}}bt=3}}function a_(){if(bt===4||bt===3){bt=0,Ue();var r=ui,a=cs,l=Or,c=Fv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?bt=5:(bt=0,cs=ui=null,s_(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(oi=null),Cf(l),a=a.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(qt,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=H.T,m=ne.p,ne.p=2,H.T=null;try{for(var g=r.onRecoverableError,b=0;b<c.length;b++){var w=c[b];g(w.value,{componentStack:w.stack})}}finally{H.T=a,ne.p=m}}(Or&3)!==0&&Iu(),tr(r),m=r.pendingLanes,(l&261930)!==0&&(m&42)!==0?r===sd?Il++:(Il=0,sd=r):Il=0,Bl(0)}}function s_(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,_l(a)))}function Iu(){return r_(),i_(),a_(),l_()}function l_(){if(bt!==5)return!1;var r=ui,a=id;id=0;var l=Cf(Or),c=H.T,m=ne.p;try{ne.p=32>l?32:l,H.T=null,l=ad,ad=null;var g=ui,b=Or;if(bt=0,cs=ui=null,Or=0,(He&6)!==0)throw Error(i(331));var w=He;if(He|=4,Vv(g.current),Bv(g,g.current,b,l),He=w,Bl(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(qt,g)}catch{}return!0}finally{ne.p=m,H.T=c,s_(r,a)}}function o_(r,a,l){a=wn(l,a),a=Ih(r.stateNode,a,2),r=ni(r,a,2),r!==null&&(al(r,2),tr(r))}function Ke(r,a,l){if(r.tag===3)o_(r,r,l);else for(;a!==null;){if(a.tag===3){o_(a,r,l);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(oi===null||!oi.has(c))){r=wn(l,r),l=uv(2),c=ni(a,l,2),c!==null&&(cv(l,c,a,r),al(c,2),tr(c));break}}a=a.return}}function ud(r,a,l){var c=r.pingCache;if(c===null){c=r.pingCache=new $w;var m=new Set;c.set(a,m)}else m=c.get(a),m===void 0&&(m=new Set,c.set(a,m));m.has(l)||(td=!0,m.add(l),r=Jw.bind(null,r,a,l),a.then(r,r))}function Jw(r,a,l){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,et===r&&(De&l)===l&&(lt===4||lt===3&&(De&62914560)===De&&300>Be()-Nu?(He&2)===0&&fs(r,0):nd|=l,us===De&&(us=0)),tr(r)}function u_(r,a){a===0&&(a=rg()),r=Gi(r,a),r!==null&&(al(r,a),tr(r))}function Ww(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),u_(r,l)}function eT(r,a){var l=0;switch(r.tag){case 31:case 13:var c=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),u_(r,l)}function tT(r,a){return Vn(r,a)}var Bu=null,ds=null,cd=!1,Uu=!1,fd=!1,fi=0;function tr(r){r!==ds&&r.next===null&&(ds===null?Bu=ds=r:ds=ds.next=r),Uu=!0,cd||(cd=!0,rT())}function Bl(r,a){if(!fd&&Uu){fd=!0;do for(var l=!1,c=Bu;c!==null;){if(r!==0){var m=c.pendingLanes;if(m===0)var g=0;else{var b=c.suspendedLanes,w=c.pingedLanes;g=(1<<31-We(42|r)+1)-1,g&=m&~(b&~w),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,d_(c,g))}else g=De,g=Go(c,c===et?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||il(c,g)||(l=!0,d_(c,g));c=c.next}while(l);fd=!1}}function nT(){c_()}function c_(){Uu=cd=!1;var r=0;fi!==0&&dT()&&(r=fi);for(var a=Be(),l=null,c=Bu;c!==null;){var m=c.next,g=f_(c,a);g===0?(c.next=null,l===null?Bu=m:l.next=m,m===null&&(ds=l)):(l=c,(r!==0||(g&3)!==0)&&(Uu=!0)),c=m}bt!==0&&bt!==5||Bl(r),fi!==0&&(fi=0)}function f_(r,a){for(var l=r.suspendedLanes,c=r.pingedLanes,m=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var b=31-We(g),w=1<<b,j=m[b];j===-1?((w&l)===0||(w&c)!==0)&&(m[b]=AE(w,a)):j<=a&&(r.expiredLanes|=w),g&=~w}if(a=et,l=De,l=Go(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,l===0||r===a&&(Ye===2||Ye===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&Qr(c),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||il(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(c!==null&&Qr(c),Cf(l)){case 2:case 8:l=oe;break;case 32:l=xe;break;case 268435456:l=Ge;break;default:l=xe}return c=h_.bind(null,r),l=Vn(l,c),r.callbackPriority=a,r.callbackNode=l,a}return c!==null&&c!==null&&Qr(c),r.callbackPriority=2,r.callbackNode=null,2}function h_(r,a){if(bt!==0&&bt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(Iu()&&r.callbackNode!==l)return null;var c=De;return c=Go(r,r===et?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:($v(r,c,a),f_(r,Be()),r.callbackNode!=null&&r.callbackNode===l?h_.bind(null,r):null)}function d_(r,a){if(Iu())return null;$v(r,a,!0)}function rT(){pT(function(){(He&6)!==0?Vn(Z,nT):c_()})}function hd(){if(fi===0){var r=Ja;r===0&&(r=qo,qo<<=1,(qo&261888)===0&&(qo=256)),fi=r}return fi}function m_(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Yo(""+r)}function p_(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function iT(r,a,l,c,m){if(a==="submit"&&l&&l.stateNode===m){var g=m_((m[Xt]||null).action),b=c.submitter;b&&(a=(a=b[Xt]||null)?m_(a.formAction):b.getAttribute("formAction"),a!==null&&(g=a,b=null));var w=new Jo("action","action",null,c,m);r.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(fi!==0){var j=b?p_(m,b):new FormData(m);Nh(l,{pending:!0,data:j,method:m.method,action:g},null,j)}}else typeof g=="function"&&(w.preventDefault(),j=b?p_(m,b):new FormData(m),Nh(l,{pending:!0,data:j,method:m.method,action:g},g,j))},currentTarget:m}]})}}for(var dd=0;dd<Kf.length;dd++){var md=Kf[dd],aT=md.toLowerCase(),sT=md[0].toUpperCase()+md.slice(1);Gn(aT,"on"+sT)}Gn(Qg,"onAnimationEnd"),Gn($g,"onAnimationIteration"),Gn(Yg,"onAnimationStart"),Gn("dblclick","onDoubleClick"),Gn("focusin","onFocus"),Gn("focusout","onBlur"),Gn(Sw,"onTransitionRun"),Gn(Ew,"onTransitionStart"),Gn(ww,"onTransitionCancel"),Gn(Kg,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),Ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ui("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ul="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(" "),lT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ul));function g_(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],m=c.event;c=c.listeners;e:{var g=void 0;if(a)for(var b=c.length-1;0<=b;b--){var w=c[b],j=w.instance,F=w.currentTarget;if(w=w.listener,j!==g&&m.isPropagationStopped())break e;g=w,m.currentTarget=F;try{g(m)}catch(K){tu(K)}m.currentTarget=null,g=j}else for(b=0;b<c.length;b++){if(w=c[b],j=w.instance,F=w.currentTarget,w=w.listener,j!==g&&m.isPropagationStopped())break e;g=w,m.currentTarget=F;try{g(m)}catch(K){tu(K)}m.currentTarget=null,g=j}}}}function Le(r,a){var l=a[kf];l===void 0&&(l=a[kf]=new Set);var c=r+"__bubble";l.has(c)||(y_(a,r,2,!1),l.add(c))}function pd(r,a,l){var c=0;a&&(c|=4),y_(l,r,c,a)}var qu="_reactListening"+Math.random().toString(36).slice(2);function gd(r){if(!r[qu]){r[qu]=!0,cg.forEach(function(l){l!=="selectionchange"&&(lT.has(l)||pd(l,!1,r),pd(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[qu]||(a[qu]=!0,pd("selectionchange",!1,a))}}function y_(r,a,l,c){switch(Q_(a)){case 2:var m=MT;break;case 8:m=PT;break;default:m=Ld}l=m.bind(null,a,l,r),m=void 0,!Pf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),c?m!==void 0?r.addEventListener(a,l,{capture:!0,passive:m}):r.addEventListener(a,l,!0):m!==void 0?r.addEventListener(a,l,{passive:m}):r.addEventListener(a,l,!1)}function yd(r,a,l,c,m){var g=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var w=c.stateNode.containerInfo;if(w===m)break;if(b===4)for(b=c.return;b!==null;){var j=b.tag;if((j===3||j===4)&&b.stateNode.containerInfo===m)return;b=b.return}for(;w!==null;){if(b=Ma(w),b===null)return;if(j=b.tag,j===5||j===6||j===26||j===27){c=g=b;continue e}w=w.parentNode}}c=c.return}Sg(function(){var F=g,K=jf(l),ee=[];e:{var Q=Xg.get(r);if(Q!==void 0){var Y=Jo,de=r;switch(r){case"keypress":if(Xo(l)===0)break e;case"keydown":case"keyup":Y=ew;break;case"focusin":de="focus",Y=Uf;break;case"focusout":de="blur",Y=Uf;break;case"beforeblur":case"afterblur":Y=Uf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Tg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=VE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=rw;break;case Qg:case $g:case Yg:Y=FE;break;case Kg:Y=aw;break;case"scroll":case"scrollend":Y=UE;break;case"wheel":Y=lw;break;case"copy":case"cut":case"paste":Y=$E;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=kg;break;case"toggle":case"beforetoggle":Y=uw}var be=(a&4)!==0,Je=!be&&(r==="scroll"||r==="scrollend"),U=be?Q!==null?Q+"Capture":null:Q;be=[];for(var I=F,G;I!==null;){var J=I;if(G=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||G===null||U===null||(J=ol(I,U),J!=null&&be.push(ql(I,J,G))),Je)break;I=I.return}0<be.length&&(Q=new Y(Q,de,null,l,K),ee.push({event:Q,listeners:be}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",Y=r==="mouseout"||r==="pointerout",Q&&l!==Df&&(de=l.relatedTarget||l.fromElement)&&(Ma(de)||de[ja]))break e;if((Y||Q)&&(Q=K.window===K?K:(Q=K.ownerDocument)?Q.defaultView||Q.parentWindow:window,Y?(de=l.relatedTarget||l.toElement,Y=F,de=de?Ma(de):null,de!==null&&(Je=o(de),be=de.tag,de!==Je||be!==5&&be!==27&&be!==6)&&(de=null)):(Y=null,de=F),Y!==de)){if(be=Tg,J="onMouseLeave",U="onMouseEnter",I="mouse",(r==="pointerout"||r==="pointerover")&&(be=kg,J="onPointerLeave",U="onPointerEnter",I="pointer"),Je=Y==null?Q:ll(Y),G=de==null?Q:ll(de),Q=new be(J,I+"leave",Y,l,K),Q.target=Je,Q.relatedTarget=G,J=null,Ma(K)===F&&(be=new be(U,I+"enter",de,l,K),be.target=G,be.relatedTarget=Je,J=be),Je=J,Y&&de)t:{for(be=oT,U=Y,I=de,G=0,J=U;J;J=be(J))G++;J=0;for(var ve=I;ve;ve=be(ve))J++;for(;0<G-J;)U=be(U),G--;for(;0<J-G;)I=be(I),J--;for(;G--;){if(U===I||I!==null&&U===I.alternate){be=U;break t}U=be(U),I=be(I)}be=null}else be=null;Y!==null&&v_(ee,Q,Y,be,!1),de!==null&&Je!==null&&v_(ee,Je,de,be,!0)}}e:{if(Q=F?ll(F):window,Y=Q.nodeName&&Q.nodeName.toLowerCase(),Y==="select"||Y==="input"&&Q.type==="file")var qe=Mg;else if(Dg(Q))if(Pg)qe=_w;else{qe=yw;var pe=gw}else Y=Q.nodeName,!Y||Y.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?F&&Nf(F.elementType)&&(qe=Mg):qe=vw;if(qe&&(qe=qe(r,F))){jg(ee,qe,l,K);break e}pe&&pe(r,Q,F),r==="focusout"&&F&&Q.type==="number"&&F.memoizedProps.value!=null&&Lf(Q,"number",Q.value)}switch(pe=F?ll(F):window,r){case"focusin":(Dg(pe)||pe.contentEditable==="true")&&(Ga=pe,Qf=F,gl=null);break;case"focusout":gl=Qf=Ga=null;break;case"mousedown":$f=!0;break;case"contextmenu":case"mouseup":case"dragend":$f=!1,Gg(ee,l,K);break;case"selectionchange":if(xw)break;case"keydown":case"keyup":Gg(ee,l,K)}var Ce;if(Vf)e:{switch(r){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Ha?Lg(r,l)&&(je="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(je="onCompositionStart");je&&(Rg&&l.locale!=="ko"&&(Ha||je!=="onCompositionStart"?je==="onCompositionEnd"&&Ha&&(Ce=Eg()):(Kr=K,zf="value"in Kr?Kr.value:Kr.textContent,Ha=!0)),pe=Vu(F,je),0<pe.length&&(je=new Cg(je,r,null,l,K),ee.push({event:je,listeners:pe}),Ce?je.data=Ce:(Ce=Ng(l),Ce!==null&&(je.data=Ce)))),(Ce=fw?hw(r,l):dw(r,l))&&(je=Vu(F,"onBeforeInput"),0<je.length&&(pe=new Cg("onBeforeInput","beforeinput",null,l,K),ee.push({event:pe,listeners:je}),pe.data=Ce)),iT(ee,r,F,l,K)}g_(ee,a)})}function ql(r,a,l){return{instance:r,listener:a,currentTarget:l}}function Vu(r,a){for(var l=a+"Capture",c=[];r!==null;){var m=r,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=ol(r,l),m!=null&&c.unshift(ql(r,m,g)),m=ol(r,a),m!=null&&c.push(ql(r,m,g))),r.tag===3)return c;r=r.return}return[]}function oT(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function v_(r,a,l,c,m){for(var g=a._reactName,b=[];l!==null&&l!==c;){var w=l,j=w.alternate,F=w.stateNode;if(w=w.tag,j!==null&&j===c)break;w!==5&&w!==26&&w!==27||F===null||(j=F,m?(F=ol(l,g),F!=null&&b.unshift(ql(l,F,j))):m||(F=ol(l,g),F!=null&&b.push(ql(l,F,j)))),l=l.return}b.length!==0&&r.push({event:a,listeners:b})}var uT=/\r\n?/g,cT=/\u0000|\uFFFD/g;function __(r){return(typeof r=="string"?r:""+r).replace(uT,`
|
|
50
|
+
`).replace(cT,"")}function b_(r,a){return a=__(a),__(r)===a}function Ze(r,a,l,c,m,g){switch(l){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Ua(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Ua(r,""+c);break;case"className":Qo(r,"class",c);break;case"tabIndex":Qo(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Qo(r,l,c);break;case"style":bg(r,c,g);break;case"data":if(a!=="object"){Qo(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Yo(""+c),r.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(l,"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 g=="function"&&(l==="formAction"?(a!=="input"&&Ze(r,a,"name",m.name,m,null),Ze(r,a,"formEncType",m.formEncType,m,null),Ze(r,a,"formMethod",m.formMethod,m,null),Ze(r,a,"formTarget",m.formTarget,m,null)):(Ze(r,a,"encType",m.encType,m,null),Ze(r,a,"method",m.method,m,null),Ze(r,a,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Yo(""+c),r.setAttribute(l,c);break;case"onClick":c!=null&&(r.onclick=pr);break;case"onScroll":c!=null&&Le("scroll",r);break;case"onScrollEnd":c!=null&&Le("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}l=Yo(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""+c):r.removeAttribute(l);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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":c===!0?r.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,c):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(l,c):r.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(l):r.setAttribute(l,c);break;case"popover":Le("beforetoggle",r),Le("toggle",r),Fo(r,"popover",c);break;case"xlinkActuate":mr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":mr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":mr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":mr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":mr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":mr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":mr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":mr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":mr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Fo(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=IE.get(l)||l,Fo(r,l,c))}}function vd(r,a,l,c,m,g){switch(l){case"style":bg(r,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof c=="string"?Ua(r,c):(typeof c=="number"||typeof c=="bigint")&&Ua(r,""+c);break;case"onScroll":c!=null&&Le("scroll",r);break;case"onScrollEnd":c!=null&&Le("scrollend",r);break;case"onClick":c!=null&&(r.onclick=pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fg.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),a=l.slice(2,m?l.length-7:void 0),g=r[Xt]||null,g=g!=null?g[l]:null,typeof g=="function"&&r.removeEventListener(a,g,m),typeof c=="function")){typeof g!="function"&&g!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,c,m);break e}l in r?r[l]=c:c===!0?r.setAttribute(l,""):Fo(r,l,c)}}}function Dt(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",r),Le("load",r);var c=!1,m=!1,g;for(g in l)if(l.hasOwnProperty(g)){var b=l[g];if(b!=null)switch(g){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,g,b,l,null)}}m&&Ze(r,a,"srcSet",l.srcSet,l,null),c&&Ze(r,a,"src",l.src,l,null);return;case"input":Le("invalid",r);var w=g=b=m=null,j=null,F=null;for(c in l)if(l.hasOwnProperty(c)){var K=l[c];if(K!=null)switch(c){case"name":m=K;break;case"type":b=K;break;case"checked":j=K;break;case"defaultChecked":F=K;break;case"value":g=K;break;case"defaultValue":w=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,a));break;default:Ze(r,a,c,K,l,null)}}gg(r,g,w,j,F,b,m,!1);return;case"select":Le("invalid",r),c=b=g=null;for(m in l)if(l.hasOwnProperty(m)&&(w=l[m],w!=null))switch(m){case"value":g=w;break;case"defaultValue":b=w;break;case"multiple":c=w;default:Ze(r,a,m,w,l,null)}a=g,l=b,r.multiple=!!c,a!=null?Ba(r,!!c,a,!1):l!=null&&Ba(r,!!c,l,!0);return;case"textarea":Le("invalid",r),g=m=c=null;for(b in l)if(l.hasOwnProperty(b)&&(w=l[b],w!=null))switch(b){case"value":c=w;break;case"defaultValue":m=w;break;case"children":g=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:Ze(r,a,b,w,l,null)}vg(r,c,m,g);return;case"option":for(j in l)if(l.hasOwnProperty(j)&&(c=l[j],c!=null))switch(j){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ze(r,a,j,c,l,null)}return;case"dialog":Le("beforetoggle",r),Le("toggle",r),Le("cancel",r),Le("close",r);break;case"iframe":case"object":Le("load",r);break;case"video":case"audio":for(c=0;c<Ul.length;c++)Le(Ul[c],r);break;case"image":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"embed":case"source":case"link":Le("error",r),Le("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in l)if(l.hasOwnProperty(F)&&(c=l[F],c!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,F,c,l,null)}return;default:if(Nf(a)){for(K in l)l.hasOwnProperty(K)&&(c=l[K],c!==void 0&&vd(r,a,K,c,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(c=l[w],c!=null&&Ze(r,a,w,c,l,null))}function fT(r,a,l,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,b=null,w=null,j=null,F=null,K=null;for(Y in l){var ee=l[Y];if(l.hasOwnProperty(Y)&&ee!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":j=ee;default:c.hasOwnProperty(Y)||Ze(r,a,Y,null,c,ee)}}for(var Q in c){var Y=c[Q];if(ee=l[Q],c.hasOwnProperty(Q)&&(Y!=null||ee!=null))switch(Q){case"type":g=Y;break;case"name":m=Y;break;case"checked":F=Y;break;case"defaultChecked":K=Y;break;case"value":b=Y;break;case"defaultValue":w=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,a));break;default:Y!==ee&&Ze(r,a,Q,Y,c,ee)}}Of(r,b,w,j,F,K,g,m);return;case"select":Y=b=w=Q=null;for(g in l)if(j=l[g],l.hasOwnProperty(g)&&j!=null)switch(g){case"value":break;case"multiple":Y=j;default:c.hasOwnProperty(g)||Ze(r,a,g,null,c,j)}for(m in c)if(g=c[m],j=l[m],c.hasOwnProperty(m)&&(g!=null||j!=null))switch(m){case"value":Q=g;break;case"defaultValue":w=g;break;case"multiple":b=g;default:g!==j&&Ze(r,a,m,g,c,j)}a=w,l=b,c=Y,Q!=null?Ba(r,!!l,Q,!1):!!c!=!!l&&(a!=null?Ba(r,!!l,a,!0):Ba(r,!!l,l?[]:"",!1));return;case"textarea":Y=Q=null;for(w in l)if(m=l[w],l.hasOwnProperty(w)&&m!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ze(r,a,w,null,c,m)}for(b in c)if(m=c[b],g=l[b],c.hasOwnProperty(b)&&(m!=null||g!=null))switch(b){case"value":Q=m;break;case"defaultValue":Y=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==g&&Ze(r,a,b,m,c,g)}yg(r,Q,Y);return;case"option":for(var de in l)if(Q=l[de],l.hasOwnProperty(de)&&Q!=null&&!c.hasOwnProperty(de))switch(de){case"selected":r.selected=!1;break;default:Ze(r,a,de,null,c,Q)}for(j in c)if(Q=c[j],Y=l[j],c.hasOwnProperty(j)&&Q!==Y&&(Q!=null||Y!=null))switch(j){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Ze(r,a,j,Q,c,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in l)Q=l[be],l.hasOwnProperty(be)&&Q!=null&&!c.hasOwnProperty(be)&&Ze(r,a,be,null,c,Q);for(F in c)if(Q=c[F],Y=l[F],c.hasOwnProperty(F)&&Q!==Y&&(Q!=null||Y!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,a));break;default:Ze(r,a,F,Q,c,Y)}return;default:if(Nf(a)){for(var Je in l)Q=l[Je],l.hasOwnProperty(Je)&&Q!==void 0&&!c.hasOwnProperty(Je)&&vd(r,a,Je,void 0,c,Q);for(K in c)Q=c[K],Y=l[K],!c.hasOwnProperty(K)||Q===Y||Q===void 0&&Y===void 0||vd(r,a,K,Q,c,Y);return}}for(var U in l)Q=l[U],l.hasOwnProperty(U)&&Q!=null&&!c.hasOwnProperty(U)&&Ze(r,a,U,null,c,Q);for(ee in c)Q=c[ee],Y=l[ee],!c.hasOwnProperty(ee)||Q===Y||Q==null&&Y==null||Ze(r,a,ee,Q,c,Y)}function x_(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hT(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var m=l[c],g=m.transferSize,b=m.initiatorType,w=m.duration;if(g&&w&&x_(b)){for(b=0,w=m.responseEnd,c+=1;c<l.length;c++){var j=l[c],F=j.startTime;if(F>w)break;var K=j.transferSize,ee=j.initiatorType;K&&x_(ee)&&(j=j.responseEnd,b+=K*(j<w?1:(w-F)/(j-F)))}if(--c,a+=8*(g+b)/(m.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var _d=null,bd=null;function Hu(r){return r.nodeType===9?r:r.ownerDocument}function S_(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function E_(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function xd(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Sd=null;function dT(){var r=window.event;return r&&r.type==="popstate"?r===Sd?!1:(Sd=r,!0):(Sd=null,!1)}var w_=typeof setTimeout=="function"?setTimeout:void 0,mT=typeof clearTimeout=="function"?clearTimeout:void 0,T_=typeof Promise=="function"?Promise:void 0,pT=typeof queueMicrotask=="function"?queueMicrotask:typeof T_<"u"?function(r){return T_.resolve(null).then(r).catch(gT)}:w_;function gT(r){setTimeout(function(){throw r})}function hi(r){return r==="head"}function C_(r,a){var l=a,c=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(c===0){r.removeChild(m),ys(a);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")Vl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Vl(l);for(var g=l.firstChild;g;){var b=g.nextSibling,w=g.nodeName;g[sl]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=b}}else l==="body"&&Vl(r.ownerDocument.body);l=m}while(l);ys(a)}function k_(r,a){var l=r;r=0;do{var c=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=c}while(l)}function Ed(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ed(l),Rf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function yT(r,a,l,c){for(;r.nodeType===1;){var m=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[sl])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=An(r.nextSibling),r===null)break}return null}function vT(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=An(r.nextSibling),r===null))return null;return r}function R_(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=An(r.nextSibling),r===null))return null;return r}function wd(r){return r.data==="$?"||r.data==="$~"}function Td(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function _T(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var c=function(){a(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function An(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Cd=null;function A_(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return An(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function O_(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function L_(r,a,l){switch(a=Hu(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Vl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Rf(r)}var On=new Map,N_=new Set;function Gu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Lr=ne.d;ne.d={f:bT,r:xT,D:ST,C:ET,L:wT,m:TT,X:kT,S:CT,M:RT};function bT(){var r=Lr.f(),a=Mu();return r||a}function xT(r){var a=Pa(r);a!==null&&a.tag===5&&a.type==="form"?Ky(a):Lr.r(r)}var ms=typeof document>"u"?null:document;function D_(r,a,l){var c=ms;if(c&&typeof a=="string"&&a){var m=Sn(a);m='link[rel="'+r+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),N_.has(m)||(N_.add(m),r={rel:r,crossOrigin:l,href:a},c.querySelector(m)===null&&(a=c.createElement("link"),Dt(a,"link",r),Tt(a),c.head.appendChild(a)))}}function ST(r){Lr.D(r),D_("dns-prefetch",r,null)}function ET(r,a){Lr.C(r,a),D_("preconnect",r,a)}function wT(r,a,l){Lr.L(r,a,l);var c=ms;if(c&&r&&a){var m='link[rel="preload"][as="'+Sn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+Sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+Sn(l.imageSizes)+'"]')):m+='[href="'+Sn(r)+'"]';var g=m;switch(a){case"style":g=ps(r);break;case"script":g=gs(r)}On.has(g)||(r=p({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),On.set(g,r),c.querySelector(m)!==null||a==="style"&&c.querySelector(Hl(g))||a==="script"&&c.querySelector(Gl(g))||(a=c.createElement("link"),Dt(a,"link",r),Tt(a),c.head.appendChild(a)))}}function TT(r,a){Lr.m(r,a);var l=ms;if(l&&r){var c=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Sn(c)+'"][href="'+Sn(r)+'"]',g=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=gs(r)}if(!On.has(g)&&(r=p({rel:"modulepreload",href:r},a),On.set(g,r),l.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gl(g)))return}c=l.createElement("link"),Dt(c,"link",r),Tt(c),l.head.appendChild(c)}}}function CT(r,a,l){Lr.S(r,a,l);var c=ms;if(c&&r){var m=za(c).hoistableStyles,g=ps(r);a=a||"default";var b=m.get(g);if(!b){var w={loading:0,preload:null};if(b=c.querySelector(Hl(g)))w.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},l),(l=On.get(g))&&kd(r,l);var j=b=c.createElement("link");Tt(j),Dt(j,"link",r),j._p=new Promise(function(F,K){j.onload=F,j.onerror=K}),j.addEventListener("load",function(){w.loading|=1}),j.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Fu(b,a,c)}b={type:"stylesheet",instance:b,count:1,state:w},m.set(g,b)}}}function kT(r,a){Lr.X(r,a);var l=ms;if(l&&r){var c=za(l).hoistableScripts,m=gs(r),g=c.get(m);g||(g=l.querySelector(Gl(m)),g||(r=p({src:r,async:!0},a),(a=On.get(m))&&Rd(r,a),g=l.createElement("script"),Tt(g),Dt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function RT(r,a){Lr.M(r,a);var l=ms;if(l&&r){var c=za(l).hoistableScripts,m=gs(r),g=c.get(m);g||(g=l.querySelector(Gl(m)),g||(r=p({src:r,async:!0,type:"module"},a),(a=On.get(m))&&Rd(r,a),g=l.createElement("script"),Tt(g),Dt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function j_(r,a,l,c){var m=(m=he.current)?Gu(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=ps(l.href),l=za(m).hoistableStyles,c=l.get(a),c||(c={type:"style",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ps(l.href);var g=za(m).hoistableStyles,b=g.get(r);if(b||(m=m.ownerDocument||m,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,b),(g=m.querySelector(Hl(r)))&&!g._p&&(b.instance=g,b.state.loading=5),On.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},On.set(r,l),g||AT(m,r,l,b.state))),a&&c===null)throw Error(i(528,""));return b}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=gs(l),l=za(m).hoistableScripts,c=l.get(a),c||(c={type:"script",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ps(r){return'href="'+Sn(r)+'"'}function Hl(r){return'link[rel="stylesheet"]['+r+"]"}function M_(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function AT(r,a,l,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),Dt(a,"link",l),Tt(a),r.head.appendChild(a))}function gs(r){return'[src="'+Sn(r)+'"]'}function Gl(r){return"script[async]"+r}function P_(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+Sn(l.href)+'"]');if(c)return a.instance=c,Tt(c),c;var m=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Tt(c),Dt(c,"style",m),Fu(c,l.precedence,r),a.instance=c;case"stylesheet":m=ps(l.href);var g=r.querySelector(Hl(m));if(g)return a.state.loading|=4,a.instance=g,Tt(g),g;c=M_(l),(m=On.get(m))&&kd(c,m),g=(r.ownerDocument||r).createElement("link"),Tt(g);var b=g;return b._p=new Promise(function(w,j){b.onload=w,b.onerror=j}),Dt(g,"link",c),a.state.loading|=4,Fu(g,l.precedence,r),a.instance=g;case"script":return g=gs(l.src),(m=r.querySelector(Gl(g)))?(a.instance=m,Tt(m),m):(c=l,(m=On.get(g))&&(c=p({},l),Rd(c,m)),r=r.ownerDocument||r,m=r.createElement("script"),Tt(m),Dt(m,"link",c),r.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Fu(c,l.precedence,r));return a.instance}function Fu(r,a,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,g=m,b=0;b<c.length;b++){var w=c[b];if(w.dataset.precedence===a)g=w;else if(g!==m)break}g?g.parentNode.insertBefore(r,g.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function kd(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Rd(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Qu=null;function z_(r,a,l){if(Qu===null){var c=new Map,m=Qu=new Map;m.set(l,c)}else m=Qu,c=m.get(l),c||(c=new Map,m.set(l,c));if(c.has(r))return c;for(c.set(r,null),l=l.getElementsByTagName(r),m=0;m<l.length;m++){var g=l[m];if(!(g[sl]||g[At]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var b=g.getAttribute(a)||"";b=r+b;var w=c.get(b);w?w.push(g):c.set(b,[g])}}return c}function I_(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function OT(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function B_(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function LT(r,a,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=ps(c.href),g=a.querySelector(Hl(m));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=$u.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=g,Tt(g);return}g=a.ownerDocument||a,c=M_(c),(m=On.get(m))&&kd(c,m),g=g.createElement("link"),Tt(g);var b=g;b._p=new Promise(function(w,j){b.onload=w,b.onerror=j}),Dt(g,"link",c),l.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=$u.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var Ad=0;function NT(r,a){return r.stylesheets&&r.count===0&&Ku(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var c=setTimeout(function(){if(r.stylesheets&&Ku(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+a);0<r.imgBytes&&Ad===0&&(Ad=62500*hT());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ku(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>Ad?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function $u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Yu=null;function Ku(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Yu=new Map,a.forEach(DT,r),Yu=null,$u.call(r))}function DT(r,a){if(!(a.state.loading&4)){var l=Yu.get(r);if(l)var c=l.get(null);else{l=new Map,Yu.set(r,l);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var b=m[g];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),c=b)}c&&l.set(null,c)}m=a.instance,b=m.getAttribute("data-precedence"),g=l.get(b)||c,g===c&&l.set(null,m),l.set(b,m),this.count++,c=$u.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),g?g.parentNode.insertBefore(m,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),a.state.loading|=4}}var Fl={$$typeof:O,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function jT(r,a,l,c,m,g,b,w,j){this.tag=1,this.containerInfo=r,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=wf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wf(0),this.hiddenUpdates=wf(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function U_(r,a,l,c,m,g,b,w,j,F,K,ee){return r=new jT(r,a,l,b,j,F,K,ee,w),a=1,g===!0&&(a|=24),g=hn(3,null,null,a),r.current=g,g.stateNode=r,a=oh(),a.refCount++,r.pooledCache=a,a.refCount++,g.memoizedState={element:c,isDehydrated:l,cache:a},hh(g),r}function q_(r){return r?(r=$a,r):$a}function V_(r,a,l,c,m,g){m=q_(m),c.context===null?c.context=m:c.pendingContext=m,c=ti(a),c.payload={element:l},g=g===void 0?null:g,g!==null&&(c.callback=g),l=ni(r,c,a),l!==null&&(nn(l,r,a),El(l,r,a))}function H_(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function Od(r,a){H_(r,a),(r=r.alternate)&&H_(r,a)}function G_(r){if(r.tag===13||r.tag===31){var a=Gi(r,67108864);a!==null&&nn(a,r,67108864),Od(r,67108864)}}function F_(r){if(r.tag===13||r.tag===31){var a=yn();a=Tf(a);var l=Gi(r,a);l!==null&&nn(l,r,a),Od(r,a)}}var Xu=!0;function MT(r,a,l,c){var m=H.T;H.T=null;var g=ne.p;try{ne.p=2,Ld(r,a,l,c)}finally{ne.p=g,H.T=m}}function PT(r,a,l,c){var m=H.T;H.T=null;var g=ne.p;try{ne.p=8,Ld(r,a,l,c)}finally{ne.p=g,H.T=m}}function Ld(r,a,l,c){if(Xu){var m=Nd(c);if(m===null)yd(r,a,c,Zu,l),$_(r,c);else if(IT(m,r,a,l,c))c.stopPropagation();else if($_(r,c),a&4&&-1<zT.indexOf(r)){for(;m!==null;){var g=Pa(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var b=Bi(g.pendingLanes);if(b!==0){var w=g;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var j=1<<31-We(b);w.entanglements[1]|=j,b&=~j}tr(g),(He&6)===0&&(Du=Be()+500,Bl(0))}}break;case 31:case 13:w=Gi(g,2),w!==null&&nn(w,g,2),Mu(),Od(g,2)}if(g=Nd(c),g===null&&yd(r,a,c,Zu,l),g===m)break;m=g}m!==null&&c.stopPropagation()}else yd(r,a,c,null,l)}}function Nd(r){return r=jf(r),Dd(r)}var Zu=null;function Dd(r){if(Zu=null,r=Ma(r),r!==null){var a=o(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=u(a),r!==null)return r;r=null}else if(l===31){if(r=f(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Zu=r,null}function Q_(r){switch(r){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(Ut()){case Z:return 2;case oe:return 8;case xe:case Ae:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var jd=!1,di=null,mi=null,pi=null,Ql=new Map,$l=new Map,gi=[],zT="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 $_(r,a){switch(r){case"focusin":case"focusout":di=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":Ql.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(a.pointerId)}}function Yl(r,a,l,c,m,g){return r===null||r.nativeEvent!==g?(r={blockedOn:a,domEventName:l,eventSystemFlags:c,nativeEvent:g,targetContainers:[m]},a!==null&&(a=Pa(a),a!==null&&G_(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),r)}function IT(r,a,l,c,m){switch(a){case"focusin":return di=Yl(di,r,a,l,c,m),!0;case"dragenter":return mi=Yl(mi,r,a,l,c,m),!0;case"mouseover":return pi=Yl(pi,r,a,l,c,m),!0;case"pointerover":var g=m.pointerId;return Ql.set(g,Yl(Ql.get(g)||null,r,a,l,c,m)),!0;case"gotpointercapture":return g=m.pointerId,$l.set(g,Yl($l.get(g)||null,r,a,l,c,m)),!0}return!1}function Y_(r){var a=Ma(r.target);if(a!==null){var l=o(a);if(l!==null){if(a=l.tag,a===13){if(a=u(l),a!==null){r.blockedOn=a,og(r.priority,function(){F_(l)});return}}else if(a===31){if(a=f(l),a!==null){r.blockedOn=a,og(r.priority,function(){F_(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ju(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=Nd(r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);Df=c,l.target.dispatchEvent(c),Df=null}else return a=Pa(l),a!==null&&G_(a),r.blockedOn=l,!1;a.shift()}return!0}function K_(r,a,l){Ju(r)&&l.delete(a)}function BT(){jd=!1,di!==null&&Ju(di)&&(di=null),mi!==null&&Ju(mi)&&(mi=null),pi!==null&&Ju(pi)&&(pi=null),Ql.forEach(K_),$l.forEach(K_)}function Wu(r,a){r.blockedOn===a&&(r.blockedOn=null,jd||(jd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,BT)))}var ec=null;function X_(r){ec!==r&&(ec=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ec===r&&(ec=null);for(var a=0;a<r.length;a+=3){var l=r[a],c=r[a+1],m=r[a+2];if(typeof c!="function"){if(Dd(c||l)===null)continue;break}var g=Pa(l);g!==null&&(r.splice(a,3),a-=3,Nh(g,{pending:!0,data:m,method:l.method,action:c},c,m))}}))}function ys(r){function a(j){return Wu(j,r)}di!==null&&Wu(di,r),mi!==null&&Wu(mi,r),pi!==null&&Wu(pi,r),Ql.forEach(a),$l.forEach(a);for(var l=0;l<gi.length;l++){var c=gi[l];c.blockedOn===r&&(c.blockedOn=null)}for(;0<gi.length&&(l=gi[0],l.blockedOn===null);)Y_(l),l.blockedOn===null&&gi.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var m=l[c],g=l[c+1],b=m[Xt]||null;if(typeof g=="function")b||X_(l);else if(b){var w=null;if(g&&g.hasAttribute("formAction")){if(m=g,b=g[Xt]||null)w=b.formAction;else if(Dd(m)!==null)continue}else w=b.action;typeof w=="function"?l[c+1]=w:(l.splice(c,3),c-=3),X_(l)}}}function Z_(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(b){return m=b})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function Md(r){this._internalRoot=r}tc.prototype.render=Md.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,c=yn();V_(l,c,r,a,null,null)},tc.prototype.unmount=Md.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;V_(r.current,2,null,r,null,null),Mu(),a[ja]=null}};function tc(r){this._internalRoot=r}tc.prototype.unstable_scheduleHydration=function(r){if(r){var a=lg();r={blockedOn:null,target:r,priority:a};for(var l=0;l<gi.length&&a!==0&&a<gi[l].priority;l++);gi.splice(l,0,r),l===0&&Y_(r)}};var J_=t.version;if(J_!=="19.2.0")throw Error(i(527,J_,"19.2.0"));ne.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=d(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var UT={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{qt=nc.inject(UT),_t=nc}catch{}}return Xl.createRoot=function(r,a){if(!s(r))throw Error(i(299));var l=!1,c="",m=av,g=sv,b=lv;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),a=U_(r,1,!1,null,null,l,c,null,m,g,b,Z_),r[ja]=a.current,gd(r),new Md(a)},Xl.hydrateRoot=function(r,a,l){if(!s(r))throw Error(i(299));var c=!1,m="",g=av,b=sv,w=lv,j=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.formState!==void 0&&(j=l.formState)),a=U_(r,1,!0,a,l??null,c,m,j,g,b,w,Z_),a.context=q_(null),l=a.current,c=yn(),c=Tf(c),m=ti(c),m.callback=null,ni(l,m,c),l=c,a.current.lanes=l,al(a,l),tr(a),r[ja]=a.current,gd(r),new tc(a)},Xl.version="19.2.0",Xl}var u0;function ZT(){if(u0)return Id.exports;u0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Id.exports=XT(),Id.exports}var JT=ZT(),Js=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},WT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},bi,dp,dx,eC=(dx=class{constructor(){ye(this,bi,WT);ye(this,dp,!1)}setTimeoutProvider(e){ce(this,bi,e)}setTimeout(e,t){return M(this,bi).setTimeout(e,t)}clearTimeout(e){M(this,bi).clearTimeout(e)}setInterval(e,t){return M(this,bi).setInterval(e,t)}clearInterval(e){M(this,bi).clearInterval(e)}},bi=new WeakMap,dp=new WeakMap,dx),sa=new eC;function tC(e){setTimeout(e,0)}var Sa=typeof window>"u"||"Deno"in globalThis;function Ft(){}function nC(e,t){return typeof e=="function"?e(t):e}function Am(e){return typeof e=="number"&&e>=0&&e!==1/0}function Tx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oi(e,t){return typeof e=="function"?e(t):e}function jn(e,t){return typeof e=="function"?e(t):e}function c0(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:o,queryKey:u,stale:f}=e;if(u){if(i){if(t.queryHash!==pp(u,t.options))return!1}else if(!vo(t.queryKey,u))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||o&&!o(t))}function f0(e,t){const{exact:n,status:i,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ea(t.options.mutationKey)!==Ea(o))return!1}else if(!vo(t.options.mutationKey,o))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function pp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ea)(e)}function Ea(e){return JSON.stringify(e,(t,n)=>Om(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function vo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>vo(e[n],t[n])):!1}var rC=Object.prototype.hasOwnProperty;function Cx(e,t){if(e===t)return e;const n=h0(e)&&h0(t);if(!n&&!(Om(e)&&Om(t)))return t;const s=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),u=o.length,f=n?new Array(u):{};let h=0;for(let d=0;d<u;d++){const y=n?d:o[d],p=e[y],_=t[y];if(p===_){f[y]=p,(n?d<s:rC.call(e,y))&&h++;continue}if(p===null||_===null||typeof p!="object"||typeof _!="object"){f[y]=_;continue}const v=Cx(p,_);f[y]=v,v===p&&h++}return s===u&&h===s?e:f}function Ac(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function h0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Om(e){if(!d0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!d0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function d0(e){return Object.prototype.toString.call(e)==="[object Object]"}function iC(e){return new Promise(t=>{sa.setTimeout(t,e)})}function Lm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Cx(e,t):t}function aC(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function sC(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Vr=Symbol();function kx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Rx(e,t){return typeof e=="function"?e(...t):!!e}var oa,xi,Ds,mx,lC=(mx=class extends Js{constructor(){super();ye(this,oa);ye(this,xi);ye(this,Ds);ce(this,Ds,t=>{if(!Sa&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,xi)||this.setEventListener(M(this,Ds))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,xi))==null||t.call(this),ce(this,xi,void 0))}setEventListener(t){var n;ce(this,Ds,t),(n=M(this,xi))==null||n.call(this),ce(this,xi,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){M(this,oa)!==t&&(ce(this,oa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,oa)=="boolean"?M(this,oa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},oa=new WeakMap,xi=new WeakMap,Ds=new WeakMap,mx),gp=new lC;function Nm(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var oC=tC;function uC(){let e=[],t=0,n=f=>{f()},i=f=>{f()},s=oC;const o=f=>{t?e.push(f):s(()=>{n(f)})},u=()=>{const f=e;e=[],f.length&&s(()=>{i(()=>{f.forEach(h=>{n(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{o(()=>{f(...h)})},schedule:o,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{s=f}}}var St=uC(),js,Si,Ms,px,cC=(px=class extends Js{constructor(){super();ye(this,js,!0);ye(this,Si);ye(this,Ms);ce(this,Ms,t=>{if(!Sa&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){M(this,Si)||this.setEventListener(M(this,Ms))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Si))==null||t.call(this),ce(this,Si,void 0))}setEventListener(t){var n;ce(this,Ms,t),(n=M(this,Si))==null||n.call(this),ce(this,Si,t(this.setOnline.bind(this)))}setOnline(t){M(this,js)!==t&&(ce(this,js,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return M(this,js)}},js=new WeakMap,Si=new WeakMap,Ms=new WeakMap,px),Oc=new cC;function fC(e){return Math.min(1e3*2**e,3e4)}function Ax(e){return(e??"online")==="online"?Oc.isOnline():!0}var Dm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ox(e){let t=!1,n=0,i;const s=Nm(),o=()=>s.status!=="pending",u=E=>{var C;if(!o()){const T=new Dm(E);_(T),(C=e.onCancel)==null||C.call(e,T)}},f=()=>{t=!0},h=()=>{t=!1},d=()=>gp.isFocused()&&(e.networkMode==="always"||Oc.isOnline())&&e.canRun(),y=()=>Ax(e.networkMode)&&e.canRun(),p=E=>{o()||(i==null||i(),s.resolve(E))},_=E=>{o()||(i==null||i(),s.reject(E))},v=()=>new Promise(E=>{var C;i=T=>{(o()||d())&&E(T)},(C=e.onPause)==null||C.call(e)}).then(()=>{var E;i=void 0,o()||(E=e.onContinue)==null||E.call(e)}),x=()=>{if(o())return;let E;const C=n===0?e.initialPromise:void 0;try{E=C??e.fn()}catch(T){E=Promise.reject(T)}Promise.resolve(E).then(p).catch(T=>{var L;if(o())return;const k=e.retry??(Sa?0:3),O=e.retryDelay??fC,P=typeof O=="function"?O(n,T):O,V=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,T);if(t||!V){_(T);return}n++,(L=e.onFail)==null||L.call(e,n,T),iC(P).then(()=>d()?void 0:v()).then(()=>{t?_(T):x()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(i==null||i(),s),cancelRetry:f,continueRetry:h,canStart:y,start:()=>(y()?x():v().then(x),s)}}var ua,gx,Lx=(gx=class{constructor(){ye(this,ua)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Am(this.gcTime)&&ce(this,ua,sa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sa?1/0:300*1e3))}clearGcTimeout(){M(this,ua)&&(sa.clearTimeout(M(this,ua)),ce(this,ua,void 0))}},ua=new WeakMap,gx),ca,Ps,Dn,fa,kt,Ro,ha,$n,jr,yx,hC=(yx=class extends Lx{constructor(t){super();ye(this,$n);ye(this,ca);ye(this,Ps);ye(this,Dn);ye(this,fa);ye(this,kt);ye(this,Ro);ye(this,ha);ce(this,ha,!1),ce(this,Ro,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,fa,t.client),ce(this,Dn,M(this,fa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,ca,p0(this.options)),this.state=t.state??M(this,ca),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,kt))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,Ro),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=p0(this.options);n.data!==void 0&&(this.setState(m0(n.data,n.dataUpdatedAt)),ce(this,ca,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Dn).remove(this)}setData(t,n){const i=Lm(this.state.data,t,this.options);return Re(this,$n,jr).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){Re(this,$n,jr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=M(this,kt))==null?void 0:i.promise;return(s=M(this,kt))==null||s.cancel(t),n?n.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,ca))}isActive(){return this.observers.some(t=>jn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Oi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Tx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Dn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,kt)&&(M(this,ha)?M(this,kt).cancel({revert:!0}):M(this,kt).cancelRetry()),this.scheduleGc()),M(this,Dn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,$n,jr).call(this,{type:"invalidate"})}async fetch(t,n){var h,d,y,p,_,v,x,E,C,T,k,O;if(this.state.fetchStatus!=="idle"&&((h=M(this,kt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,kt))return M(this,kt).continueRetry(),M(this,kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(V=>V.options.queryFn);P&&this.setOptions(P.options)}const i=new AbortController,s=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(ce(this,ha,!0),i.signal)})},o=()=>{const P=kx(this.options,n),L=(()=>{const B={client:M(this,fa),queryKey:this.queryKey,meta:this.meta};return s(B),B})();return ce(this,ha,!1),this.options.persister?this.options.persister(P,L,this):P(L)},f=(()=>{const P={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,fa),state:this.state,fetchFn:o};return s(P),P})();(d=this.options.behavior)==null||d.onFetch(f,this),ce(this,Ps,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&Re(this,$n,jr).call(this,{type:"fetch",meta:(p=f.fetchOptions)==null?void 0:p.meta}),ce(this,kt,Ox({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:P=>{P instanceof Dm&&P.revert&&this.setState({...M(this,Ps),fetchStatus:"idle"}),i.abort()},onFail:(P,V)=>{Re(this,$n,jr).call(this,{type:"failed",failureCount:P,error:V})},onPause:()=>{Re(this,$n,jr).call(this,{type:"pause"})},onContinue:()=>{Re(this,$n,jr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const P=await M(this,kt).start();if(P===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(P),(v=(_=M(this,Dn).config).onSuccess)==null||v.call(_,P,this),(E=(x=M(this,Dn).config).onSettled)==null||E.call(x,P,this.state.error,this),P}catch(P){if(P instanceof Dm){if(P.silent)return M(this,kt).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw Re(this,$n,jr).call(this,{type:"error",error:P}),(T=(C=M(this,Dn).config).onError)==null||T.call(C,P,this),(O=(k=M(this,Dn).config).onSettled)==null||O.call(k,this.state.data,P,this),P}finally{this.scheduleGc()}}},ca=new WeakMap,Ps=new WeakMap,Dn=new WeakMap,fa=new WeakMap,kt=new WeakMap,Ro=new WeakMap,ha=new WeakMap,$n=new WeakSet,jr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Nx(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,...m0(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Ps,t.manual?s:void 0),s;case"error":const o=t.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),M(this,Dn).notify({query:this,type:"updated",action:t})})},yx);function Nx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ax(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function m0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function p0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var an,ze,Ao,Ht,da,zs,Mr,Ei,Oo,Is,Bs,ma,pa,wi,Us,Fe,ao,jm,Mm,Pm,zm,Im,Bm,Um,Dx,vx,dC=(vx=class extends Js{constructor(t,n){super();ye(this,Fe);ye(this,an);ye(this,ze);ye(this,Ao);ye(this,Ht);ye(this,da);ye(this,zs);ye(this,Mr);ye(this,Ei);ye(this,Oo);ye(this,Is);ye(this,Bs);ye(this,ma);ye(this,pa);ye(this,wi);ye(this,Us,new Set);this.options=n,ce(this,an,t),ce(this,Ei,null),ce(this,Mr,Nm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,ze).addObserver(this),g0(M(this,ze),this.options)?Re(this,Fe,ao).call(this):this.updateResult(),Re(this,Fe,zm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qm(M(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qm(M(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,Fe,Im).call(this),Re(this,Fe,Bm).call(this),M(this,ze).removeObserver(this)}setOptions(t){const n=this.options,i=M(this,ze);if(this.options=M(this,an).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof jn(this.options.enabled,M(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,Fe,Um).call(this),M(this,ze).setOptions(this.options),n._defaulted&&!Ac(this.options,n)&&M(this,an).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,ze),observer:this});const s=this.hasListeners();s&&y0(M(this,ze),i,this.options,n)&&Re(this,Fe,ao).call(this),this.updateResult(),s&&(M(this,ze)!==i||jn(this.options.enabled,M(this,ze))!==jn(n.enabled,M(this,ze))||Oi(this.options.staleTime,M(this,ze))!==Oi(n.staleTime,M(this,ze)))&&Re(this,Fe,jm).call(this);const o=Re(this,Fe,Mm).call(this);s&&(M(this,ze)!==i||jn(this.options.enabled,M(this,ze))!==jn(n.enabled,M(this,ze))||o!==M(this,wi))&&Re(this,Fe,Pm).call(this,o)}getOptimisticResult(t){const n=M(this,an).getQueryCache().build(M(this,an),t),i=this.createResult(n,t);return pC(this,i)&&(ce(this,Ht,i),ce(this,zs,this.options),ce(this,da,M(this,ze).state)),i}getCurrentResult(){return M(this,Ht)}trackResult(t,n){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Mr).status==="pending"&&M(this,Mr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){M(this,Us).add(t)}getCurrentQuery(){return M(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,an).defaultQueryOptions(t),i=M(this,an).getQueryCache().build(M(this,an),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return Re(this,Fe,ao).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Ht)))}createResult(t,n){var te;const i=M(this,ze),s=this.options,o=M(this,Ht),u=M(this,da),f=M(this,zs),d=t!==i?t.state:M(this,Ao),{state:y}=t;let p={...y},_=!1,v;if(n._optimisticResults){const N=this.hasListeners(),$=!N&&g0(t,n),ie=N&&y0(t,i,n,s);($||ie)&&(p={...p,...Nx(y.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:x,errorUpdatedAt:E,status:C}=p;v=p.data;let T=!1;if(n.placeholderData!==void 0&&v===void 0&&C==="pending"){let N;o!=null&&o.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(N=o.data,T=!0):N=typeof n.placeholderData=="function"?n.placeholderData((te=M(this,Bs))==null?void 0:te.state.data,M(this,Bs)):n.placeholderData,N!==void 0&&(C="success",v=Lm(o==null?void 0:o.data,N,n),_=!0)}if(n.select&&v!==void 0&&!T)if(o&&v===(u==null?void 0:u.data)&&n.select===M(this,Oo))v=M(this,Is);else try{ce(this,Oo,n.select),v=n.select(v),v=Lm(o==null?void 0:o.data,v,n),ce(this,Is,v),ce(this,Ei,null)}catch(N){ce(this,Ei,N)}M(this,Ei)&&(x=M(this,Ei),v=M(this,Is),E=Date.now(),C="error");const k=p.fetchStatus==="fetching",O=C==="pending",P=C==="error",V=O&&k,L=v!==void 0,q={status:C,fetchStatus:p.fetchStatus,isPending:O,isSuccess:C==="success",isError:P,isInitialLoading:V,isLoading:V,data:v,dataUpdatedAt:p.dataUpdatedAt,error:x,errorUpdatedAt:E,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!O,isLoadingError:P&&!L,isPaused:p.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:P&&L,isStale:yp(t,n),refetch:this.refetch,promise:M(this,Mr),isEnabled:jn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=me=>{q.status==="error"?me.reject(q.error):q.data!==void 0&&me.resolve(q.data)},$=()=>{const me=ce(this,Mr,q.promise=Nm());N(me)},ie=M(this,Mr);switch(ie.status){case"pending":t.queryHash===i.queryHash&&N(ie);break;case"fulfilled":(q.status==="error"||q.data!==ie.value)&&$();break;case"rejected":(q.status!=="error"||q.error!==ie.reason)&&$();break}}return q}updateResult(){const t=M(this,Ht),n=this.createResult(M(this,ze),this.options);if(ce(this,da,M(this,ze).state),ce(this,zs,this.options),M(this,da).data!==void 0&&ce(this,Bs,M(this,ze)),Ac(n,t))return;ce(this,Ht,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!M(this,Us).size)return!0;const u=new Set(o??M(this,Us));return this.options.throwOnError&&u.add("error"),Object.keys(M(this,Ht)).some(f=>{const h=f;return M(this,Ht)[h]!==t[h]&&u.has(h)})};Re(this,Fe,Dx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,Fe,zm).call(this)}},an=new WeakMap,ze=new WeakMap,Ao=new WeakMap,Ht=new WeakMap,da=new WeakMap,zs=new WeakMap,Mr=new WeakMap,Ei=new WeakMap,Oo=new WeakMap,Is=new WeakMap,Bs=new WeakMap,ma=new WeakMap,pa=new WeakMap,wi=new WeakMap,Us=new WeakMap,Fe=new WeakSet,ao=function(t){Re(this,Fe,Um).call(this);let n=M(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ft)),n},jm=function(){Re(this,Fe,Im).call(this);const t=Oi(this.options.staleTime,M(this,ze));if(Sa||M(this,Ht).isStale||!Am(t))return;const i=Tx(M(this,Ht).dataUpdatedAt,t)+1;ce(this,ma,sa.setTimeout(()=>{M(this,Ht).isStale||this.updateResult()},i))},Mm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,ze)):this.options.refetchInterval)??!1},Pm=function(t){Re(this,Fe,Bm).call(this),ce(this,wi,t),!(Sa||jn(this.options.enabled,M(this,ze))===!1||!Am(M(this,wi))||M(this,wi)===0)&&ce(this,pa,sa.setInterval(()=>{(this.options.refetchIntervalInBackground||gp.isFocused())&&Re(this,Fe,ao).call(this)},M(this,wi)))},zm=function(){Re(this,Fe,jm).call(this),Re(this,Fe,Pm).call(this,Re(this,Fe,Mm).call(this))},Im=function(){M(this,ma)&&(sa.clearTimeout(M(this,ma)),ce(this,ma,void 0))},Bm=function(){M(this,pa)&&(sa.clearInterval(M(this,pa)),ce(this,pa,void 0))},Um=function(){const t=M(this,an).getQueryCache().build(M(this,an),this.options);if(t===M(this,ze))return;const n=M(this,ze);ce(this,ze,t),ce(this,Ao,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Dx=function(t){St.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Ht))}),M(this,an).getQueryCache().notify({query:M(this,ze),type:"observerResultsUpdated"})})},vx);function mC(e,t){return jn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function g0(e,t){return mC(e,t)||e.state.data!==void 0&&qm(e,t,t.refetchOnMount)}function qm(e,t,n){if(jn(t.enabled,e)!==!1&&Oi(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&yp(e,t)}return!1}function y0(e,t,n,i){return(e!==t||jn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&yp(e,n)}function yp(e,t){return jn(t.enabled,e)!==!1&&e.isStaleByTime(Oi(t.staleTime,e))}function pC(e,t){return!Ac(e.getCurrentResult(),t)}function v0(e){return{onFetch:(t,n)=>{var y,p,_,v,x;const i=t.options,s=(_=(p=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:p.fetchMore)==null?void 0:_.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],u=((x=t.state.data)==null?void 0:x.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const d=async()=>{let E=!1;const C=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},T=kx(t.options,t.fetchOptions),k=async(O,P,V)=>{if(E)return Promise.reject();if(P==null&&O.pages.length)return Promise.resolve(O);const B=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:P,direction:V?"backward":"forward",meta:t.options.meta};return C($),$})(),q=await T(B),{maxPages:te}=t.options,N=V?sC:aC;return{pages:N(O.pages,q,te),pageParams:N(O.pageParams,P,te)}};if(s&&o.length){const O=s==="backward",P=O?gC:_0,V={pages:o,pageParams:u},L=P(i,V);f=await k(V,L,O)}else{const O=e??o.length;do{const P=h===0?u[0]??i.initialPageParam:_0(i,f);if(h>0&&P==null)break;f=await k(f,P),h++}while(h<O)}return f};t.options.persister?t.fetchFn=()=>{var E,C;return(C=(E=t.options).persister)==null?void 0:C.call(E,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function _0(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function gC(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var Lo,ar,Gt,ga,sr,_i,_x,yC=(_x=class extends Lx{constructor(t){super();ye(this,sr);ye(this,Lo);ye(this,ar);ye(this,Gt);ye(this,ga);ce(this,Lo,t.client),this.mutationId=t.mutationId,ce(this,Gt,t.mutationCache),ce(this,ar,[]),this.state=t.state||jx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,ar).includes(t)||(M(this,ar).push(t),this.clearGcTimeout(),M(this,Gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,ar,M(this,ar).filter(n=>n!==t)),this.scheduleGc(),M(this,Gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,ar).length||(this.state.status==="pending"?this.scheduleGc():M(this,Gt).remove(this))}continue(){var t;return((t=M(this,ga))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,h,d,y,p,_,v,x,E,C,T,k,O,P,V,L,B,q,te;const n=()=>{Re(this,sr,_i).call(this,{type:"continue"})},i={client:M(this,Lo),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,ga,Ox({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(N,$)=>{Re(this,sr,_i).call(this,{type:"failed",failureCount:N,error:$})},onPause:()=>{Re(this,sr,_i).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Gt).canRun(this)}));const s=this.state.status==="pending",o=!M(this,ga).canStart();try{if(s)n();else{Re(this,sr,_i).call(this,{type:"pending",variables:t,isPaused:o}),await((f=(u=M(this,Gt).config).onMutate)==null?void 0:f.call(u,t,this,i));const $=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,t,i));$!==this.state.context&&Re(this,sr,_i).call(this,{type:"pending",context:$,variables:t,isPaused:o})}const N=await M(this,ga).start();return await((p=(y=M(this,Gt).config).onSuccess)==null?void 0:p.call(y,N,t,this.state.context,this,i)),await((v=(_=this.options).onSuccess)==null?void 0:v.call(_,N,t,this.state.context,i)),await((E=(x=M(this,Gt).config).onSettled)==null?void 0:E.call(x,N,null,this.state.variables,this.state.context,this,i)),await((T=(C=this.options).onSettled)==null?void 0:T.call(C,N,null,t,this.state.context,i)),Re(this,sr,_i).call(this,{type:"success",data:N}),N}catch(N){try{throw await((O=(k=M(this,Gt).config).onError)==null?void 0:O.call(k,N,t,this.state.context,this,i)),await((V=(P=this.options).onError)==null?void 0:V.call(P,N,t,this.state.context,i)),await((B=(L=M(this,Gt).config).onSettled)==null?void 0:B.call(L,void 0,N,this.state.variables,this.state.context,this,i)),await((te=(q=this.options).onSettled)==null?void 0:te.call(q,void 0,N,t,this.state.context,i)),N}finally{Re(this,sr,_i).call(this,{type:"error",error:N})}}finally{M(this,Gt).runNext(this)}}},Lo=new WeakMap,ar=new WeakMap,Gt=new WeakMap,ga=new WeakMap,sr=new WeakSet,_i=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),St.batch(()=>{M(this,ar).forEach(i=>{i.onMutationUpdate(t)}),M(this,Gt).notify({mutation:this,type:"updated",action:t})})},_x);function jx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pr,Yn,No,bx,vC=(bx=class extends Js{constructor(t={}){super();ye(this,Pr);ye(this,Yn);ye(this,No);this.config=t,ce(this,Pr,new Set),ce(this,Yn,new Map),ce(this,No,0)}build(t,n,i){const s=new yC({client:t,mutationCache:this,mutationId:++rc(this,No)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){M(this,Pr).add(t);const n=ic(t);if(typeof n=="string"){const i=M(this,Yn).get(n);i?i.push(t):M(this,Yn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,Pr).delete(t)){const n=ic(t);if(typeof n=="string"){const i=M(this,Yn).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&M(this,Yn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ic(t);if(typeof n=="string"){const i=M(this,Yn).get(n),s=i==null?void 0:i.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var i;const n=ic(t);if(typeof n=="string"){const s=(i=M(this,Yn).get(n))==null?void 0:i.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{M(this,Pr).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,Pr).clear(),M(this,Yn).clear()})}getAll(){return Array.from(M(this,Pr))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>f0(n,i))}findAll(t={}){return this.getAll().filter(n=>f0(t,n))}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return St.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ft))))}},Pr=new WeakMap,Yn=new WeakMap,No=new WeakMap,bx);function ic(e){var t;return(t=e.options.scope)==null?void 0:t.id}var zr,Ti,sn,Ir,qr,xc,Vm,xx,_C=(xx=class extends Js{constructor(n,i){super();ye(this,qr);ye(this,zr);ye(this,Ti);ye(this,sn);ye(this,Ir);ce(this,zr,n),this.setOptions(i),this.bindMethods(),Re(this,qr,xc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const i=this.options;this.options=M(this,zr).defaultMutationOptions(n),Ac(this.options,i)||M(this,zr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,sn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Ea(i.mutationKey)!==Ea(this.options.mutationKey)?this.reset():((s=M(this,sn))==null?void 0:s.state.status)==="pending"&&M(this,sn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=M(this,sn))==null||n.removeObserver(this)}onMutationUpdate(n){Re(this,qr,xc).call(this),Re(this,qr,Vm).call(this,n)}getCurrentResult(){return M(this,Ti)}reset(){var n;(n=M(this,sn))==null||n.removeObserver(this),ce(this,sn,void 0),Re(this,qr,xc).call(this),Re(this,qr,Vm).call(this)}mutate(n,i){var s;return ce(this,Ir,i),(s=M(this,sn))==null||s.removeObserver(this),ce(this,sn,M(this,zr).getMutationCache().build(M(this,zr),this.options)),M(this,sn).addObserver(this),M(this,sn).execute(n)}},zr=new WeakMap,Ti=new WeakMap,sn=new WeakMap,Ir=new WeakMap,qr=new WeakSet,xc=function(){var i;const n=((i=M(this,sn))==null?void 0:i.state)??jx();ce(this,Ti,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Vm=function(n){St.batch(()=>{var i,s,o,u,f,h,d,y;if(M(this,Ir)&&this.hasListeners()){const p=M(this,Ti).variables,_=M(this,Ti).context,v={client:M(this,zr),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((s=(i=M(this,Ir)).onSuccess)==null||s.call(i,n.data,p,_,v),(u=(o=M(this,Ir)).onSettled)==null||u.call(o,n.data,null,p,_,v)):(n==null?void 0:n.type)==="error"&&((h=(f=M(this,Ir)).onError)==null||h.call(f,n.error,p,_,v),(y=(d=M(this,Ir)).onSettled)==null||y.call(d,void 0,n.error,p,_,v))}this.listeners.forEach(p=>{p(M(this,Ti))})})},xx),lr,Sx,bC=(Sx=class extends Js{constructor(t={}){super();ye(this,lr);this.config=t,ce(this,lr,new Map)}build(t,n,i){const s=n.queryKey,o=n.queryHash??pp(s,n);let u=this.get(o);return u||(u=new hC({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){M(this,lr).has(t.queryHash)||(M(this,lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,lr).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){St.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,lr).get(t)}getAll(){return[...M(this,lr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>c0(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>c0(t,i)):n}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){St.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lr=new WeakMap,Sx),ot,Ci,ki,qs,Vs,Ri,Hs,Gs,Ex,xC=(Ex=class{constructor(e={}){ye(this,ot);ye(this,Ci);ye(this,ki);ye(this,qs);ye(this,Vs);ye(this,Ri);ye(this,Hs);ye(this,Gs);ce(this,ot,e.queryCache||new bC),ce(this,Ci,e.mutationCache||new vC),ce(this,ki,e.defaultOptions||{}),ce(this,qs,new Map),ce(this,Vs,new Map),ce(this,Ri,0)}mount(){rc(this,Ri)._++,M(this,Ri)===1&&(ce(this,Hs,gp.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onFocus())})),ce(this,Gs,Oc.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onOnline())})))}unmount(){var e,t;rc(this,Ri)._--,M(this,Ri)===0&&((e=M(this,Hs))==null||e.call(this),ce(this,Hs,void 0),(t=M(this,Gs))==null||t.call(this),ce(this,Gs,void 0))}isFetching(e){return M(this,ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Ci).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,ot).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Oi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return M(this,ot).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=M(this,ot).get(i.queryHash),o=s==null?void 0:s.state.data,u=nC(t,o);if(u!==void 0)return M(this,ot).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return St.batch(()=>M(this,ot).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,ot);St.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,ot);return St.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=St.batch(()=>M(this,ot).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(e,t={}){return St.batch(()=>(M(this,ot).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=St.batch(()=>M(this,ot).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ft)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,ot).build(this,t);return n.isStaleByTime(Oi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=v0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=v0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Oc.isOnline()?M(this,Ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,ot)}getMutationCache(){return M(this,Ci)}getDefaultOptions(){return M(this,ki)}setDefaultOptions(e){ce(this,ki,e)}setQueryDefaults(e,t){M(this,qs).set(Ea(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,qs).values()],n={};return t.forEach(i=>{vo(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){M(this,Vs).set(Ea(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Vs).values()],n={};return t.forEach(i=>{vo(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,ki).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Vr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,ki).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,ot).clear(),M(this,Ci).clear()}},ot=new WeakMap,Ci=new WeakMap,ki=new WeakMap,qs=new WeakMap,Vs=new WeakMap,Ri=new WeakMap,Hs=new WeakMap,Gs=new WeakMap,Ex),re=Do();const Fs=mp(re);var Mx=re.createContext(void 0),Px=e=>{const t=re.useContext(Mx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},SC=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Mx.Provider,{value:e,children:t})),zx=re.createContext(!1),EC=()=>re.useContext(zx);zx.Provider;function wC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var TC=re.createContext(wC()),CC=()=>re.useContext(TC),kC=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},RC=e=>{re.useEffect(()=>{e.clearReset()},[e])},AC=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||Rx(n,[e.error,i])),OC=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},LC=(e,t)=>e.isLoading&&e.isFetching&&!t,NC=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,b0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function DC(e,t,n){var p,_,v,x,E;const i=EC(),s=CC(),o=Px(),u=o.defaultQueryOptions(e);(_=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||_.call(p,u),u._optimisticResults=i?"isRestoring":"optimistic",OC(u),kC(u,s),RC(s);const f=!o.getQueryCache().get(u.queryHash),[h]=re.useState(()=>new t(o,u)),d=h.getOptimisticResult(u),y=!i&&e.subscribed!==!1;if(re.useSyncExternalStore(re.useCallback(C=>{const T=y?h.subscribe(St.batchCalls(C)):Ft;return h.updateResult(),T},[h,y]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),re.useEffect(()=>{h.setOptions(u)},[u,h]),NC(u,d))throw b0(u,h,s);if(AC({result:d,errorResetBoundary:s,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw d.error;if((x=(v=o.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||x.call(v,u,d),u.experimental_prefetchInRender&&!Sa&&LC(d,i)){const C=f?b0(u,h,s):(E=o.getQueryCache().get(u.queryHash))==null?void 0:E.promise;C==null||C.catch(Ft).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?d:h.trackResult(d)}function x0(e,t){return DC(e,dC)}function Qs(e,t){const n=Px(),[i]=re.useState(()=>new _C(n,e));re.useEffect(()=>{i.setOptions(e)},[i,e]);const s=re.useSyncExternalStore(re.useCallback(u=>i.subscribe(St.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=re.useCallback((u,f)=>{i.mutate(u,f).catch(Ft)},[i]);if(s.error&&Rx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}const Hm=new WeakMap,jC=new WeakMap,Lc={current:[]};let Hd=!1,oo=0;const so=new Set,ac=new Map;function Ix(e){for(const t of e){if(Lc.current.includes(t))continue;Lc.current.push(t),t.recompute();const n=jC.get(t);if(n)for(const i of n){const s=Hm.get(i);s!=null&&s.length&&Ix(s)}}}function MC(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function PC(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function Bx(e){if(oo>0&&!ac.has(e)&&ac.set(e,e.prevState),so.add(e),!(oo>0)&&!Hd)try{for(Hd=!0;so.size>0;){const t=Array.from(so);so.clear();for(const n of t){const i=ac.get(n)??n.prevState;n.prevState=i,MC(n)}for(const n of t){const i=Hm.get(n);i&&(Lc.current.push(n),Ix(i))}for(const n of t){const i=Hm.get(n);if(i)for(const s of i)PC(s)}}}finally{Hd=!1,Lc.current=[],ac.clear()}}function uo(e){oo++;try{e()}finally{if(oo--,oo===0){const t=so.values().next().value;t&&Bx(t)}}}function zC(e){return typeof e=="function"}class IC{constructor(t,n){this.listeners=new Set,this.subscribe=i=>{var s,o;this.listeners.add(i);const u=(o=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:o.call(s,i,this);return()=>{this.listeners.delete(i),u==null||u()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,s;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):zC(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),Bx(this)}}const Li="__TSR_index",S0="popstate",E0="beforeunload";function BC(e){let t=e.getLocation();const n=new Set,i=u=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?i(u):t=e.getLocation()},o=async({task:u,navigateOpts:f,...h})=>{var _,v;if((f==null?void 0:f.ignoreBlocker)??!1){u();return}const y=((_=e.getBlockers)==null?void 0:_.call(e))??[],p=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&y.length&&p)for(const x of y){const E=Nc(h.path,h.state);if(await x.blockerFn({currentLocation:t,nextLocation:E,action:h.type})){(v=e.onBlocked)==null||v.call(e);return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,f,h)=>{const d=t.state[Li];f=w0(d+1,f),o({task:()=>{e.pushState(u,f),i({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:u,state:f})},replace:(u,f,h)=>{const d=t.state[Li];f=w0(d,f),o({task:()=>{e.replaceState(u,f),i({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:u,state:f})},go:(u,f)=>{o({task:()=>{e.go(u),s({type:"GO",index:u})},navigateOpts:f,type:"GO"})},back:u=>{o({task:()=>{e.back((u==null?void 0:u.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{o({task:()=>{e.forward((u==null?void 0:u.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Li]!==0,createHref:u=>e.createHref(u),block:u=>{var h;if(!e.setBlockers)return()=>{};const f=((h=e.getBlockers)==null?void 0:h.call(e))??[];return e.setBlockers([...f,u]),()=>{var y,p;const d=((y=e.getBlockers)==null?void 0:y.call(e))??[];(p=e.setBlockers)==null||p.call(e,d.filter(_=>_!==u))}},flush:()=>{var u;return(u=e.flush)==null?void 0:u.call(e)},destroy:()=>{var u;return(u=e.destroy)==null?void 0:u.call(e)},notify:i}}function w0(e,t){t||(t={});const n=vp();return{...t,key:n,__TSR_key:n,[Li]:e}}function UC(e){var q,te;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const o=()=>s,u=N=>s=N,f=(N=>N),h=(()=>Nc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!((q=t.history.state)!=null&&q.__TSR_key)&&!((te=t.history.state)!=null&&te.key)){const N=vp();t.history.replaceState({[Li]:0,key:N,__TSR_key:N},"")}let d=h(),y,p=!1,_=!1,v=!1,x=!1;const E=()=>d;let C,T;const k=()=>{C&&(B._ignoreSubscribers=!0,(C.isPush?t.history.pushState:t.history.replaceState)(C.state,"",C.href),B._ignoreSubscribers=!1,C=void 0,T=void 0,y=void 0)},O=(N,$,ie)=>{const me=f($);T||(y=d),d=Nc($,ie),C={href:me,state:ie,isPush:(C==null?void 0:C.isPush)||N==="push"},T||(T=Promise.resolve().then(()=>k()))},P=N=>{d=h(),B.notify({type:N})},V=async()=>{if(_){_=!1;return}const N=h(),$=N.state[Li]-d.state[Li],ie=$===1,me=$===-1,le=!ie&&!me||p;p=!1;const ae=le?"GO":me?"BACK":"FORWARD",H=le?{type:"GO",index:$}:{type:me?"BACK":"FORWARD"};if(v)v=!1;else{const ne=o();if(typeof document<"u"&&ne.length){for(const fe of ne)if(await fe.blockerFn({currentLocation:d,nextLocation:N,action:ae})){_=!0,t.history.go(1),B.notify(H);return}}}d=h(),B.notify(H)},L=N=>{if(x){x=!1;return}let $=!1;const ie=o();if(typeof document<"u"&&ie.length)for(const me of ie){const le=me.enableBeforeUnload??!0;if(le===!0){$=!0;break}if(typeof le=="function"&&le()===!0){$=!0;break}}if($)return N.preventDefault(),N.returnValue=""},B=BC({getLocation:E,getLength:()=>t.history.length,pushState:(N,$)=>O("push",N,$),replaceState:(N,$)=>O("replace",N,$),back:N=>(N&&(v=!0),x=!0,t.history.back()),forward:N=>{N&&(v=!0),x=!0,t.history.forward()},go:N=>{p=!0,t.history.go(N)},createHref:N=>f(N),flush:k,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(E0,L,{capture:!0}),t.removeEventListener(S0,V)},onBlocked:()=>{y&&d!==y&&(d=y)},getBlockers:o,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(E0,L,{capture:!0}),t.addEventListener(S0,V),t.history.pushState=function(...N){const $=n.apply(t.history,N);return B._ignoreSubscribers||P("PUSH"),$},t.history.replaceState=function(...N){const $=i.apply(t.history,N);return B._ignoreSubscribers||P("REPLACE"),$},B}function Nc(e,t){const n=e.indexOf("#"),i=e.indexOf("?"),s=vp();return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{[Li]:0,key:s,__TSR_key:s}}}function vp(){return(Math.random()+1).toString(36).substring(7)}function Dc(e){return e[e.length-1]}function qC(e){return typeof e=="function"}function ya(e,t){return qC(e)?e(t):e}const VC=Object.prototype.hasOwnProperty;function Nn(e,t){if(e===t)return e;const n=t,i=k0(e)&&k0(n);if(!i&&!(jc(e)&&jc(n)))return n;const s=i?e:T0(e);if(!s)return n;const o=i?n:T0(n);if(!o)return n;const u=s.length,f=o.length,h=i?new Array(f):{};let d=0;for(let y=0;y<f;y++){const p=i?y:o[y],_=e[p],v=n[p];if(_===v){h[p]=_,(i?y<u:VC.call(e,p))&&d++;continue}if(_===null||v===null||typeof _!="object"||typeof v!="object"){h[p]=v;continue}const x=Nn(_,v);h[p]=x,x===_&&d++}return u===f&&d===u?e:h}function T0(e){const t=[],n=Object.getOwnPropertyNames(e);for(const s of n){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}const i=Object.getOwnPropertySymbols(e);for(const s of i){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}return t}function jc(e){if(!C0(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!C0(n)||!n.hasOwnProperty("isPrototypeOf"))}function C0(e){return Object.prototype.toString.call(e)==="[object Object]"}function k0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function va(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!va(e[i],t[i],n))return!1;return!0}if(jc(e)&&jc(t)){const i=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const u in t)if((!i||t[u]!==void 0)&&!va(e[u],t[u],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&s++;let o=0;for(const u in t)if((!i||t[u]!==void 0)&&(o++,o>s||!va(e[u],t[u],n)))return!1;return s===o}return!1}function $s(e){let t,n;const i=new Promise((s,o)=>{t=s,n=o});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,t(s),e==null||e(s)},i.reject=s=>{i.status="rejected",n(s)},i}function Ni(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function R0(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function A0(e,t){if(!e)return e;const n=/%25|%5C/gi;let i=0,s="",o;for(;(o=n.exec(e))!==null;)s+=R0(e.slice(i,o.index))+o[0],i=n.lastIndex;return s+R0(i?e.slice(i):e)}var HC="Invariant failed";function Hr(e,t){if(!e)throw new Error(HC)}function Mc(e){const t=new Map;let n,i;const s=o=>{o.next&&(o.prev?(o.prev.next=o.next,o.next.prev=o.prev,o.next=void 0,i&&(i.next=o,o.prev=i)):(o.next.prev=void 0,n=o.next,o.next=void 0,i&&(o.prev=i,i.next=o)),i=o)};return{get(o){const u=t.get(o);if(u)return s(u),u.value},set(o,u){if(t.size>=e&&n){const h=n;t.delete(h.key),h.next&&(n=h.next,h.next.prev=void 0),h===i&&(i=void 0)}const f=t.get(o);if(f)f.value=u,s(f);else{const h={key:o,value:u,prev:i};i&&(i.next=h),i=h,n||(n=h),t.set(o,h)}},clear(){t.clear(),n=void 0,i=void 0}}}const Ys=0,wa=1,Ta=2,_o=3,GC=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,FC=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,QC=/^([^{]*)\{\$\}([^}]*)$/;function _p(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,o=e.substring(t,s);if(!o||!o.includes("$"))return n[0]=Ys,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(o==="$"){const d=e.length;return n[0]=Ta,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(o.charCodeAt(0)===36)return n[0]=wa,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const u=o.match(QC);if(u){const y=u[1].length;return n[0]=Ta,n[1]=t+y,n[2]=t+y+1,n[3]=t+y+2,n[4]=t+y+3,n[5]=e.length,n}const f=o.match(FC);if(f){const d=f[1],y=f[2],p=f[3],_=d.length;return n[0]=_o,n[1]=t+_,n[2]=t+_+3,n[3]=t+_+3+y.length,n[4]=s-p.length,n[5]=s,n}const h=o.match(GC);if(h){const d=h[1],y=h[2],p=h[3],_=d.length;return n[0]=wa,n[1]=t+_,n[2]=t+_+2,n[3]=t+_+2+y.length,n[4]=s-p.length,n[5]=s,n}return n[0]=Ys,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function rf(e,t,n,i,s,o,u){var h,d,y,p,_;u==null||u(n);let f=i;{const v=n.fullPath??n.from,x=v.length,E=((h=n.options)==null?void 0:h.caseSensitive)??e;for(;f<x;){const C=_p(v,f,t);let T;const k=f,O=C[5];switch(f=O+1,o++,C[0]){case Ys:{const V=v.substring(C[2],C[3]);if(E){const L=(d=s.static)==null?void 0:d.get(V);if(L)T=L;else{s.static??(s.static=new Map);const B=bo(n.fullPath??n.from);B.parent=s,B.depth=o,T=B,s.static.set(V,B)}}else{const L=V.toLowerCase(),B=(y=s.staticInsensitive)==null?void 0:y.get(L);if(B)T=B;else{s.staticInsensitive??(s.staticInsensitive=new Map);const q=bo(n.fullPath??n.from);q.parent=s,q.depth=o,T=q,s.staticInsensitive.set(L,q)}}break}case wa:{const V=v.substring(k,C[1]),L=v.substring(C[4],O),B=E&&!!(V||L),q=V?B?V:V.toLowerCase():void 0,te=L?B?L:L.toLowerCase():void 0,N=(p=s.dynamic)==null?void 0:p.find($=>$.caseSensitive===B&&$.prefix===q&&$.suffix===te);if(N)T=N;else{const $=Fd(wa,n.fullPath??n.from,B,q,te);T=$,$.depth=o,$.parent=s,s.dynamic??(s.dynamic=[]),s.dynamic.push($)}break}case _o:{const V=v.substring(k,C[1]),L=v.substring(C[4],O),B=E&&!!(V||L),q=V?B?V:V.toLowerCase():void 0,te=L?B?L:L.toLowerCase():void 0,N=(_=s.optional)==null?void 0:_.find($=>$.caseSensitive===B&&$.prefix===q&&$.suffix===te);if(N)T=N;else{const $=Fd(_o,n.fullPath??n.from,B,q,te);T=$,$.parent=s,$.depth=o,s.optional??(s.optional=[]),s.optional.push($)}break}case Ta:{const V=v.substring(k,C[1]),L=v.substring(C[4],O),B=E&&!!(V||L),q=V?B?V:V.toLowerCase():void 0,te=L?B?L:L.toLowerCase():void 0,N=Fd(Ta,n.fullPath??n.from,B,q,te);T=N,N.parent=s,N.depth=o,s.wildcard??(s.wildcard=[]),s.wildcard.push(N)}}s=T}if((n.path||!n.children)&&!n.isRoot){const C=v.endsWith("/");C||(s.notFound=n),(!s.route||!s.isIndex&&C)&&(s.route=n),s.isIndex||(s.isIndex=C)}}if(n.children)for(const v of n.children)rf(e,t,v,f,s,o,u)}function Gd(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function aa(e){var t,n,i;if(e.static)for(const s of e.static.values())aa(s);if(e.staticInsensitive)for(const s of e.staticInsensitive.values())aa(s);if((t=e.dynamic)!=null&&t.length){e.dynamic.sort(Gd);for(const s of e.dynamic)aa(s)}if((n=e.optional)!=null&&n.length){e.optional.sort(Gd);for(const s of e.optional)aa(s)}if((i=e.wildcard)!=null&&i.length){e.wildcard.sort(Gd);for(const s of e.wildcard)aa(s)}}function bo(e){return{kind:Ys,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function Fd(e,t,n,i,s){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:i,suffix:s}}function $C(e,t){const n=bo("/"),i=new Uint16Array(6);for(const s of e)rf(!1,i,s,1,n,0);aa(n),t.masksTree=n,t.flatCache=Mc(1e3)}function YC(e,t){e||(e="/");const n=t.flatCache.get(e);if(n)return n;const i=bp(e,t.masksTree);return t.flatCache.set(e,i),i}function KC(e,t,n,i,s){e||(e="/"),i||(i="/");const o=t?`case\0${e}`:e;let u=s.singleCache.get(o);if(!u){u=bo("/");const f=new Uint16Array(6);rf(t,f,{from:e},1,u,0),s.singleCache.set(o,u)}return bp(i,u,n)}function XC(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||(e="/");const o=bp(e,t.segmentTree,n);return o&&(o.branch=ek(o.route)),t.matchCache.set(i,o),o}function ZC(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function JC(e,t=!1,n){const i=bo(e.fullPath),s=new Uint16Array(6),o={},u={};let f=0;return rf(t,s,e,1,i,0,d=>{if(n==null||n(d,f),Hr(!(d.id in o),`Duplicate routes found with id: ${String(d.id)}`),o[d.id]=d,f!==0&&d.path){const y=ZC(d.fullPath);(!u[y]||d.fullPath.endsWith("/"))&&(u[y]=d)}f++}),aa(i),{processedTree:{segmentTree:i,singleCache:Mc(1e3),matchCache:Mc(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:u}}function bp(e,t,n=!1){const i=e.split("/"),s=nk(e,i,t,n);if(!s)return null;const o=WC(e,i,s),u="**"in s;return u&&(o["**"]=s["**"]),{route:u?s.node.notFound??s.node.route:s.node.route,params:o}}function WC(e,t,n){var u,f,h,d,y,p;const i=tk(n.node);let s=null;const o={};for(let _=0,v=0,x=0;v<i.length;_++,v++,x++){const E=i[v],C=t[_],T=x;if(C&&(x+=C.length),E.kind===wa){s??(s=n.node.fullPath.split("/"));const k=s[v],O=((u=E.prefix)==null?void 0:u.length)??0;if(k.charCodeAt(O)===123){const V=((f=E.suffix)==null?void 0:f.length)??0,L=k.substring(O+2,k.length-V-1),B=C.substring(O,C.length-V);o[L]=decodeURIComponent(B)}else{const V=k.substring(1);o[V]=decodeURIComponent(C)}}else if(E.kind===_o){if(n.skipped&1<<v){_--;continue}s??(s=n.node.fullPath.split("/"));const k=s[v],O=((h=E.prefix)==null?void 0:h.length)??0,P=((d=E.suffix)==null?void 0:d.length)??0,V=k.substring(O+3,k.length-P-1),L=E.suffix||E.prefix?C.substring(O,C.length-P):C;L&&(o[V]=decodeURIComponent(L))}else if(E.kind===Ta){const k=E,O=e.substring(T+(((y=k.prefix)==null?void 0:y.length)??0),e.length-(((p=k.suffix)==null?void 0:p.length)??0)),P=decodeURIComponent(O);o["*"]=P,o._splat=P;break}}return o}function ek(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function tk(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function nk(e,t,n,i){const s=!Dc(t),o=s&&e!=="/",u=t.length-(s?1:0),f=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,d=null,y=null;for(;f.length;){const p=f.pop();let{node:_,index:v,skipped:x,depth:E,statics:C,dynamics:T,optionals:k}=p;i&&_.notFound&&Qd(d,p)&&(d=p);const O=v===u;if(O){if(_.route&&(!o||_.isIndex)&&(Qd(y,p)&&(y=p),C===u&&_.isIndex))return y;if(!_.optional&&!_.wildcard)continue}const P=O?void 0:t[v];let V;if(_.wildcard&&Qd(h,p))for(const L of _.wildcard){const{prefix:B,suffix:q}=L;if(!(B&&(O||!(L.caseSensitive?P:V??(V=P.toLowerCase())).startsWith(B)))){if(q){if(O)continue;const te=t.slice(v).join("/").slice(-q.length);if((L.caseSensitive?te:te.toLowerCase())!==q)continue}h={node:L,index:v,skipped:x,depth:E,statics:C,dynamics:T,optionals:k};break}}if(_.optional){const L=x|1<<E,B=E+1;for(let q=_.optional.length-1;q>=0;q--){const te=_.optional[q];f.push({node:te,index:v,skipped:L,depth:B,statics:C,dynamics:T,optionals:k})}if(!O)for(let q=_.optional.length-1;q>=0;q--){const te=_.optional[q],{prefix:N,suffix:$}=te;if(N||$){const ie=te.caseSensitive?P:V??(V=P.toLowerCase());if(N&&!ie.startsWith(N)||$&&!ie.endsWith($))continue}f.push({node:te,index:v+1,skipped:x,depth:B,statics:C,dynamics:T,optionals:k+1})}}if(!O&&_.dynamic&&P)for(let L=_.dynamic.length-1;L>=0;L--){const B=_.dynamic[L],{prefix:q,suffix:te}=B;if(q||te){const N=B.caseSensitive?P:V??(V=P.toLowerCase());if(q&&!N.startsWith(q)||te&&!N.endsWith(te))continue}f.push({node:B,index:v+1,skipped:x,depth:E+1,statics:C,dynamics:T+1,optionals:k})}if(!O&&_.staticInsensitive){const L=_.staticInsensitive.get(V??(V=P.toLowerCase()));L&&f.push({node:L,index:v+1,skipped:x,depth:E+1,statics:C+1,dynamics:T,optionals:k})}if(!O&&_.static){const L=_.static.get(P);L&&f.push({node:L,index:v+1,skipped:x,depth:E+1,statics:C+1,dynamics:T,optionals:k})}}if(y)return y;if(h)return h;if(i&&d){let p=d.index;for(let v=0;v<d.index;v++)p+=t[v].length;const _=p===e.length?"/":e.slice(p);return{node:d.node,skipped:d.skipped,"**":decodeURIComponent(_)}}return null}function Qd(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function Sc(e){return xp(e.filter(t=>t!==void 0).join("/"))}function xp(e){return e.replace(/\/{2,}/g,"/")}function Ux(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function _a(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Ec(e){return _a(Ux(e))}function Pc(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function rk(e,t,n){return Pc(e,n)===Pc(t,n)}function ik({base:e,to:t,trailingSlash:n="never",cache:i}){const s=t.startsWith("/"),o=!s&&t===".";let u;if(i){u=s?t:o?e:e+"\0"+t;const p=i.get(u);if(p)return p}let f;if(o)f=e.split("/");else if(s)f=t.split("/");else{for(f=e.split("/");f.length>1&&Dc(f)==="";)f.pop();const p=t.split("/");for(let _=0,v=p.length;_<v;_++){const x=p[_];x===""?_?_===v-1&&f.push(x):f=[x]:x===".."?f.pop():x==="."||f.push(x)}}f.length>1&&(Dc(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let h,d="";for(let p=0;p<f.length;p++){p>0&&(d+="/");const _=f[p];if(!_)continue;h=_p(_,0,h);const v=h[0];if(v===Ys){d+=_;continue}const x=h[5],E=_.substring(0,h[1]),C=_.substring(h[4],x),T=_.substring(h[2],h[3]);v===wa?d+=E||C?`${E}{$${T}}${C}`:`$${T}`:v===Ta?d+=E||C?`${E}{$}${C}`:"$":d+=`${E}{-$${T}}${C}`}d=xp(d);const y=d||"/";return u&&i&&i.set(u,y),y}function $d(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?encodeURI(i):ak(i,n)}function Yd({path:e,params:t,decodeCharMap:n}){let i=!1;const s={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:i};const o=e.length;let u=0,f,h="";for(;u<o;){const y=u;f=_p(e,y,f);const p=f[5];if(u=p+1,y===p)continue;const _=f[0];if(_===Ys){h+="/"+e.substring(y,p);continue}if(_===Ta){const v=t._splat;s._splat=v,s["*"]=v;const x=e.substring(y,f[1]),E=e.substring(f[4],p);if(!v){i=!0,(x||E)&&(h+="/"+x+E);continue}const C=$d("_splat",t,n);h+="/"+x+C+E;continue}if(_===wa){const v=e.substring(f[2],f[3]);!i&&!(v in t)&&(i=!0),s[v]=t[v];const x=e.substring(y,f[1]),E=e.substring(f[4],p),C=$d(v,t,n)??"undefined";h+="/"+x+C+E;continue}if(_===_o){const v=e.substring(f[2],f[3]),x=t[v];if(x==null)continue;s[v]=x;const E=e.substring(y,f[1]),C=e.substring(f[4],p),T=$d(v,t,n)??"";h+="/"+E+T+C;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:s,interpolatedPath:h||"/",isMissingParams:i}}function ak(e,t){let n=encodeURIComponent(e);if(t)for(const[i,s]of t)n=n.replaceAll(i,s);return n}function qx(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function zn(e){return!!(e!=null&&e.isNotFound)}function sk(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const zc="tsr-scroll-restoration-v1_3",lk=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function ok(){const e=sk();if(!e)return null;const t=e.getItem(zc);let n=t?JSON.parse(t):{};return{state:n,set:i=>(n=ya(i,n)||n,e.setItem(zc,JSON.stringify(n)))}}const sc=ok(),Gm=e=>e.state.__TSR_key||e.href;function uk(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Ic=!1;function Vx({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:o}){var d,y;let u;try{u=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||((d=window.history.state)==null?void 0:d.__TSR_key),h=u[f];Ic=!0;e:{if(i&&h&&Object.keys(h).length>0){for(const v in h){const x=h[v];if(v==="window")window.scrollTo({top:x.scrollY,left:x.scrollX,behavior:n});else if(v){const E=document.querySelector(v);E&&(E.scrollLeft=x.scrollX,E.scrollTop=x.scrollY)}}break e}const p=(o??window.location).hash.split("#",2)[1];if(p){const v=((y=window.history.state)==null?void 0:y.__hashScrollIntoViewOptions)??!0;if(v){const x=document.getElementById(p);x&&x.scrollIntoView(v)}break e}const _={top:0,left:0,behavior:n};if(window.scrollTo(_),s)for(const v of s){if(v==="window")continue;const x=typeof v=="function"?v():document.querySelector(v);x&&x.scrollTo(_)}}Ic=!1}function ck(e,t){if(!sc&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!sc))return;e.isScrollRestorationSetup=!0,Ic=!1;const i=e.options.getScrollRestorationKey||Gm;window.history.scrollRestoration="manual";const s=o=>{if(Ic||!e.isScrollRestoring)return;let u="";if(o.target===document||o.target===window)u="window";else{const h=o.target.getAttribute("data-scroll-restoration-id");h?u=`[data-scroll-restoration-id="${h}"]`:u=uk(o.target)}const f=i(e.state.location);sc.set(h=>{const d=h[f]||(h[f]={}),y=d[u]||(d[u]={});if(u==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(u){const p=document.querySelector(u);p&&(y.scrollX=p.scrollLeft||0,y.scrollY=p.scrollTop||0)}return h})};typeof document<"u"&&document.addEventListener("scroll",lk(s,100),!0),e.subscribe("onRendered",o=>{const u=i(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(Vx({storageKey:zc,key:u,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&sc.set(f=>(f[u]||(f[u]={}),f)))})}function fk(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function hk(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function Kd(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function dk(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const o=n[i];o==null?n[i]=Kd(s):Array.isArray(o)?o.push(Kd(s)):n[i]=[o,Kd(s)]}return n}const mk=gk(JSON.parse),pk=yk(JSON.stringify,JSON.parse);function gk(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=dk(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function yk(e,t){const n=typeof t=="function";function i(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const o=hk(s,i);return o?`?${o}`:""}}const _n="__root__";function vk(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Kn(e){return e instanceof Response&&!!e.options}const wc=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},af=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Hx=(e,t)=>{var s;const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&((s=e.router.options)!=null&&s.defaultNotFoundComponent)&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Hr(n.options.notFoundComponent);const i=e.matches.find(o=>o.routeId===n.id);Hr(i,"Could not find match for route: "+n.id),e.updateMatch(i.id,o=>({...o,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,Hx(e,t))},Ai=(e,t,n)=>{var i,s,o;if(!(!Kn(n)&&!zn(n))){if(Kn(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(i=t._nonReactive.beforeLoadPromise)==null||i.resolve(),(s=t._nonReactive.loaderPromise)==null||s.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const u=Kn(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,f=>({...f,status:u,isFetching:!1,error:n})),zn(n)&&!n.routeId&&(n.routeId=t.routeId),(o=t._nonReactive.loadPromise)==null||o.resolve()}throw Kn(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(Hx(e,n),n)}},Gx=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},Zl=(e,t,n,i)=>{var f,h;const{id:s,routeId:o}=e.matches[t],u=e.router.looseRoutesById[o];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),Ai(e,e.router.getMatch(s),n);try{(h=(f=u.options).onError)==null||h.call(f,n)}catch(d){n=d,Ai(e,e.router.getMatch(s),n)}e.updateMatch(s,d=>{var y,p;return(y=d._nonReactive.beforeLoadPromise)==null||y.resolve(),d._nonReactive.beforeLoadPromise=void 0,(p=d._nonReactive.loadPromise)==null||p.resolve(),{...d,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},_k=(e,t,n,i)=>{var v;const s=e.router.getMatch(t),o=(v=e.matches[n-1])==null?void 0:v.id,u=o?e.router.getMatch(o):void 0;if(e.router.isShell()){s.ssr=i.id===_n;return}if((u==null?void 0:u.ssr)===!1){s.ssr=!1;return}const f=x=>x===!0&&(u==null?void 0:u.ssr)==="data-only"?"data-only":x,h=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=f(h);return}if(typeof i.options.ssr!="function"){s.ssr=f(i.options.ssr);return}const{search:d,params:y}=s,p={search:lc(d,s.searchError),params:lc(y,s.paramsError),location:e.location,matches:e.matches.map(x=>({index:x.index,pathname:x.pathname,fullPath:x.fullPath,staticData:x.staticData,id:x.id,routeId:x.routeId,search:lc(x.search,x.searchError),params:lc(x.params,x.paramsError),ssr:x.ssr}))},_=i.options.ssr(p);if(Ni(_))return _.then(x=>{s.ssr=f(x??h)});s.ssr=f(_??h)},Fx=(e,t,n,i)=>{var u;if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!af(e,t)&&(n.options.loader||n.options.beforeLoad||Yx(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??((u=e.router.options)==null?void 0:u.defaultPendingComponent)))){const f=setTimeout(()=>{wc(e)},s);i._nonReactive.pendingTimeout=f}},bk=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;Fx(e,t,n,i);const s=()=>{const o=e.router.getMatch(t);o.preload&&(o.status==="redirected"||o.status==="notFound")&&Ai(e,o,o.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},xk=(e,t,n,i)=>{var B;const s=e.router.getMatch(t),o=s._nonReactive.loadPromise;s._nonReactive.loadPromise=$s(()=>{o==null||o.resolve()});const{paramsError:u,searchError:f}=s;u&&Zl(e,n,u,"PARSE_PARAMS"),f&&Zl(e,n,f,"VALIDATE_SEARCH"),Fx(e,t,i,s);const h=new AbortController,d=(B=e.matches[n-1])==null?void 0:B.id,y=d?e.router.getMatch(d):void 0,_={...(y==null?void 0:y.context)??e.router.options.context??void 0,...s.__routeContext};let v=!1;const x=()=>{v||(v=!0,e.updateMatch(t,q=>({...q,isFetching:"beforeLoad",fetchCount:q.fetchCount+1,abortController:h,context:_})))},E=()=>{var q;(q=s._nonReactive.beforeLoadPromise)==null||q.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,te=>({...te,isFetching:!1}))};if(!i.options.beforeLoad){uo(()=>{x(),E()});return}s._nonReactive.beforeLoadPromise=$s();const{search:C,params:T,cause:k}=s,O=af(e,t),P={search:C,abortController:h,params:T,preload:O,context:_,location:e.location,navigate:q=>e.router.navigate({...q,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:O?"preload":k,matches:e.matches,...e.router.options.additionalContext},V=q=>{if(q===void 0){uo(()=>{x(),E()});return}(Kn(q)||zn(q))&&(x(),Zl(e,n,q,"BEFORE_LOAD")),uo(()=>{x(),e.updateMatch(t,te=>({...te,__beforeLoadContext:q,context:{...te.context,...q}})),E()})};let L;try{if(L=i.options.beforeLoad(P),Ni(L))return x(),L.catch(q=>{Zl(e,n,q,"BEFORE_LOAD")}).then(V)}catch(q){x(),Zl(e,n,q,"BEFORE_LOAD")}V(L)},Sk=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],o=()=>{if(e.router.isServer){const h=_k(e,n,t,s);if(Ni(h))return h.then(f)}return f()},u=()=>xk(e,n,t,s),f=()=>{if(Gx(e,n))return;const h=bk(e,n,s);return Ni(h)?h.then(u):u()};return o()},co=(e,t,n)=>{var o,u,f,h,d,y;const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(u=(o=n.options).head)==null?void 0:u.call(o,s),(h=(f=n.options).scripts)==null?void 0:h.call(f,s),(y=(d=n.options).headers)==null?void 0:y.call(d,s)]).then(([p,_,v])=>{const x=p==null?void 0:p.meta,E=p==null?void 0:p.links,C=p==null?void 0:p.scripts,T=p==null?void 0:p.styles;return{meta:x,links:E,headScripts:C,headers:v,scripts:_,styles:T}})},Qx=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:o,loaderDeps:u,abortController:f,cause:h}=e.router.getMatch(t);let d=e.router.options.context??{};for(let p=0;p<=n;p++){const _=e.matches[p];if(!_)continue;const v=e.router.getMatch(_.id);v&&(d={...d,...v.__routeContext??{},...v.__beforeLoadContext??{}})}const y=af(e,t);return{params:o,deps:u,preload:!!y,parentMatchPromise:s,abortController:f,context:d,location:e.location,navigate:p=>e.router.navigate({...p,_fromLocation:e.location}),cause:y?"preload":h,route:i,...e.router.options.additionalContext}},O0=async(e,t,n,i)=>{var s,o,u,f,h,d;try{const y=e.router.getMatch(t);try{(!e.router.isServer||y.ssr===!0)&&$x(i);const p=(o=(s=i.options).loader)==null?void 0:o.call(s,Qx(e,t,n,i)),_=i.options.loader&&Ni(p);if(!!(_||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||y._nonReactive.minPendingPromise)&&e.updateMatch(t,T=>({...T,isFetching:"loader"})),i.options.loader){const T=_?await p:p;Ai(e,e.router.getMatch(t),T),T!==void 0&&e.updateMatch(t,k=>({...k,loaderData:T}))}i._lazyPromise&&await i._lazyPromise;const x=co(e,t,i),E=x?await x:void 0,C=y._nonReactive.minPendingPromise;C&&await C,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,T=>({...T,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...E}))}catch(p){let _=p;const v=y._nonReactive.minPendingPromise;v&&await v,zn(p)&&await((f=(u=i.options.notFoundComponent)==null?void 0:u.preload)==null?void 0:f.call(u)),Ai(e,e.router.getMatch(t),p);try{(d=(h=i.options).onError)==null||d.call(h,p)}catch(C){_=C,Ai(e,e.router.getMatch(t),C)}const x=co(e,t,i),E=x?await x:void 0;e.updateMatch(t,C=>({...C,error:_,status:"error",isFetching:!1,...E}))}}catch(y){const p=e.router.getMatch(t);if(p){const _=co(e,t,i);if(_){const v=await _;e.updateMatch(t,x=>({...x,...v}))}p._nonReactive.loaderPromise=void 0}Ai(e,p,y)}},Ek=async(e,t)=>{var d,y;const{id:n,routeId:i}=e.matches[t];let s=!1,o=!1;const u=e.router.looseRoutesById[i];if(Gx(e,n)){if(e.router.isServer){const p=co(e,n,u);if(p){const _=await p;e.updateMatch(n,v=>({...v,..._}))}return e.router.getMatch(n)}}else{const p=e.router.getMatch(n);if(p._nonReactive.loaderPromise){if(p.status==="success"&&!e.sync&&!p.preload)return p;await p._nonReactive.loaderPromise;const _=e.router.getMatch(n),v=_._nonReactive.error||_.error;v&&Ai(e,_,v)}else{const _=Date.now()-p.updatedAt,v=af(e,n),x=v?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,E=u.options.shouldReload,C=typeof E=="function"?E(Qx(e,n,t,u)):E,T=!!v&&!e.router.state.matches.some(V=>V.id===n),k=e.router.getMatch(n);k._nonReactive.loaderPromise=$s(),T!==k.preload&&e.updateMatch(n,V=>({...V,preload:T}));const{status:O,invalid:P}=k;if(s=O==="success"&&(P||(C??_>x)),!(v&&u.options.preload===!1))if(s&&!e.sync)o=!0,(async()=>{var V,L;try{await O0(e,n,t,u);const B=e.router.getMatch(n);(V=B._nonReactive.loaderPromise)==null||V.resolve(),(L=B._nonReactive.loadPromise)==null||L.resolve(),B._nonReactive.loaderPromise=void 0}catch(B){Kn(B)&&await e.router.navigate(B.options)}})();else if(O!=="success"||s&&e.sync)await O0(e,n,t,u);else{const V=co(e,n,u);if(V){const L=await V;e.updateMatch(n,B=>({...B,...L}))}}}}const f=e.router.getMatch(n);o||((d=f._nonReactive.loaderPromise)==null||d.resolve(),(y=f._nonReactive.loadPromise)==null||y.resolve()),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,o||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const h=o?f.isFetching:!1;return h!==f.isFetching||f.invalid!==!1?(e.updateMatch(n,p=>({...p,isFetching:h,invalid:!1})),e.router.getMatch(n)):f};async function L0(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&wc(t);try{for(let s=0;s<t.matches.length;s++){const o=Sk(t,s);Ni(o)&&await o}const n=t.firstBadMatchIndex??t.matches.length;for(let s=0;s<n;s++)t.matchPromises.push(Ek(t,s));await Promise.all(t.matchPromises);const i=wc(t);Ni(i)&&await i}catch(n){if(zn(n)&&!t.preload){const i=wc(t);throw Ni(i)&&await i,n}if(Kn(n))throw n}return t.matches}async function $x(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var i;const n=[];for(const s of Kx){const o=(i=e.options[s])==null?void 0:i.preload;o&&n.push(o())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function lc(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function Yx(e){var t;for(const n of Kx)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const Kx=["component","errorComponent","pendingComponent","notFoundComponent"];function wk(e){return{input:({url:t})=>{for(const n of e)t=Xx(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Zx(e[n],t);return t}}}function Tk(e){const t=Ec(e.basepath),n=`/${t}`,i=`${n}/`,s=e.caseSensitive?n:n.toLowerCase(),o=e.caseSensitive?i:i.toLowerCase();return{input:({url:u})=>{const f=e.caseSensitive?u.pathname:u.pathname.toLowerCase();return f===s?u.pathname="/":f.startsWith(o)&&(u.pathname=u.pathname.slice(n.length)),u},output:({url:u})=>(u.pathname=Sc(["/",t,u.pathname]),u)}}function Xx(e,t){var i;const n=(i=e==null?void 0:e.input)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Zx(e,t){var i;const n=(i=e==null?void 0:e.output)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function ba(e){const t=e.resolvedLocation,n=e.location,i=(t==null?void 0:t.pathname)!==n.pathname,s=(t==null?void 0:t.href)!==n.href,o=(t==null?void 0:t.hash)!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:s,hashChanged:o}}class Ck{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{var _;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,s=this.basepath??(i==null?void 0:i.basepath)??"/",o=this.basepath===void 0,u=i==null?void 0:i.rewrite;this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(v=>[encodeURIComponent(v),v])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=UC())),this.origin=this.options.origin,this.origin||(!this.isServer&&(window!=null&&window.origin)&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new IC(Rk(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(v=>!["redirected"].includes(v.status))}}}),ck(this));let f=!1;const h=this.options.basepath??"/",d=this.options.rewrite;if(o||s!==h||u!==d){this.basepath=h;const v=[];Ec(h)!==""&&v.push(Tk({basepath:h})),d&&v.push(d),this.rewrite=v.length===0?void 0:v.length===1?v[0]:wk(v),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((_=window.CSS)==null?void 0:_.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:i,processedTree:s}=JC(this.routeTree,this.options.caseSensitive,(u,f)=>{u.init({originalIndex:f})});this.options.routeMasks&&$C(this.options.routeMasks,s),this.routesById=n,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({href:h,state:d})=>{const y=new URL(h,this.origin),p=Xx(this.rewrite,y),_=this.options.parseSearch(p.search),v=this.options.stringifySearch(_);p.search=v;const x=p.href.replace(p.origin,""),{pathname:E,hash:C}=p;return{href:x,publicHref:h,url:p.href,pathname:A0(E),searchStr:v,search:Nn(i==null?void 0:i.search,_),hash:C.split("#").reverse()[0]??"",state:Nn(i==null?void 0:i.state,d)}},o=s(n),{__tempLocation:u,__tempKey:f}=o.state;if(u&&(!f||f===this.tempLocationKey)){const h=s(u);return h.state.key=o.state.key,h.state.__TSR_key=o.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:o}}return o},this.resolvePathCache=Mc(1e3),this.resolvePathWithBase=(n,i)=>ik({base:n,to:xp(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>Ak({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(o=>o.status==="pending"),i=this.state.matches.filter(o=>o.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(o=>{this.cancelMatch(o.id)})},this.buildLocation=n=>{const i=(o={})=>{var N,$;const u=o._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutes(u,{_buildLocation:!0}),h=Dc(f);o.from;const d=o.unsafeRelative==="path"?u.pathname:o.from??h.fullPath,y=this.resolvePathWithBase(d,"."),p=h.search,_={...h.params},v=o.to?this.resolvePathWithBase(y,`${o.to}`):this.resolvePathWithBase(y,"."),x=o.params===!1||o.params===null?{}:(o.params??!0)===!0?_:Object.assign(_,ya(o.params,_)),E=Yd({path:v,params:x}).interpolatedPath,C=this.matchRoutes(E,void 0,{_buildLocation:!0}).map(ie=>this.looseRoutesById[ie.routeId]);if(Object.keys(x).length>0)for(const ie of C){const me=((N=ie.options.params)==null?void 0:N.stringify)??ie.options.stringifyParams;me&&Object.assign(x,me(x))}const T=n.leaveParams?v:A0(Yd({path:v,params:x,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let k=p;if(n._includeValidateSearch&&(($=this.options.search)!=null&&$.strict)){const ie={};C.forEach(me=>{if(me.options.validateSearch)try{Object.assign(ie,Fm(me.options.validateSearch,{...ie,...k}))}catch{}}),k=ie}k=Ok({search:k,dest:o,destRoutes:C,_includeValidateSearch:n._includeValidateSearch}),k=Nn(p,k);const O=this.options.stringifySearch(k),P=o.hash===!0?u.hash:o.hash?ya(o.hash,u.hash):void 0,V=P?`#${P}`:"";let L=o.state===!0?u.state:o.state?ya(o.state,u.state):{};L=Nn(u.state,L);const B=`${T}${O}${V}`,q=new URL(B,this.origin),te=Zx(this.rewrite,q);return{publicHref:te.pathname+te.search+te.hash,href:B,url:te.href,pathname:T,search:k,searchStr:O,state:L,hash:P??"",unmaskOnReload:o.unmaskOnReload}},s=(o={},u)=>{const f=i(o);let h=u?i(u):void 0;if(!h){const d={};if(this.options.routeMasks){const y=YC(f.pathname,this.processedTree);if(y){Object.assign(d,y.params);const{from:p,..._}=y.route;u={from:n.from,..._,params:d},h=i(u)}}}return h&&(f.maskedLocation=h),f};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...s})=>{const o=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(y=>{s.state[y]=this.latestLocation.state[y]});const d=va(s.state,this.latestLocation.state);return h.forEach(y=>{delete s.state[y]}),d},u=_a(this.latestLocation.href)===_a(s.href),f=this.commitLocationPromise;if(this.commitLocationPromise=$s(()=>{f==null||f.resolve()}),u&&o())this.load();else{let{maskedLocation:h,hashScrollIntoView:d,...y}=s;h&&(y={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[s.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:o,ignoreBlocker:u,href:f,...h}={})=>{if(f){const p=this.history.location.state.__TSR_index,_=Nc(f,{__TSR_index:n?p:p+1});h.to=_.pathname,h.search=this.options.parseSearch(_.search),h.hash=_.hash.slice(1)}const d=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const y=this.commitLocation({...d,viewTransition:o,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:u});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:i,href:s,...o})=>{var u;if(!i&&s)try{new URL(`${s}`),i=!0}catch{}if(i){if(s||(s=this.buildLocation({to:n,...o}).url),!o.ignoreBlocker){const f=this.history,h=((u=f.getBlockers)==null?void 0:u.call(f))??[];for(const d of h)if(d!=null&&d.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return o.replace?window.location.replace(s):window.location.href=s,Promise.resolve()}return this.buildAndCommitLocation({...o,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),s=o=>{try{return encodeURI(decodeURI(o))}catch{return o}};if(Ec(s(this.latestLocation.href))!==Ec(s(i.href))){let o=i.url;throw this.origin&&o.startsWith(this.origin)&&(o=o.replace(this.origin,"")||"/"),vk({href:o})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:i.cachedMatches.filter(s=>!n.some(o=>o.id===s.id))}))},this.load=async n=>{let i,s,o;for(o=new Promise(f=>{this.startTransition(async()=>{var h;try{this.beforeLoad();const d=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...ba({resolvedLocation:y,location:d})}),this.emit({type:"onBeforeLoad",...ba({resolvedLocation:y,location:d})}),await L0({router:this,sync:n==null?void 0:n.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],_=[],v=[];uo(()=>{this.__store.setState(x=>{const E=x.matches,C=x.pendingMatches||x.matches;return p=E.filter(T=>!C.some(k=>k.id===T.id)),_=C.filter(T=>!E.some(k=>k.id===T.id)),v=C.filter(T=>E.some(k=>k.id===T.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:C,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...p.filter(T=>T.status!=="error"&&T.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[_,"onEnter"],[v,"onStay"]].forEach(([x,E])=>{x.forEach(C=>{var T,k;(k=(T=this.looseRoutesById[C.routeId].options)[E])==null||k.call(T,C)})})})})}})}catch(d){Kn(d)?(i=d,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):zn(d)&&(s=d),this.__store.setState(y=>({...y,statusCode:i?i.status:s?404:y.matches.some(p=>p.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===o&&((h=this.commitLocationPromise)==null||h.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.__store.state.matches.some(f=>f.status==="error")&&(u=500),u!==void 0&&this.__store.setState(f=>({...f,statusCode:u}))},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,u=this.state.resolvedLocation,f=typeof i.types=="function"?i.types(ba({resolvedLocation:u,location:o})):i.types;if(f===!1){n();return}s={update:n,types:f}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{var o;const s=(o=this.state.pendingMatches)!=null&&o.some(u=>u.id===n)?"pendingMatches":this.state.matches.some(u=>u.id===n)?"matches":this.state.cachedMatches.some(u=>u.id===n)?"cachedMatches":"";s&&this.__store.setState(u=>{var f;return{...u,[s]:(f=u[s])==null?void 0:f.map(h=>h.id===n?i(h):h)}})})},this.getMatch=n=>{var s;const i=o=>o.id===n;return this.state.cachedMatches.find(i)??((s=this.state.pendingMatches)==null?void 0:s.find(i))??this.state.matches.find(i)},this.invalidate=n=>{const i=s=>{var o;return((o=n==null?void 0:n.filter)==null?void 0:o.call(n,s))??!0?{...s,invalid:!0,...n!=null&&n.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0}:s};return this.__store.setState(s=>{var o;return{...s,matches:s.matches.map(i),cachedMatches:s.cachedMatches.map(i),pendingMatches:(o=s.pendingMatches)==null?void 0:o.map(i)}}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let s=i.url;this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",s)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n==null?void 0:n.filter;i!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(o=>!i(o))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const s=this.looseRoutesById[i.routeId];if(!s.options.loader)return!0;const o=(i.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=o};this.clearCache({filter:n})},this.loadRouteChunk=$x,this.preloadRoute=async n=>{const i=this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),u=new Set([...o,...this.state.cachedMatches.map(f=>f.id)]);uo(()=>{s.forEach(f=>{u.has(f.id)||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,f]}))})});try{return s=await L0({router:this,matches:s,location:i,preload:!0,updateMatch:(f,h)=>{o.has(f)?s=s.map(d=>d.id===f?h(d):d):this.updateMatch(f,h)}}),s}catch(f){if(Kn(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:i});zn(f)||console.error(f);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},o=this.buildLocation(s);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,h=KC(o.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,f.pathname,this.processedTree);return!h||n.params&&!va(h.params,n.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?va(f.search,o.search,{partial:!0})?h.params:!1:h.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??pk,parseSearch:t.parseSearch??mk}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const i=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:o}=i;let{matchedRoutes:u}=i,f=!1;(s?s.path!=="/"&&o["**"]:_a(t.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:f=!0);const h=(()=>{if(f){if(this.options.notFoundMode!=="root")for(let p=u.length-1;p>=0;p--){const _=u[p];if(_.children)return _.id}return _n}})(),d=[],y=p=>(p==null?void 0:p.id)?p.context??this.options.context??void 0:this.options.context??void 0;return u.forEach((p,_)=>{var me,le,ae;const v=d[_-1],[x,E,C]=(()=>{const H=(v==null?void 0:v.search)??t.search,ne=(v==null?void 0:v._strictSearch)??void 0;try{const fe=Fm(p.options.validateSearch,{...H})??void 0;return[{...H,...fe},{...ne,...fe},void 0]}catch(fe){let Ee=fe;if(fe instanceof Bc||(Ee=new Bc(fe.message,{cause:fe})),n!=null&&n.throwOnError)throw Ee;return[H,{},Ee]}})(),T=((le=(me=p.options).loaderDeps)==null?void 0:le.call(me,{search:x}))??"",k=T?JSON.stringify(T):"",{interpolatedPath:O,usedParams:P}=Yd({path:p.fullPath,params:o,decodeCharMap:this.pathParamsDecodeCharMap}),V=p.id+O+k,L=this.getMatch(V),B=this.state.matches.find(H=>H.routeId===p.id),q=(L==null?void 0:L._strictParams)??P;let te;if(!L){const H=((ae=p.options.params)==null?void 0:ae.parse)??p.options.parseParams;if(H)try{Object.assign(q,H(q))}catch(ne){if(zn(ne)||Kn(ne)?te=ne:te=new kk(ne.message,{cause:ne}),n!=null&&n.throwOnError)throw te}}Object.assign(o,q);const N=B?"stay":"enter";let $;if(L)$={...L,cause:N,params:B?Nn(B.params,o):o,_strictParams:q,search:Nn(B?B.search:L.search,x),_strictSearch:E};else{const H=p.options.loader||p.options.beforeLoad||p.lazyFn||Yx(p)?"pending":"success";$={id:V,index:_,routeId:p.id,params:B?Nn(B.params,o):o,_strictParams:q,pathname:O,updatedAt:Date.now(),search:B?Nn(B.search,x):x,_strictSearch:E,searchError:void 0,status:H,isFetching:!1,error:void 0,paramsError:te,__routeContext:void 0,_nonReactive:{loadPromise:$s()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:N,loaderDeps:B?Nn(B.loaderDeps,T):T,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n!=null&&n.preload||($.globalNotFound=h===p.id),$.searchError=C;const ie=y(v);$.context={...ie,...$.__routeContext,...$.__beforeLoadContext},d.push($)}),d.forEach((p,_)=>{const v=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&(n==null?void 0:n._buildLocation)!==!0){const E=d[_-1],C=y(E);if(v.options.context){const T={deps:p.loaderDeps,params:p.params,context:C??{},location:t,navigate:k=>this.navigate({...k,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:d};p.__routeContext=v.options.context(T)??void 0}p.context={...C,...p.__routeContext,...p.__beforeLoadContext}}}),d}}class Bc extends Error{}class kk extends Error{}function Rk(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Fm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Bc("Async validation not supported");if(n.issues)throw new Bc(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function Ak({pathname:e,routesById:t,processedTree:n}){const i={},s=_a(e);let o;const u=XC(s,n,!0);return u&&(o=u.route,Object.assign(i,u.params)),{matchedRoutes:(u==null?void 0:u.branch)||[t[_n]],routeParams:i,foundRoute:o}}function Ok({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){const s=n.reduce((f,h)=>{var y;const d=[];if("search"in h.options)(y=h.options.search)!=null&&y.middlewares&&d.push(...h.options.search.middlewares);else if(h.options.preSearchFilters||h.options.postSearchFilters){const p=({search:_,next:v})=>{let x=_;"preSearchFilters"in h.options&&h.options.preSearchFilters&&(x=h.options.preSearchFilters.reduce((C,T)=>T(C),_));const E=v(x);return"postSearchFilters"in h.options&&h.options.postSearchFilters?h.options.postSearchFilters.reduce((C,T)=>T(C),E):E};d.push(p)}if(i&&h.options.validateSearch){const p=({search:_,next:v})=>{const x=v(_);try{return{...x,...Fm(h.options.validateSearch,x)??void 0}}catch{return x}};d.push(p)}return f.concat(d)},[])??[],o=({search:f})=>t.search?t.search===!0?f:ya(t.search,f):{};s.push(o);const u=(f,h)=>{if(f>=s.length)return h;const d=s[f];return d({search:h,next:p=>u(f+1,p)})};return u(0,e)}const Lk="Error preloading route! ☝️";class Jx{constructor(t){if(this.init=n=>{var d,y;this.originalIndex=n.originalIndex;const i=this.options,s=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(y=(d=this.options).getParentRoute)==null?void 0:y.call(d),s?this._path=_n:this.parentRoute||Hr(!1);let o=s?_n:i==null?void 0:i.path;o&&o!=="/"&&(o=Ux(o));const u=(i==null?void 0:i.id)||o;let f=s?_n:Sc([this.parentRoute.id===_n?"":this.parentRoute.id,u]);o===_n&&(o="/"),f!==_n&&(f=Sc(["/",f]));const h=f===_n?"/":Sc([this.parentRoute.fullPath,o]);this._path=o,this._id=f,this._fullPath=h,this._to=h},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class Nk{constructor({id:t}){this.notFound=n=>qx({routeId:this.id,...n}),this.id=t}}class Dk extends Jx{constructor(t){super(t)}}function Sp(e){const t=e.errorComponent??sf;return S.jsx(jk,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?re.createElement(t,{error:n,reset:i}):e.children})}class jk extends re.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function sf({error:e}){const[t,n]=re.useState(!1);return S.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[S.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),S.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),S.jsx("div",{style:{height:".25rem"}}),t?S.jsx("div",{children:S.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?S.jsx("code",{children:e.message}):null})}):null]})}function Mk({children:e,fallback:t=null}){return Pk()?S.jsx(Fs.Fragment,{children:e}):S.jsx(Fs.Fragment,{children:t})}function Pk(){return Fs.useSyncExternalStore(zk,()=>!0,()=>!1)}function zk(){return()=>{}}var Xd={exports:{}},Zd={},Jd={exports:{}},Wd={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* use-sync-external-store-shim.production.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var N0;function Ik(){if(N0)return Wd;N0=1;var e=Do();function t(p,_){return p===_&&(p!==0||1/p===1/_)||p!==p&&_!==_}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function f(p,_){var v=_(),x=i({inst:{value:v,getSnapshot:_}}),E=x[0].inst,C=x[1];return o(function(){E.value=v,E.getSnapshot=_,h(E)&&C({inst:E})},[p,v,_]),s(function(){return h(E)&&C({inst:E}),p(function(){h(E)&&C({inst:E})})},[p]),u(v),v}function h(p){var _=p.getSnapshot;p=p.value;try{var v=_();return!n(p,v)}catch{return!0}}function d(p,_){return _()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return Wd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Wd}var D0;function Bk(){return D0||(D0=1,Jd.exports=Ik()),Jd.exports}/**
|
|
59
|
+
* @license React
|
|
60
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/var j0;function Uk(){if(j0)return Zd;j0=1;var e=Do(),t=Bk();function n(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,o=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Zd.useSyncExternalStoreWithSelector=function(d,y,p,_,v){var x=o(null);if(x.current===null){var E={hasValue:!1,value:null};x.current=E}else E=x.current;x=f(function(){function T(L){if(!k){if(k=!0,O=L,L=_(L),v!==void 0&&E.hasValue){var B=E.value;if(v(B,L))return P=B}return P=L}if(B=P,i(O,L))return B;var q=_(L);return v!==void 0&&v(B,q)?(O=L,B):(O=L,P=q)}var k=!1,O,P,V=p===void 0?null:p;return[function(){return T(y())},V===null?void 0:function(){return T(V())}]},[y,p,_,v]);var C=s(d,x[0],x[1]);return u(function(){E.hasValue=!0,E.value=C},[C]),h(C),C},Zd}var M0;function qk(){return M0||(M0=1,Xd.exports=Uk()),Xd.exports}var Vk=qk();function Hk(e,t=i=>i,n={}){const i=n.equal??Gk;return Vk.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,i)}function Gk(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!t.has(i)||!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=P0(e);if(n.length!==P0(t).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}function P0(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const em=re.createContext(null);function Wx(){return typeof document>"u"?em:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=em,em)}function Yt(e){const t=re.useContext(Wx());return e==null||e.warn,t}function $t(e){const t=Yt({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,i=re.useRef(void 0);return Hk(n.__store,s=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const o=Nn(i.current,e.select(s));return i.current=o,o}return e.select(s)}return s})}const lf=re.createContext(void 0),Fk=re.createContext(void 0);function In(e){const t=re.useContext(e.from?Fk:lf);return $t({select:i=>{const s=i.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if(Hr(!((e.shouldThrow??!0)&&!s),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),s!==void 0)return e.select?e.select(s):s},structuralSharing:e.structuralSharing})}function of(e){return In({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function uf(e){const{select:t,...n}=e;return In({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Ws(e){return In({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function cf(e){return In({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const oc=typeof window<"u"?re.useLayoutEffect:re.useEffect;function tm(e){const t=re.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Qk(e,t,n={},i={}){re.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([o])=>{t(o)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function $k(e){const t=re.useRef(null);return re.useImperativeHandle(e,()=>t.current,[]),t}function jo(e){const t=Yt();return re.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}var Yk=wx();function Kk(e,t){const n=Yt(),[i,s]=re.useState(!1),o=re.useRef(!1),u=$k(t),{activeProps:f,inactiveProps:h,activeOptions:d,to:y,preload:p,preloadDelay:_,hashScrollIntoView:v,replace:x,startTransition:E,resetScroll:C,viewTransition:T,children:k,target:O,disabled:P,style:V,className:L,onClick:B,onFocus:q,onMouseEnter:te,onMouseLeave:N,onTouchStart:$,ignoreBlocker:ie,params:me,search:le,hash:ae,state:H,mask:ne,reloadDocument:fe,unsafeRelative:Ee,from:D,_fromLocation:z,...X}=e,A=$t({select:Ue=>Ue.location.search,structuralSharing:!0}),ue=e.from,ge=re.useMemo(()=>({...e,from:ue}),[n,A,ue,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),he=re.useMemo(()=>n.buildLocation({...ge}),[n,ge]),Se=re.useMemo(()=>{if(P)return;let Ue=he.maskedLocation?he.maskedLocation.url:he.url,Be=!1;return n.origin&&(Ue.startsWith(n.origin)?Ue=n.history.createHref(Ue.replace(n.origin,""))||"/":Be=!0),{href:Ue,external:Be}},[P,he.maskedLocation,he.url,n.origin,n.history]),$e=re.useMemo(()=>{if(Se!=null&&Se.external)return Se.href;try{return new URL(y),y}catch{}},[y,Se]),Me=e.reloadDocument||$e?!1:p??n.options.defaultPreload,jt=_??n.options.defaultPreloadDelay??0,on=$t({select:Ue=>{if($e)return!1;if(d!=null&&d.exact){if(!rk(Ue.location.pathname,he.pathname,n.basepath))return!1}else{const Be=Pc(Ue.location.pathname,n.basepath),Ut=Pc(he.pathname,n.basepath);if(!(Be.startsWith(Ut)&&(Be.length===Ut.length||Be[Ut.length]==="/")))return!1}return((d==null?void 0:d.includeSearch)??!0)&&!va(Ue.location.search,he.search,{partial:!(d!=null&&d.exact),ignoreUndefined:!(d!=null&&d.explicitUndefined)})?!1:d!=null&&d.includeHash?Ue.location.hash===he.hash:!0}}),un=re.useCallback(()=>{n.preloadRoute({...ge}).catch(Ue=>{console.warn(Ue),console.warn(Lk)})},[n,ge]),Oa=re.useCallback(Ue=>{Ue!=null&&Ue.isIntersecting&&un()},[un]);Qk(u,Oa,eR,{disabled:!!P||Me!=="viewport"}),re.useEffect(()=>{o.current||!P&&Me==="render"&&(un(),o.current=!0)},[P,un,Me]);const Un=Ue=>{const Be=Ue.currentTarget.getAttribute("target"),Ut=O!==void 0?O:Be;if(!P&&!tR(Ue)&&!Ue.defaultPrevented&&(!Ut||Ut==="_self")&&Ue.button===0){Ue.preventDefault(),Yk.flushSync(()=>{s(!0)});const Z=n.subscribe("onResolved",()=>{Z(),s(!1)});n.navigate({...ge,replace:x,resetScroll:C,hashScrollIntoView:v,startTransition:E,viewTransition:T,ignoreBlocker:ie})}};if($e)return{...X,ref:u,href:$e,...k&&{children:k},...O&&{target:O},...P&&{disabled:P},...V&&{style:V},...L&&{className:L},...B&&{onClick:B},...q&&{onFocus:q},...te&&{onMouseEnter:te},...N&&{onMouseLeave:N},...$&&{onTouchStart:$}};const hr=Ue=>{P||Me&&un()},Fr=hr,La=Ue=>{if(!(P||!Me))if(!jt)un();else{const Be=Ue.target;if(Jl.has(Be))return;const Ut=setTimeout(()=>{Jl.delete(Be),un()},jt);Jl.set(Be,Ut)}},Na=Ue=>{if(P||!Me||!jt)return;const Be=Ue.target,Ut=Jl.get(Be);Ut&&(clearTimeout(Ut),Jl.delete(Be))},qn=on?ya(f,{})??Xk:nm,Vn=on?nm:ya(h,{})??nm,Qr=[L,qn.className,Vn.className].filter(Boolean).join(" "),Da=(V||qn.style||Vn.style)&&{...V,...qn.style,...Vn.style};return{...X,...qn,...Vn,href:Se==null?void 0:Se.href,ref:u,onClick:Wl([B,Un]),onFocus:Wl([q,hr]),onMouseEnter:Wl([te,La]),onMouseLeave:Wl([N,Na]),onTouchStart:Wl([$,Fr]),disabled:!!P,target:O,...Da&&{style:Da},...Qr&&{className:Qr},...P&&Zk,...on&&Jk,...i&&Wk}}const nm={},Xk={className:"active"},Zk={role:"link","aria-disabled":!0},Jk={"data-status":"active","aria-current":"page"},Wk={"data-transitioning":"transitioning"},Jl=new WeakMap,eR={rootMargin:"100px"},Wl=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},ut=re.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,ref:o,...u}=Kk(i,t),f=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;return n===void 0&&delete u.disabled,re.createElement(n||"a",{...u,ref:o},f)});function tR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nR(e){return new rR({id:e})}class rR extends Nk{constructor({id:t}){super({id:t}),this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>cf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>uf({...n,from:this.id,strict:!1}),this.useLoaderData=n=>of({...n,from:this.id,strict:!1}),this.useNavigate=()=>{const n=Yt();return jo({from:n.routesById[this.id].fullPath})},this.notFound=n=>qx({routeId:this.id,...n}),this.Link=Fs.forwardRef((n,i)=>{const o=Yt().routesById[this.id].fullPath;return S.jsx(ut,{ref:i,from:o,...n})})}}class iR extends Jx{constructor(t){super(t),this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>cf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>uf({...n,from:this.id}),this.useLoaderData=n=>of({...n,from:this.id}),this.useNavigate=()=>jo({from:this.fullPath}),this.Link=Fs.forwardRef((n,i)=>S.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function or(e){return new iR(e)}class aR extends Dk{constructor(t){super(t),this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>cf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>uf({...n,from:this.id}),this.useLoaderData=n=>of({...n,from:this.id}),this.useNavigate=()=>jo({from:this.fullPath}),this.Link=Fs.forwardRef((n,i)=>S.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function sR(e){return new aR(e)}function z0(e){return typeof e=="object"?new I0(e,{silent:!0}).createRoute(e):new I0(e,{silent:!0}).createRoute}class I0{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const s=or(i);return s.isRoot=!1,s},this.silent=n==null?void 0:n.silent}}class B0{constructor(t){this.useMatch=n=>In({select:n==null?void 0:n.select,from:this.options.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>In({from:this.options.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>cf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>uf({...n,from:this.options.id}),this.useLoaderData=n=>of({...n,from:this.options.id}),this.useNavigate=()=>{const n=Yt();return jo({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function U0(e){return typeof e=="object"?new B0(e):t=>new B0({id:e,...t})}function lR(){const e=Yt(),t=re.useRef({router:e,mounted:!1}),[n,i]=re.useState(!1),{hasPendingMatches:s,isLoading:o}=$t({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(_=>_.status==="pending")}),structuralSharing:!0}),u=tm(o),f=o||n||s,h=tm(f),d=o||s,y=tm(d);return e.startTransition=p=>{i(!0),re.startTransition(()=>{p(),i(!1)})},re.useEffect(()=>{const p=e.history.subscribe(e.load),_=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return _a(e.latestLocation.href)!==_a(_.href)&&e.commitLocation({..._,replace:!0}),()=>{p()}},[e,e.history]),oc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(_){console.error(_)}})()},[e]),oc(()=>{u&&!o&&e.emit({type:"onLoad",...ba(e.state)})},[u,e,o]),oc(()=>{y&&!d&&e.emit({type:"onBeforeRouteMount",...ba(e.state)})},[d,y,e]),oc(()=>{if(h&&!f){const p=ba(e.state);e.emit({type:"onResolved",...p}),e.__store.setState(_=>({..._,status:"idle",resolvedLocation:_.location})),p.hrefChanged&&fk(e)}},[f,h,e]),null}function oR(e){const t=$t({select:n=>`not-found-${n.location.pathname}-${n.status}`});return S.jsx(Sp,{getResetKey:()=>t,onCatch:(n,i)=>{var s;if(zn(n))(s=e.onCatch)==null||s.call(e,n,i);else throw n},errorComponent:({error:n})=>{var i;if(zn(n))return(i=e.fallback)==null?void 0:i.call(e,n);throw n},children:e.children})}function uR(){return S.jsx("p",{children:"Not Found"})}function Cs(e){return S.jsx(S.Fragment,{children:e.children})}function e1(e,t,n){return t.options.notFoundComponent?S.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?S.jsx(e.options.defaultNotFoundComponent,{...n}):S.jsx(uR,{})}function cR({children:e}){var n;const t=Yt();return t.isServer?S.jsx("script",{nonce:(n=t.options.ssr)==null?void 0:n.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function fR(){const e=Yt();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||Gm)(e.latestLocation),i=n!==Gm(e.latestLocation)?n:void 0,s={storageKey:zc,shouldScrollRestoration:!0};return i&&(s.key=i),S.jsx(cR,{children:`(${Vx.toString()})(${JSON.stringify(s)})`})}const t1=re.memo(function({matchId:t}){var T,k;const n=Yt(),i=$t({select:O=>{const P=O.matches.find(V=>V.id===t);return Hr(P),{routeId:P.routeId,ssr:P.ssr,_displayPending:P._displayPending}},structuralSharing:!0}),s=n.routesById[i.routeId],o=s.options.pendingComponent??n.options.defaultPendingComponent,u=o?S.jsx(o,{}):null,f=s.options.errorComponent??n.options.defaultErrorComponent,h=s.options.onCatch??n.options.defaultOnCatch,d=s.isRoot?s.options.notFoundComponent??((T=n.options.notFoundRoute)==null?void 0:T.options.component):s.options.notFoundComponent,y=i.ssr===!1||i.ssr==="data-only",p=(!s.isRoot||s.options.wrapInSuspense||y)&&(s.options.wrapInSuspense??o??(((k=s.options.errorComponent)==null?void 0:k.preload)||y))?re.Suspense:Cs,_=f?Sp:Cs,v=d?oR:Cs,x=$t({select:O=>O.loadedAt}),E=$t({select:O=>{var V;const P=O.matches.findIndex(L=>L.id===t);return(V=O.matches[P-1])==null?void 0:V.routeId}}),C=s.isRoot?s.options.shellComponent??Cs:Cs;return S.jsxs(C,{children:[S.jsx(lf.Provider,{value:t,children:S.jsx(p,{fallback:u,children:S.jsx(_,{getResetKey:()=>x,errorComponent:f||sf,onCatch:(O,P)=>{if(zn(O))throw O;h==null||h(O,P)},children:S.jsx(v,{fallback:O=>{if(!d||O.routeId&&O.routeId!==i.routeId||!O.routeId&&!s.isRoot)throw O;return re.createElement(d,O)},children:y||i._displayPending?S.jsx(Mk,{fallback:u,children:S.jsx(q0,{matchId:t})}):S.jsx(q0,{matchId:t})})})})}),E===_n&&n.options.scrollRestoration?S.jsxs(S.Fragment,{children:[S.jsx(hR,{}),S.jsx(fR,{})]}):null]})});function hR(){const e=Yt(),t=re.useRef(void 0);return S.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...ba(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const q0=re.memo(function({matchId:t}){var h,d,y,p;const n=Yt(),{match:i,key:s,routeId:o}=$t({select:_=>{const v=_.matches.find(k=>k.id===t),x=v.routeId,E=n.routesById[x].options.remountDeps??n.options.defaultRemountDeps,C=E==null?void 0:E({routeId:x,loaderDeps:v.loaderDeps,params:v._strictParams,search:v._strictSearch});return{key:C?JSON.stringify(C):void 0,routeId:x,match:{id:v.id,status:v.status,error:v.error,_forcePending:v._forcePending,_displayPending:v._displayPending}}},structuralSharing:!0}),u=n.routesById[o],f=re.useMemo(()=>{const _=u.options.component??n.options.defaultComponent;return _?S.jsx(_,{},s):S.jsx(n1,{})},[s,u.options.component,n.options.defaultComponent]);if(i._displayPending)throw(h=n.getMatch(i.id))==null?void 0:h._nonReactive.displayPendingPromise;if(i._forcePending)throw(d=n.getMatch(i.id))==null?void 0:d._nonReactive.minPendingPromise;if(i.status==="pending"){const _=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(_){const v=n.getMatch(i.id);if(v&&!v._nonReactive.minPendingPromise&&!n.isServer){const x=$s();v._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),v._nonReactive.minPendingPromise=void 0},_)}}throw(y=n.getMatch(i.id))==null?void 0:y._nonReactive.loadPromise}if(i.status==="notFound")return Hr(zn(i.error)),e1(n,u,i.error);if(i.status==="redirected")throw Hr(Kn(i.error)),(p=n.getMatch(i.id))==null?void 0:p._nonReactive.loadPromise;if(i.status==="error"){if(n.isServer){const _=(u.options.errorComponent??n.options.defaultErrorComponent)||sf;return S.jsx(_,{error:i.error,reset:void 0,info:{componentStack:""}})}throw i.error}return f}),n1=re.memo(function(){const t=Yt(),n=re.useContext(lf),i=$t({select:d=>{var y;return(y=d.matches.find(p=>p.id===n))==null?void 0:y.routeId}}),s=t.routesById[i],o=$t({select:d=>{const p=d.matches.find(_=>_.id===n);return Hr(p),p.globalNotFound}}),u=$t({select:d=>{var _;const y=d.matches,p=y.findIndex(v=>v.id===n);return(_=y[p+1])==null?void 0:_.id}}),f=t.options.defaultPendingComponent?S.jsx(t.options.defaultPendingComponent,{}):null;if(o)return e1(t,s,void 0);if(!u)return null;const h=S.jsx(t1,{matchId:u});return i===_n?S.jsx(re.Suspense,{fallback:f,children:h}):h});function dR(){const e=Yt(),n=e.routesById[_n].options.pendingComponent??e.options.defaultPendingComponent,i=n?S.jsx(n,{}):null,s=e.isServer||typeof document<"u"&&e.ssr?Cs:re.Suspense,o=S.jsxs(s,{fallback:i,children:[!e.isServer&&S.jsx(lR,{}),S.jsx(mR,{})]});return e.options.InnerWrap?S.jsx(e.options.InnerWrap,{children:o}):o}function mR(){const e=Yt(),t=$t({select:s=>{var o;return(o=s.matches[0])==null?void 0:o.id}}),n=$t({select:s=>s.loadedAt}),i=t?S.jsx(t1,{matchId:t}):null;return S.jsx(lf.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:S.jsx(Sp,{getResetKey:()=>n,errorComponent:sf,onCatch:s=>{s.message||s.toString()},children:i})})}const pR=e=>new gR(e);class gR extends Ck{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=z0,globalThis.createLazyFileRoute=U0):typeof window<"u"&&(window.createFileRoute=z0,window.createLazyFileRoute=U0);function yR({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=Wx(),s=S.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?S.jsx(e.options.Wrap,{children:s}):s}function vR({router:e,...t}){return S.jsx(yR,{router:e,...t,children:S.jsx(dR,{})})}var _R=Object.create,r1=Object.defineProperty,bR=Object.getOwnPropertyDescriptor,i1=Object.getOwnPropertyNames,xR=Object.getPrototypeOf,SR=Object.prototype.hasOwnProperty,ur=(e,t)=>function(){return t||(0,e[i1(e)[0]])((t={exports:{}}).exports,t),t.exports},ER=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=i1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!SR.call(e,f)&&f!==n&&r1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=bR(t,f))||i.enumerable});return e},ht=(e,t,n)=>(n=e!=null?_R(xR(e)):{},ER(r1(n,"default",{value:e,enumerable:!0}),e)),a1=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),wR=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=a1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),TR=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=a1().default,i=wR();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),ka=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=TR();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zn=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=ka();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});function Ra(e){const t={subscribe(n){let i=null,s=!1,o=!1,u=!1;function f(){if(i===null){u=!0;return}o||(o=!0,typeof i=="function"?i():i&&i.unsubscribe())}return i=e({next(h){var d;s||(d=n.next)===null||d===void 0||d.call(n,h)},error(h){var d;s||(s=!0,(d=n.error)===null||d===void 0||d.call(n,h),f())},complete(){var h;s||(s=!0,(h=n.complete)===null||h===void 0||h.call(n),f())}}),u&&f(),{unsubscribe:f}},pipe(...n){return n.reduce(CR,t)}};return t}function CR(e,t){return t(e)}function kR(e){const t=new AbortController;return new Promise((i,s)=>{let o=!1;function u(){o||(o=!0,f.unsubscribe())}t.signal.addEventListener("abort",()=>{s(t.signal.reason)});const f=e.subscribe({next(h){o=!0,i(h),u()},error(h){s(h)},complete(){t.abort(),u()}})})}function RR(e){return t=>{let n=0,i=null;const s=[];function o(){i||(i=t.subscribe({next(f){for(const d of s){var h;(h=d.next)===null||h===void 0||h.call(d,f)}},error(f){for(const d of s){var h;(h=d.error)===null||h===void 0||h.call(d,f)}},complete(){for(const h of s){var f;(f=h.complete)===null||f===void 0||f.call(h)}}}))}function u(){if(n===0&&i){const f=i;i=null,f.unsubscribe()}}return Ra(f=>(n++,s.push(f),o(),{unsubscribe(){n--,u();const h=s.findIndex(d=>d===f);h>-1&&s.splice(h,1)}}))}}function s1(e){let t=e;const n=[],i=u=>{t!==void 0&&u.next(t),n.push(u)},s=u=>{n.splice(n.indexOf(u),1)},o=Ra(u=>(i(u),()=>{s(u)}));return o.next=u=>{if(t!==u){t=u;for(const f of n)f.next(u)}},o.get=()=>t,o}function l1(e){return Ra(t=>{function n(s=0,o=e.op){const u=e.links[s];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:o,next(h){return n(s+1,h)}})}return n().subscribe(t)})}function V0(e){return Array.isArray(e)?e:[e]}function AR(e){return t=>{const n=V0(e.true).map(s=>s(t)),i=V0(e.false).map(s=>s(t));return s=>Ra(o=>{const u=e.condition(s.op)?n:i;return l1({op:s.op,links:u}).subscribe(o)})}}function Mi(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function OR(e){return typeof e=="function"}const LR=typeof Symbol=="function"&&!!Symbol.asyncIterator;function NR(e){return LR&&Mi(e)&&Symbol.asyncIterator in e}const Qm=e=>e();function H0(e=0){return new Promise(t=>setTimeout(t,e))}var DR=Object.create,o1=Object.defineProperty,jR=Object.getOwnPropertyDescriptor,u1=Object.getOwnPropertyNames,MR=Object.getPrototypeOf,PR=Object.prototype.hasOwnProperty,Mo=(e,t)=>function(){return t||(0,e[u1(e)[0]])((t={exports:{}}).exports,t),t.exports},zR=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=u1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!PR.call(e,f)&&f!==n&&o1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=jR(t,f))||i.enumerable});return e},ff=(e,t,n)=>(n=e!=null?DR(MR(e)):{},zR(o1(n,"default",{value:e,enumerable:!0}),e));const c1=()=>{},G0=e=>{Object.freeze&&Object.freeze(e)};function f1(e,t,n){var i;const s=t.join(".");return(i=n[s])!==null&&i!==void 0||(n[s]=new Proxy(c1,{get(o,u){if(!(typeof u!="string"||u==="then"))return f1(e,[...t,u],n)},apply(o,u,f){const h=t[t.length-1];let d={args:f,path:t};return h==="call"?d={args:f.length>=2?[f[1]]:[],path:t.slice(0,-1)}:h==="apply"&&(d={args:f.length>=2?f[1]:[],path:t.slice(0,-1)}),G0(d.args),G0(d.path),e(d)}})),n[s]}const h1=e=>f1(e,[],Object.create(null)),IR=e=>new Proxy(c1,{get(t,n){if(n!=="then")return e(n)}});var d1=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),BR=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=d1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),UR=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=d1().default,i=BR();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),m1=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=UR();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ep=Mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=m1();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});ff(Ep());var F0=ff(m1()),qR=class extends Error{};function VR(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(Mi(e))return Object.assign(new qR,e)}}var Q0=class extends Error{constructor(e){var t,n,i;const s=VR(e.cause),o=(t=(n=e.message)!==null&&n!==void 0?n:s==null?void 0:s.message)!==null&&t!==void 0?t:e.code;super(o,{cause:s}),(0,F0.default)(this,"cause",void 0),(0,F0.default)(this,"code",void 0),this.code=e.code,this.name="TRPCError",(i=this.cause)!==null&&i!==void 0||(this.cause=s)}},uc=ff(Ep());function HR(e,t){if("error"in e){const i=t.deserialize(e.error);return{ok:!1,error:(0,uc.default)((0,uc.default)({},e),{},{error:i})}}return{ok:!0,result:(0,uc.default)((0,uc.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var rm=class extends Error{constructor(){super("Unable to transform response from server")}};function p1(e,t){let n;try{n=HR(e,t)}catch{throw new rm}if(!n.ok&&(!Mi(n.error.error)||typeof n.error.error.code!="number"))throw new rm;if(n.ok&&!Mi(n.result))throw new rm;return n}ff(Ep());function GR(e){return typeof e=="function"}async function FR(e,t){const{_def:n}=e;let i=n.procedures[t];for(;!i;){const s=Object.keys(n.lazy).find(u=>t.startsWith(u));if(!s)return null;await n.lazy[s].load(),i=n.procedures[t]}return i}async function QR(e){const{type:t,path:n}=e,i=await FR(e.router,n);if(!i||!GR(i)||i._def.type!==t&&!e.allowMethodOverride)throw new Q0({code:"NOT_FOUND",message:`No "${t}"-procedure on path "${n}"`});/* istanbul ignore if -- @preserve */if(i._def.type!==t&&e.allowMethodOverride&&i._def.type==="subscription")throw new Q0({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return i(e)}var cc=ht(ka()),vs=ht(Zn());function $R(e){return e instanceof Br}function YR(e){return Mi(e)&&Mi(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function KR(e,t){return typeof e=="string"?e:Mi(e)&&typeof e.message=="string"?e.message:t}var Br=class Tc extends Error{constructor(t,n){var i,s;const o=n==null?void 0:n.cause;super(t,{cause:o}),(0,cc.default)(this,"cause",void 0),(0,cc.default)(this,"shape",void 0),(0,cc.default)(this,"data",void 0),(0,cc.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=o,this.shape=n==null||(i=n.result)===null||i===void 0?void 0:i.error,this.data=n==null||(s=n.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Tc.prototype)}static from(t,n={}){const i=t;return $R(i)?(n.meta&&(i.meta=(0,vs.default)((0,vs.default)({},i.meta),n.meta)),i):YR(i)?new Tc(i.error.message,(0,vs.default)((0,vs.default)({},n),{},{result:i})):new Tc(KR(i,"Unknown error"),(0,vs.default)((0,vs.default)({},n),{},{cause:i}))}};function g1(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const $0=e=>typeof e=="function";function XR(e){if(e)return e;if(typeof window<"u"&&$0(window.fetch))return window.fetch;if(typeof globalThis<"u"&&$0(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var fo=ht(Zn());function ZR(e){return{url:e.url.toString(),fetch:e.fetch,transformer:g1(e.transformer),methodOverride:e.methodOverride}}function JR(e){const t={};for(let n=0;n<e.length;n++){const i=e[n];t[n]=i}return t}const WR={query:"GET",mutation:"POST",subscription:"PATCH"};function y1(e){return"input"in e?e.transformer.input.serialize(e.input):JR(e.inputs.map(t=>e.transformer.input.serialize(t)))}const v1=e=>{const t=e.url.split("?");let i=t[0].replace(/\/$/,"")+"/"+e.path;const s=[];if(t[1]&&s.push(t[1]),"inputs"in e&&s.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=y1(e);o!==void 0&&e.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return s.length&&(i+="?"+s.join("&")),i},eA=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=y1(e);return t!==void 0?JSON.stringify(t):void 0},tA=e=>aA((0,fo.default)((0,fo.default)({},e),{},{contentTypeHeader:"application/json",getUrl:v1,getBody:eA}));var nA=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const rA=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new nA};async function iA(e){var t;rA(e.signal);const n=e.getUrl(e),i=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:WR[e.type],o=await(async()=>{const f=await e.headers();return Symbol.iterator in f?Object.fromEntries(f):f})(),u=(0,fo.default)((0,fo.default)((0,fo.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return XR(e.fetch)(n,{method:s,signal:e.signal,body:i,headers:u})}async function aA(e){const t={},n=await iA(e);t.response=n;const i=await n.json();return t.responseJSON=i,{json:i,meta:t}}ht(Zn());const Y0=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function K0(e){let t=null,n=null;const i=()=>{clearTimeout(n),n=null,t=null};function s(f){const h=[[]];let d=0;for(;;){const _=f[d];if(!_)break;const v=h[h.length-1];if(_.aborted){var y;(y=_.reject)===null||y===void 0||y.call(_,new Error("Aborted")),d++;continue}if(e.validate(v.concat(_).map(E=>E.key))){v.push(_),d++;continue}if(v.length===0){var p;(p=_.reject)===null||p===void 0||p.call(_,new Error("Input is too big for a single dispatch")),d++;continue}h.push([])}return h}function o(){const f=s(t);i();for(const h of f){if(!h.length)continue;const d={items:h};for(const p of h)p.batch=d;e.fetch(d.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(v,x)=>{const E=d.items[x];try{var C;const k=await Promise.resolve(v);(C=E.resolve)===null||C===void 0||C.call(E,k)}catch(k){var T;(T=E.reject)===null||T===void 0||T.call(E,k)}E.batch=null,E.reject=null,E.resolve=null}));for(const v of d.items){var _;(_=v.reject)===null||_===void 0||_.call(v,new Error("Missing result")),v.batch=null}}).catch(p=>{for(const v of d.items){var _;(_=v.reject)===null||_===void 0||_.call(v,p),v.batch=null}})}}function u(f){var h;const d={aborted:!1,key:f,batch:null,resolve:Y0,reject:Y0},y=new Promise((p,_)=>{var v;d.reject=_,d.resolve=p,(v=t)!==null&&v!==void 0||(t=[]),t.push(d)});return(h=n)!==null&&h!==void 0||(n=setTimeout(o)),y}return{load:u}}function sA(...e){const t=new AbortController,n=e.length;let i=0;const s=()=>{++i===n&&t.abort()};for(const o of e)o!=null&&o.aborted?s():o==null||o.addEventListener("abort",s,{once:!0});return t.signal}var fc=ht(Zn());function lA(e){var t,n;const i=ZR(e),s=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const u=y=>({validate(p){if(s===1/0&&o===1/0)return!0;if(p.length>o)return!1;const _=p.map(E=>E.path).join(","),v=p.map(E=>E.input);return v1((0,fc.default)((0,fc.default)({},i),{},{type:y,path:_,inputs:v,signal:null})).length<=s},async fetch(p){const _=p.map(k=>k.path).join(","),v=p.map(k=>k.input),x=sA(...p.map(k=>k.signal)),E=await tA((0,fc.default)((0,fc.default)({},i),{},{path:_,inputs:v,type:y,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:p}):e.headers:{}},signal:x}));return(Array.isArray(E.json)?E.json:p.map(()=>E.json)).map(k=>({meta:E.meta,json:k}))}}),f=K0(u("query")),h=K0(u("mutation")),d={query:f,mutation:h};return({op:y})=>Ra(p=>{/* istanbul ignore if -- @preserve */if(y.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const v=d[y.type].load(y);let x;return v.then(E=>{x=E;const C=p1(E.json,i.transformer.output);if(!C.ok){p.error(Br.from(C.error,{meta:E.meta}));return}p.next({context:E.meta,result:C.result}),p.complete()}).catch(E=>{p.error(Br.from(E,{meta:x==null?void 0:x.meta}))}),()=>{}})}}ht(Zn());const oA={enabled:!1,closeMs:0},uA={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},cA=e=>e===0?0:Math.min(1e3*2**e,3e4),_1=(e,...t)=>typeof e=="function"?e(...t):e;var fA=ht(ka()),_s=class b1 extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,b1.prototype)}},hA=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,fA.default)(this,"timeout",void 0)}reset(){this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function x1(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),resolve:e,reject:t}}async function dA(e){const t=await _1(e.url);if(!e.connectionParams)return t;const i=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+i}async function mA(e){const t={method:"connectionParams",data:await _1(e)};return JSON.stringify(t)}var X0=ht(ka()),pA=class{constructor(){(0,X0.default)(this,"outgoingRequests",new Array),(0,X0.default)(this,"pendingRequests",{})}register(e,t){const{promise:n,resolve:i}=x1();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),i()},error:s=>{t.error(s),i()}}}),()=>{this.delete(e.id),t.complete(),i()}}delete(e){e!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){const e=this.outgoingRequests;this.outgoingRequests=[];for(const t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return e===null?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:"outgoing",message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:"pending",message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>e.message.method==="subscription")}hasOutgoingRequests(){return this.outgoingRequests.length>0}},ia=ht(ka());function gA(e){const{promise:t,resolve:n,reject:i}=x1();return e.addEventListener("open",()=>{e.removeEventListener("error",i),n()}),e.addEventListener("error",i),t}function yA(e,{intervalMs:t,pongTimeoutMs:n}){let i,s;function o(){i=setTimeout(()=>{e.send("PING"),s=setTimeout(()=>{e.close()},n)},t)}function u(){clearTimeout(i),o()}function f(){clearTimeout(s),u()}e.addEventListener("open",o),e.addEventListener("message",({data:h})=>{clearTimeout(i),o(),h==="PONG"&&f()}),e.addEventListener("close",()=>{clearTimeout(i),clearTimeout(s)})}var S1=class $m{constructor(t){var n;if((0,ia.default)(this,"id",++$m.connectCount),(0,ia.default)(this,"WebSocketPonyfill",void 0),(0,ia.default)(this,"urlOptions",void 0),(0,ia.default)(this,"keepAliveOpts",void 0),(0,ia.default)(this,"wsObservable",s1(null)),(0,ia.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++$m.connectCount;const n=dA(t.urlOptions).then(i=>new t.WebSocketPonyfill(i));t.openPromise=n.then(async i=>{t.ws=i,i.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&yA(i,t.keepAliveOpts),i.addEventListener("close",()=>{t.ws===i&&(t.ws=null)}),await gA(i),t.urlOptions.connectionParams&&i.send(await mA(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,ia.default)(S1,"connectCount",0);function vA(e){return e.isOpen()?{id:e.id,state:"open",ws:e.ws}:e.isClosed()?{id:e.id,state:"closed",ws:e.ws}:e.ws?{id:e.id,state:"connecting",ws:e.ws}:null}var Nr=ht(ka()),bs=ht(Zn()),_A=class{constructor(e){var t;(0,Nr.default)(this,"connectionState",void 0),(0,Nr.default)(this,"allowReconnect",!1),(0,Nr.default)(this,"requestManager",new pA),(0,Nr.default)(this,"activeConnection",void 0),(0,Nr.default)(this,"reconnectRetryDelay",void 0),(0,Nr.default)(this,"inactivityTimeout",void 0),(0,Nr.default)(this,"callbacks",void 0),(0,Nr.default)(this,"lazyMode",void 0),(0,Nr.default)(this,"reconnecting",null),this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};const n=(0,bs.default)((0,bs.default)({},oA),e.lazy);this.inactivityTimeout=new hA(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},n.closeMs),this.activeConnection=new S1({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,bs.default)((0,bs.default)({},uA),e.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:i=>{i&&this.setupWebSocketListeners(i)}}),this.reconnectRetryDelay=(t=e.retryDelayMs)!==null&&t!==void 0?t:cA,this.lazyMode=n.enabled,this.connectionState=s1({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,e.connectionState.get().state==="idle"&&e.connectionState.next({type:"state",state:"connecting",error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new _s({message:"Initialization error",cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();const t=[];for(const n of e.requestManager.getRequests())n.message.method==="subscription"?n.callbacks.complete():n.state==="outgoing"?n.callbacks.error(Br.from(new _s({message:"Closed before connection was established"}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:e,type:t,path:n,input:i,signal:s},transformer:o,lastEventId:u}){return Ra(f=>{const h=this.batchSend({id:e,method:t,params:{input:o.input.serialize(i),path:n,lastEventId:u}},(0,bs.default)((0,bs.default)({},f),{},{next(d){const y=p1(d,o.output);if(!y.ok){f.error(Br.from(y.error));return}f.next({result:y.result})}}));return()=>{h(),t==="subscription"&&this.activeConnection.isOpen()&&this.send({id:e,method:"subscription.stop"}),s==null||s.removeEventListener("abort",h)}})}get connection(){return vA(this.activeConnection)}reconnect(e){var t=this;if(this.connectionState.next({type:"state",state:"connecting",error:Br.from(e)}),this.reconnecting)return;const n=async i=>{try{await H0(t.reconnectRetryDelay(i)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:s})=>s))),t.reconnecting=null}catch{await n(i+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;const n=i=>{const s=this.requestManager.getPendingRequests();for(const{message:o,callbacks:u}of s)o.method!=="subscription"&&(u.error(Br.from(i??new _s({message:"WebSocket closed",cause:i}))),this.requestManager.delete(o.id))};e.addEventListener("open",()=>{Qm(async()=>{var i,s;t.lazyMode&&t.inactivityTimeout.start(),(i=(s=t.callbacks).onOpen)===null||i===void 0||i.call(s),t.connectionState.next({type:"state",state:"pending",error:null})}).catch(i=>{e.close(3e3),n(i)})}),e.addEventListener("message",({data:i})=>{if(this.inactivityTimeout.reset(),typeof i!="string"||["PING","PONG"].includes(i))return;const s=JSON.parse(i);if("method"in s){this.handleIncomingRequest(s);return}this.handleResponseMessage(s)}),e.addEventListener("close",i=>{var s,o;n(i),(s=(o=this.callbacks).onClose)===null||s===void 0||s.call(o,i),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new _s({message:"WebSocket closed",cause:i}))}),e.addEventListener("error",i=>{var s,o;n(i),(s=(o=this.callbacks).onError)===null||s===void 0||s.call(o,i),this.reconnect(new _s({message:"WebSocket closed",cause:i}))})}handleResponseMessage(e){const t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;"result"in e&&t.message.method==="subscription"&&(e.result.type==="data"&&(t.message.params.lastEventId=e.result.id),e.result.type!=="stopped"&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){e.method==="reconnect"&&this.reconnect(new _s({message:"Server requested reconnect"}))}send(e){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const t=e instanceof Array?e:[e];this.activeConnection.ws.send(JSON.stringify(t.length===1?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),Qm(async()=>{n.activeConnection.isOpen()||await n.open(),await H0(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:i})=>i))}).catch(i=>{this.requestManager.delete(e.id),t.error(Br.from(i))}),this.requestManager.register(e,t)}};function bA(e){return new _A(e)}function xA(e){const{client:t}=e,n=g1(e.transformer);return()=>({op:i})=>Ra(s=>{const o=i.type==="subscription"?t.connectionState.subscribe({next(f){s.next({result:f,context:i.context})}}):null,u=t.request({op:i,transformer:n}).subscribe(s);return()=>{u.unsubscribe(),o==null||o.unsubscribe()}})}var im=ht(ka()),Z0=ht(Zn()),E1=class{constructor(e){(0,im.default)(this,"links",void 0),(0,im.default)(this,"runtime",void 0),(0,im.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return l1({links:this.links,op:(0,Z0.default)((0,Z0.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(RR())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await kR(n)).result.data}catch(n){throw Br.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(s){switch(s.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,s.result);break}case"started":{var u;(u=n.onStarted)===null||u===void 0||u.call(n,{context:s.context});break}case"stopped":{var f;(f=n.onStopped)===null||f===void 0||f.call(n);break}case"data":case void 0:{var h;(h=n.onData)===null||h===void 0||h.call(n,s.result.data);break}}},error(s){var o;(o=n.onError)===null||o===void 0||o.call(n,s)},complete(){var s;(s=n.onComplete)===null||s===void 0||s.call(n)}})}};const w1=Symbol.for("trpc_untypedClient"),SA={query:"query",mutate:"mutation",subscribe:"subscription"},EA=e=>SA[e];function wA(e){const t=h1(({path:n,args:i})=>{const s=[...n],o=EA(s.pop()),u=s.join(".");return e[o](u,...i)});return IR(n=>n===w1?e:t[n])}function TA(e){const t=new E1(e);return wA(t)}function CA(e){return e[w1]}ht(Zn());ht(Zn());var kA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):o(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):o(h.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});ht(kA());ht(Zn());var RA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var i=typeof SuppressedError=="function"?SuppressedError:function(f,h){var d=Error();return d.name="SuppressedError",d.error=f,d.suppressed=h,d},s={},o=[];function u(f,h){if(h!=null){if(Object(h)!==h)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(f)var d=h[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=h[Symbol.dispose||Symbol.for("Symbol.dispose")],f))var y=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");y&&(d=function(){try{y.call(h)}catch(_){return Promise.reject(_)}}),o.push({v:h,d,a:f})}else f&&o.push({d:h,a:f});return h}return{e:s,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var h,d=this.e,y=0;function p(){for(;h=o.pop();)try{if(!h.a&&y===1)return y=0,o.push(h),Promise.resolve().then(p);if(h.d){var v=h.d.call(h.v);if(h.a)return y|=2,Promise.resolve(v).then(p,_)}else y|=1}catch(x){return _(x)}if(y===1)return d!==s?Promise.reject(d):Promise.resolve();if(d!==s)throw d}function _(v){return d=d!==s?new i(v,d):v,p()}return p()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),T1=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(i,s){this.v=i,this.k=s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),AA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=T1();function i(s){return new n(s,0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),OA=ur({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=T1();function i(o){return function(){return new s(o.apply(this,arguments))}}function s(o){var u,f;function h(y,p){try{var _=o[y](p),v=_.value,x=v instanceof n;Promise.resolve(x?v.v:v).then(function(E){if(x){var C=y==="return"?"return":"next";if(!v.k||E.done)return h(C,E);E=o[C](E).value}d(_.done?"return":"normal",E)},function(E){h("throw",E)})}catch(E){d("throw",E)}}function d(y,p){switch(y){case"return":u.resolve({value:p,done:!0});break;case"throw":u.reject(p);break;default:u.resolve({value:p,done:!1})}(u=u.next)?h(u.key,u.arg):f=null}this._invoke=function(y,p){return new Promise(function(_,v){var x={key:y,arg:p,resolve:_,reject:v,next:null};f?f=f.next=x:(u=f=x,h(y,p))})},typeof o.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(o){return this._invoke("next",o)},s.prototype.throw=function(o){return this._invoke("throw",o)},s.prototype.return=function(o){return this._invoke("return",o)},t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});ht(RA());ht(AA());ht(OA());ht(Zn());var LA=Object.create,C1=Object.defineProperty,NA=Object.getOwnPropertyDescriptor,k1=Object.getOwnPropertyNames,DA=Object.getPrototypeOf,jA=Object.prototype.hasOwnProperty,Pi=(e,t)=>function(){return t||(0,e[k1(e)[0]])((t={exports:{}}).exports,t),t.exports},MA=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=k1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!jA.call(e,f)&&f!==n&&C1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=NA(t,f))||i.enumerable});return e},zi=(e,t,n)=>(n=e!=null?LA(DA(e)):{},MA(t||!e||!e.__esModule?C1(n,"default",{value:e,enumerable:!0}):n,e)),R1=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),PA=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=R1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),zA=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=R1().default,i=PA();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),IA=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=zA();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),el=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=IA();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),BA=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):o(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):o(h.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),UA=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(i,s){if(i==null)return{};var o={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(s.includes(u))continue;o[u]=i[u]}return o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),qA=Pi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=UA();function i(s,o){if(s==null)return{};var u,f,h=n(s,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);for(f=0;f<d.length;f++)u=d[f],o.includes(u)||{}.propertyIsEnumerable.call(s,u)&&(h[u]=s[u])}return h}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),ho=zi(el(),1),VA=zi(BA(),1),HA=zi(qA(),1);const GA=["cursor","direction"];function hf(e){return{path:e.path.join(".")}}function FA(e){return e.length>=3}function A1(e){return FA(e)?{type:"prefixed",prefix:e[0],path:e[1],args:e[2]}:{type:"unprefixed",prefix:void 0,path:e[0],args:e[1]}}function wp(e,t,n){var i;const s=A1(e);let o=(i=s.args)===null||i===void 0?void 0:i.input;if(n){var u,f;o=(0,ho.default)((0,ho.default)((0,ho.default)({},(u=(f=s.args)===null||f===void 0?void 0:f.input)!==null&&u!==void 0?u:{}),n.pageParam!==void 0?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[s.path.join("."),o,t==null?void 0:t.trpc]}async function QA(e,t,n){const s=t.getQueryCache().build(t,{queryKey:n});s.setState({data:[],status:"success"});const o=[];var u=!1,f=!1,h;try{for(var d=(0,VA.default)(e),y;u=!(y=await d.next()).done;u=!1){const p=y.value;o.push(p),s.setState({data:[...o]})}}catch(p){f=!0,h=p}finally{try{u&&d.return!=null&&await d.return()}finally{if(f)throw h}}return o}function Dr(e){const t=Qm(()=>{const{input:n,type:i}=e,s=e.path.flatMap(o=>o.split("."));if(!n&&i==="any")return s.length?[s]:[];if(i==="infinite"&&Mi(n)&&("direction"in n||"cursor"in n)){const{cursor:o,direction:u}=n,f=(0,HA.default)(n,GA);return[s,{input:f,type:"infinite"}]}return[s,(0,ho.default)((0,ho.default)({},typeof n<"u"&&n!==Vr&&{input:n}),i&&i!=="any"&&{type:i})]});return e.prefix&&t.unshift([e.prefix]),t}function O1(e){const t=[e.path.flatMap(n=>n.split("."))];return e.prefix&&t.unshift([e.prefix]),t}function Tp(e){return OR(e)?e():e}var xs=zi(el());function $A(e){var t;const{input:n,query:i,path:s,queryKey:o,opts:u}=e,f=n===Vr,h=async d=>{var y;const p=(0,xs.default)((0,xs.default)({},u),{},{trpc:(0,xs.default)((0,xs.default)({},u==null?void 0:u.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:d.signal}:{signal:null})});return await i(...wp(o,p,{direction:d.direction,pageParam:d.pageParam}))};return Object.assign((0,xs.default)((0,xs.default)({},u??{}),{},{queryKey:o,queryFn:f?Vr:h,initialPageParam:(t=u==null?void 0:u.initialCursor)!==null&&t!==void 0?t:n==null?void 0:n.cursor}),{trpc:hf({path:s})})}var J0=zi(el());function YA(e){var t;const{mutate:n,path:i,opts:s,overrides:o}=e,u=Tp(e.queryClient),f=O1({path:i,prefix:s==null?void 0:s.keyPrefix}),h=u.defaultMutationOptions(u.getMutationDefaults(f)),d=(t=o==null?void 0:o.onSuccess)!==null&&t!==void 0?t:p=>p.originalFn(),y=async p=>await n(...wp([...f,{input:p}],s));return(0,J0.default)((0,J0.default)({},s),{},{mutationKey:f,mutationFn:y,onSuccess(...p){var _,v;return d({originalFn:()=>{var E,C,T;return(E=s==null||(C=s.onSuccess)===null||C===void 0?void 0:C.call(s,...p))!==null&&E!==void 0?E:h==null||(T=h.onSuccess)===null||T===void 0?void 0:T.call(h,...p)},queryClient:u,meta:(_=(v=s==null?void 0:s.meta)!==null&&v!==void 0?v:h==null?void 0:h.meta)!==null&&_!==void 0?_:{}})},trpc:hf({path:i})})}var Ss=zi(el());function KA(e){const{input:t,query:n,path:i,queryKey:s,opts:o}=e,u=Tp(e.queryClient),f=t===Vr,h=async d=>{var y;const p=(0,Ss.default)((0,Ss.default)({},o),{},{trpc:(0,Ss.default)((0,Ss.default)({},o==null?void 0:o.trpc),!(o==null||(y=o.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:d.signal}:{signal:null})}),_=d.queryKey,v=await n(...wp(_,p));return NR(v)?QA(v,u,_):v};return Object.assign((0,Ss.default)((0,Ss.default)({},o),{},{queryKey:s,queryFn:f?Vr:h}),{trpc:hf({path:i})})}var W0=zi(el(),1);const XA=e=>{var t;const{subscribe:n,path:i,queryKey:s,opts:o={}}=e,u=(t=A1(s))===null||t===void 0||(t=t.args)===null||t===void 0?void 0:t.input,f="enabled"in o?!!o.enabled:u!==Vr,h=d=>n(i.join("."),u??void 0,d);return(0,W0.default)((0,W0.default)({},o),{},{enabled:f,subscribe:h,queryKey:s,trpc:hf({path:i})})};var Es=zi(el(),1);function ZA(e){const t=e.keyPrefix,n=i=>(s,o,u)=>"router"in e?Promise.resolve(Tp(e.ctx)).then(h=>QR({router:e.router,path:s,getRawInput:async()=>o,ctx:h,type:i,signal:void 0})):(e.client instanceof E1?e.client:CA(e.client))[i](s,o,u);return h1(({args:i,path:s})=>{const o=[...s],u=o.pop(),[f,h]=i;return{"~types":void 0,pathKey:()=>Dr({path:o,type:"any",prefix:t}),pathFilter:()=>(0,Es.default)((0,Es.default)({},f),{},{queryKey:Dr({path:o,type:"any",prefix:t})}),queryOptions:()=>KA({input:f,opts:h,path:o,queryClient:e.queryClient,queryKey:Dr({path:o,input:f,type:"query",prefix:t}),query:n("query")}),queryKey:()=>Dr({path:o,input:f,type:"query",prefix:t}),queryFilter:()=>(0,Es.default)((0,Es.default)({},h),{},{queryKey:Dr({path:o,input:f,type:"query",prefix:t})}),infiniteQueryOptions:()=>$A({input:f,opts:h,path:o,queryKey:Dr({path:o,input:f,type:"infinite",prefix:t}),query:n("query")}),infiniteQueryKey:()=>Dr({path:o,input:f,type:"infinite",prefix:t}),infiniteQueryFilter:()=>(0,Es.default)((0,Es.default)({},h),{},{queryKey:Dr({path:o,input:f,type:"infinite",prefix:t})}),mutationOptions:()=>{var y;return YA({opts:f,path:o,queryClient:e.queryClient,mutate:n("mutation"),overrides:(y=e.overrides)===null||y===void 0?void 0:y.mutations})},mutationKey:()=>O1({path:o,prefix:t}),subscriptionOptions:()=>XA({opts:h,path:o,queryKey:Dr({path:o,input:f,type:"any",prefix:t}),subscribe:n("subscription")})}[u]()})}function As(){const t=new URLSearchParams(window.location.search).get("api");return t?t.replace(/\/$/,""):""}function JA(){const e=As();if(e){const n=new URL(e);return`${n.protocol==="https:"?"wss:":"ws:"}//${n.host}/trpc`}return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/trpc`}function WA(){const e=As();return e?`${e}/trpc`:"/trpc"}function e2(){const e=As();return e?`${e}/api/health`:"/api/health"}const L1=new xC({defaultOptions:{queries:{staleTime:60*1e3}}}),t2=bA({url:JA(),retryDelayMs:()=>1e3}),Et=TA({links:[AR({condition:e=>e.type==="subscription",true:xA({client:t2}),false:lA({url:WA()})})]}),eb=ZA({client:Et,queryClient:L1});function n2(e){const t=new MutationObserver(n=>{for(const i of n)i.attributeName==="class"&&e()});return t.observe(document.documentElement,{attributes:!0}),()=>t.disconnect()}function r2(){return document.documentElement.classList.contains("dark")}function i2(){return!1}function N1(){return re.useSyncExternalStore(n2,r2,i2)}/**
|
|
67
|
+
* @license lucide-react v0.472.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const a2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D1=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
|
|
72
|
+
* @license lucide-react v0.472.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var s2={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"};/**
|
|
77
|
+
* @license lucide-react v0.472.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const l2=re.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:o,iconNode:u,...f},h)=>re.createElement("svg",{ref:h,...s2,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:D1("lucide",s),...f},[...u.map(([d,y])=>re.createElement(d,y)),...Array.isArray(o)?o:[o]]));/**
|
|
82
|
+
* @license lucide-react v0.472.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Qe=(e,t)=>{const n=re.forwardRef(({className:i,...s},o)=>re.createElement(l2,{ref:o,iconNode:t,className:D1(`lucide-${a2(e)}`,i),...s}));return n.displayName=`${e}`,n};/**
|
|
87
|
+
* @license lucide-react v0.472.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const o2=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],xa=Qe("Archive",o2);/**
|
|
92
|
+
* @license lucide-react v0.472.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const u2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Cp=Qe("ArrowLeft",u2);/**
|
|
97
|
+
* @license lucide-react v0.472.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const c2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],f2=Qe("Bot",c2);/**
|
|
102
|
+
* @license lucide-react v0.472.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const h2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],d2=Qe("Check",h2);/**
|
|
107
|
+
* @license lucide-react v0.472.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const m2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],p2=Qe("ChevronDown",m2);/**
|
|
112
|
+
* @license lucide-react v0.472.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const g2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kp=Qe("ChevronRight",g2);/**
|
|
117
|
+
* @license lucide-react v0.472.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const y2=[["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"}]],j1=Qe("CircleAlert",y2);/**
|
|
122
|
+
* @license lucide-react v0.472.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const v2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],df=Qe("CircleCheckBig",v2);/**
|
|
127
|
+
* @license lucide-react v0.472.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const _2=[["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"}]],b2=Qe("CircleX",_2);/**
|
|
132
|
+
* @license lucide-react v0.472.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const x2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],S2=Qe("Circle",x2);/**
|
|
137
|
+
* @license lucide-react v0.472.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const E2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ks=Qe("FileText",E2);/**
|
|
142
|
+
* @license lucide-react v0.472.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const w2=[["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"}]],T2=Qe("FolderOpen",w2);/**
|
|
147
|
+
* @license lucide-react v0.472.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const C2=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],k2=Qe("FolderPlus",C2);/**
|
|
152
|
+
* @license lucide-react v0.472.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const R2=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],A2=Qe("Folder",R2);/**
|
|
157
|
+
* @license lucide-react v0.472.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const O2=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Rp=Qe("GitBranch",O2);/**
|
|
162
|
+
* @license lucide-react v0.472.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const L2=[["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"}]],N2=Qe("LayoutDashboard",L2);/**
|
|
167
|
+
* @license lucide-react v0.472.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const D2=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],j2=Qe("ListTodo",D2);/**
|
|
172
|
+
* @license lucide-react v0.472.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const M2=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],tb=Qe("List",M2);/**
|
|
177
|
+
* @license lucide-react v0.472.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const P2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],z2=Qe("LoaderCircle",P2);/**
|
|
182
|
+
* @license lucide-react v0.472.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const I2=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],B2=Qe("Menu",I2);/**
|
|
187
|
+
* @license lucide-react v0.472.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const U2=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],q2=Qe("Monitor",U2);/**
|
|
192
|
+
* @license lucide-react v0.472.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const V2=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],H2=Qe("Moon",V2);/**
|
|
197
|
+
* @license lucide-react v0.472.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const G2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],F2=Qe("Pen",G2);/**
|
|
202
|
+
* @license lucide-react v0.472.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const Q2=[["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"}]],$2=Qe("Save",Q2);/**
|
|
207
|
+
* @license lucide-react v0.472.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const Y2=[["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"}]],K2=Qe("Settings",Y2);/**
|
|
212
|
+
* @license lucide-react v0.472.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const X2=[["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"}]],Z2=Qe("Sun",X2);/**
|
|
217
|
+
* @license lucide-react v0.472.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const J2=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],W2=Qe("Terminal",J2);/**
|
|
222
|
+
* @license lucide-react v0.472.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const eO=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],M1=Qe("WifiOff",eO);/**
|
|
227
|
+
* @license lucide-react v0.472.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const tO=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],P1=Qe("Wifi",tO);/**
|
|
232
|
+
* @license lucide-react v0.472.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const nO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],z1=Qe("X",nO),Uc=[{to:"/",icon:N2,label:"Dashboard"},{to:"/project",icon:A2,label:"Project"},{to:"/specs",icon:Ks,label:"Specs"},{to:"/changes",icon:Rp,label:"Changes"},{to:"/archive",icon:xa,label:"Archive"}],Os={to:"/settings",icon:K2,label:"Settings"};function rO(){const e=N1();return S.jsxs("nav",{className:"desktop-sidebar w-64 border-r border-border bg-muted/30 p-4 flex flex-col shrink-0",children:[S.jsx("div",{className:"mb-6",children:S.jsx("img",{src:e?"/openspec_pixel_dark.svg":"/openspec_pixel_light.svg",alt:"OpenSpec",className:"h-6"})}),S.jsx("ul",{className:"space-y-1 flex-1",children:Uc.map(t=>S.jsx("li",{children:S.jsxs(ut,{to:t.to,className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(t.icon,{className:"w-4 h-4"}),t.label]})},t.to))}),S.jsx("div",{className:"pt-4 border-t border-border",children:S.jsxs(ut,{to:Os.to,className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(Os.icon,{className:"w-4 h-4"}),Os.label]})})]})}function I1(){const[e,t]=re.useState({connected:!1,projectDir:null,dirName:null,watcherEnabled:!1,error:null});return re.useEffect(()=>{let n=!0,i;async function s(){try{const u=await fetch(e2());if(!u.ok)throw new Error(`HTTP ${u.status}`);const f=await u.json();if(n){const h=f.projectDir,d=h.split("/").pop()||h;t({connected:!0,projectDir:h,dirName:d,watcherEnabled:f.watcherEnabled,error:null}),document.title=`${d} - OpenSpec UI`}}catch(u){n&&(t(f=>({...f,connected:!1,error:u instanceof Error?u.message:"Connection failed"})),document.title="OpenSpec UI (Disconnected)",i=setTimeout(s,3e3))}}s();const o=setInterval(()=>{n&&s()},3e4);return()=>{n=!1,clearInterval(o),clearTimeout(i)}},[]),e}function B1(){const e=I1();return S.jsx("div",{className:"status-indicator flex items-center gap-1.5 text-xs",children:e.connected?S.jsxs(S.Fragment,{children:[S.jsx(P1,{className:"w-3.5 h-3.5 text-green-500"}),S.jsx("span",{className:"status-text text-green-600",children:"Live"})]}):S.jsxs(S.Fragment,{children:[S.jsx(M1,{className:"w-3.5 h-3.5 text-red-500"}),S.jsx("span",{className:"status-text text-red-600",children:"Offline"})]})})}function iO(){const e=I1();return S.jsxs("div",{className:"desktop-status h-8 border-t border-border bg-muted/30 px-4 flex items-center justify-between text-xs text-muted-foreground",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(B1,{}),e.projectDir&&S.jsxs("div",{className:"flex items-center gap-1.5",title:e.projectDir,children:[S.jsx(T2,{className:"w-3.5 h-3.5"}),S.jsx("span",{className:"max-w-[300px] truncate",children:e.projectDir})]})]}),e.connected&&S.jsx("div",{className:"flex items-center gap-1.5",children:e.watcherEnabled?S.jsx("span",{className:"text-green-600",children:"Watching for changes"}):S.jsx("span",{className:"text-yellow-600",children:"File watcher disabled"})})]})}function aO(){const[e,t]=re.useState(!1),n=N1(),s=$t().location.pathname,o=Uc.find(f=>f.to==="/"?s==="/":s.startsWith(f.to)),u=(o==null?void 0:o.label)??"OpenSpec";return S.jsxs(S.Fragment,{children:[S.jsxs("header",{className:"mobile-header h-12 border-b border-border bg-background px-4 flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("button",{onClick:()=>t(!0),className:"p-1.5 -ml-1.5 hover:bg-muted rounded-md","aria-label":"Open menu",children:S.jsx(B2,{className:"w-5 h-5"})}),S.jsx("span",{className:"font-semibold",children:u})]}),S.jsx(B1,{})]}),e&&S.jsxs("div",{className:"fixed inset-0 z-50 flex",children:[S.jsx("div",{className:"absolute inset-0 bg-black/50 animate-in fade-in duration-200",onClick:()=>t(!1)}),S.jsxs("nav",{className:"relative w-64 max-w-[80vw] bg-background border-r border-border p-4 flex flex-col animate-in slide-in-from-left duration-200",children:[S.jsxs("div",{className:"flex items-center justify-between mb-6",children:[S.jsx("img",{src:n?"/openspec_pixel_dark.svg":"/openspec_pixel_light.svg",alt:"OpenSpec",className:"h-5"}),S.jsx("button",{onClick:()=>t(!1),className:"p-1.5 hover:bg-muted rounded-md","aria-label":"Close menu",children:S.jsx(z1,{className:"w-5 h-5"})})]}),S.jsx("ul",{className:"space-y-1 flex-1",children:Uc.map(f=>S.jsx("li",{children:S.jsxs(ut,{to:f.to,onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(f.icon,{className:"w-4 h-4"}),f.label]})},f.to))}),S.jsx("div",{className:"pt-4 border-t border-border",children:S.jsxs(ut,{to:Os.to,onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(Os.icon,{className:"w-4 h-4"}),Os.label]})})]})]})]})}function sO(){return S.jsx("nav",{className:"mobile-tabbar h-14 border-t border-border bg-background flex items-stretch",children:Uc.slice(0,5).map(e=>S.jsxs(ut,{to:e.to,className:"flex-1 flex flex-col items-center justify-center gap-0.5 text-muted-foreground hover:text-foreground [&.active]:text-primary",children:[S.jsx(e.icon,{className:"w-5 h-5"}),S.jsx("span",{className:"text-[10px]",children:e.label})]},e.to))})}function lO(){return S.jsx("div",{className:"fixed inset-0 @container/app",style:{containerName:"app"},children:S.jsxs("div",{className:"app-layout h-full",children:[S.jsx(rO,{}),S.jsxs("div",{className:"app-body flex flex-col flex-1 min-h-0",children:[S.jsx(aO,{}),S.jsx("main",{className:"main-content flex flex-col",children:S.jsx(n1,{})}),S.jsx(sO,{}),S.jsx(iO,{})]})]})})}function Bn(e,t=[]){const[n,i]=re.useState({data:void 0,isLoading:!0,error:null}),s=re.useRef(null);return re.useEffect(()=>{var u;(u=s.current)==null||u.unsubscribe(),i(f=>({...f,isLoading:!0,error:null}));const o=e({onData:f=>{i({data:f,isLoading:!1,error:null})},onError:f=>{console.error("Subscription error:",f),i(h=>({...h,isLoading:!1,error:f}))}});return s.current=o,()=>{o.unsubscribe()}},t),n}function oO(){return Bn(e=>Et.dashboard.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function uO(){return Bn(e=>Et.dashboard.subscribeInitialized.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function cO(){return Bn(e=>Et.spec.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function fO(e){return Bn(t=>Et.spec.subscribeOne.subscribe({id:e},{onData:t.onData,onError:t.onError}),[e])}function hO(){return Bn(e=>Et.change.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function dO(e){return Bn(t=>Et.change.subscribeOne.subscribe({id:e},{onData:t.onData,onError:t.onError}),[e])}function mO(){return Bn(e=>Et.archive.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function pO(e){return Bn(t=>Et.archive.subscribeOne.subscribe({id:e},{onData:t.onData,onError:t.onError}),[e])}function gO(){return Bn(e=>Et.project.subscribeProjectMd.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function yO(){return Bn(e=>Et.project.subscribeAgentsMd.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function vO(){return Bn(e=>Et.config.subscribe.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function _O(){return Bn(e=>Et.cli.subscribeConfiguredTools.subscribe(void 0,{onData:e.onData,onError:e.onError}),[])}function bO(){const{data:e,isLoading:t,error:n}=oO(),{data:i}=uO(),s=re.useMemo(()=>e!=null&&e.specs?[...e.specs].sort((u,f)=>f.requirements.length-u.requirements.length):[],[e==null?void 0:e.specs]);if(t)return S.jsx("div",{className:"animate-pulse",children:"Loading dashboard..."});if(n)return S.jsxs("div",{className:"text-destructive flex items-center gap-2",children:[S.jsx(j1,{className:"w-5 h-5"}),"Error loading dashboard: ",n.message]});if(!i)return S.jsxs("div",{className:"text-center py-12",children:[S.jsx("h2",{className:"text-2xl font-bold mb-4",children:"OpenSpec Not Initialized"}),S.jsx("p",{className:"text-muted-foreground mb-6",children:"This project doesn't have an OpenSpec directory yet."}),S.jsx(ut,{to:"/settings",className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Initialize OpenSpec"})]});const{summary:o}=e;return S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[S.jsx(hc,{icon:S.jsx(Ks,{className:"w-5 h-5"}),label:"Specifications",value:o.specCount,sublabel:`${o.requirementCount} requirements`}),S.jsx(hc,{icon:S.jsx(Rp,{className:"w-5 h-5"}),label:"Active Changes",value:o.activeChangeCount,sublabel:"in progress"}),S.jsx(hc,{icon:S.jsx(xa,{className:"w-5 h-5"}),label:"Completed",value:o.archivedChangeCount,sublabel:"archived"}),S.jsx(hc,{icon:S.jsx(df,{className:"w-5 h-5"}),label:"Task Progress",value:`${o.completedTasks}/${o.totalTasks}`,sublabel:`${o.progressPercent}% complete`})]}),S.jsxs("section",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Active Changes"}),e.changes.length>0&&S.jsx(ut,{to:"/changes",className:"text-sm text-primary hover:underline",children:"View all"})]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e.changes.map(u=>{const f=u.progress.total>0?Math.round(u.progress.completed/u.progress.total*100):0;return S.jsxs(ut,{to:"/changes/$changeId",params:{changeId:u.id},className:"block p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("div",{className:"font-medium",children:u.name}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.progress.completed,"/",u.progress.total," tasks"]})]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:"flex-1 bg-muted rounded-full h-2",children:S.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${f}%`}})}),S.jsxs("span",{className:"text-sm font-medium w-12 text-right",children:[f,"%"]})]})]},u.id)}),e.changes.length===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/changes/"})]})]})]}),S.jsxs("section",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Specifications"}),s.length>0&&S.jsx(ut,{to:"/specs",className:"text-sm text-primary hover:underline",children:"View all"})]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[s.map(u=>S.jsxs(ut,{to:"/specs/$specId",params:{specId:u.id},className:"flex items-center justify-between p-3 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ks,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("span",{className:"font-medium",children:u.name})]}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.requirements.length," requirement",u.requirements.length!==1?"s":""]})]},u.id)),s.length===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs yet. Create one in ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/specs/"})]})]})]})]})}function hc({icon:e,label:t,value:n,sublabel:i}){return S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e,S.jsx("span",{className:"text-sm",children:t})]}),S.jsx("div",{className:"text-2xl font-bold",children:n}),S.jsx("div",{className:"text-sm text-muted-foreground",children:i})]})}function Ap(e){if(!e)return"";const n=Date.now()-e,i=Math.floor(n/1e3),s=Math.floor(i/60),o=Math.floor(s/60),u=Math.floor(o/24),f=Math.floor(u/7),h=Math.floor(u/30),d=Math.floor(u/365);return i<60?"just now":s<60?`${s}m ago`:o<24?`${o}h ago`:u<7?`${u}d ago`:f<4?`${f}w ago`:h<12?`${h}mo ago`:`${d}y ago`}function xO(){const{data:e,isLoading:t}=cO();return t?S.jsx("div",{className:"animate-pulse",children:"Loading specs..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Specifications"}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/specs/$specId",params:{specId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ks,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.id,n.updatedAt>0&&S.jsxs(S.Fragment,{children:[" · ",Ap(n.updatedAt)]})]})]})]}),S.jsx(kp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs found. Create a spec in ",S.jsx("code",{children:"openspec/specs/"})]})]})]})}function U1(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const SO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wO={};function nb(e,t){return(wO.jsx?EO:SO).test(e)}const TO=/[ \t\n\f\r]/g;function mf(e){return typeof e=="object"?e.type==="text"?rb(e.value):!1:rb(e)}function rb(e){return e.replace(TO,"")===""}class Po{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Po.prototype.normal={};Po.prototype.property={};Po.prototype.space=void 0;function q1(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Po(n,i,t)}function Ym(e){return e.toLowerCase()}class ln{constructor(t,n){this.attribute=n,this.property=t}}ln.prototype.attribute="";ln.prototype.booleanish=!1;ln.prototype.boolean=!1;ln.prototype.commaOrSpaceSeparated=!1;ln.prototype.commaSeparated=!1;ln.prototype.defined=!1;ln.prototype.mustUseProperty=!1;ln.prototype.number=!1;ln.prototype.overloadedBoolean=!1;ln.prototype.property="";ln.prototype.spaceSeparated=!1;ln.prototype.space=void 0;let CO=0;const ke=Aa(),yt=Aa(),Km=Aa(),se=Aa(),nt=Aa(),Ls=Aa(),vn=Aa();function Aa(){return 2**++CO}const Xm=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:yt,commaOrSpaceSeparated:vn,commaSeparated:Ls,number:se,overloadedBoolean:Km,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),am=Object.keys(Xm);class Op extends ln{constructor(t,n,i,s){let o=-1;if(super(t,n),ib(this,"space",s),typeof i=="number")for(;++o<am.length;){const u=am[o];ib(this,am[o],(i&Xm[u])===Xm[u])}}}Op.prototype.defined=!0;function ib(e,t,n){n&&(e[t]=n)}function tl(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const o=new Op(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Ym(i)]=i,n[Ym(o.attribute)]=i}return new Po(t,n,e.space)}const V1=tl({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:nt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:se,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:nt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:yt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function H1(e,t){return t in e?e[t]:t}function G1(e,t){return H1(e,t.toLowerCase())}const kO=tl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ls,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:nt,autoFocus:ke,autoPlay:ke,blocking:nt,capture:null,charSet:null,checked:ke,cite:null,className:nt,cols:se,colSpan:null,content:null,contentEditable:yt,controls:ke,controlsList:nt,coords:se|Ls,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:Km,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:nt,height:se,hidden:Km,high:se,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:nt,itemRef:nt,itemScope:ke,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:se,pattern:null,ping:nt,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:nt,required:ke,reversed:ke,rows:se,rowSpan:se,sandbox:nt,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:yt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:G1}),RO=tl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:vn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ls,g2:Ls,glyphName:Ls,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:se,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:H1}),F1=tl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Q1=tl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:G1}),$1=tl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),AO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},OO=/[A-Z]/g,ab=/-[a-z]/g,LO=/^data[-\w.:]+$/i;function Y1(e,t){const n=Ym(t);let i=t,s=ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&LO.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ab,DO);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ab.test(o)){let u=o.replace(OO,NO);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=Op}return new s(i,t)}function NO(e){return"-"+e.toLowerCase()}function DO(e){return e.charAt(1).toUpperCase()}const K1=q1([V1,kO,F1,Q1,$1],"html"),zo=q1([V1,RO,F1,Q1,$1],"svg");function X1(e){return e.join(" ").trim()}var ws={},sm,sb;function jO(){if(sb)return sm;sb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
|
|
237
|
+
`,d="/",y="*",p="",_="comment",v="declaration";function x(C,T){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];T=T||{};var k=1,O=1;function P(le){var ae=le.match(t);ae&&(k+=ae.length);var H=le.lastIndexOf(h);O=~H?le.length-H:O+le.length}function V(){var le={line:k,column:O};return function(ae){return ae.position=new L(le),te(),ae}}function L(le){this.start=le,this.end={line:k,column:O},this.source=T.source}L.prototype.content=C;function B(le){var ae=new Error(T.source+":"+k+":"+O+": "+le);if(ae.reason=le,ae.filename=T.source,ae.line=k,ae.column=O,ae.source=C,!T.silent)throw ae}function q(le){var ae=le.exec(C);if(ae){var H=ae[0];return P(H),C=C.slice(H.length),ae}}function te(){q(n)}function N(le){var ae;for(le=le||[];ae=$();)ae!==!1&&le.push(ae);return le}function $(){var le=V();if(!(d!=C.charAt(0)||y!=C.charAt(1))){for(var ae=2;p!=C.charAt(ae)&&(y!=C.charAt(ae)||d!=C.charAt(ae+1));)++ae;if(ae+=2,p===C.charAt(ae-1))return B("End of comment missing");var H=C.slice(2,ae-2);return O+=2,P(H),C=C.slice(ae),O+=2,le({type:_,comment:H})}}function ie(){var le=V(),ae=q(i);if(ae){if($(),!q(s))return B("property missing ':'");var H=q(o),ne=le({type:v,property:E(ae[0].replace(e,p)),value:H?E(H[0].replace(e,p)):p});return q(u),ne}}function me(){var le=[];N(le);for(var ae;ae=ie();)ae!==!1&&(le.push(ae),N(le));return le}return te(),me()}function E(C){return C?C.replace(f,p):p}return sm=x,sm}var lb;function MO(){if(lb)return ws;lb=1;var e=ws&&ws.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=n;const t=e(jO());function n(i,s){let o=null;if(!i||typeof i!="string")return o;const u=(0,t.default)(i),f=typeof s=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:d,value:y}=h;f?s(d,y,h):y&&(o=o||{},o[d]=y)}),o}return ws}var eo={},ob;function PO(){if(ob)return eo;ob=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},u=function(d,y){return y.toUpperCase()},f=function(d,y){return"".concat(y,"-")},h=function(d,y){return y===void 0&&(y={}),o(d)?d:(d=d.toLowerCase(),y.reactCompat?d=d.replace(s,f):d=d.replace(i,f),d.replace(t,u))};return eo.camelCase=h,eo}var to,ub;function zO(){if(ub)return to;ub=1;var e=to&&to.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(MO()),n=PO();function i(s,o){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(f,h){f&&h&&(u[(0,n.camelCase)(f,o)]=h)}),u}return i.default=i,to=i,to}var IO=zO();const BO=mp(IO),Z1=J1("end"),Lp=J1("start");function J1(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function UO(e){const t=Lp(e),n=Z1(e);if(t&&n)return{start:t,end:n}}function mo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cb(e.position):"start"in e||"end"in e?cb(e):"line"in e||"column"in e?Zm(e):""}function Zm(e){return fb(e&&e.line)+":"+fb(e&&e.column)}function cb(e){return Zm(e&&e.start)+"-"+Zm(e&&e.end)}function fb(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",o={},u=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?s=t:!o.cause&&t&&(u=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?o.ruleId=i:(o.source=i.slice(0,h),o.ruleId=i.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const f=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=mo(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const Np={}.hasOwnProperty,qO=new Map,VO=/[A-Z]/g,HO=new Set(["table","tbody","thead","tfoot","tr"]),GO=new Set(["td","th"]),W1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function FO(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=WO(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=JO(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zo:K1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=eS(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function eS(e,t,n){if(t.type==="element")return QO(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $O(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return KO(e,t,n);if(t.type==="mdxjsEsm")return YO(e,t);if(t.type==="root")return XO(e,t,n);if(t.type==="text")return ZO(e,t)}function QO(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=zo,e.schema=s),e.ancestors.push(t);const o=nS(e,t.tagName,!1),u=eL(e,t);let f=jp(e,t);return HO.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!mf(h):!0})),tS(e,u,o,t),Dp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function $O(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}xo(e,t.position)}function YO(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xo(e,t.position)}function KO(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=zo,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:nS(e,t.name,!0),u=tL(e,t),f=jp(e,t);return tS(e,u,o,t),Dp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function XO(e,t,n){const i={};return Dp(i,jp(e,t)),e.create(t,e.Fragment,i,n)}function ZO(e,t){return t.value}function tS(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Dp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function JO(e,t,n){return i;function i(s,o,u,f){const d=Array.isArray(u.children)?n:t;return f?d(o,u,f):d(o,u)}}function WO(e,t){return n;function n(i,s,o,u){const f=Array.isArray(o.children),h=Lp(i);return t(s,o,u,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function eL(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Np.call(t.properties,s)){const o=nL(e,s,t.properties[s]);if(o){const[u,f]=o;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&GO.has(t.tagName)?i=f:n[u]=f}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function tL(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const u=o.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else xo(e,t.position);else{const s=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,o=e.evaluater.evaluateExpression(f.expression)}else xo(e,t.position);else o=i.value===null?!0:i.value;n[s]=o}return n}function jp(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:qO;for(;++i<t.children.length;){const o=t.children[i];let u;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const d=s.get(h)||0;u=h+"-"+d,s.set(h,d+1)}}const f=eS(e,o,u);f!==void 0&&n.push(f)}return n}function nL(e,t,n){const i=Y1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?U1(n):X1(n)),i.property==="style"){let s=typeof n=="object"?n:rL(e,String(n));return e.stylePropertyNameCase==="css"&&(s=iL(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?AO[i.property]||i.property:i.attribute,n]}}function rL(e,t){try{return BO(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new Bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=W1+"#cannot-parse-style-attribute",s}}function nS(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,u;for(;++o<s.length;){const f=nb(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(o&&f.type==="Literal"),optional:!1}:f}i=u}else i=nb(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Np.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);xo(e)}function xo(e,t){const n=new Bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=W1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iL(e){const t={};let n;for(n in e)Np.call(e,n)&&(t[aL(n)]=e[n]);return t}function aL(e){let t=e.replace(VO,sL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function sL(e){return"-"+e.toLowerCase()}const lm={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},lL={};function Mp(e,t){const n=lL,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return rS(e,i,s)}function rS(e,t,n){if(oL(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hb(e.children,t,n)}return Array.isArray(e)?hb(e,t,n):""}function hb(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=rS(e[s],t,n);return i.join("")}function oL(e){return!!(e&&typeof e=="object")}const db=document.createElement("i");function Pp(e){const t="&"+e+";";db.innerHTML=t;const n=db.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function bn(e,t,n,i){const s=e.length;let o=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);o<i.length;)u=i.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function Mn(e,t){return e.length>0?(bn(e,e.length,0,t),e):t}const mb={}.hasOwnProperty;function iS(e){const t={};let n=-1;for(;++n<e.length;)uL(t,e[n]);return t}function uL(e,t){let n;for(n in t){const s=(mb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let u;if(o)for(u in o){mb.call(s,u)||(s[u]=[]);const f=o[u];cL(s[u],Array.isArray(f)?f:f?[f]:[])}}}function cL(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);bn(e,0,0,i)}function aS(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Xn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qt=Ii(/[A-Za-z]/),It=Ii(/[\dA-Za-z]/),fL=Ii(/[#-'*+\--9=?A-Z^-~]/);function qc(e){return e!==null&&(e<32||e===127)}const Jm=Ii(/\d/),hL=Ii(/[\dA-Fa-f]/),dL=Ii(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function tt(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const pf=Ii(new RegExp("\\p{P}|\\p{S}","u")),Ca=Ii(/\s/);function Ii(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function nl(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const o=e.charCodeAt(n);let u="";if(o===37&&It(e.charCodeAt(n+1))&&It(e.charCodeAt(n+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const f=e.charCodeAt(n+1);o<56320&&f>56319&&f<57344?(u=String.fromCharCode(o,f),s=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Ie(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(h){return Ne(h)?(e.enter(n),f(h)):t(h)}function f(h){return Ne(h)&&o++<s?(e.consume(h),f):(e.exit(n),t(h))}}const mL={tokenize:pL};function pL(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ie(e,t,"linePrefix")}function s(f){return e.enter("paragraph"),o(f)}function o(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return _e(f)?(e.consume(f),e.exit("chunkText"),o):(e.consume(f),u)}}const gL={tokenize:yL},pb={tokenize:vL};function yL(e){const t=this,n=[];let i=0,s,o,u;return f;function f(O){if(i<n.length){const P=n[i];return t.containerState=P[1],e.attempt(P[0].continuation,h,d)(O)}return d(O)}function h(O){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&k();const P=t.events.length;let V=P,L;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){L=t.events[V][1].end;break}T(i);let B=P;for(;B<t.events.length;)t.events[B][1].end={...L},B++;return bn(t.events,V+1,0,t.events.slice(P)),t.events.length=B,d(O)}return f(O)}function d(O){if(i===n.length){if(!s)return _(O);if(s.currentConstruct&&s.currentConstruct.concrete)return x(O);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pb,y,p)(O)}function y(O){return s&&k(),T(i),_(O)}function p(O){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,x(O)}function _(O){return t.containerState={},e.attempt(pb,v,x)(O)}function v(O){return i++,n.push([t.currentConstruct,t.containerState]),_(O)}function x(O){if(O===null){s&&k(),T(0),e.consume(O);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),E(O)}function E(O){if(O===null){C(e.exit("chunkFlow"),!0),T(0),e.consume(O);return}return _e(O)?(e.consume(O),C(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(O),E)}function C(O,P){const V=t.sliceStream(O);if(P&&V.push(null),O.previous=o,o&&(o.next=O),o=O,s.defineSkip(O.start),s.write(V),t.parser.lazy[O.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<u&&(!s.events[L][1].end||s.events[L][1].end.offset>u))return;const B=t.events.length;let q=B,te,N;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(te){N=t.events[q][1].end;break}te=!0}for(T(i),L=B;L<t.events.length;)t.events[L][1].end={...N},L++;bn(t.events,q+1,0,t.events.slice(B)),t.events.length=L}}function T(O){let P=n.length;for(;P-- >O;){const V=n[P];t.containerState=V[1],V[0].exit.call(t,e)}n.length=O}function k(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function vL(e,t,n){return Ie(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xs(e){if(e===null||tt(e)||Ca(e))return 1;if(pf(e))return 2}function gf(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const Wm={name:"attention",resolveAll:_L,tokenize:bL};function _L(e,t){let n=-1,i,s,o,u,f,h,d,y;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},_={...e[n][1].start};gb(p,-h),gb(_,h),u={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:_},o={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:h>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=Mn(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=Mn(d,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",o,t]]),d=Mn(d,gf(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),d=Mn(d,[["exit",o,t],["enter",f,t],["exit",f,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(y=2,d=Mn(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):y=0,bn(e,i-1,n-i+3,d),n=i+d.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function bL(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Xs(i);let o;return u;function u(h){return o=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===o)return e.consume(h),f;const d=e.exit("attentionSequence"),y=Xs(h),p=!y||y===2&&s||n.includes(h),_=!s||s===2&&y||n.includes(i);return d._open=!!(o===42?p:p&&(s||!_)),d._close=!!(o===42?_:_&&(y||!p)),t(h)}}function gb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xL={name:"autolink",tokenize:SL};function SL(e,t,n){let i=0;return s;function s(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(v){return Qt(v)?(e.consume(v),u):v===64?n(v):d(v)}function u(v){return v===43||v===45||v===46||It(v)?(i=1,f(v)):d(v)}function f(v){return v===58?(e.consume(v),i=0,h):(v===43||v===45||v===46||It(v))&&i++<32?(e.consume(v),f):(i=0,d(v))}function h(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):v===null||v===32||v===60||qc(v)?n(v):(e.consume(v),h)}function d(v){return v===64?(e.consume(v),y):fL(v)?(e.consume(v),d):n(v)}function y(v){return It(v)?p(v):n(v)}function p(v){return v===46?(e.consume(v),i=0,y):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):_(v)}function _(v){if((v===45||It(v))&&i++<63){const x=v===45?_:p;return e.consume(v),x}return n(v)}}const Io={partial:!0,tokenize:EL};function EL(e,t,n){return i;function i(o){return Ne(o)?Ie(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||_e(o)?t(o):n(o)}}const sS={continuation:{tokenize:TL},exit:CL,name:"blockQuote",tokenize:wL};function wL(e,t,n){const i=this;return s;function s(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return n(u)}function o(u){return Ne(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function TL(e,t,n){const i=this;return s;function s(u){return Ne(u)?Ie(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(sS,t,n)(u)}}function CL(e){e.exit("blockQuote")}const lS={name:"characterEscape",tokenize:kL};function kL(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return dL(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const oS={name:"characterReference",tokenize:RL};function RL(e,t,n){const i=this;let s=0,o,u;return f;function f(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),h}function h(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,u=It,y(p))}function d(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=hL,y):(e.enter("characterReferenceValue"),o=7,u=Jm,y(p))}function y(p){if(p===59&&s){const _=e.exit("characterReferenceValue");return u===It&&!Pp(i.sliceSerialize(_))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&s++<o?(e.consume(p),y):n(p)}}const yb={partial:!0,tokenize:OL},vb={concrete:!0,name:"codeFenced",tokenize:AL};function AL(e,t,n){const i=this,s={partial:!0,tokenize:V};let o=0,u=0,f;return h;function h(L){return d(L)}function d(L){const B=i.events[i.events.length-1];return o=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(L)}function y(L){return L===f?(u++,e.consume(L),y):u<3?n(L):(e.exit("codeFencedFenceSequence"),Ne(L)?Ie(e,p,"whitespace")(L):p(L))}function p(L){return L===null||_e(L)?(e.exit("codeFencedFence"),i.interrupt?t(L):e.check(yb,E,P)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),_(L))}function _(L){return L===null||_e(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(L)):Ne(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ie(e,v,"whitespace")(L)):L===96&&L===f?n(L):(e.consume(L),_)}function v(L){return L===null||_e(L)?p(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||_e(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(L)):L===96&&L===f?n(L):(e.consume(L),x)}function E(L){return e.attempt(s,P,C)(L)}function C(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),T}function T(L){return o>0&&Ne(L)?Ie(e,k,"linePrefix",o+1)(L):k(L)}function k(L){return L===null||_e(L)?e.check(yb,E,P)(L):(e.enter("codeFlowValue"),O(L))}function O(L){return L===null||_e(L)?(e.exit("codeFlowValue"),k(L)):(e.consume(L),O)}function P(L){return e.exit("codeFenced"),t(L)}function V(L,B,q){let te=0;return N;function N(ae){return L.enter("lineEnding"),L.consume(ae),L.exit("lineEnding"),$}function $(ae){return L.enter("codeFencedFence"),Ne(ae)?Ie(L,ie,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):ie(ae)}function ie(ae){return ae===f?(L.enter("codeFencedFenceSequence"),me(ae)):q(ae)}function me(ae){return ae===f?(te++,L.consume(ae),me):te>=u?(L.exit("codeFencedFenceSequence"),Ne(ae)?Ie(L,le,"whitespace")(ae):le(ae)):q(ae)}function le(ae){return ae===null||_e(ae)?(L.exit("codeFencedFence"),B(ae)):q(ae)}}}function OL(e,t,n){const i=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const om={name:"codeIndented",tokenize:NL},LL={partial:!0,tokenize:DL};function NL(e,t,n){const i=this;return s;function s(d){return e.enter("codeIndented"),Ie(e,o,"linePrefix",5)(d)}function o(d){const y=i.events[i.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(d):n(d)}function u(d){return d===null?h(d):_e(d)?e.attempt(LL,u,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||_e(d)?(e.exit("codeFlowValue"),u(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),t(d)}}function DL(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):_e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Ie(e,o,"linePrefix",5)(u)}function o(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):_e(u)?s(u):n(u)}}const jL={name:"codeText",previous:PL,resolve:ML,tokenize:zL};function ML(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function PL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function zL(e,t,n){let i=0,s,o;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),f(p)}function f(p){return p===96?(e.consume(p),i++,f):(e.exit("codeTextSequence"),h(p))}function h(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),h):p===96?(o=e.enter("codeTextSequence"),s=0,y(p)):_e(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(p))}function d(p){return p===null||p===32||p===96||_e(p)?(e.exit("codeTextData"),h(p)):(e.consume(p),d)}function y(p){return p===96?(e.consume(p),s++,y):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",d(p))}}class IL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&no(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),no(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),no(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);no(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);no(this.left,n.reverse())}}}function no(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function uS(e){const t={};let n=-1,i,s,o,u,f,h,d;const y=new IL(e);for(;++n<y.length;){for(;n in t;)n=t[n];if(i=y.get(n),n&&i[1].type==="chunkFlow"&&y.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,BL(y,n)),n=t[n],d=!0);else if(i[1]._container){for(o=n,s=void 0;o--;)if(u=y.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(i[1].end={...y.get(s)[1].start},f=y.slice(s,n),f.unshift(i),y.splice(s,n-s+1,f))}}return bn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!d}function BL(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const o=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,h=[],d={};let y,p,_=-1,v=n,x=0,E=0;const C=[E];for(;v;){for(;e.get(++s)[1]!==v;);o.push(s),v._tokenizer||(y=i.sliceStream(v),v.next||y.push(null),p&&u.defineSkip(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=v,v=v.next}for(v=n;++_<f.length;)f[_][0]==="exit"&&f[_-1][0]==="enter"&&f[_][1].type===f[_-1][1].type&&f[_][1].start.line!==f[_][1].end.line&&(E=_+1,C.push(E),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):C.pop(),_=C.length;_--;){const T=f.slice(C[_],C[_+1]),k=o.pop();h.push([k,k+T.length-1]),e.splice(k,2,T)}for(h.reverse(),_=-1;++_<h.length;)d[x+h[_][0]]=x+h[_][1],x+=h[_][1]-h[_][0]-1;return d}const UL={resolve:VL,tokenize:HL},qL={partial:!0,tokenize:GL};function VL(e){return uS(e),e}function HL(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):_e(f)?e.check(qL,u,o)(f):(e.consume(f),s)}function o(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function GL(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ie(e,o,"linePrefix")}function o(u){if(u===null||_e(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function cS(e,t,n,i,s,o,u,f,h){const d=h||Number.POSITIVE_INFINITY;let y=0;return p;function p(T){return T===60?(e.enter(i),e.enter(s),e.enter(o),e.consume(T),e.exit(o),_):T===null||T===32||T===41||qc(T)?n(T):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(T))}function _(T){return T===62?(e.enter(o),e.consume(T),e.exit(o),e.exit(s),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===62?(e.exit("chunkString"),e.exit(f),_(T)):T===null||T===60||_e(T)?n(T):(e.consume(T),T===92?x:v)}function x(T){return T===60||T===62||T===92?(e.consume(T),v):v(T)}function E(T){return!y&&(T===null||T===41||tt(T))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(T)):y<d&&T===40?(e.consume(T),y++,E):T===41?(e.consume(T),y--,E):T===null||T===32||T===40||qc(T)?n(T):(e.consume(T),T===92?C:E)}function C(T){return T===40||T===41||T===92?(e.consume(T),E):E(T)}}function fS(e,t,n,i,s,o){const u=this;let f=0,h;return d;function d(v){return e.enter(i),e.enter(s),e.consume(v),e.exit(s),e.enter(o),y}function y(v){return f>999||v===null||v===91||v===93&&!h||v===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(v):v===93?(e.exit(o),e.enter(s),e.consume(v),e.exit(s),e.exit(i),t):_e(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||v===91||v===93||_e(v)||f++>999?(e.exit("chunkString"),y(v)):(e.consume(v),h||(h=!Ne(v)),v===92?_:p)}function _(v){return v===91||v===92||v===93?(e.consume(v),f++,p):p(v)}}function hS(e,t,n,i,s,o){let u;return f;function f(_){return _===34||_===39||_===40?(e.enter(i),e.enter(s),e.consume(_),e.exit(s),u=_===40?41:_,h):n(_)}function h(_){return _===u?(e.enter(s),e.consume(_),e.exit(s),e.exit(i),t):(e.enter(o),d(_))}function d(_){return _===u?(e.exit(o),h(u)):_===null?n(_):_e(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),Ie(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(_))}function y(_){return _===u||_===null||_e(_)?(e.exit("chunkString"),d(_)):(e.consume(_),_===92?p:y)}function p(_){return _===u||_===92?(e.consume(_),y):y(_)}}function po(e,t){let n;return i;function i(s){return _e(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Ne(s)?Ie(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const FL={name:"definition",tokenize:$L},QL={partial:!0,tokenize:YL};function $L(e,t,n){const i=this;let s;return o;function o(v){return e.enter("definition"),u(v)}function u(v){return fS.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return s=Xn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),h):n(v)}function h(v){return tt(v)?po(e,d)(v):d(v)}function d(v){return cS(e,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return e.attempt(QL,p,p)(v)}function p(v){return Ne(v)?Ie(e,_,"whitespace")(v):_(v)}function _(v){return v===null||_e(v)?(e.exit("definition"),i.parser.defined.push(s),t(v)):n(v)}}function YL(e,t,n){return i;function i(f){return tt(f)?po(e,s)(f):n(f)}function s(f){return hS(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return Ne(f)?Ie(e,u,"whitespace")(f):u(f)}function u(f){return f===null||_e(f)?t(f):n(f)}}const KL={name:"hardBreakEscape",tokenize:XL};function XL(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return _e(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ZL={name:"headingAtx",resolve:JL,tokenize:WL};function JL(e,t){let n=e.length-2,i=3,s,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},bn(e,i,n-i+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function WL(e,t,n){let i=0;return s;function s(y){return e.enter("atxHeading"),o(y)}function o(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&i++<6?(e.consume(y),u):y===null||tt(y)?(e.exit("atxHeadingSequence"),f(y)):n(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||_e(y)?(e.exit("atxHeading"),t(y)):Ne(y)?Ie(e,f,"whitespace")(y):(e.enter("atxHeadingText"),d(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function d(y){return y===null||y===35||tt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),d)}}const eN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_b=["pre","script","style","textarea"],tN={concrete:!0,name:"htmlFlow",resolveTo:iN,tokenize:aN},nN={partial:!0,tokenize:lN},rN={partial:!0,tokenize:sN};function iN(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function aN(e,t,n){const i=this;let s,o,u,f,h;return d;function d(A){return y(A)}function y(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),_):A===47?(e.consume(A),o=!0,E):A===63?(e.consume(A),s=3,i.interrupt?t:D):Qt(A)?(e.consume(A),u=String.fromCharCode(A),C):n(A)}function _(A){return A===45?(e.consume(A),s=2,v):A===91?(e.consume(A),s=5,f=0,x):Qt(A)?(e.consume(A),s=4,i.interrupt?t:D):n(A)}function v(A){return A===45?(e.consume(A),i.interrupt?t:D):n(A)}function x(A){const ue="CDATA[";return A===ue.charCodeAt(f++)?(e.consume(A),f===ue.length?i.interrupt?t:ie:x):n(A)}function E(A){return Qt(A)?(e.consume(A),u=String.fromCharCode(A),C):n(A)}function C(A){if(A===null||A===47||A===62||tt(A)){const ue=A===47,ge=u.toLowerCase();return!ue&&!o&&_b.includes(ge)?(s=1,i.interrupt?t(A):ie(A)):eN.includes(u.toLowerCase())?(s=6,ue?(e.consume(A),T):i.interrupt?t(A):ie(A)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(A):o?k(A):O(A))}return A===45||It(A)?(e.consume(A),u+=String.fromCharCode(A),C):n(A)}function T(A){return A===62?(e.consume(A),i.interrupt?t:ie):n(A)}function k(A){return Ne(A)?(e.consume(A),k):N(A)}function O(A){return A===47?(e.consume(A),N):A===58||A===95||Qt(A)?(e.consume(A),P):Ne(A)?(e.consume(A),O):N(A)}function P(A){return A===45||A===46||A===58||A===95||It(A)?(e.consume(A),P):V(A)}function V(A){return A===61?(e.consume(A),L):Ne(A)?(e.consume(A),V):O(A)}function L(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),h=A,B):Ne(A)?(e.consume(A),L):q(A)}function B(A){return A===h?(e.consume(A),h=null,te):A===null||_e(A)?n(A):(e.consume(A),B)}function q(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||tt(A)?V(A):(e.consume(A),q)}function te(A){return A===47||A===62||Ne(A)?O(A):n(A)}function N(A){return A===62?(e.consume(A),$):n(A)}function $(A){return A===null||_e(A)?ie(A):Ne(A)?(e.consume(A),$):n(A)}function ie(A){return A===45&&s===2?(e.consume(A),H):A===60&&s===1?(e.consume(A),ne):A===62&&s===4?(e.consume(A),z):A===63&&s===3?(e.consume(A),D):A===93&&s===5?(e.consume(A),Ee):_e(A)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(nN,X,me)(A)):A===null||_e(A)?(e.exit("htmlFlowData"),me(A)):(e.consume(A),ie)}function me(A){return e.check(rN,le,X)(A)}function le(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),ae}function ae(A){return A===null||_e(A)?me(A):(e.enter("htmlFlowData"),ie(A))}function H(A){return A===45?(e.consume(A),D):ie(A)}function ne(A){return A===47?(e.consume(A),u="",fe):ie(A)}function fe(A){if(A===62){const ue=u.toLowerCase();return _b.includes(ue)?(e.consume(A),z):ie(A)}return Qt(A)&&u.length<8?(e.consume(A),u+=String.fromCharCode(A),fe):ie(A)}function Ee(A){return A===93?(e.consume(A),D):ie(A)}function D(A){return A===62?(e.consume(A),z):A===45&&s===2?(e.consume(A),D):ie(A)}function z(A){return A===null||_e(A)?(e.exit("htmlFlowData"),X(A)):(e.consume(A),z)}function X(A){return e.exit("htmlFlow"),t(A)}}function sN(e,t,n){const i=this;return s;function s(u){return _e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):n(u)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function lN(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Io,t,n)}}const oN={name:"htmlText",tokenize:uN};function uN(e,t,n){const i=this;let s,o,u;return f;function f(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),h}function h(D){return D===33?(e.consume(D),d):D===47?(e.consume(D),V):D===63?(e.consume(D),O):Qt(D)?(e.consume(D),q):n(D)}function d(D){return D===45?(e.consume(D),y):D===91?(e.consume(D),o=0,x):Qt(D)?(e.consume(D),k):n(D)}function y(D){return D===45?(e.consume(D),v):n(D)}function p(D){return D===null?n(D):D===45?(e.consume(D),_):_e(D)?(u=p,ne(D)):(e.consume(D),p)}function _(D){return D===45?(e.consume(D),v):p(D)}function v(D){return D===62?H(D):D===45?_(D):p(D)}function x(D){const z="CDATA[";return D===z.charCodeAt(o++)?(e.consume(D),o===z.length?E:x):n(D)}function E(D){return D===null?n(D):D===93?(e.consume(D),C):_e(D)?(u=E,ne(D)):(e.consume(D),E)}function C(D){return D===93?(e.consume(D),T):E(D)}function T(D){return D===62?H(D):D===93?(e.consume(D),T):E(D)}function k(D){return D===null||D===62?H(D):_e(D)?(u=k,ne(D)):(e.consume(D),k)}function O(D){return D===null?n(D):D===63?(e.consume(D),P):_e(D)?(u=O,ne(D)):(e.consume(D),O)}function P(D){return D===62?H(D):O(D)}function V(D){return Qt(D)?(e.consume(D),L):n(D)}function L(D){return D===45||It(D)?(e.consume(D),L):B(D)}function B(D){return _e(D)?(u=B,ne(D)):Ne(D)?(e.consume(D),B):H(D)}function q(D){return D===45||It(D)?(e.consume(D),q):D===47||D===62||tt(D)?te(D):n(D)}function te(D){return D===47?(e.consume(D),H):D===58||D===95||Qt(D)?(e.consume(D),N):_e(D)?(u=te,ne(D)):Ne(D)?(e.consume(D),te):H(D)}function N(D){return D===45||D===46||D===58||D===95||It(D)?(e.consume(D),N):$(D)}function $(D){return D===61?(e.consume(D),ie):_e(D)?(u=$,ne(D)):Ne(D)?(e.consume(D),$):te(D)}function ie(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),s=D,me):_e(D)?(u=ie,ne(D)):Ne(D)?(e.consume(D),ie):(e.consume(D),le)}function me(D){return D===s?(e.consume(D),s=void 0,ae):D===null?n(D):_e(D)?(u=me,ne(D)):(e.consume(D),me)}function le(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||tt(D)?te(D):(e.consume(D),le)}function ae(D){return D===47||D===62||tt(D)?te(D):n(D)}function H(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function ne(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),fe}function fe(D){return Ne(D)?Ie(e,Ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):Ee(D)}function Ee(D){return e.enter("htmlTextData"),u(D)}}const zp={name:"labelEnd",resolveAll:dN,resolveTo:mN,tokenize:pN},cN={tokenize:gN},fN={tokenize:yN},hN={tokenize:vN};function dN(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&bn(e,0,e.length,n),e}function mN(e,t){let n=e.length,i=0,s,o,u,f;for(;n--;)if(s=e[n][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(u=n);const h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",h,t],["enter",d,t]],f=Mn(f,e.slice(o+1,o+i+3)),f=Mn(f,[["enter",y,t]]),f=Mn(f,gf(t.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),t)),f=Mn(f,[["exit",y,t],e[u-2],e[u-1],["exit",d,t]]),f=Mn(f,e.slice(u+1)),f=Mn(f,[["exit",h,t]]),bn(e,o,e.length,f),e}function pN(e,t,n){const i=this;let s=i.events.length,o,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){o=i.events[s][1];break}return f;function f(_){return o?o._inactive?p(_):(u=i.parser.defined.includes(Xn(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(_),e.exit("labelMarker"),e.exit("labelEnd"),h):n(_)}function h(_){return _===40?e.attempt(cN,y,u?y:p)(_):_===91?e.attempt(fN,y,u?d:p)(_):u?y(_):p(_)}function d(_){return e.attempt(hN,y,p)(_)}function y(_){return t(_)}function p(_){return o._balanced=!0,n(_)}}function gN(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return tt(p)?po(e,o)(p):o(p)}function o(p){return p===41?y(p):cS(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return tt(p)?po(e,h)(p):y(p)}function f(p){return n(p)}function h(p){return p===34||p===39||p===40?hS(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):y(p)}function d(p){return tt(p)?po(e,y)(p):y(p)}function y(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function yN(e,t,n){const i=this;return s;function s(f){return fS.call(i,e,o,u,"reference","referenceMarker","referenceString")(f)}function o(f){return i.parser.defined.includes(Xn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function vN(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const _N={name:"labelStartImage",resolveAll:zp.resolveAll,tokenize:bN};function bN(e,t,n){const i=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o}function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const xN={name:"labelStartLink",resolveAll:zp.resolveAll,tokenize:SN};function SN(e,t,n){const i=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const um={name:"lineEnding",tokenize:EN};function EN(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ie(e,t,"linePrefix")}}const Cc={name:"thematicBreak",tokenize:wN};function wN(e,t,n){let i=0,s;return o;function o(d){return e.enter("thematicBreak"),u(d)}function u(d){return s=d,f(d)}function f(d){return d===s?(e.enter("thematicBreakSequence"),h(d)):i>=3&&(d===null||_e(d))?(e.exit("thematicBreak"),t(d)):n(d)}function h(d){return d===s?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),Ne(d)?Ie(e,f,"whitespace")(d):f(d))}}const rn={continuation:{tokenize:RN},exit:ON,name:"list",tokenize:kN},TN={partial:!0,tokenize:LN},CN={partial:!0,tokenize:AN};function kN(e,t,n){const i=this,s=i.events[i.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return f;function f(v){const x=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:Jm(v)){if(i.containerState.type||(i.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Cc,n,d)(v):d(v);if(!i.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(v)}return n(v)}function h(v){return Jm(v)&&++u<10?(e.consume(v),h):(!i.interrupt||u<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),d(v)):n(v)}function d(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,e.check(Io,i.interrupt?n:y,e.attempt(TN,_,p))}function y(v){return i.containerState.initialBlankLine=!0,o++,_(v)}function p(v){return Ne(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),_):n(v)}function _(v){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function RN(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Io,s,o);function s(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ie(e,t,"listItemIndent",i.containerState.size+1)(f)}function o(f){return i.containerState.furtherBlankLines||!Ne(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(CN,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ie(e,e.attempt(rn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function AN(e,t,n){const i=this;return Ie(e,s,"listItemIndent",i.containerState.size+1);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(o):n(o)}}function ON(e){e.exit(this.containerState.type)}function LN(e,t,n){const i=this;return Ie(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const u=i.events[i.events.length-1];return!Ne(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const bb={name:"setextUnderline",resolveTo:NN,tokenize:DN};function NN(e,t){let n=e.length,i,s,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",u,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function DN(e,t,n){const i=this;let s;return o;function o(d){let y=i.events.length,p;for(;y--;)if(i.events[y][1].type!=="lineEnding"&&i.events[y][1].type!=="linePrefix"&&i.events[y][1].type!=="content"){p=i.events[y][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=d,u(d)):n(d)}function u(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===s?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Ne(d)?Ie(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||_e(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const jN={tokenize:MN};function MN(e){const t=this,n=e.attempt(Io,i,e.attempt(this.parser.constructs.flowInitial,s,Ie(e,e.attempt(this.parser.constructs.flow,s,e.attempt(UL,s)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const PN={resolveAll:mS()},zN=dS("string"),IN=dS("text");function dS(e){return{resolveAll:mS(e==="text"?BN:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],o=n.attempt(s,u,f);return u;function u(y){return d(y)?o(y):f(y)}function f(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),h}function h(y){return d(y)?(n.exit("data"),o(y)):(n.consume(y),h)}function d(y){if(y===null)return!0;const p=s[y];let _=-1;if(p)for(;++_<p.length;){const v=p[_];if(!v.previous||v.previous.call(i,i.previous))return!0}return!1}}}function mS(e){return t;function t(n,i){let s=-1,o;for(;++s<=n.length;)o===void 0?n[s]&&n[s][1].type==="data"&&(o=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==o+2&&(n[o][1].end=n[s-1][1].end,n.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(n,i):n}}function BN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let o=s.length,u=-1,f=0,h;for(;o--;){const d=s[o];if(typeof d=="string"){for(u=d.length;d.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(d===-2)h=!0,f++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const d={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:i.start._bufferIndex+u,_index:i.start._index+o,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const UN={42:rn,43:rn,45:rn,48:rn,49:rn,50:rn,51:rn,52:rn,53:rn,54:rn,55:rn,56:rn,57:rn,62:sS},qN={91:FL},VN={[-2]:om,[-1]:om,32:om},HN={35:ZL,42:Cc,45:[bb,Cc],60:tN,61:bb,95:Cc,96:vb,126:vb},GN={38:oS,92:lS},FN={[-5]:um,[-4]:um,[-3]:um,33:_N,38:oS,42:Wm,60:[xL,oN],91:xN,92:[KL,lS],93:zp,95:Wm,96:jL},QN={null:[Wm,PN]},$N={null:[42,95]},YN={null:[]},KN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$N,contentInitial:qN,disable:YN,document:UN,flow:HN,flowInitial:VN,insideSpan:QN,string:GN,text:FN},Symbol.toStringTag,{value:"Module"}));function XN(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},o=[];let u=[],f=[];const h={attempt:B(V),check:B(L),consume:k,enter:O,exit:P,interrupt:B(L,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:x,parser:e,previous:null,sliceSerialize:_,sliceStream:v,write:p};let y=t.tokenize.call(d,h);return t.resolveAll&&o.push(t),d;function p($){return u=Mn(u,$),C(),u[u.length-1]!==null?[]:(q(t,0),d.events=gf(o,d.events,d),d.events)}function _($,ie){return JN(v($),ie)}function v($){return ZN(u,$)}function x(){const{_bufferIndex:$,_index:ie,line:me,column:le,offset:ae}=i;return{_bufferIndex:$,_index:ie,line:me,column:le,offset:ae}}function E($){s[$.line]=$.column,N()}function C(){let $;for(;i._index<u.length;){const ie=u[i._index];if(typeof ie=="string")for($=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===$&&i._bufferIndex<ie.length;)T(ie.charCodeAt(i._bufferIndex));else T(ie)}}function T($){y=y($)}function k($){_e($)?(i.line++,i.column=1,i.offset+=$===-3?2:1,N()):$!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=$}function O($,ie){const me=ie||{};return me.type=$,me.start=x(),d.events.push(["enter",me,d]),f.push(me),me}function P($){const ie=f.pop();return ie.end=x(),d.events.push(["exit",ie,d]),ie}function V($,ie){q($,ie.from)}function L($,ie){ie.restore()}function B($,ie){return me;function me(le,ae,H){let ne,fe,Ee,D;return Array.isArray(le)?X(le):"tokenize"in le?X([le]):z(le);function z(he){return Se;function Se($e){const Me=$e!==null&&he[$e],jt=$e!==null&&he.null,on=[...Array.isArray(Me)?Me:Me?[Me]:[],...Array.isArray(jt)?jt:jt?[jt]:[]];return X(on)($e)}}function X(he){return ne=he,fe=0,he.length===0?H:A(he[fe])}function A(he){return Se;function Se($e){return D=te(),Ee=he,he.partial||(d.currentConstruct=he),he.name&&d.parser.constructs.disable.null.includes(he.name)?ge():he.tokenize.call(ie?Object.assign(Object.create(d),ie):d,h,ue,ge)($e)}}function ue(he){return $(Ee,D),ae}function ge(he){return D.restore(),++fe<ne.length?A(ne[fe]):H}}}function q($,ie){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&bn(d.events,ie,d.events.length-ie,$.resolve(d.events.slice(ie),d)),$.resolveTo&&(d.events=$.resolveTo(d.events,d))}function te(){const $=x(),ie=d.previous,me=d.currentConstruct,le=d.events.length,ae=Array.from(f);return{from:le,restore:H};function H(){i=$,d.previous=ie,d.currentConstruct=me,d.events.length=le,f=ae,N()}}function N(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function ZN(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,o)];else{if(u=e.slice(n,s),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}o>0&&u.push(e[s].slice(0,o))}return u}function JN(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const o=e[n];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
|
|
238
|
+
`;break}case-3:{u=`\r
|
|
239
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(o)}s=o===-2,i.push(u)}return i.join("")}function WN(e){const i={constructs:iS([KN,...(e||{}).extensions||[]]),content:s(mL),defined:[],document:s(gL),flow:s(jN),lazy:{},string:s(zN),text:s(IN)};return i;function s(o){return u;function u(f){return XN(i,o,f)}}}function eD(e){for(;!uS(e););return e}const xb=/[\0\t\n\r]/g;function tD(){let e=1,t="",n=!0,i;return s;function s(o,u,f){const h=[];let d,y,p,_,v;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(xb.lastIndex=p,d=xb.exec(o),_=d&&d.index!==void 0?d.index:o.length,v=o.charCodeAt(_),!d){t=o.slice(p);break}if(v===10&&p===_&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),p<_&&(h.push(o.slice(p,_)),e+=_-p),v){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}p=_+1}return f&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const nD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rD(e){return e.replace(nD,iD)}function iD(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),o=s===120||s===88;return aS(n.slice(o?2:1),o?16:10)}return Pp(n)||e}const pS={}.hasOwnProperty;function aD(e,t,n){return typeof t!="string"&&(n=t,t=void 0),sD(n)(eD(WN(n).document().write(tD()(e,t,!0))))}function sD(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(qn),autolinkProtocol:te,autolinkEmail:te,atxHeading:o(hr),blockQuote:o(jt),characterEscape:te,characterReference:te,codeFenced:o(on),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(on,u),codeText:o(un,u),codeTextData:te,data:te,codeFlowValue:te,definition:o(Oa),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(Un),hardBreakEscape:o(Fr),hardBreakTrailing:o(Fr),htmlFlow:o(La,u),htmlFlowData:te,htmlText:o(La,u),htmlTextData:te,image:o(Na),label:u,link:o(qn),listItem:o(Qr),listItemValue:_,listOrdered:o(Vn,p),listUnordered:o(Vn),paragraph:o(Da),reference:A,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(hr),strong:o(Ue),thematicBreak:o(Ut)},exit:{atxHeading:h(),atxHeadingSequence:V,autolink:h(),autolinkEmail:Me,autolinkProtocol:$e,blockQuote:h(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:he,characterReference:Se,codeFenced:h(C),codeFencedFence:E,codeFencedFenceInfo:v,codeFencedFenceMeta:x,codeFlowValue:N,codeIndented:h(T),codeText:h(ae),codeTextData:N,data:N,definition:h(),definitionDestinationString:P,definitionLabelString:k,definitionTitleString:O,emphasis:h(),hardBreakEscape:h(ie),hardBreakTrailing:h(ie),htmlFlow:h(me),htmlFlowData:N,htmlText:h(le),htmlTextData:N,image:h(ne),label:Ee,labelText:fe,lineEnding:$,link:h(H),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ue,resourceDestinationString:D,resourceTitleString:z,resource:X,setextHeading:h(q),setextHeadingLineSequence:B,setextHeadingText:L,strong:h(),thematicBreak:h()}};gS(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Z){let oe={type:"root",children:[]};const xe={stack:[oe],tokenStack:[],config:t,enter:f,exit:d,buffer:u,resume:y,data:n},Ae=[];let Ge=-1;for(;++Ge<Z.length;)if(Z[Ge][1].type==="listOrdered"||Z[Ge][1].type==="listUnordered")if(Z[Ge][0]==="enter")Ae.push(Ge);else{const cn=Ae.pop();Ge=s(Z,cn,Ge)}for(Ge=-1;++Ge<Z.length;){const cn=t[Z[Ge][0]];pS.call(cn,Z[Ge][1].type)&&cn[Z[Ge][1].type].call(Object.assign({sliceSerialize:Z[Ge][2].sliceSerialize},xe),Z[Ge][1])}if(xe.tokenStack.length>0){const cn=xe.tokenStack[xe.tokenStack.length-1];(cn[1]||Sb).call(xe,void 0,cn[0])}for(oe.position={start:vi(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:vi(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<t.transforms.length;)oe=t.transforms[Ge](oe)||oe;return oe}function s(Z,oe,xe){let Ae=oe-1,Ge=-1,cn=!1,dr,qt,_t,Kt;for(;++Ae<=xe;){const We=Z[Ae];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Ge++:Ge--,Kt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(dr&&!Kt&&!Ge&&!_t&&(_t=Ae),Kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Kt=void 0}if(!Ge&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Ge===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(dr){let $r=Ae;for(qt=void 0;$r--;){const Hn=Z[$r];if(Hn[1].type==="lineEnding"||Hn[1].type==="lineEndingBlank"){if(Hn[0]==="exit")continue;qt&&(Z[qt][1].type="lineEndingBlank",cn=!0),Hn[1].type="lineEnding",qt=$r}else if(!(Hn[1].type==="linePrefix"||Hn[1].type==="blockQuotePrefix"||Hn[1].type==="blockQuotePrefixWhitespace"||Hn[1].type==="blockQuoteMarker"||Hn[1].type==="listItemIndent"))break}_t&&(!qt||_t<qt)&&(dr._spread=!0),dr.end=Object.assign({},qt?Z[qt][1].start:We[1].end),Z.splice(qt||Ae,0,["exit",dr,We[2]]),Ae++,xe++}if(We[1].type==="listItemPrefix"){const $r={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};dr=$r,Z.splice(Ae,0,["enter",$r,We[2]]),Ae++,xe++,_t=void 0,Kt=!0}}}return Z[oe][1]._spread=cn,xe}function o(Z,oe){return xe;function xe(Ae){f.call(this,Z(Ae),Ae),oe&&oe.call(this,Ae)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(Z,oe,xe){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([oe,xe||void 0]),Z.position={start:vi(oe.start),end:void 0}}function h(Z){return oe;function oe(xe){Z&&Z.call(this,xe),d.call(this,xe)}}function d(Z,oe){const xe=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Z.type&&(oe?oe.call(this,Z,Ae[0]):(Ae[1]||Sb).call(this,Z,Ae[0]));else throw new Error("Cannot close `"+Z.type+"` ("+mo({start:Z.start,end:Z.end})+"): it’s not open");xe.position.end=vi(Z.end)}function y(){return Mp(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function _(Z){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=Z}function x(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=Z}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/(\r?\n|\r)$/g,"")}function k(Z){const oe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=oe,xe.identifier=Xn(this.sliceSerialize(Z)).toLowerCase()}function O(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function P(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function V(Z){const oe=this.stack[this.stack.length-1];if(!oe.depth){const xe=this.sliceSerialize(Z).length;oe.depth=xe}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function B(Z){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function te(Z){const xe=this.stack[this.stack.length-1].children;let Ae=xe[xe.length-1];(!Ae||Ae.type!=="text")&&(Ae=Be(),Ae.position={start:vi(Z.start),end:void 0},xe.push(Ae)),this.stack.push(Ae)}function N(Z){const oe=this.stack.pop();oe.value+=this.sliceSerialize(Z),oe.position.end=vi(Z.end)}function $(Z){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=oe.children[oe.children.length-1];xe.position.end=vi(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(oe.type)&&(te.call(this,Z),N.call(this,Z))}function ie(){this.data.atHardBreak=!0}function me(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function le(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function ae(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function H(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function ne(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function fe(Z){const oe=this.sliceSerialize(Z),xe=this.stack[this.stack.length-2];xe.label=rD(oe),xe.identifier=Xn(oe).toLowerCase()}function Ee(){const Z=this.stack[this.stack.length-1],oe=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Ae=Z.children;xe.children=Ae}else xe.alt=oe}function D(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function z(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function X(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function ue(Z){const oe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=oe,xe.identifier=Xn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function ge(Z){this.data.characterReferenceType=Z.type}function he(Z){const oe=this.sliceSerialize(Z),xe=this.data.characterReferenceType;let Ae;xe?(Ae=aS(oe,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Pp(oe);const Ge=this.stack[this.stack.length-1];Ge.value+=Ae}function Se(Z){const oe=this.stack.pop();oe.position.end=vi(Z.end)}function $e(Z){N.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(Z)}function Me(Z){N.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(Z)}function jt(){return{type:"blockquote",children:[]}}function on(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Oa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Un(){return{type:"emphasis",children:[]}}function hr(){return{type:"heading",depth:0,children:[]}}function Fr(){return{type:"break"}}function La(){return{type:"html",value:""}}function Na(){return{type:"image",title:null,url:"",alt:null}}function qn(){return{type:"link",title:null,url:"",children:[]}}function Vn(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Qr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Da(){return{type:"paragraph",children:[]}}function Ue(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Ut(){return{type:"thematicBreak"}}}function vi(e){return{line:e.line,column:e.column,offset:e.offset}}function gS(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?gS(e,i):lD(e,i)}}function lD(e,t){let n;for(n in t)if(pS.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Sb(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+mo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+mo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+mo({start:t.start,end:t.end})+") is still open")}function oD(e){const t=this;t.parser=n;function n(i){return aD(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uD(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cD(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
240
|
+
`}]}function fD(e,t){const n=t.value?t.value+`
|
|
241
|
+
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function hD(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dD(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mD(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=nl(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=o+1,f+=1,e.footnoteCounts.set(i,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,d),e.applyData(t,d)}function pD(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gD(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function yS(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=i:s.push({type:"text",value:i}),s}function yD(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return yS(e,t);const s={src:nl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function vD(e,t){const n={src:nl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function _D(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function bD(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return yS(e,t);const s={href:nl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function xD(e,t){const n={href:nl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function SD(e,t,n){const i=e.all(t),s=n?ED(n):vS(t),o={},u=[];if(typeof t.checked=="boolean"){const y=i[0];let p;y&&y.type==="element"&&y.tagName==="p"?p=y:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const y=i[f];(s||f!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
|
|
242
|
+
`}),y.type==="element"&&y.tagName==="p"&&!s?u.push(...y.children):u.push(y)}const h=i[i.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
|
|
243
|
+
`});const d={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,d),e.applyData(t,d)}function ED(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=vS(n[i])}return t}function vS(e){const t=e.spread;return t??e.children.length>1}function wD(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function TD(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CD(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function kD(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RD(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=Lp(t.children[1]),h=Z1(t.children[t.children.length-1]);f&&h&&(u.position={start:f,end:h}),s.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function AD(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let h=-1;const d=[];for(;++h<f;){const p=t.children[h],_={},v=u?u[h]:void 0;v&&(_.align=v);let x={type:"element",tagName:o,properties:_,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,x)),d.push(x)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,y),e.applyData(t,y)}function OD(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Eb=9,wb=32;function LD(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const o=[];for(;i;)o.push(Tb(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return o.push(Tb(t.slice(s),s>0,!1)),o.join("")}function Tb(e,t,n){let i=0,s=e.length;if(t){let o=e.codePointAt(i);for(;o===Eb||o===wb;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(s-1);for(;o===Eb||o===wb;)s--,o=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function ND(e,t){const n={type:"text",value:LD(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function DD(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const jD={blockquote:uD,break:cD,code:fD,delete:hD,emphasis:dD,footnoteReference:mD,heading:pD,html:gD,imageReference:yD,image:vD,inlineCode:_D,linkReference:bD,link:xD,listItem:SD,list:wD,paragraph:TD,root:CD,strong:kD,table:RD,tableCell:OD,tableRow:AD,text:ND,thematicBreak:DD,toml:dc,yaml:dc,definition:dc,footnoteDefinition:dc};function dc(){}const _S=-1,yf=0,go=1,Vc=2,Ip=3,Bp=4,Up=5,qp=6,bS=7,xS=8,Cb=typeof self=="object"?self:globalThis,MD=(e,t)=>{const n=(s,o)=>(e.set(o,s),s),i=s=>{if(e.has(s))return e.get(s);const[o,u]=t[s];switch(o){case yf:case _S:return n(u,s);case go:{const f=n([],s);for(const h of u)f.push(i(h));return f}case Vc:{const f=n({},s);for(const[h,d]of u)f[i(h)]=i(d);return f}case Ip:return n(new Date(u),s);case Bp:{const{source:f,flags:h}=u;return n(new RegExp(f,h),s)}case Up:{const f=n(new Map,s);for(const[h,d]of u)f.set(i(h),i(d));return f}case qp:{const f=n(new Set,s);for(const h of u)f.add(i(h));return f}case bS:{const{name:f,message:h}=u;return n(new Cb[f](h),s)}case xS:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new Cb[o](u),s)};return i},kb=e=>MD(new Map,e)(0),Ts="",{toString:PD}={},{keys:zD}=Object,ro=e=>{const t=typeof e;if(t!=="object"||!e)return[yf,t];const n=PD.call(e).slice(8,-1);switch(n){case"Array":return[go,Ts];case"Object":return[Vc,Ts];case"Date":return[Ip,Ts];case"RegExp":return[Bp,Ts];case"Map":return[Up,Ts];case"Set":return[qp,Ts];case"DataView":return[go,n]}return n.includes("Array")?[go,n]:n.includes("Error")?[bS,n]:[Vc,n]},mc=([e,t])=>e===yf&&(t==="function"||t==="symbol"),ID=(e,t,n,i)=>{const s=(u,f)=>{const h=i.push(u)-1;return n.set(f,h),h},o=u=>{if(n.has(u))return n.get(u);let[f,h]=ro(u);switch(f){case yf:{let y=u;switch(h){case"bigint":f=xS,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return s([_S],u)}return s([f,y],u)}case go:{if(h){let _=u;return h==="DataView"?_=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(_=new Uint8Array(u)),s([h,[..._]],u)}const y=[],p=s([f,y],u);for(const _ of u)y.push(o(_));return p}case Vc:{if(h)switch(h){case"BigInt":return s([h,u.toString()],u);case"Boolean":case"Number":case"String":return s([h,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const y=[],p=s([f,y],u);for(const _ of zD(u))(e||!mc(ro(u[_])))&&y.push([o(_),o(u[_])]);return p}case Ip:return s([f,u.toISOString()],u);case Bp:{const{source:y,flags:p}=u;return s([f,{source:y,flags:p}],u)}case Up:{const y=[],p=s([f,y],u);for(const[_,v]of u)(e||!(mc(ro(_))||mc(ro(v))))&&y.push([o(_),o(v)]);return p}case qp:{const y=[],p=s([f,y],u);for(const _ of u)(e||!mc(ro(_)))&&y.push(o(_));return p}}const{message:d}=u;return s([f,{name:h,message:d}],u)};return o},Rb=(e,{json:t,lossy:n}={})=>{const i=[];return ID(!(t||n),!!t,new Map,i)(e),i},Hc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?kb(Rb(e,t)):structuredClone(e):(e,t)=>kb(Rb(e,t));function BD(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function UD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function qD(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||BD,i=e.options.footnoteBackLabel||UD,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const y=e.all(d),p=String(d.identifier).toUpperCase(),_=nl(p.toLowerCase());let v=0;const x=[],E=e.footnoteCounts.get(p);for(;E!==void 0&&++v<=E;){x.length>0&&x.push({type:"text",value:" "});let k=typeof n=="string"?n:n(h,v);typeof k=="string"&&(k={type:"text",value:k}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+_+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,v),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const C=y[y.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const k=C.children[C.children.length-1];k&&k.type==="text"?k.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...x)}else y.push(...x);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+_},children:e.wrap(y,!0)};e.patch(d,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Hc(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
244
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
245
|
+
`}]}}const vf=(function(e){if(e==null)return FD;if(typeof e=="function")return _f(e);if(typeof e=="object")return Array.isArray(e)?VD(e):HD(e);if(typeof e=="string")return GD(e);throw new Error("Expected function, string, or object as test")});function VD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vf(e[n]);return _f(i);function i(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function HD(e){const t=e;return _f(n);function n(i){const s=i;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function GD(e){return _f(t);function t(n){return n&&n.type===e}}function _f(e){return t;function t(n,i,s){return!!(QD(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function FD(){return!0}function QD(e){return e!==null&&typeof e=="object"&&"type"in e}const SS=[],$D=!0,ep=!1,YD="skip";function ES(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const o=vf(s),u=i?-1:1;f(e,void 0,[])();function f(h,d,y){const p=h&&typeof h=="object"?h:{};if(typeof p.type=="string"){const v=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(_,"name",{value:"node ("+(h.type+(v?"<"+v+">":""))+")"})}return _;function _(){let v=SS,x,E,C;if((!t||o(h,d,y[y.length-1]||void 0))&&(v=KD(n(h,y)),v[0]===ep))return v;if("children"in h&&h.children){const T=h;if(T.children&&v[0]!==YD)for(E=(i?T.children.length:-1)+u,C=y.concat(T);E>-1&&E<T.children.length;){const k=T.children[E];if(x=f(k,E,C)(),x[0]===ep)return x;E=typeof x[1]=="number"?x[1]:E+u}}return v}}}function KD(e){return Array.isArray(e)?e:typeof e=="number"?[$D,e]:e==null?SS:[e]}function Vp(e,t,n,i){let s,o,u;typeof t=="function"&&typeof n!="function"?(o=void 0,u=t,s=n):(o=t,u=n,s=i),ES(e,o,f,s);function f(h,d){const y=d[d.length-1],p=y?y.children.indexOf(h):void 0;return u(h,p,y)}}const tp={}.hasOwnProperty,XD={};function ZD(e,t){const n=t||XD,i=new Map,s=new Map,o=new Map,u={...jD,...n.handlers},f={all:d,applyData:WD,definitionById:i,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:u,one:h,options:n,patch:JD,wrap:tj};return Vp(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const p=y.type==="definition"?i:s,_=String(y.identifier).toUpperCase();p.has(_)||p.set(_,y)}}),f;function h(y,p){const _=y.type,v=f.handlers[_];if(tp.call(f.handlers,_)&&v)return v(f,y,p);if(f.options.passThrough&&f.options.passThrough.includes(_)){if("children"in y){const{children:E,...C}=y,T=Hc(C);return T.children=f.all(y),T}return Hc(y)}return(f.options.unknownHandler||ej)(f,y,p)}function d(y){const p=[];if("children"in y){const _=y.children;let v=-1;for(;++v<_.length;){const x=f.one(_[v],y);if(x){if(v&&_[v-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Ab(x.value)),!Array.isArray(x)&&x.type==="element")){const E=x.children[0];E&&E.type==="text"&&(E.value=Ab(E.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function JD(e,t){e.position&&(t.position=UO(e))}function WD(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&o&&Object.assign(n.properties,Hc(o)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function ej(e,t){const n=t.data||{},i="value"in t&&!(tp.call(n,"hProperties")||tp.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function tj(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
246
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
247
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
248
|
+
`}),n}function Ab(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ob(e,t){const n=ZD(e,t),i=n.one(e,void 0),s=qD(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
|
|
249
|
+
`},s),o}function nj(e,t){return e&&"run"in e?async function(n,i){const s=Ob(n,{file:i,...t});await e.run(s,i)}:function(n,i){return Ob(n,{file:i,...e||t})}}function Lb(e){if(e)throw e}var cm,Nb;function rj(){if(Nb)return cm;Nb=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var y=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!y&&!p)return!1;var _;for(_ in d);return typeof _>"u"||e.call(d,_)},u=function(d,y){n&&y.name==="__proto__"?n(d,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):d[y.name]=y.newValue},f=function(d,y){if(y==="__proto__")if(e.call(d,y)){if(i)return i(d,y).value}else return;return d[y]};return cm=function h(){var d,y,p,_,v,x,E=arguments[0],C=1,T=arguments.length,k=!1;for(typeof E=="boolean"&&(k=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});C<T;++C)if(d=arguments[C],d!=null)for(y in d)p=f(E,y),_=f(d,y),E!==_&&(k&&_&&(o(_)||(v=s(_)))?(v?(v=!1,x=p&&s(p)?p:[]):x=p&&o(p)?p:{},u(E,{name:y,newValue:h(k,x,_)})):typeof _<"u"&&u(E,{name:y,newValue:_}));return E},cm}var ij=rj();const fm=mp(ij);function np(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function aj(){const e=[],t={run:n,use:i};return t;function n(...s){let o=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...s);function f(h,...d){const y=e[++o];let p=-1;if(h){u(h);return}for(;++p<s.length;)(d[p]===null||d[p]===void 0)&&(d[p]=s[p]);s=d,y?sj(y,f)(...d):u(null,...d)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function sj(e,t){let n;return i;function i(...u){const f=e.length>u.length;let h;f&&u.push(s);try{h=e.apply(this,u)}catch(d){const y=d;if(f&&n)throw y;return s(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(u,...f){n||(n=!0,t(u,...f))}function o(u){s(null,u)}}const ir={basename:lj,dirname:oj,extname:uj,join:cj,sep:"/"};function lj(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bo(e);let n=0,i=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else i<0&&(o=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else u<0&&(o=!0,u=s+1),f>-1&&(e.codePointAt(s)===t.codePointAt(f--)?f<0&&(i=s):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function oj(e){if(Bo(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function uj(e){Bo(e);let t=e.length,n=-1,i=0,s=-1,o=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||n<0||o===0||o===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function cj(...e){let t=-1,n;for(;++t<e.length;)Bo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":fj(n)}function fj(e){Bo(e);const t=e.codePointAt(0)===47;let n=hj(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hj(e,t){let n="",i=0,s=-1,o=0,u=-1,f,h;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(s===u-1||o===1))if(s!==u-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=u,o=0;continue}}else if(n.length>0){n="",i=0,s=u,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,o=0}else f===46&&o>-1?o++:o=-1}return n}function Bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dj={cwd:mj};function mj(){return"/"}function rp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pj(e){if(typeof e=="string")e=new URL(e);else if(!rp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return gj(e)}function gj(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const hm=["history","path","basename","stem","extname","dirname"];class wS{constructor(t){let n;t?rp(t)?n={path:t}:typeof t=="string"||yj(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<hm.length;){const o=hm[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let s;for(s in n)hm.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){mm(t,"basename"),dm(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){Db(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(dm(t,"extname"),Db(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){rp(t)&&(t=pj(t)),mm(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){mm(t,"stem"),dm(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new Bt(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function dm(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}function mm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Db(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function yj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vj=(function(e){const i=this.constructor.prototype,s=i[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),_j={}.hasOwnProperty;class Hp extends vj{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=aj()}copy(){const t=new Hp;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(fm(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ym("data",this.frozen),this.namespace[t]=n,this):_j.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ym("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=pc(t),i=this.parser||this.Parser;return pm("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),pm("process",this.parser||this.Parser),gm("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(o,u){const f=pc(t),h=i.parse(f);i.run(h,f,function(y,p,_){if(y||!p||!_)return d(y);const v=p,x=i.stringify(v,_);Sj(x)?_.value=x:_.result=x,d(y,_)});function d(y,p){y||!p?u(y):o?o(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),pm("processSync",this.parser||this.Parser),gm("processSync",this.compiler||this.Compiler),this.process(t,s),Mb("processSync","process",n),i;function s(o,u){n=!0,Lb(o),i=u}}run(t,n,i){jb(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(u,f){const h=pc(n);s.run(t,h,d);function d(y,p,_){const v=p||t;y?f(y):u?u(v):i(void 0,v,_)}}}runSync(t,n){let i=!1,s;return this.run(t,n,o),Mb("runSync","run",i),s;function o(u,f){Lb(u),s=f,i=!0}}stringify(t,n){this.freeze();const i=pc(n),s=this.compiler||this.Compiler;return gm("stringify",s),jb(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(ym("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[y,...p]=d;h(y,p)}else u(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function u(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(d.plugins),d.settings&&(s.settings=fm(!0,s.settings,d.settings))}function f(d){let y=-1;if(d!=null)if(Array.isArray(d))for(;++y<d.length;){const p=d[y];o(p)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,y){let p=-1,_=-1;for(;++p<i.length;)if(i[p][0]===d){_=p;break}if(_===-1)i.push([d,...y]);else if(y.length>0){let[v,...x]=y;const E=i[_][1];np(E)&&np(v)&&(v=fm(!0,E,v)),i[_]=[d,v,...x]}}}}const bj=new Hp().freeze();function pm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ym(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jb(e){if(!np(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Mb(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pc(e){return xj(e)?e:new wS(e)}function xj(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Sj(e){return typeof e=="string"||Ej(e)}function Ej(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pb=[],zb={allowDangerousHtml:!0},Tj=/^(https?|ircs?|mailto|xmpp)$/i,Cj=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function kj(e){const t=Rj(e),n=Aj(e);return Oj(t.runSync(t.parse(n),n),e)}function Rj(e){const t=e.rehypePlugins||Pb,n=e.remarkPlugins||Pb,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zb}:zb;return bj().use(oD).use(n).use(nj,i).use(t)}function Aj(e){const t=e.children||"",n=new wS;return typeof t=="string"&&(n.value=t),n}function Oj(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,o=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||Lj;for(const y of Cj)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+wj+y.id,void 0);return Vp(e,d),FO(e,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function d(y,p,_){if(y.type==="raw"&&_&&typeof p=="number")return u?_.children.splice(p,1):_.children[p]={type:"text",value:y.value},p;if(y.type==="element"){let v;for(v in lm)if(Object.hasOwn(lm,v)&&Object.hasOwn(y.properties,v)){const x=y.properties[v],E=lm[v];(E===null||E.includes(y.tagName))&&(y.properties[v]=h(String(x||""),v,y))}}if(y.type==="element"){let v=n?!n.includes(y.tagName):o?o.includes(y.tagName):!1;if(!v&&i&&typeof p=="number"&&(v=!i(y,p,_)),v&&_&&typeof p=="number")return f&&y.children?_.children.splice(p,1,...y.children):_.children.splice(p,1),p}}}function Lj(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||Tj.test(e.slice(0,t))?e:""}function Gc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}function Nj(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Dj(e,t,n){const s=vf((n||{}).ignore||[]),o=jj(t);let u=-1;for(;++u<o.length;)ES(e,"text",f);function f(d,y){let p=-1,_;for(;++p<y.length;){const v=y[p],x=_?_.children:void 0;if(s(v,x?x.indexOf(v):void 0,_))return;_=v}if(_)return h(d,y)}function h(d,y){const p=y[y.length-1],_=o[u][0],v=o[u][1];let x=0;const C=p.children.indexOf(d);let T=!1,k=[];_.lastIndex=0;let O=_.exec(d.value);for(;O;){const P=O.index,V={index:O.index,input:O.input,stack:[...y,d]};let L=v(...O,V);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?_.lastIndex=P+1:(x!==P&&k.push({type:"text",value:d.value.slice(x,P)}),Array.isArray(L)?k.push(...L):L&&k.push(L),x=P+O[0].length,T=!0),!_.global)break;O=_.exec(d.value)}return T?(x<d.value.length&&k.push({type:"text",value:d.value.slice(x)}),p.children.splice(C,1,...k)):k=[d],C+k.length}}function jj(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const s=n[i];t.push([Mj(s[0]),Pj(s[1])])}return t}function Mj(e){return typeof e=="string"?new RegExp(Nj(e),"g"):e}function Pj(e){return typeof e=="function"?e:function(){return e}}const vm="phrasing",_m=["autolink","link","image","label"];function zj(){return{transforms:[Gj],enter:{literalAutolink:Bj,literalAutolinkEmail:bm,literalAutolinkHttp:bm,literalAutolinkWww:bm},exit:{literalAutolink:Hj,literalAutolinkEmail:Vj,literalAutolinkHttp:Uj,literalAutolinkWww:qj}}}function Ij(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:vm,notInConstruct:_m},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:vm,notInConstruct:_m},{character:":",before:"[ps]",after:"\\/",inConstruct:vm,notInConstruct:_m}]}}function Bj(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bm(e){this.config.enter.autolinkProtocol.call(this,e)}function Uj(e){this.config.exit.autolinkProtocol.call(this,e)}function qj(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Vj(e){this.config.exit.autolinkEmail.call(this,e)}function Hj(e){this.exit(e)}function Gj(e){Dj(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fj],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Qj]],{ignore:["link","linkReference"]})}function Fj(e,t,n,i,s){let o="";if(!TS(s)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!$j(n)))return!1;const u=Yj(n+i);if(!u[0])return!1;const f={type:"link",title:null,url:o+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function Qj(e,t,n,i){return!TS(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function $j(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Yj(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=Gc(e,"(");let o=Gc(e,")");for(;i!==-1&&s>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}function TS(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ca(n)||pf(n))&&(!t||n!==47)}CS.peek=rM;function Kj(){this.buffer()}function Xj(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Zj(){this.buffer()}function Jj(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Wj(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eM(e){this.exit(e)}function tM(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nM(e){this.exit(e)}function rM(){return"["}function CS(e,t,n,i){const s=n.createTracker(i);let o=s.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return o+=s.move(n.safe(n.associationId(e),{after:"]",before:o})),f(),u(),o+=s.move("]"),o}function iM(){return{enter:{gfmFootnoteCallString:Kj,gfmFootnoteCall:Xj,gfmFootnoteDefinitionLabelString:Zj,gfmFootnoteDefinition:Jj},exit:{gfmFootnoteCallString:Wj,gfmFootnoteCall:eM,gfmFootnoteDefinitionLabelString:tM,gfmFootnoteDefinition:nM}}}function aM(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:CS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,o,u){const f=o.createTracker(u);let h=f.move("[^");const d=o.enter("footnoteDefinition"),y=o.enter("label");return h+=f.move(o.safe(o.associationId(i),{before:h,after:"]"})),y(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((t?`
|
|
250
|
+
`:" ")+o.indentLines(o.containerFlow(i,f.current()),t?kS:sM))),d(),h}}function sM(e,t,n){return t===0?e:kS(e,t,n)}function kS(e,t,n){return(n?"":" ")+e}const lM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];RS.peek=hM;function oM(){return{canContainEols:["delete"],enter:{strikethrough:cM},exit:{strikethrough:fM}}}function uM(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lM}],handlers:{delete:RS}}}function cM(e){this.enter({type:"delete",children:[]},e)}function fM(e){this.exit(e)}function RS(e,t,n,i){const s=n.createTracker(i),o=n.enter("strikethrough");let u=s.move("~~");return u+=n.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),o(),u}function hM(){return"~"}function dM(e){return e.length}function mM(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||dM,o=[],u=[],f=[],h=[];let d=0,y=-1;for(;++y<e.length;){const E=[],C=[];let T=-1;for(e[y].length>d&&(d=e[y].length);++T<e[y].length;){const k=pM(e[y][T]);if(n.alignDelimiters!==!1){const O=s(k);C[T]=O,(h[T]===void 0||O>h[T])&&(h[T]=O)}E.push(k)}u[y]=E,f[y]=C}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<d;)o[p]=Ib(i[p]);else{const E=Ib(i);for(;++p<d;)o[p]=E}p=-1;const _=[],v=[];for(;++p<d;){const E=o[p];let C="",T="";E===99?(C=":",T=":"):E===108?C=":":E===114&&(T=":");let k=n.alignDelimiters===!1?1:Math.max(1,h[p]-C.length-T.length);const O=C+"-".repeat(k)+T;n.alignDelimiters!==!1&&(k=C.length+k+T.length,k>h[p]&&(h[p]=k),v[p]=k),_[p]=O}u.splice(1,0,_),f.splice(1,0,v),y=-1;const x=[];for(;++y<u.length;){const E=u[y],C=f[y];p=-1;const T=[];for(;++p<d;){const k=E[p]||"";let O="",P="";if(n.alignDelimiters!==!1){const V=h[p]-(C[p]||0),L=o[p];L===114?O=" ".repeat(V):L===99?V%2?(O=" ".repeat(V/2+.5),P=" ".repeat(V/2-.5)):(O=" ".repeat(V/2),P=O):P=" ".repeat(V)}n.delimiterStart!==!1&&!p&&T.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||p)&&T.push(" "),n.alignDelimiters!==!1&&T.push(O),T.push(k),n.alignDelimiters!==!1&&T.push(P),n.padding!==!1&&T.push(" "),(n.delimiterEnd!==!1||p!==d-1)&&T.push("|")}x.push(n.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return x.join(`
|
|
251
|
+
`)}function pM(e){return e==null?"":String(e)}function Ib(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Bb={}.hasOwnProperty;function gM(e,t){const n=t||{};function i(s,...o){let u=i.invalid;const f=i.handlers;if(s&&Bb.call(s,e)){const h=String(s[e]);u=Bb.call(f,h)?f[h]:i.unknown}if(u)return u.call(this,s,...o)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function yM(e,t,n,i){const s=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const u=n.indentLines(n.containerFlow(e,o.current()),vM);return s(),u}function vM(e,t,n){return">"+(n?"":" ")+e}function _M(e,t){return Ub(e,t.inConstruct,!0)&&!Ub(e,t.notInConstruct,!1)}function Ub(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function qb(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
|
|
252
|
+
`&&_M(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
253
|
+
`}function bM(e,t){const n=String(e);let i=n.indexOf(t),s=i,o=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++o>u&&(u=o):o=1,s=i+t.length,i=n.indexOf(t,s);return u}function xM(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function SM(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function EM(e,t,n,i){const s=SM(n),o=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(xM(e,n)){const p=n.enter("codeIndented"),_=n.indentLines(o,wM);return p(),_}const f=n.createTracker(i),h=s.repeat(Math.max(bM(o,s)+1,3)),d=n.enter("codeFenced");let y=f.move(h);if(e.lang){const p=n.enter(`codeFencedLang${u}`);y+=f.move(n.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${u}`);y+=f.move(" "),y+=f.move(n.safe(e.meta,{before:y,after:`
|
|
254
|
+
`,encode:["`"],...f.current()})),p()}return y+=f.move(`
|
|
255
|
+
`),o&&(y+=f.move(o+`
|
|
256
|
+
`)),y+=f.move(h),d(),y}function wM(e,t,n){return(n?"":" ")+e}function Gp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function TM(e,t,n,i){const s=Gp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("definition");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("[");return d+=h.move(n.safe(n.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
257
|
+
`,...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(n.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),u(),d}function CM(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function So(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Fc(e,t,n){const i=Xs(e),s=Xs(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}AS.peek=kM;function AS(e,t,n,i){const s=CM(n),o=n.enter("emphasis"),u=n.createTracker(i),f=u.move(s);let h=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const d=h.charCodeAt(0),y=Fc(i.before.charCodeAt(i.before.length-1),d,s);y.inside&&(h=So(d)+h.slice(1));const p=h.charCodeAt(h.length-1),_=Fc(i.after.charCodeAt(0),p,s);_.inside&&(h=h.slice(0,-1)+So(p));const v=u.move(s);return o(),n.attentionEncodeSurroundingInfo={after:_.outside,before:y.outside},f+h+v}function kM(e,t,n){return n.options.emphasis||"*"}function RM(e,t){let n=!1;return Vp(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,ep}),!!((!e.depth||e.depth<3)&&Mp(e)&&(t.options.setext||n))}function AM(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(i);if(RM(e,n)){const y=n.enter("headingSetext"),p=n.enter("phrasing"),_=n.containerPhrasing(e,{...o.current(),before:`
|
|
258
|
+
`,after:`
|
|
259
|
+
`});return p(),y(),_+`
|
|
260
|
+
`+(s===1?"=":"-").repeat(_.length-(Math.max(_.lastIndexOf("\r"),_.lastIndexOf(`
|
|
261
|
+
`))+1))}const u="#".repeat(s),f=n.enter("headingAtx"),h=n.enter("phrasing");o.move(u+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
262
|
+
`,...o.current()});return/^[\t ]/.test(d)&&(d=So(d.charCodeAt(0))+d.slice(1)),d=d?u+" "+d:u,n.options.closeAtx&&(d+=" "+u),h(),f(),d}OS.peek=OM;function OS(e){return e.value||""}function OM(){return"<"}LS.peek=LM;function LS(e,t,n,i){const s=Gp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("image");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("![");return d+=h.move(n.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(n.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),d+=h.move(")"),u(),d}function LM(){return"!"}NS.peek=NM;function NS(e,t,n,i){const s=e.referenceType,o=n.enter("imageReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("![");const d=n.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!d||d!==p?h+=f.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function NM(){return"!"}DS.peek=DM;function DS(e,t,n){let i=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){const u=n.unsafe[o],f=n.compilePattern(u);let h;if(u.atBreak)for(;h=f.exec(i);){let d=h.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(h.index+1)}}return s+i+s}function DM(){return"`"}function jS(e,t){const n=Mp(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}MS.peek=jM;function MS(e,t,n,i){const s=Gp(n),o=s==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let f,h;if(jS(e,n)){const y=n.stack;n.stack=[],f=n.enter("autolink");let p=u.move("<");return p+=u.move(n.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),f(),n.stack=y,p}f=n.enter("link"),h=n.enter("label");let d=u.move("[");return d+=u.move(n.containerPhrasing(e,{before:d,after:"](",...u.current()})),d+=u.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(h=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),h(),e.title&&(h=n.enter(`title${o}`),d+=u.move(" "+s),d+=u.move(n.safe(e.title,{before:d,after:s,...u.current()})),d+=u.move(s),h()),d+=u.move(")"),f(),d}function jM(e,t,n){return jS(e,n)?"<":"["}PS.peek=MM;function PS(e,t,n,i){const s=e.referenceType,o=n.enter("linkReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("[");const d=n.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!d||d!==p?h+=f.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function MM(){return"["}function Fp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function PM(e){const t=Fp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function zM(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function zS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function IM(e,t,n,i){const s=n.enter("list"),o=n.bulletCurrent;let u=e.ordered?zM(n):Fp(n);const f=e.ordered?u==="."?")":".":PM(n);let h=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(h=!0),zS(n)===u&&y){let p=-1;for(;++p<e.children.length;){const _=e.children[p];if(_&&_.type==="listItem"&&_.children&&_.children[0]&&_.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=f),n.bulletCurrent=u;const d=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=o,s(),d}function BM(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function UM(e,t,n,i){const s=BM(n);let o=n.bulletCurrent||Fp(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let u=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(i);f.move(o+" ".repeat(u-o.length)),f.shift(u);const h=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,f.current()),y);return h(),d;function y(p,_,v){return _?(v?"":" ".repeat(u))+p:(v?o:o+" ".repeat(u-o.length))+p}}function qM(e,t,n,i){const s=n.enter("paragraph"),o=n.enter("phrasing"),u=n.containerPhrasing(e,i);return o(),s(),u}const VM=vf(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function HM(e,t,n,i){return(e.children.some(function(u){return VM(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function GM(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}IS.peek=FM;function IS(e,t,n,i){const s=GM(n),o=n.enter("strong"),u=n.createTracker(i),f=u.move(s+s);let h=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const d=h.charCodeAt(0),y=Fc(i.before.charCodeAt(i.before.length-1),d,s);y.inside&&(h=So(d)+h.slice(1));const p=h.charCodeAt(h.length-1),_=Fc(i.after.charCodeAt(0),p,s);_.inside&&(h=h.slice(0,-1)+So(p));const v=u.move(s+s);return o(),n.attentionEncodeSurroundingInfo={after:_.outside,before:y.outside},f+h+v}function FM(e,t,n){return n.options.strong||"*"}function QM(e,t,n,i){return n.safe(e.value,i)}function $M(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function YM(e,t,n){const i=(zS(n)+(n.options.ruleSpaces?" ":"")).repeat($M(n));return n.options.ruleSpaces?i.slice(0,-1):i}const BS={blockquote:yM,break:qb,code:EM,definition:TM,emphasis:AS,hardBreak:qb,heading:AM,html:OS,image:LS,imageReference:NS,inlineCode:DS,link:MS,linkReference:PS,list:IM,listItem:UM,paragraph:qM,root:HM,strong:IS,text:QM,thematicBreak:YM};function KM(){return{enter:{table:XM,tableData:Vb,tableHeader:Vb,tableRow:JM},exit:{codeText:WM,table:ZM,tableData:xm,tableHeader:xm,tableRow:xm}}}function XM(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function ZM(e){this.exit(e),this.data.inTable=void 0}function JM(e){this.enter({type:"tableRow",children:[]},e)}function xm(e){this.exit(e)}function Vb(e){this.enter({type:"tableCell",children:[]},e)}function WM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,eP));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function eP(e,t){return t==="|"?t:e}function tP(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
263
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:_,table:u,tableCell:h,tableRow:f}};function u(v,x,E,C){return d(y(v,E,C),v.align)}function f(v,x,E,C){const T=p(v,E,C),k=d([T]);return k.slice(0,k.indexOf(`
|
|
264
|
+
`))}function h(v,x,E,C){const T=E.enter("tableCell"),k=E.enter("phrasing"),O=E.containerPhrasing(v,{...C,before:o,after:o});return k(),T(),O}function d(v,x){return mM(v,{align:x,alignDelimiters:i,padding:n,stringLength:s})}function y(v,x,E){const C=v.children;let T=-1;const k=[],O=x.enter("table");for(;++T<C.length;)k[T]=p(C[T],x,E);return O(),k}function p(v,x,E){const C=v.children;let T=-1;const k=[],O=x.enter("tableRow");for(;++T<C.length;)k[T]=h(C[T],v,x,E);return O(),k}function _(v,x,E){let C=BS.inlineCode(v,x,E);return E.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function nP(){return{exit:{taskListCheckValueChecked:Hb,taskListCheckValueUnchecked:Hb,paragraph:iP}}}function rP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:aP}}}function Hb(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function iP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let o=-1,u;for(;++o<s.length;){const f=s[o];if(f.type==="paragraph"){u=f;break}}u===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function aP(e,t,n,i){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(i);o&&f.move(u);let h=BS.listItem(e,t,n,{...i,...f.current()});return o&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(y){return y+u}}function sP(){return[zj(),iM(),oM(),KM(),nP()]}function lP(e){return{extensions:[Ij(),aM(e),uM(),tP(e),rP()]}}const oP={tokenize:mP,partial:!0},US={tokenize:pP,partial:!0},qS={tokenize:gP,partial:!0},VS={tokenize:yP,partial:!0},uP={tokenize:vP,partial:!0},HS={name:"wwwAutolink",tokenize:hP,previous:FS},GS={name:"protocolAutolink",tokenize:dP,previous:QS},Gr={name:"emailAutolink",tokenize:fP,previous:$S},cr={};function cP(){return{text:cr}}let ra=48;for(;ra<123;)cr[ra]=Gr,ra++,ra===58?ra=65:ra===91&&(ra=97);cr[43]=Gr;cr[45]=Gr;cr[46]=Gr;cr[95]=Gr;cr[72]=[Gr,GS];cr[104]=[Gr,GS];cr[87]=[Gr,HS];cr[119]=[Gr,HS];function fP(e,t,n){const i=this;let s,o;return u;function u(p){return!ip(p)||!$S.call(i,i.previous)||Qp(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(p))}function f(p){return ip(p)?(e.consume(p),f):p===64?(e.consume(p),h):n(p)}function h(p){return p===46?e.check(uP,y,d)(p):p===45||p===95||It(p)?(o=!0,e.consume(p),h):y(p)}function d(p){return e.consume(p),s=!0,h}function y(p){return o&&s&&Qt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function hP(e,t,n){const i=this;return s;function s(u){return u!==87&&u!==119||!FS.call(i,i.previous)||Qp(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(oP,e.attempt(US,e.attempt(qS,o),n),n)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function dP(e,t,n){const i=this;let s="",o=!1;return u;function u(p){return(p===72||p===104)&&QS.call(i,i.previous)&&!Qp(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),f):n(p)}function f(p){if(Qt(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),f;if(p===58){const _=s.toLowerCase();if(_==="http"||_==="https")return e.consume(p),h}return n(p)}function h(p){return p===47?(e.consume(p),o?d:(o=!0,h)):n(p)}function d(p){return p===null||qc(p)||tt(p)||Ca(p)||pf(p)?n(p):e.attempt(US,e.attempt(qS,y),n)(p)}function y(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function mP(e,t,n){let i=0;return s;function s(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),s):u===46&&i===3?(e.consume(u),o):n(u)}function o(u){return u===null?n(u):t(u)}}function pP(e,t,n){let i,s,o;return u;function u(d){return d===46||d===95?e.check(VS,h,f)(d):d===null||tt(d)||Ca(d)||d!==45&&pf(d)?h(d):(o=!0,e.consume(d),u)}function f(d){return d===95?i=!0:(s=i,i=void 0),e.consume(d),u}function h(d){return s||i||!o?n(d):t(d)}}function gP(e,t){let n=0,i=0;return s;function s(u){return u===40?(n++,e.consume(u),s):u===41&&i<n?o(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(VS,t,o)(u):u===null||tt(u)||Ca(u)?t(u):(e.consume(u),s)}function o(u){return u===41&&i++,e.consume(u),s}}function yP(e,t,n){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),o):f===93?(e.consume(f),s):f===60||f===null||tt(f)||Ca(f)?t(f):n(f)}function s(f){return f===null||f===40||f===91||tt(f)||Ca(f)?t(f):i(f)}function o(f){return Qt(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),i):Qt(f)?(e.consume(f),u):n(f)}}function vP(e,t,n){return i;function i(o){return e.consume(o),s}function s(o){return It(o)?n(o):t(o)}}function FS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||tt(e)}function QS(e){return!Qt(e)}function $S(e){return!(e===47||ip(e))}function ip(e){return e===43||e===45||e===46||e===95||It(e)}function Qp(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const _P={tokenize:kP,partial:!0};function bP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wP,continuation:{tokenize:TP},exit:CP}},text:{91:{name:"gfmFootnoteCall",tokenize:EP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xP,resolveTo:SP}}}}function xP(e,t,n){const i=this;let s=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;s--;){const h=i.events[s][1];if(h.type==="labelImage"){u=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!u||!u._balanced)return n(h);const d=Xn(i.sliceSerialize({start:u.end,end:i.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function SP(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},f=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...f),e}function EP(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,u;return f;function f(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(p){if(o>999||p===93&&!u||p===null||p===91||tt(p))return n(p);if(p===93){e.exit("chunkString");const _=e.exit("gfmFootnoteCallString");return s.includes(Xn(i.sliceSerialize(_)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return tt(p)||(u=!0),o++,e.consume(p),p===92?y:d}function y(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function wP(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,u=0,f;return h;function h(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):n(x)}function y(x){if(u>999||x===93&&!f||x===null||x===91||tt(x))return n(x);if(x===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=Xn(i.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),_}return tt(x)||(f=!0),u++,e.consume(x),x===92?p:y}function p(x){return x===91||x===92||x===93?(e.consume(x),u++,y):y(x)}function _(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),s.includes(o)||s.push(o),Ie(e,v,"gfmFootnoteDefinitionWhitespace")):n(x)}function v(x){return t(x)}}function TP(e,t,n){return e.check(Io,t,e.attempt(_P,t,n))}function CP(e){e.exit("gfmFootnoteDefinition")}function kP(e,t,n){const i=this;return Ie(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(o):n(o)}}function RP(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(u,f){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let d=h;for(;d--;)if(u[d][0]==="exit"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[d][1].end.offset-u[d][1].start.offset){u[h][1].type="strikethroughSequence",u[d][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[d][1].start),end:Object.assign({},u[h][1].end)},p={type:"strikethroughText",start:Object.assign({},u[d][1].end),end:Object.assign({},u[h][1].start)},_=[["enter",y,f],["enter",u[d][1],f],["exit",u[d][1],f],["enter",p,f]],v=f.parser.constructs.insideSpan.null;v&&bn(_,_.length,0,gf(v,u.slice(d+1,h),f)),bn(_,_.length,0,[["exit",p,f],["enter",u[h][1],f],["exit",u[h][1],f],["exit",y,f]]),bn(u,d-1,h-d+3,_),h=d+_.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function o(u,f,h){const d=this.previous,y=this.events;let p=0;return _;function _(x){return d===126&&y[y.length-1][1].type!=="characterEscape"?h(x):(u.enter("strikethroughSequenceTemporary"),v(x))}function v(x){const E=Xs(d);if(x===126)return p>1?h(x):(u.consume(x),p++,v);if(p<2&&!n)return h(x);const C=u.exit("strikethroughSequenceTemporary"),T=Xs(x);return C._open=!T||T===2&&!!E,C._close=!E||E===2&&!!T,f(x)}}}class AP{constructor(){this.map=[]}add(t,n,i){OP(this,t,n,i)}consume(t){if(this.map.sort(function(o,u){return o[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const o of s)t.push(o);s=i.pop()}this.map.length=0}}function OP(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function LP(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function NP(){return{flow:{null:{name:"table",tokenize:DP,resolveAll:jP}}}}function DP(e,t,n){const i=this;let s=0,o=0,u;return f;function f(N){let $=i.events.length-1;for(;$>-1;){const le=i.events[$][1].type;if(le==="lineEnding"||le==="linePrefix")$--;else break}const ie=$>-1?i.events[$][1].type:null,me=ie==="tableHead"||ie==="tableRow"?L:h;return me===L&&i.parser.lazy[i.now().line]?n(N):me(N)}function h(N){return e.enter("tableHead"),e.enter("tableRow"),d(N)}function d(N){return N===124||(u=!0,o+=1),y(N)}function y(N){return N===null?n(N):_e(N)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),v):n(N):Ne(N)?Ie(e,y,"whitespace")(N):(o+=1,u&&(u=!1,s+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),p(N)))}function p(N){return N===null||N===124||tt(N)?(e.exit("data"),y(N)):(e.consume(N),N===92?_:p)}function _(N){return N===92||N===124?(e.consume(N),p):p(N)}function v(N){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(N):(e.enter("tableDelimiterRow"),u=!1,Ne(N)?Ie(e,x,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):x(N))}function x(N){return N===45||N===58?C(N):N===124?(u=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),E):V(N)}function E(N){return Ne(N)?Ie(e,C,"whitespace")(N):C(N)}function C(N){return N===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),T):N===45?(o+=1,T(N)):N===null||_e(N)?P(N):V(N)}function T(N){return N===45?(e.enter("tableDelimiterFiller"),k(N)):V(N)}function k(N){return N===45?(e.consume(N),k):N===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(N))}function O(N){return Ne(N)?Ie(e,P,"whitespace")(N):P(N)}function P(N){return N===124?x(N):N===null||_e(N)?!u||s!==o?V(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):V(N)}function V(N){return n(N)}function L(N){return e.enter("tableRow"),B(N)}function B(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),B):N===null||_e(N)?(e.exit("tableRow"),t(N)):Ne(N)?Ie(e,B,"whitespace")(N):(e.enter("data"),q(N))}function q(N){return N===null||N===124||tt(N)?(e.exit("data"),B(N)):(e.consume(N),N===92?te:q)}function te(N){return N===92||N===124?(e.consume(N),q):q(N)}}function jP(e,t){let n=-1,i=!0,s=0,o=[0,0,0,0],u=[0,0,0,0],f=!1,h=0,d,y,p;const _=new AP;for(;++n<e.length;){const v=e[n],x=v[1];v[0]==="enter"?x.type==="tableHead"?(f=!1,h!==0&&(Gb(_,t,h,d,y),y=void 0,h=0),d={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},_.add(n,0,[["enter",d,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(i=!0,p=void 0,o=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},_.add(n,0,[["enter",y,t]])),s=x.type==="tableDelimiterRow"?2:y?3:1):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(o[1]!==0&&(u[0]=u[1],p=gc(_,t,o,s,void 0,p),o=[0,0,0,0]),u[2]=n)):x.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(u[0]=u[1],p=gc(_,t,o,s,void 0,p)),o=u,u=[o[1],n,0,0])):x.type==="tableHead"?(f=!0,h=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(h=n,o[1]!==0?(u[0]=u[1],p=gc(_,t,o,s,n,p)):u[1]!==0&&(p=gc(_,t,u,s,n,p)),s=0):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=n)}for(h!==0&&Gb(_,t,h,d,y),_.consume(t.events),n=-1;++n<t.events.length;){const v=t.events[n];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=LP(t.events,n))}return e}function gc(e,t,n,i,s,o){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(o.end=Object.assign({},ks(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const h=ks(t.events,n[1]);if(o={type:u,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const d=ks(t.events,n[2]),y=ks(t.events,n[3]),p={type:f,start:Object.assign({},d),end:Object.assign({},y)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const _=t.events[n[2]],v=t.events[n[3]];if(_[1].end=Object.assign({},v[1].end),_[1].type="chunkText",_[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,E=n[3]-n[2]-1;e.add(x,E,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return s!==void 0&&(o.end=Object.assign({},ks(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function Gb(e,t,n,i,s){const o=[],u=ks(t.events,n);s&&(s.end=Object.assign({},u),o.push(["exit",s,t])),i.end=Object.assign({},u),o.push(["exit",i,t]),e.add(n+1,0,o)}function ks(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const MP={name:"tasklistCheck",tokenize:zP};function PP(){return{text:{91:MP}}}function zP(e,t,n){const i=this;return s;function s(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return tt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),u):n(h)}function u(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(h)}function f(h){return _e(h)?t(h):Ne(h)?e.check({tokenize:IP},t,n)(h):n(h)}}function IP(e,t,n){return Ie(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function BP(e){return iS([cP(),bP(),RP(e),NP(),PP()])}const UP={};function qP(e){const t=this,n=e||UP,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(BP(n)),o.push(sP()),u.push(lP(n))}const VP="modulepreload",HP=function(e){return"/"+e},Fb={},R=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),h=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=u(n.map(d=>{if(d=HP(d),d in Fb)return;Fb[d]=!0;const y=d.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const _=document.createElement("link");if(_.rel=y?"stylesheet":VP,y||(_.as="script"),_.crossOrigin="",_.href=d,h&&_.setAttribute("nonce",h),document.head.appendChild(_),y)return new Promise((v,x)=>{_.addEventListener("load",v),_.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return t().catch(o)})};let vt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function GP(e){return $p(e)}function $p(e){return Array.isArray(e)?FP(e):e instanceof RegExp?e:typeof e=="object"?QP(e):e}function FP(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=$p(e[n]);return t}function QP(e){let t={};for(let n in e)t[n]=$p(e[n]);return t}function YS(e,...t){return t.forEach(n=>{for(let i in n)e[i]=n[i]}),e}function KS(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?KS(e.substring(0,e.length-1)):e.substr(~t+1)}var Sm=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,yc=class{static hasCaptures(e){return e===null?!1:(Sm.lastIndex=0,Sm.test(e))}static replaceCaptures(e,t,n){return e.replace(Sm,(i,s,o,u)=>{let f=n[parseInt(s||o,10)];if(f){let h=t.substring(f.start,f.end);for(;h[0]===".";)h=h.substring(1);switch(u){case"downcase":return h.toLowerCase();case"upcase":return h.toUpperCase();default:return h}}else return i})}};function XS(e,t){return e<t?-1:e>t?1:0}function ZS(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let s=0;s<n;s++){let o=XS(e[s],t[s]);if(o!==0)return o}return 0}return n-i}function Qb(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function JS(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var WS=class{constructor(e){W(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Qc=class{constructor(e,t,n){W(this,"_cachedMatchRoot",new WS(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(KP(e),t)}static createFromParsedTheme(e,t){return ZP(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,i=this._cachedMatchRoot.get(t).find(s=>$P(e.parent,s.parentScopes));return i?new eE(i.fontStyle,i.foreground,i.background):null}},Em=class kc{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const i of n)t=new kc(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new kc(n,t[i]);return n}push(t){return new kc(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push(i.scopeName),i=i.parent;return i===t?n.reverse():void 0}};function $P(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let i=t[n],s=!1;if(i===">"){if(n===t.length-1)return!1;i=t[++n],s=!0}for(;e&&!YP(e.scopeName,i);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function YP(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var eE=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function KP(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let s=0,o=t.length;s<o;s++){let u=t[s];if(!u.settings)continue;let f;if(typeof u.scope=="string"){let p=u.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),f=p.split(",")}else Array.isArray(u.scope)?f=u.scope:f=[""];let h=-1;if(typeof u.settings.fontStyle=="string"){h=0;let p=u.settings.fontStyle.split(" ");for(let _=0,v=p.length;_<v;_++)switch(p[_]){case"italic":h=h|1;break;case"bold":h=h|2;break;case"underline":h=h|4;break;case"strikethrough":h=h|8;break}}let d=null;typeof u.settings.foreground=="string"&&Qb(u.settings.foreground)&&(d=u.settings.foreground);let y=null;typeof u.settings.background=="string"&&Qb(u.settings.background)&&(y=u.settings.background);for(let p=0,_=f.length;p<_;p++){let x=f[p].trim().split(" "),E=x[x.length-1],C=null;x.length>1&&(C=x.slice(0,x.length-1),C.reverse()),n[i++]=new XP(E,C,s,h,d,y)}}return n}var XP=class{constructor(e,t,n,i,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=s,this.background=o}},zt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(zt||{});function ZP(e,t){e.sort((h,d)=>{let y=XS(h.scope,d.scope);return y!==0||(y=ZS(h.parentScopes,d.parentScopes),y!==0)?y:h.index-d.index});let n=0,i="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let h=e.shift();h.fontStyle!==-1&&(n=h.fontStyle),h.foreground!==null&&(i=h.foreground),h.background!==null&&(s=h.background)}let o=new JP(t),u=new eE(n,o.getId(i),o.getId(s)),f=new e3(new ap(0,null,-1,0,0),[]);for(let h=0,d=e.length;h<d;h++){let y=e[h];f.insert(0,y.scope,y.parentScopes,y.fontStyle,o.getId(y.foreground),o.getId(y.background))}return new Qc(o,u,f)}var JP=class{constructor(e){W(this,"_isFrozen");W(this,"_lastColorId");W(this,"_id2color");W(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},WP=Object.freeze([]),ap=class tE{constructor(t,n,i,s,o){W(this,"scopeDepth");W(this,"parentScopes");W(this,"fontStyle");W(this,"foreground");W(this,"background");this.scopeDepth=t,this.parentScopes=n||WP,this.fontStyle=i,this.foreground=s,this.background=o}clone(){return new tE(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let i=0,s=t.length;i<s;i++)n[i]=t[i].clone();return n}acceptOverwrite(t,n,i,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),s!==0&&(this.background=s)}},e3=class sp{constructor(t,n=[],i={}){W(this,"_rulesWithParentScopes");this._mainRule=t,this._children=i,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let i=0,s=0;for(;t.parentScopes[i]===">"&&i++,n.parentScopes[s]===">"&&s++,!(i>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[i].length;if(o!==0)return o;i++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let i=t.indexOf("."),s,o;if(i===-1?(s=t,o=""):(s=t.substring(0,i),o=t.substring(i+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(sp._cmpBySpecificity),n}insert(t,n,i,s,o,u){if(n===""){this._doInsertHere(t,i,s,o,u);return}let f=n.indexOf("."),h,d;f===-1?(h=n,d=""):(h=n.substring(0,f),d=n.substring(f+1));let y;this._children.hasOwnProperty(h)?y=this._children[h]:(y=new sp(this._mainRule.clone(),ap.cloneArr(this._rulesWithParentScopes)),this._children[h]=y),y.insert(t+1,d,i,s,o,u)}_doInsertHere(t,n,i,s,o){if(n===null){this._mainRule.acceptOverwrite(t,i,s,o);return}for(let u=0,f=this._rulesWithParentScopes.length;u<f;u++){let h=this._rulesWithParentScopes[u];if(ZS(h.parentScopes,n)===0){h.acceptOverwrite(t,i,s,o);return}}i===-1&&(i=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new ap(t,n,i,s,o))}},Zs=class Ln{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ln.getLanguageId(t),i=Ln.getTokenType(t),s=Ln.getFontStyle(t),o=Ln.getForeground(t),u=Ln.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:s,foreground:o,background:u})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,i,s,o,u,f){let h=Ln.getLanguageId(t),d=Ln.getTokenType(t),y=Ln.containsBalancedBrackets(t)?1:0,p=Ln.getFontStyle(t),_=Ln.getForeground(t),v=Ln.getBackground(t);return n!==0&&(h=n),i!==8&&(d=i),s!==null&&(y=s?1:0),o!==-1&&(p=o),u!==0&&(_=u),f!==0&&(v=f),(h<<0|d<<8|y<<10|p<<11|_<<15|v<<24)>>>0}};function $c(e,t){const n=[],i=t3(e);let s=i.next();for(;s!==null;){let h=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":h=1;break;case"L":h=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=i.next()}let d=u();if(n.push({matcher:d,priority:h}),s!==",")break;s=i.next()}return n;function o(){if(s==="-"){s=i.next();const h=o();return d=>!!h&&!h(d)}if(s==="("){s=i.next();const h=f();return s===")"&&(s=i.next()),h}if($b(s)){const h=[];do h.push(s),s=i.next();while($b(s));return d=>t(h,d)}return null}function u(){const h=[];let d=o();for(;d;)h.push(d),d=o();return y=>h.every(p=>p(y))}function f(){const h=[];let d=u();for(;d&&(h.push(d),s==="|"||s===",");){do s=i.next();while(s==="|"||s===",");d=u()}return y=>h.some(p=>p(y))}}function $b(e){return!!e&&!!e.match(/[\w\.:]+/)}function t3(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const i=n[0];return n=t.exec(e),i}}}function nE(e){typeof e.dispose=="function"&&e.dispose()}var Eo=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},n3=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},r3=class{constructor(){W(this,"_references",[]);W(this,"_seenReferenceKeys",new Set);W(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},i3=class{constructor(e,t){W(this,"seenFullScopeRequests",new Set);W(this,"seenPartialScopeRequests",new Set);W(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Eo(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new r3;for(const n of e)a3(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Eo){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function a3(e,t,n,i){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Eo?Rc({baseGrammar:o,selfGrammar:s},i):lp(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},i);const u=n.injections(e.scopeName);if(u)for(const f of u)i.add(new Eo(f))}function lp(e,t,n){if(t.repository&&t.repository[e]){const i=t.repository[e];Yc([i],t,n)}}function Rc(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Yc(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Yc(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Yc(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const s=i.repository?YS({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&Yc(i.patterns,{...t,repository:s},n);const o=i.include;if(!o)continue;const u=rE(o);switch(u.kind){case 0:Rc({...t,selfGrammar:t.baseGrammar},n);break;case 1:Rc(t,n);break;case 2:lp(u.ruleName,{...t,repository:s},n);break;case 3:case 4:const f=u.scopeName===t.selfGrammar.scopeName?t.selfGrammar:u.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(f){const h={baseGrammar:t.baseGrammar,selfGrammar:f,repository:s};u.kind===4?lp(u.ruleName,h,n):Rc(h,n)}else u.kind===4?n.add(new n3(u.scopeName,u.ruleName)):n.add(new Eo(u.scopeName));break}}}var s3=class{constructor(){W(this,"kind",0)}},l3=class{constructor(){W(this,"kind",1)}},o3=class{constructor(e){W(this,"kind",2);this.ruleName=e}},u3=class{constructor(e){W(this,"kind",3);this.scopeName=e}},c3=class{constructor(e,t){W(this,"kind",4);this.scopeName=e,this.ruleName=t}};function rE(e){if(e==="$base")return new s3;if(e==="$self")return new l3;const t=e.indexOf("#");if(t===-1)return new u3(e);if(t===0)return new o3(e.substring(1));{const n=e.substring(0,t),i=e.substring(t+1);return new c3(n,i)}}var f3=/\\(\d+)/,Yb=/\\(\d+)/g,h3=-1,iE=-2;var Uo=class{constructor(e,t,n,i){W(this,"$location");W(this,"id");W(this,"_nameIsCapturing");W(this,"_name");W(this,"_contentNameIsCapturing");W(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=yc.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=yc.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${KS(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:yc.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:yc.replaceCaptures(this._contentName,e,t)}},d3=class extends Uo{constructor(t,n,i,s,o){super(t,n,i,s);W(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,i,s){throw new Error("Not supported!")}},m3=class extends Uo{constructor(t,n,i,s,o){super(t,n,i,null);W(this,"_match");W(this,"captures");W(this,"_cachedCompiledPatterns");this._match=new wo(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new To,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Kb=class extends Uo{constructor(t,n,i,s,o){super(t,n,i,s);W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const i of this.patterns)t.getRule(i).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new To,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},op=class extends Uo{constructor(t,n,i,s,o,u,f,h,d,y){super(t,n,i,s);W(this,"_begin");W(this,"beginCaptures");W(this,"_end");W(this,"endHasBackReferences");W(this,"endCaptures");W(this,"applyEndPatternLast");W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");this._begin=new wo(o,this.id),this.beginCaptures=u,this._end=new wo(f||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=h,this.applyEndPatternLast=d||!1,this.patterns=y.patterns,this.hasMissingPatterns=y.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,i,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new To;for(const i of this.patterns)t.getRule(i).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Kc=class extends Uo{constructor(t,n,i,s,o,u,f,h,d){super(t,n,i,s);W(this,"_begin");W(this,"beginCaptures");W(this,"whileCaptures");W(this,"_while");W(this,"whileHasBackReferences");W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");W(this,"_cachedCompiledWhilePatterns");this._begin=new wo(o,this.id),this.beginCaptures=u,this.whileCaptures=h,this._while=new wo(f,iE),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new To;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,i,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,i,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new To,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},aE=class Pt{static createCaptureRule(t,n,i,s,o){return t.registerRule(u=>new d3(n,u,i,s,o))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new m3(t.$vscodeTextmateLocation,t.id,t.name,t.match,Pt._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=YS({},i,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Kb(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Pt._compilePatterns(o,n,i))}return t.while?new Kc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,Pt._compileCaptures(t.whileCaptures||t.captures,n,i),Pt._compilePatterns(t.patterns,n,i)):new op(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,Pt._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,Pt._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let s=[];if(t){let o=0;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);f>o&&(o=f)}for(let u=0;u<=o;u++)s[u]=null;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);let h=0;t[u].patterns&&(h=Pt.getCompiledRuleId(t[u],n,i)),s[f]=Pt.createCaptureRule(n,t[u].$vscodeTextmateLocation,t[u].name,t[u].contentName,h)}}return s}static _compilePatterns(t,n,i){let s=[];if(t)for(let o=0,u=t.length;o<u;o++){const f=t[o];let h=-1;if(f.include){const d=rE(f.include);switch(d.kind){case 0:case 1:h=Pt.getCompiledRuleId(i[f.include],n,i);break;case 2:let y=i[d.ruleName];y&&(h=Pt.getCompiledRuleId(y,n,i));break;case 3:case 4:const p=d.scopeName,_=d.kind===4?d.ruleName:null,v=n.getExternalGrammar(p,i);if(v)if(_){let x=v.repository[_];x&&(h=Pt.getCompiledRuleId(x,n,v.repository))}else h=Pt.getCompiledRuleId(v.repository.$self,n,v.repository);break}}else h=Pt.getCompiledRuleId(f,n,i);if(h!==-1){const d=n.getRule(h);let y=!1;if((d instanceof Kb||d instanceof op||d instanceof Kc)&&d.hasMissingPatterns&&d.patterns.length===0&&(y=!0),y)continue;s.push(h)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},wo=class sE{constructor(t,n){W(this,"source");W(this,"ruleId");W(this,"hasAnchor");W(this,"hasBackReferences");W(this,"_anchorCache");if(t&&typeof t=="string"){const i=t.length;let s=0,o=[],u=!1;for(let f=0;f<i;f++)if(t.charAt(f)==="\\"&&f+1<i){const d=t.charAt(f+1);d==="z"?(o.push(t.substring(s,f)),o.push("$(?!\\n)(?<!\\n)"),s=f+2):(d==="A"||d==="G")&&(u=!0),f++}this.hasAnchor=u,s===0?this.source=t:(o.push(t.substring(s,i)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=f3.test(this.source):this.hasBackReferences=!1}clone(){return new sE(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(s=>t.substring(s.start,s.end));return Yb.lastIndex=0,this.source.replace(Yb,(s,o)=>JS(i[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],i=[],s=[],o,u,f,h;for(o=0,u=this.source.length;o<u;o++)f=this.source.charAt(o),t[o]=f,n[o]=f,i[o]=f,s[o]=f,f==="\\"&&o+1<u&&(h=this.source.charAt(o+1),h==="A"?(t[o+1]="",n[o+1]="",i[o+1]="A",s[o+1]="A"):h==="G"?(t[o+1]="",n[o+1]="G",i[o+1]="",s[o+1]="G"):(t[o+1]=h,n[o+1]=h,i[o+1]=h,s[o+1]=h),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},To=class{constructor(){W(this,"_items");W(this,"_hasAnchors");W(this,"_cached");W(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Xb(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let i=this._items.map(s=>s.resolveAnchors(t,n));return new Xb(e,i,this._items.map(s=>s.ruleId))}},Xb=class{constructor(e,t,n){W(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
265
|
+
`)}findNextMatchSync(e,t,n){const i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},wm=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ur,p3=(Ur=class{constructor(t,n){W(this,"_defaultAttributes");W(this,"_embeddedLanguagesMatcher");W(this,"_getBasicScopeAttributes",new WS(t=>{const n=this._scopeToLanguage(t),i=this._toStandardTokenType(t);return new wm(n,i)}));this._defaultAttributes=new wm(t,8),this._embeddedLanguagesMatcher=new g3(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ur._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ur.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},W(Ur,"_NULL_SCOPE_METADATA",new wm(0,0)),W(Ur,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ur),g3=class{constructor(e){W(this,"values");W(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,i])=>JS(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Zb=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function lE(e,t,n,i,s,o,u,f){const h=t.content.length;let d=!1,y=-1;if(u){const v=y3(e,t,n,i,s,o);s=v.stack,i=v.linePos,n=v.isFirstLine,y=v.anchorPosition}const p=Date.now();for(;!d;){if(f!==0&&Date.now()-p>f)return new Zb(s,!0);_()}return new Zb(s,!1);function _(){const v=v3(e,t,n,i,s,y);if(!v){o.produce(s,h),d=!0;return}const x=v.captureIndices,E=v.matchedRuleId,C=x&&x.length>0?x[0].end>i:!1;if(E===h3){const T=s.getRule(e);o.produce(s,x[0].start),s=s.withContentNameScopesList(s.nameScopesList),lo(e,t,n,s,o,T.endCaptures,x),o.produce(s,x[0].end);const k=s;if(s=s.parent,y=k.getAnchorPos(),!C&&k.getEnterPos()===i){s=k,o.produce(s,h),d=!0;return}}else{const T=e.getRule(E);o.produce(s,x[0].start);const k=s,O=T.getName(t.content,x),P=s.contentNameScopesList.pushAttributed(O,e);if(s=s.push(E,i,y,x[0].end===h,null,P,P),T instanceof op){const V=T;lo(e,t,n,s,o,V.beginCaptures,x),o.produce(s,x[0].end),y=x[0].end;const L=V.getContentName(t.content,x),B=P.pushAttributed(L,e);if(s=s.withContentNameScopesList(B),V.endHasBackReferences&&(s=s.withEndRule(V.getEndWithResolvedBackReferences(t.content,x))),!C&&k.hasSameRuleAs(s)){s=s.pop(),o.produce(s,h),d=!0;return}}else if(T instanceof Kc){const V=T;lo(e,t,n,s,o,V.beginCaptures,x),o.produce(s,x[0].end),y=x[0].end;const L=V.getContentName(t.content,x),B=P.pushAttributed(L,e);if(s=s.withContentNameScopesList(B),V.whileHasBackReferences&&(s=s.withEndRule(V.getWhileWithResolvedBackReferences(t.content,x))),!C&&k.hasSameRuleAs(s)){s=s.pop(),o.produce(s,h),d=!0;return}}else if(lo(e,t,n,s,o,T.captures,x),o.produce(s,x[0].end),s=s.pop(),!C){s=s.safePop(),o.produce(s,h),d=!0;return}}x[0].end>i&&(i=x[0].end,n=!1)}}function y3(e,t,n,i,s,o){let u=s.beginRuleCapturedEOL?0:-1;const f=[];for(let h=s;h;h=h.pop()){const d=h.getRule(e);d instanceof Kc&&f.push({rule:d,stack:h})}for(let h=f.pop();h;h=f.pop()){const{ruleScanner:d,findOptions:y}=x3(h.rule,e,h.stack.endRule,n,i===u),p=d.findNextMatchSync(t,i,y);if(p){if(p.ruleId!==iE){s=h.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(h.stack,p.captureIndices[0].start),lo(e,t,n,h.stack,o,h.rule.whileCaptures,p.captureIndices),o.produce(h.stack,p.captureIndices[0].end),u=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,n=!1))}else{s=h.stack.pop();break}}return{stack:s,linePos:i,anchorPosition:u,isFirstLine:n}}function v3(e,t,n,i,s,o){const u=_3(e,t,n,i,s,o),f=e.getInjections();if(f.length===0)return u;const h=b3(f,e,t,n,i,s,o);if(!h)return u;if(!u)return h;const d=u.captureIndices[0].start,y=h.captureIndices[0].start;return y<d||h.priorityMatch&&y===d?h:u}function _3(e,t,n,i,s,o){const u=s.getRule(e),{ruleScanner:f,findOptions:h}=oE(u,e,s.endRule,n,i===o),d=f.findNextMatchSync(t,i,h);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function b3(e,t,n,i,s,o,u){let f=Number.MAX_VALUE,h=null,d,y=0;const p=o.contentNameScopesList.getScopeNames();for(let _=0,v=e.length;_<v;_++){const x=e[_];if(!x.matcher(p))continue;const E=t.getRule(x.ruleId),{ruleScanner:C,findOptions:T}=oE(E,t,null,i,s===u),k=C.findNextMatchSync(n,s,T);if(!k)continue;const O=k.captureIndices[0].start;if(!(O>=f)&&(f=O,h=k.captureIndices,d=k.ruleId,y=x.priority,f===s))break}return h?{priorityMatch:y===-1,captureIndices:h,matchedRuleId:d}:null}function oE(e,t,n,i,s){return{ruleScanner:e.compileAG(t,n,i,s),findOptions:0}}function x3(e,t,n,i,s){return{ruleScanner:e.compileWhileAG(t,n,i,s),findOptions:0}}function lo(e,t,n,i,s,o,u){if(o.length===0)return;const f=t.content,h=Math.min(o.length,u.length),d=[],y=u[0].end;for(let p=0;p<h;p++){const _=o[p];if(_===null)continue;const v=u[p];if(v.length===0)continue;if(v.start>y)break;for(;d.length>0&&d[d.length-1].endPos<=v.start;)s.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?s.produceFromScopes(d[d.length-1].scopes,v.start):s.produce(i,v.start),_.retokenizeCapturedWithRuleId){const E=_.getName(f,u),C=i.contentNameScopesList.pushAttributed(E,e),T=_.getContentName(f,u),k=C.pushAttributed(T,e),O=i.push(_.retokenizeCapturedWithRuleId,v.start,-1,!1,null,C,k),P=e.createOnigString(f.substring(0,v.end));lE(e,P,n&&v.start===0,v.start,O,s,!1,0),nE(P);continue}const x=_.getName(f,u);if(x!==null){const C=(d.length>0?d[d.length-1].scopes:i.contentNameScopesList).pushAttributed(x,e);d.push(new S3(C,v.end))}}for(;d.length>0;)s.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var S3=class{constructor(e,t){W(this,"scopes");W(this,"endPos");this.scopes=e,this.endPos=t}};function E3(e,t,n,i,s,o,u,f){return new T3(e,t,n,i,s,o,u,f)}function Jb(e,t,n,i,s){const o=$c(t,Xc),u=aE.getCompiledRuleId(n,i,s.repository);for(const f of o)e.push({debugSelector:t,matcher:f.matcher,ruleId:u,grammar:s,priority:f.priority})}function Xc(e,t){if(t.length<e.length)return!1;let n=0;return e.every(i=>{for(let s=n;s<t.length;s++)if(w3(t[s],i))return n=s+1,!0;return!1})}function w3(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var T3=class{constructor(e,t,n,i,s,o,u,f){W(this,"_rootId");W(this,"_lastRuleId");W(this,"_ruleId2desc");W(this,"_includedGrammars");W(this,"_grammarRepository");W(this,"_grammar");W(this,"_injections");W(this,"_basicScopeAttributesProvider");W(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=f,this._basicScopeAttributesProvider=new p3(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=u,this._grammar=Wb(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const h of Object.keys(s)){const d=$c(h,Xc);for(const y of d)this._tokenTypeMatchers.push({matcher:y.matcher,type:s[h]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,i=e.lookup(n);if(i){const s=i.injections;if(s)for(let u in s)Jb(t,u,s[u],this,i);const o=this._grammarRepository.injections(n);o&&o.forEach(u=>{const f=this.getExternalGrammar(u);if(f){const h=f.injectionSelector;h&&Jb(t,h,f,this,f)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Wb(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){const i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){this._rootId===-1&&(this._rootId=aE.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===up.NULL){s=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),y=this.themeProvider.getDefaults(),p=Zs.set(0,d.languageId,d.tokenType,null,y.fontStyle,y.foregroundId,y.backgroundId),_=this.getRule(this._rootId).getName(null,null);let v;_?v=yo.createRootAndLookUpScopeName(_,p,this):v=yo.createRoot("unknown",p),t=new up(null,this._rootId,-1,-1,!1,null,v,v)}else s=!1,t.reset();e=e+`
|
|
266
|
+
`;const o=this.createOnigString(e),u=o.content.length,f=new k3(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=lE(this,o,s,0,t,f,!0,i);return nE(o),{lineLength:u,lineTokens:f,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}};function Wb(e,t){return e=GP(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var yo=class nr{constructor(t,n,i){this.parent=t,this.scopePath=n,this.tokenAttributes=i}static fromExtension(t,n){let i=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=Em.push(s,o.scopeNames),i=new nr(i,s,o.encodedTokenAttributes);return i}static createRoot(t,n){return new nr(null,new Em(null,t),n)}static createRootAndLookUpScopeName(t,n,i){const s=i.getMetadataForScope(t),o=new Em(null,t),u=i.themeProvider.themeMatch(o),f=nr.mergeAttributes(n,s,u);return new nr(null,o,f)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return nr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,i){let s=-1,o=0,u=0;return i!==null&&(s=i.fontStyle,o=i.foregroundId,u=i.backgroundId),Zs.set(t,n.languageId,n.tokenType,null,s,o,u)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return nr._pushAttributed(this,t,n);const i=t.split(/ /g);let s=this;for(const o of i)s=nr._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,i){const s=i.getMetadataForScope(n),o=t.scopePath.push(n),u=i.themeProvider.themeMatch(o),f=nr.mergeAttributes(t.tokenAttributes,s,u);return new nr(t,o,f)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let i=this;for(;i&&i!==t;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((s=i.parent)==null?void 0:s.scopePath)??null)}),i=i.parent;return i===t?n.reverse():void 0}},Pn,up=(Pn=class{constructor(t,n,i,s,o,u,f,h){W(this,"_stackElementBrand");W(this,"_enterPos");W(this,"_anchorPos");W(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=u,this.nameScopesList=f,this.contentNameScopesList=h,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=s}equals(t){return t===null?!1:Pn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?yo.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Pn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,s,o,u,f){return new Pn(this,t,n,i,s,o,u,f)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var i,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Pn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const i=yo.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new Pn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,yo.fromExtension(i,n.contentNameScopesList))}},W(Pn,"NULL",new Pn(null,0,0,0,!1,null,null,null)),Pn),C3=class{constructor(e,t){W(this,"balancedBracketScopes");W(this,"unbalancedBracketScopes");W(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):$c(n,Xc).map(i=>i.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>$c(n,Xc).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},k3=class{constructor(e,t,n,i){W(this,"_emitBinaryTokens");W(this,"_lineText");W(this,"_tokens");W(this,"_binaryTokens");W(this,"_lastTokenEndIndex");W(this,"_tokenTypeOverrides");this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var i;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=(e==null?void 0:e.getScopeNames())??[];for(const f of this._tokenTypeOverrides)f.matcher(u)&&(s=Zs.set(s,0,f.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(u))}if(o&&(s=Zs.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)n[i]=this._binaryTokens[i];return n}},R3=class{constructor(e,t){W(this,"_grammars",new Map);W(this,"_rawGrammars",new Map);W(this,"_injectionGrammars",new Map);W(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,E3(e,o,t,n,i,s,this,this._onigLib))}return this._grammars.get(e)}},A3=class{constructor(t){W(this,"_options");W(this,"_syncRegistry");W(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new R3(Qc.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Qc.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,i){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(t,n,i){return this._loadGrammar(t,n,i.embeddedLanguages,i.tokenTypes,new C3(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,i,s,o){const u=new i3(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(f=>this._loadSingleGrammar(f.scopeName)),u.processQueue();return this._grammarForScopeName(t,n,i,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(t,n=[],i=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,i,s)}_grammarForScopeName(t,n=0,i=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,i,s,o)}},cp=up.NULL;const O3=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],L3=/["&'<>`]/g,N3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D3=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,j3=/[|\\{}()[\]^$+*?.]/g,ex=new WeakMap;function M3(e,t){if(e=e.replace(t.subset?P3(t.subset):L3,i),t.subset||t.escapeOnly)return e;return e.replace(N3,n).replace(D3,i);function n(s,o,u){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,u.charCodeAt(o+2),t)}function i(s,o,u){return t.format(s.charCodeAt(0),u.charCodeAt(o+1),t)}}function P3(e){let t=ex.get(e);return t||(t=z3(e),ex.set(e,t)),t}function z3(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(j3,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const I3=/[\dA-Fa-f]/;function B3(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!I3.test(String.fromCharCode(t))?i:i+";"}const U3=/\d/;function q3(e,t,n){const i="&#"+String(e);return n&&t&&!U3.test(String.fromCharCode(t))?i:i+";"}const V3=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Tm={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},H3=["cent","copy","divide","gt","lt","not","para","times"],uE={}.hasOwnProperty,fp={};let vc;for(vc in Tm)uE.call(Tm,vc)&&(fp[Tm[vc]]=vc);const G3=/[^\dA-Za-z]/;function F3(e,t,n,i){const s=String.fromCharCode(e);if(uE.call(fp,s)){const o=fp[s],u="&"+o;return n&&V3.includes(o)&&!H3.includes(o)&&(!i||t&&t!==61&&G3.test(String.fromCharCode(t)))?u:u+";"}return""}function Q3(e,t,n){let i=B3(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=F3(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=q3(e,t,n.omitOptionalSemicolons);o.length<i.length&&(i=o)}return s&&(!n.useShortestReferences||s.length<i.length)?s:i}function Ns(e,t){return M3(e,Object.assign({format:Q3},t))}const $3=/^>|^->|<!--|-->|--!>|<!-$/g,Y3=[">"],K3=["<",">"];function X3(e,t,n,i){return i.settings.bogusComments?"<?"+Ns(e.value,Object.assign({},i.settings.characterReferences,{subset:Y3}))+">":"<!--"+e.value.replace($3,s)+"-->";function s(o){return Ns(o,Object.assign({},i.settings.characterReferences,{subset:K3}))}}function Z3(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const wt=fE(1),cE=fE(-1),J3=[];function fE(e){return t;function t(n,i,s){const o=n?n.children:J3;let u=(i||0)+e,f=o[u];if(!s)for(;f&&mf(f);)u+=e,f=o[u];return f}}const W3={}.hasOwnProperty;function hE(e){return t;function t(n,i,s){return W3.call(e,n.tagName)&&e[n.tagName](n,i,s)}}const Yp=hE({body:t4,caption:Cm,colgroup:Cm,dd:a4,dt:i4,head:Cm,html:e4,li:r4,optgroup:s4,option:l4,p:n4,rp:tx,rt:tx,tbody:u4,td:nx,tfoot:c4,th:nx,thead:o4,tr:f4});function Cm(e,t,n){const i=wt(n,t,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&mf(i.value.charAt(0)))}function e4(e,t,n){const i=wt(n,t);return!i||i.type!=="comment"}function t4(e,t,n){const i=wt(n,t);return!i||i.type!=="comment"}function n4(e,t,n){const i=wt(n,t);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function r4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&i.tagName==="li"}function i4(e,t,n){const i=wt(n,t);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function a4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function tx(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function s4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function l4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function o4(e,t,n){const i=wt(n,t);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function u4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function c4(e,t,n){return!wt(n,t)}function f4(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function nx(e,t,n){const i=wt(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const h4=hE({body:p4,colgroup:g4,head:m4,html:d4,tbody:y4});function d4(e){const t=wt(e,-1);return!t||t.type!=="comment"}function m4(e){const t=new Set;for(const i of e.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(t.has(i.tagName))return!1;t.add(i.tagName)}const n=e.children[0];return!n||n.type==="element"}function p4(e){const t=wt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&mf(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function g4(e,t,n){const i=cE(n,t),s=wt(e,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Yp(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function y4(e,t,n){const i=cE(n,t),s=wt(e,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Yp(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const _c={name:[[`
|
|
267
|
+
\f\r &/=>`.split(""),`
|
|
268
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
269
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
270
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
271
|
+
\f\r &>`.split(""),`\0
|
|
272
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
273
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
274
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function v4(e,t,n,i){const s=i.schema,o=s.space==="svg"?!1:i.settings.omitOptionalTags;let u=s.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const f=[];let h;s.space==="html"&&e.tagName==="svg"&&(i.schema=zo);const d=_4(i,e.properties),y=i.all(s.space==="html"&&e.tagName==="template"?e.content:e);return i.schema=s,y&&(u=!1),(d||!o||!h4(e,t,n))&&(f.push("<",e.tagName,d?" "+d:""),u&&(s.space==="svg"||i.settings.closeSelfClosing)&&(h=d.charAt(d.length-1),(!i.settings.tightSelfClosing||h==="/"||h&&h!=='"'&&h!=="'")&&f.push(" "),f.push("/")),f.push(">")),f.push(y),!u&&(!o||!Yp(e,t,n))&&f.push("</"+e.tagName+">"),f.join("")}function _4(e,t){const n=[];let i=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=b4(e,s,t[s]);o&&n.push(o)}}for(;++i<n.length;){const o=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&o!=='"'&&o!=="'"&&(n[i]+=" ")}return n.join("")}function b4(e,t,n){const i=Y1(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let u=e.quote,f;if(i.overloadedBoolean&&(n===i.attribute||n==="")?n=!0:(i.boolean||i.overloadedBoolean)&&(typeof n!="string"||n===i.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const h=Ns(i.attribute,Object.assign({},e.settings.characterReferences,{subset:_c.name[s][o]}));return n===!0||(n=Array.isArray(n)?(i.commaSeparated?U1:X1)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?h:(e.settings.preferUnquoted&&(f=Ns(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_c.unquoted[s][o]}))),f!==n&&(e.settings.quoteSmart&&Gc(n,u)>Gc(n,e.alternative)&&(u=e.alternative),f=u+Ns(n,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?_c.single:_c.double)[s][o],attribute:!0}))+u),h+(f&&"="+f))}const x4=["<","&"];function dE(e,t,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ns(e.value,Object.assign({},i.settings.characterReferences,{subset:x4}))}function S4(e,t,n,i){return i.settings.allowDangerousHtml?e.value:dE(e,t,n,i)}function E4(e,t,n,i){return i.all(e)}const w4=gM("type",{invalid:T4,unknown:C4,handlers:{comment:X3,doctype:Z3,element:v4,raw:S4,root:E4,text:dE}});function T4(e){throw new Error("Expected node, not `"+e+"`")}function C4(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const k4={},R4={},A4=[];function O4(e,t){const n=t||k4,i=n.quote||'"',s=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:L4,all:N4,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||O3,characterReferences:n.characterReferences||R4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?zo:K1,quote:i,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function L4(e,t,n){return w4(e,t,n,this)}function N4(e){const t=[],n=e&&e.children||A4;let i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function Zc(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===i&&Object.assign(n,o);return n}function Di(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function D4(e){return Array.isArray(e)?e:[e]}async function mE(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Kp(e){return!e||["plaintext","txt","text","plain"].includes(e)}function pE(e){return e==="ansi"||Kp(e)}function Xp(e){return e==="none"}function gE(e){return Xp(e)}function yE(e,t){var i;if(!t)return e;e.properties||(e.properties={}),(i=e.properties).class||(i.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function bf(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let i=0;const s=[];for(let u=0;u<n.length;u+=2){const f=t?n[u]+(n[u+1]||""):n[u];s.push([f,i]),i+=n[u].length,i+=((o=n[u+1])==null?void 0:o.length)||0}return s}function j4(e){const t=bf(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,u=0;for(const f of t){if(o<f.length)break;o-=f.length,u++}return{line:u,character:o}}function i(s,o){let u=0;for(let f=0;f<s;f++)u+=t[f].length;return u+=o,u}return{lines:t,indexToPos:n,posToIndex:i}}function M4(e,t,n){const i=new Set;for(const o of e.matchAll(/lang=["']([\w-]+)["']/g))i.add(o[1]);for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g))i.add(o[1]);for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g))i.add(o[1]);if(!n)return Array.from(i);const s=n.getBundledLanguages();return Array.from(i).filter(o=>o&&s[o])}const Zp="light-dark()",P4=["color","background-color"];function z4(e,t){let n=0;const i=[];for(const s of t)s>n&&i.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function I4(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((i,s)=>i-s);return n.length?e.map(i=>i.flatMap(s=>{const o=n.filter(u=>s.offset<u&&u<s.offset+s.content.length).map(u=>u-s.offset).sort((u,f)=>u-f);return o.length?z4(s,o):s})):e}function B4(e,t,n,i,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(y=>Jc(e.variants[y])),f=new Set(u.flatMap(y=>Object.keys(y))),h={},d=(y,p)=>{const _=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return n+t[y]+(p==="color"?"":_)};return u.forEach((y,p)=>{for(const _ of f){const v=y[_]||"inherit";if(p===0&&i&&P4.includes(_))if(i===Zp&&u.length>1){const x=t.findIndex(k=>k==="light"),E=t.findIndex(k=>k==="dark");if(x===-1||E===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=u[x][_]||"inherit",T=u[E][_]||"inherit";h[_]=`light-dark(${C}, ${T})`,s==="css-vars"&&(h[d(p,_)]=v)}else h[_]=v;else s==="css-vars"&&(h[d(p,_)]=v)}}),o.htmlStyle=h,o}function Jc(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&zt.Italic&&(t["font-style"]="italic"),e.fontStyle&zt.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&zt.Underline&&n.push("underline"),e.fontStyle&zt.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function hp(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const vE=new WeakMap;function xf(e,t){vE.set(e,t)}function Co(e){return vE.get(e)}class rl{constructor(...t){W(this,"_stacks",{});W(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,s]=t;this.lang=i,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new rl(Object.fromEntries(D4(n).map(i=>[i,cp])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return U4(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function U4(e){const t=[],n=new Set;function i(s){var u;if(n.has(s))return;n.add(s);const o=(u=s==null?void 0:s.nameScopesList)==null?void 0:u.scopeName;o&&t.push(o),s.parent&&i(s.parent)}return i(e),t}function q4(e,t){if(!(e instanceof rl))throw new vt("Invalid grammar state");return e.getInternalStack(t)}function V4(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(u){if(typeof u=="number"){if(u<0||u>n.source.length)throw new vt(`Invalid decoration offset: ${u}. Code length: ${n.source.length}`);return{...s.indexToPos(u),offset:u}}else{const f=s.lines[u.line];if(f===void 0)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Lines length: ${s.lines.length}`);let h=u.character;if(h<0&&(h=f.length+h),h<0||h>f.length)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Line ${u.line} length: ${f.length}`);return{...u,character:h,offset:s.posToIndex(u.line,h)}}};const s=j4(n.source),o=(n.options.decorations||[]).map(u=>({...u,start:i(u.start),end:i(u.end)}));H4(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const s=t(this).decorations.flatMap(f=>[f.start.offset,f.end.offset]);return I4(n,s)},code(n){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const i=t(this),s=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(s.length!==i.converter.lines.length)throw new vt(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(p,_,v,x){const E=s[p];let C="",T=-1,k=-1;if(_===0&&(T=0),v===0&&(k=0),v===Number.POSITIVE_INFINITY&&(k=E.children.length),T===-1||k===-1)for(let P=0;P<E.children.length;P++)C+=_E(E.children[P]),T===-1&&C.length===_&&(T=P+1),k===-1&&C.length===v&&(k=P+1);if(T===-1)throw new vt(`Failed to find start index for decoration ${JSON.stringify(x.start)}`);if(k===-1)throw new vt(`Failed to find end index for decoration ${JSON.stringify(x.end)}`);const O=E.children.slice(T,k);if(!x.alwaysWrap&&O.length===E.children.length)f(E,x,"line");else if(!x.alwaysWrap&&O.length===1&&O[0].type==="element")f(O[0],x,"token");else{const P={type:"element",tagName:"span",properties:{},children:O};f(P,x,"wrapper"),E.children.splice(T,O.length,P)}}function u(p,_){s[p]=f(s[p],_,"line")}function f(p,_,v){var C;const x=_.properties||{},E=_.transform||(T=>T);return p.tagName=_.tagName||"span",p.properties={...p.properties,...x,class:p.properties.class},(C=_.properties)!=null&&C.class&&yE(p,_.properties.class),p=E(p,v)||p,p}const h=[],d=i.decorations.sort((p,_)=>_.start.offset-p.start.offset||p.end.offset-_.end.offset);for(const p of d){const{start:_,end:v}=p;if(_.line===v.line)o(_.line,_.character,v.character,p);else if(_.line<v.line){o(_.line,_.character,Number.POSITIVE_INFINITY,p);for(let x=_.line+1;x<v.line;x++)h.unshift(()=>u(x,p));o(v.line,0,v.character,p)}}h.forEach(p=>p())}}}function H4(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new vt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const s=e[i],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,u=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,f=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,h=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||u||f||h){if(o&&u||f&&h||f&&n.start.offset===n.end.offset||u&&s.start.offset===s.end.offset)continue;throw new vt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function _E(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(_E).join(""):""}const G4=[V4()];function Wc(e){const t=F4(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...G4]}function F4(e){const t=[],n=[],i=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:i.push(s)}return{pre:t,post:n,normal:i}}var la=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],km={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Q4(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function rx(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function $4(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)km[i]&&t.push({type:"setDecoration",value:km[i]});else if(i<=29){const s=km[i-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:la[i-30]}});else if(i===38){const s=rx(e);s&&t.push({type:"setForegroundColor",value:s})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:la[i-40]}});else if(i===48){const s=rx(e);s&&t.push({type:"setBackgroundColor",value:s})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:la[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:la[i-100+8]}})}return t}function Y4(){let e=null,t=null,n=new Set;return{parse(i){const s=[];let o=0;do{const u=Q4(i,o),f=u.sequence?i.substring(o,u.startPosition):i.substring(o);if(f.length>0&&s.push({value:f,foreground:e,background:t,decorations:new Set(n)}),u.sequence){const h=$4(u.sequence);for(const d of h)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of h)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=u.position}while(o<i.length);return s}}}var K4={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function X4(e=K4){function t(f){return e[f]}function n(f){return`#${f.map(h=>Math.max(0,Math.min(h,255)).toString(16).padStart(2,"0")).join("")}`}let i;function s(){if(i)return i;i=[];for(let d=0;d<la.length;d++)i.push(t(la[d]));let f=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let y=0;y<6;y++)for(let p=0;p<6;p++)i.push(n([f[d],f[y],f[p]]));let h=8;for(let d=0;d<24;d++,h+=10)i.push(n([h,h,h]));return i}function o(f){return s()[f]}function u(f){switch(f.type){case"named":return t(f.name);case"rgb":return n(f.rgb);case"table":return o(f.index)}}return{value:u}}const Z4={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function J4(e,t,n){const i=Zc(e,n),s=bf(t),o=Object.fromEntries(la.map(h=>{var p;const d=`terminal.ansi${h[0].toUpperCase()}${h.substring(1)}`,y=(p=e.colors)==null?void 0:p[d];return[h,y||Z4[h]]})),u=X4(o),f=Y4();return s.map(h=>f.parse(h[0]).map(d=>{let y,p;d.decorations.has("reverse")?(y=d.background?u.value(d.background):e.bg,p=d.foreground?u.value(d.foreground):e.fg):(y=d.foreground?u.value(d.foreground):e.fg,p=d.background?u.value(d.background):void 0),y=Di(y,i),p=Di(p,i),d.decorations.has("dim")&&(y=W4(y));let _=zt.None;return d.decorations.has("bold")&&(_|=zt.Bold),d.decorations.has("italic")&&(_|=zt.Italic),d.decorations.has("underline")&&(_|=zt.Underline),d.decorations.has("strikethrough")&&(_|=zt.Strikethrough),{content:d.value,offset:h[1],color:y,bgColor:p,fontStyle:_}}))}function W4(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(t)if(t[3]){const i=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${i}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(i=>`${i}${i}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Jp(e,t,n={}){const{lang:i="text",theme:s=e.getLoadedThemes()[0]}=n;if(Kp(i)||Xp(s))return bf(t).map(h=>[{content:h[0],offset:h[1]}]);const{theme:o,colorMap:u}=e.setTheme(s);if(i==="ansi")return J4(o,t,n);const f=e.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==f.name)throw new vt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${f.name}"`);if(!n.grammarState.themes.includes(o.name))throw new vt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return tz(t,f,o,u,n)}function ez(...e){if(e.length===2)return Co(e[1]);const[t,n,i={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=i;if(Kp(s)||Xp(o))throw new vt("Plain language does not have grammar state");if(s==="ansi")throw new vt("ANSI language does not have grammar state");const{theme:u,colorMap:f}=t.setTheme(o),h=t.getLanguage(s);return new rl(ef(n,h,u,f,i).stateStack,h.name,u.name)}function tz(e,t,n,i,s){const o=ef(e,t,n,i,s),u=new rl(ef(e,t,n,i,s).stateStack,t.name,n.name);return xf(o.tokens,u),o.tokens}function ef(e,t,n,i,s){const o=Zc(n,s),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:f=500}=s,h=bf(e);let d=s.grammarState?q4(s.grammarState,n.name)??cp:s.grammarContextCode!=null?ef(s.grammarContextCode,t,n,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:cp,y=[];const p=[];for(let _=0,v=h.length;_<v;_++){const[x,E]=h[_];if(x===""){y=[],p.push([]);continue}if(u>0&&x.length>=u){y=[],p.push([{content:x,offset:E,color:"",fontStyle:0}]);continue}let C,T,k;s.includeExplanation&&(C=t.tokenizeLine(x,d,f),T=C.tokens,k=0);const O=t.tokenizeLine2(x,d,f),P=O.tokens.length/2;for(let V=0;V<P;V++){const L=O.tokens[2*V],B=V+1<P?O.tokens[2*V+2]:x.length;if(L===B)continue;const q=O.tokens[2*V+1],te=Di(i[Zs.getForeground(q)],o),N=Zs.getFontStyle(q),$={content:x.substring(L,B),offset:E+L,color:te,fontStyle:N};if(s.includeExplanation){const ie=[];if(s.includeExplanation!=="scopeName")for(const le of n.settings){let ae;switch(typeof le.scope){case"string":ae=le.scope.split(/,/).map(H=>H.trim());break;case"object":ae=le.scope;break;default:continue}ie.push({settings:le,selectors:ae.map(H=>H.split(/ /))})}$.explanation=[];let me=0;for(;L+me<B;){const le=T[k],ae=x.substring(le.startIndex,le.endIndex);me+=ae.length,$.explanation.push({content:ae,scopes:s.includeExplanation==="scopeName"?nz(le.scopes):rz(ie,le.scopes)}),k+=1}}y.push($)}p.push(y),y=[],d=O.ruleStack}return{tokens:p,stateStack:d}}function nz(e){return e.map(t=>({scopeName:t}))}function rz(e,t){const n=[];for(let i=0,s=t.length;i<s;i++){const o=t[i];n[i]={scopeName:o,themeMatches:az(e,o,t.slice(0,i))}}return n}function ix(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function iz(e,t,n){if(!ix(e[e.length-1],t))return!1;let i=e.length-2,s=n.length-1;for(;i>=0&&s>=0;)ix(e[i],n[s])&&(i-=1),s-=1;return i===-1}function az(e,t,n){const i=[];for(const{selectors:s,settings:o}of e)for(const u of s)if(iz(u,t,n)){i.push(o);break}return i}function bE(e,t,n){const i=Object.entries(n.themes).filter(h=>h[1]).map(h=>({color:h[0],theme:h[1]})),s=i.map(h=>{const d=Jp(e,t,{...n,theme:h.theme}),y=Co(d),p=typeof h.theme=="string"?h.theme:h.theme.name;return{tokens:d,state:y,theme:p}}),o=sz(...s.map(h=>h.tokens)),u=o[0].map((h,d)=>h.map((y,p)=>{const _={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in n&&n.includeExplanation&&(_.explanation=y.explanation),o.forEach((v,x)=>{const{content:E,explanation:C,offset:T,...k}=v[d][p];_.variants[i[x].color]=k}),_})),f=s[0].state?new rl(Object.fromEntries(s.map(h=>{var d;return[h.theme,(d=h.state)==null?void 0:d.getInternalStack(h.theme)]})),s[0].state.lang):void 0;return f&&xf(u,f),u}function sz(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const s=e.map(h=>h[i]),o=t.map(()=>[]);t.forEach((h,d)=>h.push(o[d]));const u=s.map(()=>0),f=s.map(h=>h[0]);for(;f.every(h=>h);){const h=Math.min(...f.map(d=>d.content.length));for(let d=0;d<n;d++){const y=f[d];y.content.length===h?(o[d].push(y),u[d]+=1,f[d]=s[d][u[d]]):(o[d].push({...y,content:y.content.slice(0,h)}),f[d]={...y,content:y.content.slice(h),offset:y.offset+h})}}}return t}function tf(e,t,n){let i,s,o,u,f,h;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:y="--shiki-",colorsRendering:p="css-vars"}=n,_=Object.entries(n.themes).filter(T=>T[1]).map(T=>({color:T[0],theme:T[1]})).sort((T,k)=>T.color===d?-1:k.color===d?1:0);if(_.length===0)throw new vt("`themes` option must not be empty");const v=bE(e,t,n);if(h=Co(v),d&&Zp!==d&&!_.find(T=>T.color===d))throw new vt(`\`themes\` option must contain the defaultColor key \`${d}\``);const x=_.map(T=>e.getTheme(T.theme)),E=_.map(T=>T.color);o=v.map(T=>T.map(k=>B4(k,E,y,d,p))),h&&xf(o,h);const C=_.map(T=>Zc(T.theme,n));s=ax(_,x,C,y,d,"fg",p),i=ax(_,x,C,y,d,"bg",p),u=`shiki-themes ${x.map(T=>T.name).join(" ")}`,f=d?void 0:[s,i].join(";")}else if("theme"in n){const d=Zc(n.theme,n);o=Jp(e,t,n);const y=e.getTheme(n.theme);i=Di(y.bg,d),s=Di(y.fg,d),u=y.name,h=Co(o)}else throw new vt("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:i,themeName:u,rootStyle:f,grammarState:h}}function ax(e,t,n,i,s,o,u){return e.map((f,h)=>{const d=Di(t[h][o],n[h])||"inherit",y=`${i+f.color}${o==="bg"?"-bg":""}:${d}`;if(h===0&&s){if(s===Zp&&e.length>1){const p=e.findIndex(E=>E.color==="light"),_=e.findIndex(E=>E.color==="dark");if(p===-1||_===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const v=Di(t[p][o],n[p])||"inherit",x=Di(t[_][o],n[_])||"inherit";return`light-dark(${v}, ${x});${y}`}return d}return u==="css-vars"?y:null}).filter(f=>!!f).join(";")}function nf(e,t,n,i={meta:{},options:n,codeToHast:(s,o)=>nf(e,s,o),codeToTokens:(s,o)=>tf(e,s,o)}){var x,E;let s=t;for(const C of Wc(n))s=((x=C.preprocess)==null?void 0:x.call(i,s,n))||s;let{tokens:o,fg:u,bg:f,themeName:h,rootStyle:d,grammarState:y}=tf(e,s,n);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:_=!1}=n;p===!0?o=oz(o):p==="never"&&(o=uz(o)),_&&(o=cz(o));const v={...i,get source(){return s}};for(const C of Wc(n))o=((E=C.tokens)==null?void 0:E.call(v,o))||o;return lz(o,{...n,fg:u,bg:f,themeName:h,rootStyle:d},v,y)}function lz(e,t,n,i=Co(e)){var x,E,C,T;const s=Wc(t),o=[],u={type:"root",children:[]},{structure:f="classic",tabindex:h="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...h!==!1&&h!=null?{tabindex:h.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([k])=>!k.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:o};const p=[],_={...n,structure:f,addClassToHast:yE,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return d},get code(){return y},get lines(){return p}};if(e.forEach((k,O)=>{var L,B;O&&(f==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&o.push({type:"text",value:`
|
|
275
|
+
`}));let P={type:"element",tagName:"span",properties:{class:"line"},children:[]},V=0;for(const q of k){let te={type:"element",tagName:"span",properties:{...q.htmlAttrs},children:[{type:"text",value:q.content}]};const N=hp(q.htmlStyle||Jc(q));N&&(te.properties.style=N);for(const $ of s)te=((L=$==null?void 0:$.span)==null?void 0:L.call(_,te,O+1,V,P,q))||te;f==="inline"?u.children.push(te):f==="classic"&&P.children.push(te),V+=q.content.length}if(f==="classic"){for(const q of s)P=((B=q==null?void 0:q.line)==null?void 0:B.call(_,P,O+1))||P;p.push(P),o.push(P)}else f==="inline"&&p.push(P)}),f==="classic"){for(const k of s)y=((x=k==null?void 0:k.code)==null?void 0:x.call(_,y))||y;d.children.push(y);for(const k of s)d=((E=k==null?void 0:k.pre)==null?void 0:E.call(_,d))||d;u.children.push(d)}else if(f==="inline"){const k=[];let O={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const L of u.children)L.type==="element"&&L.tagName==="br"?(k.push(O),O={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(L.type==="element"||L.type==="text")&&O.children.push(L);k.push(O);let V={type:"element",tagName:"code",properties:{},children:k};for(const L of s)V=((C=L==null?void 0:L.code)==null?void 0:C.call(_,V))||V;u.children=[];for(let L=0;L<V.children.length;L++){L>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const B=V.children[L];B.type==="element"&&u.children.push(...B.children)}}let v=u;for(const k of s)v=((T=k==null?void 0:k.root)==null?void 0:T.call(_,v))||v;return i&&xf(v,i),v}function oz(e){return e.map(t=>{const n=[];let i="",s=0;return t.forEach((o,u)=>{const h=!(o.fontStyle&&(o.fontStyle&zt.Underline||o.fontStyle&zt.Strikethrough));h&&o.content.match(/^\s+$/)&&t[u+1]?(s||(s=o.offset),i+=o.content):i?(h?n.push({...o,offset:s,content:i+o.content}):n.push({content:i,offset:s},o),s=0,i=""):n.push(o)}),n})}function uz(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,s,o,u]=i;if(!s&&!u)return n;const f=[{...n,offset:n.offset+s.length,content:o}];return s&&f.unshift({content:s,offset:n.offset}),u&&f.push({content:u,offset:n.offset+s.length+o.length}),f}))}function cz(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const s=n[n.length-1],o=hp(s.htmlStyle||Jc(s)),u=hp(i.htmlStyle||Jc(i)),f=s.fontStyle&&(s.fontStyle&zt.Underline||s.fontStyle&zt.Strikethrough),h=i.fontStyle&&(i.fontStyle&zt.Underline||i.fontStyle&zt.Strikethrough);!f&&!h&&o===u?s.content+=i.content:n.push({...i})}return n})}const fz=O4;function hz(e,t,n){var o;const i={meta:{},options:n,codeToHast:(u,f)=>nf(e,u,f),codeToTokens:(u,f)=>tf(e,u,f)};let s=fz(nf(e,t,n,i));for(const u of Wc(n))s=((o=u.postprocess)==null?void 0:o.call(i,s,n))||s;return s}const sx={light:"#333333",dark:"#bbbbbb"},lx={light:"#fffffe",dark:"#1e1e1e"},ox="__shiki_resolved";function Wp(e){var f,h,d,y,p;if(e!=null&&e[ox])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:i}=t;if(!n||!i){const _=t.settings?t.settings.find(v=>!v.name&&!v.scope):void 0;(f=_==null?void 0:_.settings)!=null&&f.foreground&&(i=_.settings.foreground),(h=_==null?void 0:_.settings)!=null&&h.background&&(n=_.settings.background),!i&&((d=t==null?void 0:t.colors)!=null&&d["editor.foreground"])&&(i=t.colors["editor.foreground"]),!n&&((y=t==null?void 0:t.colors)!=null&&y["editor.background"])&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?sx.light:sx.dark),n||(n=t.type==="light"?lx.light:lx.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function u(_){var x;if(o.has(_))return o.get(_);s+=1;const v=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(x=t.colorReplacements)!=null&&x[`#${v}`]?u(_):(o.set(_,v),v)}t.settings=t.settings.map(_=>{var C,T;const v=((C=_.settings)==null?void 0:C.foreground)&&!_.settings.foreground.startsWith("#"),x=((T=_.settings)==null?void 0:T.background)&&!_.settings.background.startsWith("#");if(!v&&!x)return _;const E={..._,settings:{..._.settings}};if(v){const k=u(_.settings.foreground);t.colorReplacements[k]=_.settings.foreground,E.settings.foreground=k}if(x){const k=u(_.settings.background);t.colorReplacements[k]=_.settings.background,E.settings.background=k}return E});for(const _ of Object.keys(t.colors||{}))if((_==="editor.foreground"||_==="editor.background"||_.startsWith("terminal.ansi"))&&!((p=t.colors[_])!=null&&p.startsWith("#"))){const v=u(t.colors[_]);t.colorReplacements[v]=t.colors[_],t.colors[_]=v}return Object.defineProperty(t,ox,{enumerable:!1,writable:!1,value:!0}),t}async function xE(e){return Array.from(new Set((await Promise.all(e.filter(t=>!pE(t)).map(async t=>await mE(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function SE(e){return(await Promise.all(e.map(async n=>gE(n)?null:Wp(await mE(n))))).filter(n=>!!n)}let dz=3;function mz(e,t=3){t>dz||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Rs=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class pz extends A3{constructor(n,i,s,o={}){super(n);W(this,"_resolvedThemes",new Map);W(this,"_resolvedGrammars",new Map);W(this,"_langMap",new Map);W(this,"_langGraph",new Map);W(this,"_textmateThemeCache",new WeakMap);W(this,"_loadedThemesCache",null);W(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=i,this._langs=s,this._alias=o,this._themes.map(u=>this.loadTheme(u)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const i=Wp(n);return i.name&&(this._resolvedThemes.set(i.name,i),this._loadedThemesCache=null),i}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let i=this._textmateThemeCache.get(n);i||(i=Qc.createFromRawTheme(n),this._textmateThemeCache.set(n,i)),this._syncRegistry.setTheme(i)}getGrammar(n){if(this._alias[n]){const i=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],i.has(n))throw new Rs(`Circular alias \`${Array.from(i).join(" -> ")} -> ${n}\``);i.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var u,f,h,d;if(this.getGrammar(n.name))return;const i=new Set([...this._langMap.values()].filter(y=>{var p;return(p=y.embeddedLangsLazy)==null?void 0:p.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(y=>{this._alias[y]=n.name}),this._loadedLanguagesCache=null,i.size)for(const y of i)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(f=(u=this._syncRegistry)==null?void 0:u._injectionGrammars)==null||f.delete(y.scopeName),(d=(h=this._syncRegistry)==null?void 0:h._grammars)==null||d.delete(y.scopeName),this.loadLanguage(this._langMap.get(y.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const i=Array.from(this._langGraph.entries()),s=i.filter(([o,u])=>!u);if(s.length){const o=i.filter(([u,f])=>{var h;return f&&((h=f.embeddedLangs)==null?void 0:h.some(d=>s.map(([y])=>y).includes(d)))}).filter(u=>!s.includes(u));throw new Rs(`Missing languages ${s.map(([u])=>`\`${u}\``).join(", ")}, required by ${o.map(([u])=>`\`${u}\``).join(", ")}`)}for(const[o,u]of i)this._resolver.addLanguage(u);for(const[o,u]of i)this.loadLanguage(u)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){this._langMap.set(n.name,n),this._langGraph.set(n.name,n);const i=n.embeddedLanguages??n.embeddedLangs;if(i)for(const s of i)this._langGraph.set(s,this._langMap.get(s))}}class gz{constructor(t,n){W(this,"_langs",new Map);W(this,"_scopeToLang",new Map);W(this,"_injections",new Map);W(this,"_onigLib");this._onigLib={createOnigScanner:i=>t.createScanner(i),createOnigString:i=>t.createString(i)},n.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let i=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");i=[...i,...this._injections.get(o)||[]]}return i}}let io=0;function yz(e){io+=1,e.warnings!==!1&&io>=10&&io%10===0&&console.warn(`[Shiki] ${io} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Rs("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(Wp),s=new gz(e.engine,n),o=new pz(s,i,n,e.langAlias);let u;function f(k){C();const O=o.getGrammar(typeof k=="string"?k:k.name);if(!O)throw new Rs(`Language \`${k}\` not found, you may need to load it first`);return O}function h(k){if(k==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const O=o.getTheme(k);if(!O)throw new Rs(`Theme \`${k}\` not found, you may need to load it first`);return O}function d(k){C();const O=h(k);u!==k&&(o.setTheme(O),u=k);const P=o.getColorMap();return{theme:O,colorMap:P}}function y(){return C(),o.getLoadedThemes()}function p(){return C(),o.getLoadedLanguages()}function _(...k){C(),o.loadLanguages(k.flat(1))}async function v(...k){return _(await xE(k))}function x(...k){C();for(const O of k.flat(1))o.loadTheme(O)}async function E(...k){return C(),x(await SE(k))}function C(){if(t)throw new Rs("Shiki instance has been disposed")}function T(){t||(t=!0,o.dispose(),io-=1)}return{setTheme:d,getTheme:h,getLanguage:f,getLoadedThemes:y,getLoadedLanguages:p,loadLanguage:v,loadLanguageSync:_,loadTheme:E,loadThemeSync:x,dispose:T,[Symbol.dispose]:T}}async function vz(e){e.engine||mz("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([SE(e.themes||[]),xE(e.langs||[]),e.engine]);return yz({...e,themes:t,langs:n,engine:i})}async function _z(e){const t=await vz(e);return{getLastGrammarState:(...n)=>ez(t,...n),codeToTokensBase:(n,i)=>Jp(t,n,i),codeToTokensWithThemes:(n,i)=>bE(t,n,i),codeToTokens:(n,i)=>tf(t,n,i),codeToHast:(n,i)=>nf(t,n,i),codeToHtml:(n,i)=>hz(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function bz(e){const t=e.langs,n=e.themes,i=e.engine;async function s(o){function u(p){var _;if(typeof p=="string"){if(pE(p))return[];p=((_=o.langAlias)==null?void 0:_[p])||p;const v=t[p];if(!v)throw new vt(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return v}return p}function f(p){if(gE(p))return"none";if(typeof p=="string"){const _=n[p];if(!_)throw new vt(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return _}return p}const h=(o.themes??[]).map(p=>f(p)),d=(o.langs??[]).map(p=>u(p)),y=await _z({engine:o.engine??i(),...o,themes:h,langs:d});return{...y,loadLanguage(...p){return y.loadLanguage(...p.map(u))},loadTheme(...p){return y.loadTheme(...p.map(f))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return s}function xz(e){let t;async function n(i={}){if(t){const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}else{t=e({...i,themes:[],langs:[]});const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}}return n}function Sz(e,t){const n=xz(e);async function i(s,o){var h;const u=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),f=await((h=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:h.call(t,s,o.lang,u));return f&&await u.loadLanguage(...f),u}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,o){return(await i(s,o)).codeToHtml(s,o)},async codeToHast(s,o){return(await i(s,o)).codeToHast(s,o)},async codeToTokens(s,o){return(await i(s,o)).codeToTokens(s,o)},async codeToTokensBase(s,o){return(await i(s,o)).codeToTokensBase(s,o)},async codeToTokensWithThemes(s,o){return(await i(s,o)).codeToTokensWithThemes(s,o)},async getLastGrammarState(s,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(s,o)}}}const EE=[{id:"abap",name:"ABAP",import:(()=>R(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>R(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>R(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>R(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>R(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>R(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>R(()=>import("./apex-DDbsPZ6N.js"),[]))},{id:"apl",name:"APL",import:(()=>R(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>R(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>R(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>R(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>R(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>R(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>R(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>R(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>R(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>R(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>R(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>R(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>R(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>R(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>R(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>R(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>R(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>R(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>R(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>R(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>R(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>R(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>R(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>R(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>R(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>R(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>R(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>R(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>R(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>R(()=>import("./csharp-K5feNrxe.js"),[]))},{id:"css",name:"CSS",import:(()=>R(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>R(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>R(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>R(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>R(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>R(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>R(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>R(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>R(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>R(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>R(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>R(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>R(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>R(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>R(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>R(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>R(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>R(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>R(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>R(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>R(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>R(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>R(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>R(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>R(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>R(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>R(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>R(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>R(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>R(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>R(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>R(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>R(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>R(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>R(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>R(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>R(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>R(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>R(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>R(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>R(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>R(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>R(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>R(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>R(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>R(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>R(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>R(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>R(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>R(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>R(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>R(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>R(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>R(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>R(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>R(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>R(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>R(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>R(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>R(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>R(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>R(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>R(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>R(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>R(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>R(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>R(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>R(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>R(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>R(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>R(()=>import("./latex-BdAV_C_H.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>R(()=>import("./lean-Bc6EcWN3.js"),[]))},{id:"less",name:"Less",import:(()=>R(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>R(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>R(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>R(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>R(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>R(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>R(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>R(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>R(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>R(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>R(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>R(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>R(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>R(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>R(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>R(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>R(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>R(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>R(()=>import("./nextflow-BrzmwbiE.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>R(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>R(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>R(()=>import("./nix-c8nO5XWb.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>R(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>R(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>R(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>R(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>R(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>R(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>R(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>R(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>R(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>R(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>R(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>R(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>R(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>R(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>R(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>R(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>R(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>R(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>R(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>R(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>R(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>R(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>R(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>R(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>R(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>R(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>R(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>R(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>R(()=>import("./razor-CE9lU5zL.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>R(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>R(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>R(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>R(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>R(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>R(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>R(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>R(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>R(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>R(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>R(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>R(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>R(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>R(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>R(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>R(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>R(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>R(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>R(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>R(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>R(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>R(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>R(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>R(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>R(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>R(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>R(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>R(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>R(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>R(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>R(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>R(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>R(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>R(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>R(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>R(()=>import("./tex-CxkMU7Pf.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>R(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>R(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>R(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>R(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>R(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>R(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>R(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>R(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>R(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>R(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>R(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>R(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>R(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>R(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>R(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>R(()=>import("./vue-DnHKYNfI.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>R(()=>import("./vue-html-CChd_i61.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>R(()=>import("./vue-vine-8moa0y9V.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>R(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>R(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>R(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>R(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>R(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>R(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>R(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>R(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>R(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>R(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>R(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>R(()=>import("./zig-VOosw3JB.js"),[]))}],Ez=Object.fromEntries(EE.map(e=>[e.id,e.import])),wz=Object.fromEntries(EE.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),Tz={...Ez,...wz},Cz=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>R(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>R(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>R(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>R(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>R(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>R(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>R(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>R(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>R(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>R(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>R(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>R(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>R(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>R(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>R(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>R(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>R(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>R(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>R(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>R(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>R(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>R(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>R(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>R(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>R(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>R(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>R(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>R(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>R(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>R(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>R(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>R(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>R(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>R(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>R(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>R(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>R(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>R(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>R(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>R(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>R(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>R(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>R(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>R(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>R(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>R(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>R(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>R(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>R(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>R(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>R(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>R(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>R(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>R(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>R(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>R(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>R(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>R(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>R(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>R(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],kz=Object.fromEntries(Cz.map(e=>[e.id,e.import]));class eg extends Error{constructor(t){super(t),this.name="ShikiError"}}function Rz(){return 2147483648}function Az(){return typeof performance<"u"?performance.now():Date.now()}const Oz=(e,t)=>e+(t-e%t)%t;async function Lz(e){let t,n;const i={};function s(v){n=v,i.HEAPU8=new Uint8Array(v),i.HEAPU32=new Uint32Array(v)}function o(v,x,E){i.HEAPU8.copyWithin(v,x,x+E)}function u(v){try{return t.grow(v-n.byteLength+65535>>>16),s(t.buffer),1}catch{}}function f(v){const x=i.HEAPU8.length;v=v>>>0;const E=Rz();if(v>E)return!1;for(let C=1;C<=4;C*=2){let T=x*(1+.2/C);T=Math.min(T,v+100663296);const k=Math.min(E,Oz(Math.max(v,T),65536));if(u(k))return!0}return!1}const h=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(v,x,E=1024){const C=x+E;let T=x;for(;v[T]&&!(T>=C);)++T;if(T-x>16&&v.buffer&&h)return h.decode(v.subarray(x,T));let k="";for(;x<T;){let O=v[x++];if(!(O&128)){k+=String.fromCharCode(O);continue}const P=v[x++]&63;if((O&224)===192){k+=String.fromCharCode((O&31)<<6|P);continue}const V=v[x++]&63;if((O&240)===224?O=(O&15)<<12|P<<6|V:O=(O&7)<<18|P<<12|V<<6|v[x++]&63,O<65536)k+=String.fromCharCode(O);else{const L=O-65536;k+=String.fromCharCode(55296|L>>10,56320|L&1023)}}return k}function y(v,x){return v?d(i.HEAPU8,v,x):""}const p={emscripten_get_now:Az,emscripten_memcpy_big:o,emscripten_resize_heap:f,fd_write:()=>0};async function _(){const x=await e({env:p,wasi_snapshot_preview1:p});t=x.memory,s(t.buffer),Object.assign(i,x),i.UTF8ToString=y}return await _(),i}var Nz=Object.defineProperty,Dz=(e,t,n)=>t in e?Nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xt=(e,t,n)=>Dz(e,typeof t!="symbol"?t+"":t,n);let Rt=null;function jz(e){throw new eg(e.UTF8ToString(e.getLastOnigError()))}class Sf{constructor(t){xt(this,"utf16Length"),xt(this,"utf8Length"),xt(this,"utf16Value"),xt(this,"utf8Value"),xt(this,"utf16OffsetToUtf8"),xt(this,"utf8OffsetToUtf16");const n=t.length,i=Sf._utf8ByteLength(t),s=i!==n,o=s?new Uint32Array(n+1):null;s&&(o[n]=i);const u=s?new Uint32Array(i+1):null;s&&(u[i]=n);const f=new Uint8Array(i);let h=0;for(let d=0;d<n;d++){const y=t.charCodeAt(d);let p=y,_=!1;if(y>=55296&&y<=56319&&d+1<n){const v=t.charCodeAt(d+1);v>=56320&&v<=57343&&(p=(y-55296<<10)+65536|v-56320,_=!0)}s&&(o[d]=h,_&&(o[d+1]=h),p<=127?u[h+0]=d:p<=2047?(u[h+0]=d,u[h+1]=d):p<=65535?(u[h+0]=d,u[h+1]=d,u[h+2]=d):(u[h+0]=d,u[h+1]=d,u[h+2]=d,u[h+3]=d)),p<=127?f[h++]=p:p<=2047?(f[h++]=192|(p&1984)>>>6,f[h++]=128|(p&63)>>>0):p<=65535?(f[h++]=224|(p&61440)>>>12,f[h++]=128|(p&4032)>>>6,f[h++]=128|(p&63)>>>0):(f[h++]=240|(p&1835008)>>>18,f[h++]=128|(p&258048)>>>12,f[h++]=128|(p&4032)>>>6,f[h++]=128|(p&63)>>>0),_&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=f,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let n=0;for(let i=0,s=t.length;i<s;i++){const o=t.charCodeAt(i);let u=o,f=!1;if(o>=55296&&o<=56319&&i+1<s){const h=t.charCodeAt(i+1);h>=56320&&h<=57343&&(u=(o-55296<<10)+65536|h-56320,f=!0)}u<=127?n+=1:u<=2047?n+=2:u<=65535?n+=3:n+=4,f&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Ef=class rr{constructor(t){if(xt(this,"id",++rr.LAST_ID),xt(this,"_onigBinding"),xt(this,"content"),xt(this,"utf16Length"),xt(this,"utf8Length"),xt(this,"utf16OffsetToUtf8"),xt(this,"utf8OffsetToUtf16"),xt(this,"ptr"),!Rt)throw new eg("Must invoke loadWasm first.");this._onigBinding=Rt,this.content=t;const n=new Sf(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!rr._sharedPtrInUse?(rr._sharedPtr||(rr._sharedPtr=Rt.omalloc(1e4)),rr._sharedPtrInUse=!0,Rt.HEAPU8.set(n.utf8Value,rr._sharedPtr),this.ptr=rr._sharedPtr):this.ptr=n.createString(Rt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===rr._sharedPtr?rr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};xt(Ef,"LAST_ID",0);xt(Ef,"_sharedPtr",0);xt(Ef,"_sharedPtrInUse",!1);let wE=Ef;class Mz{constructor(t){if(xt(this,"_onigBinding"),xt(this,"_ptr"),!Rt)throw new eg("Must invoke loadWasm first.");const n=[],i=[];for(let f=0,h=t.length;f<h;f++){const d=new Sf(t[f]);n[f]=d.createString(Rt),i[f]=d.utf8Length}const s=Rt.omalloc(4*t.length);Rt.HEAPU32.set(n,s/4);const o=Rt.omalloc(4*t.length);Rt.HEAPU32.set(i,o/4);const u=Rt.createOnigScanner(s,o,t.length);for(let f=0,h=t.length;f<h;f++)Rt.ofree(n[f]);Rt.ofree(o),Rt.ofree(s),u===0&&jz(Rt),this._onigBinding=Rt,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let s=0;if(typeof i=="number"&&(s=i),typeof t=="string"){t=new wE(t);const o=this._findNextMatchSync(t,n,!1,s);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,s)}_findNextMatchSync(t,n,i,s){const o=this._onigBinding,u=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),s);if(u===0)return null;const f=o.HEAPU32;let h=u/4;const d=f[h++],y=f[h++],p=[];for(let _=0;_<y;_++){const v=t.convertUtf8OffsetToUtf16(f[h++]),x=t.convertUtf8OffsetToUtf16(f[h++]);p[_]={start:v,end:x,length:x-v}}return{index:d,captureIndices:p}}}function Pz(e){return typeof e.instantiator=="function"}function zz(e){return typeof e.default=="function"}function Iz(e){return typeof e.data<"u"}function Bz(e){return typeof Response<"u"&&e instanceof Response}function Uz(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let bc;function qz(e){if(bc)return bc;async function t(){Rt=await Lz(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),Pz(i)?i=await i.instantiator(n):zz(i)?i=await i.default(n):(Iz(i)&&(i=i.data),Bz(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await Vz(i)(n):i=await Hz(i)(n):Uz(i)?i=await Rm(i)(n):i instanceof WebAssembly.Module?i=await Rm(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Rm(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return bc=t(),bc}function Rm(e){return t=>WebAssembly.instantiate(e,t)}function Vz(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Hz(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Gz(e){return e&&await qz(e),{createScanner(t){return new Mz(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new wE(t)}}}const Fz=bz({langs:Tz,themes:kz,engine:()=>Gz(R(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:ux}=Sz(Fz,{guessEmbeddedLanguages:M4});function ko({children:e,className:t="",components:n}){return S.jsx("div",{className:`markdown-content ${t} scroll-smooth`,children:S.jsx(kj,{remarkPlugins:[qP],components:{code:Qz,pre:({children:i})=>S.jsx(S.Fragment,{children:i}),...n},children:e})})}function Qz({children:e,className:t}){const[n,i]=re.useState(null),s=String(e).replace(/\n$/,""),o=/language-(\w+)/.exec(t||""),u=o?o[1]:void 0,f=!u&&!s.includes(`
|
|
276
|
+
`);return re.useEffect(()=>{if(f)return;let h=!0;return(async()=>{try{const y=await ux(s,{lang:u||"text",themes:{light:"github-light",dark:"github-dark"}});h&&i(y)}catch{const y=await ux(s,{lang:"text",themes:{light:"github-light",dark:"github-dark"}});h&&i(y)}})(),()=>{h=!1}},[s,u,f]),f?S.jsx("code",{className:"bg-muted text-foreground rounded px-1.5 py-0.5 font-mono text-sm",children:s}):n?S.jsx("div",{className:"shiki-wrapper overflow-x-auto rounded-md text-sm [&_pre]:m-0 [&_pre]:bg-transparent [&_pre]:p-4",dangerouslySetInnerHTML:{__html:n}}):S.jsx("pre",{className:"bg-muted/50 border-border overflow-x-auto rounded-md border p-4",children:S.jsx("code",{className:"text-foreground font-mono text-sm",children:s})})}function tg({items:e,defaultCollapsed:t=!0,className:n=""}){const[i,s]=re.useState(t);return e.length===0?S.jsx("aside",{className:`hidden ${n}`}):S.jsxs("aside",{className:`toc-root scrollbar-none sticky top-0 z-10 max-h-[calc(100cqh-3rem)] self-start overflow-y-auto ${n}`,children:[S.jsx("style",{children:Xz}),S.jsxs("div",{className:"toc-narrow border-border bg-background overflow-hidden rounded border",children:[S.jsxs("button",{onClick:()=>s(!i),className:`text-foreground flex w-full items-center gap-2 px-3 py-2 ${i?"":"border-border border-b"}`,"aria-label":i?"Show table of contents":"Hide table of contents",children:[S.jsx(tb,{className:"h-4 w-4"}),S.jsx("span",{className:"text-sm",children:"Contents"}),S.jsx(p2,{className:`ml-auto h-4 w-4 transition-transform ${i?"":"rotate-180"}`})]}),!i&&S.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent max-h-[300px] overflow-y-auto p-2",children:S.jsx(cx,{items:e})})]}),S.jsxs("nav",{className:"toc-wide flex flex-col",children:[S.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs font-medium uppercase tracking-wide",children:[S.jsx(tb,{className:"h-3.5 w-3.5"}),S.jsx("span",{children:"On this page"})]}),S.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent min-h-0 flex-1 overflow-y-auto p-2",children:S.jsx(cx,{items:e})})]})]})}function $z(e){let t=e.parentElement;for(;t;){const{overflowY:n}=getComputedStyle(t);if(n==="auto"||n==="scroll")return t;t=t.parentElement}return null}function Yz(e){const t=$z(e);if(!t)return;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=n.top-i.top,o=n.bottom-i.top;s<0?t.scrollTo({top:t.scrollTop+s,behavior:"smooth"}):o>i.height&&t.scrollTo({top:t.scrollTop+o-i.height,behavior:"smooth"})}function cx({items:e}){const t=re.useCallback(n=>{n.animationName==="toc-activate"&&Yz(n.currentTarget)},[]);return S.jsx(S.Fragment,{children:e.map((n,i)=>S.jsx("a",{href:`#${n.id}`,className:"toc-link text-muted-foreground hover:text-foreground block overflow-hidden text-ellipsis whitespace-nowrap border-l-2 border-transparent px-3 py-1 text-[13px]",style:{"--target":`--toc-${i}`,paddingLeft:n.level===2?"1rem":n.level===3?"1.25rem":"0.75rem",fontSize:(n.level||1)>1?"12px":"13px"},title:n.label,onAnimationStart:t,children:n.label},n.id))})}const Kz=String.raw,Xz=Kz`
|
|
277
|
+
/* Default: narrow mode (collapsible) */
|
|
278
|
+
.toc-narrow {
|
|
279
|
+
display: block;
|
|
280
|
+
}
|
|
281
|
+
.toc-wide {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* Wide container: show sidebar mode */
|
|
286
|
+
@container (min-width: 768px) {
|
|
287
|
+
.toc-narrow {
|
|
288
|
+
display: none;
|
|
289
|
+
}
|
|
290
|
+
.toc-wide {
|
|
291
|
+
display: block;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* Scroll-driven ToC highlighting animation */
|
|
296
|
+
@keyframes toc-activate {
|
|
297
|
+
0%,
|
|
298
|
+
100% {
|
|
299
|
+
color: var(--muted-foreground);
|
|
300
|
+
border-left-color: transparent;
|
|
301
|
+
}
|
|
302
|
+
1%,
|
|
303
|
+
99% {
|
|
304
|
+
color: var(--foreground);
|
|
305
|
+
border-left-color: var(--primary);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
.toc-link {
|
|
309
|
+
animation-timeline: var(--target);
|
|
310
|
+
animation-name: toc-activate;
|
|
311
|
+
animation-fill-mode: both;
|
|
312
|
+
animation-range: cover 0% cover 100%;
|
|
313
|
+
}
|
|
314
|
+
`;function Zz(e){return e.map((t,n)=>`--toc-${n}`).join(", ")}function ji({id:e,index:t,children:n,className:i="",as:s="section"}){return S.jsx(s,{id:e,className:i,style:{viewTimelineName:`--toc-${t}`},children:n})}function ng({markdown:e,children:t,toc:n,tocItems:i,className:s=""}){const[o,u]=re.useState([]),f=re.useRef([]),h=re.useRef(0);f.current=[],h.current=0;const d=re.useMemo(()=>{const x=E=>{const C=`h${E}`;return function({children:k}){const O=h.current++,P=String(k),L=P.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g,"-").replace(/^-|-$/g,"")||`heading-${O}`;return f.current.push({id:L,label:P,level:E}),S.jsx(C,{id:L,style:{viewTimelineName:`--toc-${O}`},children:k})}};return{h1:x(1),h2:x(2),h3:x(3),h4:x(4),h5:x(5),h6:x(6)}},[]);re.useEffect(()=>{if(n)return;const x=f.current;if(x.length===0)return;(x.length!==o.length||x.some((C,T)=>{var k,O;return C.id!==((k=o[T])==null?void 0:k.id)||C.label!==((O=o[T])==null?void 0:O.label)}))&&u([...x])},[e,n,o]);const y=i??o,p=re.useMemo(()=>Zz(y),[y]),_=n??S.jsx(tg,{items:o,className:"viewer-toc"}),v=e?S.jsx(ko,{className:"viewer-content min-w-0",components:d,children:e}):S.jsx("div",{className:"viewer-content min-w-0",children:t});return S.jsxs("div",{className:`@container-[size] h-full ${s}`,children:[S.jsx("style",{children:eI}),S.jsxs(Jz,{className:"viewer-layout gap-6",timelineScope:p,children:[_,v]})]})}function Jz({children:e,className:t="",timelineScope:n}){return S.jsx("div",{className:`scrollbar-thin scrollbar-track-transparent h-full overflow-auto scroll-smooth p-6 ${t}`,style:n?{timelineScope:n}:void 0,children:e})}const Wz=String.raw,eI=Wz`
|
|
315
|
+
/* Container query based layout */
|
|
316
|
+
.viewer-layout {
|
|
317
|
+
display: block;
|
|
318
|
+
}
|
|
319
|
+
.viewer-toc {
|
|
320
|
+
margin-bottom: 1rem;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* Wide container: grid layout with ToC on right */
|
|
324
|
+
@container (min-width: 768px) {
|
|
325
|
+
.viewer-layout {
|
|
326
|
+
display: grid;
|
|
327
|
+
grid-template-columns: 1fr 180px;
|
|
328
|
+
}
|
|
329
|
+
.viewer-toc {
|
|
330
|
+
order: 2;
|
|
331
|
+
margin-bottom: 0;
|
|
332
|
+
}
|
|
333
|
+
.viewer-content {
|
|
334
|
+
order: 1;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
`;function tI(){const{specId:e}=Ws({from:"/specs/$specId"}),{data:t,isLoading:n}=fO(e),i=null,s=re.useMemo(()=>{if(!t)return[];const o=[{id:"overview",label:"Overview",level:1}];if(t.requirements.length>0){o.push({id:"requirements",label:"Requirements",level:1});for(const u of t.requirements){const f=u.text.length>30?`${u.text.slice(0,30)}…`:u.text;o.push({id:`req-${u.id}`,label:f,level:2})}}return o},[t]);return n?S.jsx("div",{className:"animate-pulse",children:"Loading spec..."}):t?S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/specs",className:"hover:bg-muted rounded-md p-2",children:S.jsx(Cp,{className:"h-5 w-5"})}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:t.name}),S.jsxs("p",{className:"text-muted-foreground",children:["ID: ",t.id]})]})]}),i,S.jsx(ng,{toc:S.jsx(tg,{items:s,className:"viewer-toc"}),tocItems:s,className:"min-h-0 flex-1",children:S.jsxs("div",{className:"space-y-6",children:[S.jsxs(ji,{id:"overview",index:0,children:[S.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Overview"}),S.jsx("div",{className:"bg-muted/30 rounded-lg p-4",children:t.overview?S.jsx(ko,{children:t.overview}):S.jsx("span",{className:"text-muted-foreground",children:"No overview"})})]}),S.jsxs(ji,{id:"requirements",index:1,children:[S.jsxs("h2",{className:"mb-3 text-lg font-semibold",children:["Requirements (",t.requirements.length,")"]}),S.jsxs("div",{className:"space-y-4",children:[t.requirements.map((o,u)=>S.jsxs(ji,{id:`req-${o.id}`,index:2+u,as:"div",className:"border-border rounded-lg border p-4",children:[S.jsx("div",{className:"mb-2 font-medium",children:o.text}),o.scenarios.length>0&&S.jsxs("div",{className:"mt-3",children:[S.jsxs("div",{className:"text-muted-foreground mb-2 text-sm font-medium",children:["Scenarios (",o.scenarios.length,")"]}),o.scenarios.map((f,h)=>{const d=f.rawText.replace(/^---\n?/,"").replace(/\n?---$/,"").trim();return S.jsx("div",{className:"bg-muted/50 rounded-md p-3",children:S.jsx(ko,{children:d})},h)})]})]},o.id)),t.requirements.length===0&&S.jsx("div",{className:"text-muted-foreground",children:"No requirements defined"})]})]})]})})]}):S.jsx("div",{className:"text-red-600",children:"Spec not found"})}function nI(){const{data:e,isLoading:t}=hO();return t?S.jsx("div",{className:"animate-pulse",children:"Loading changes..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Changes"}),S.jsxs("p",{className:"text-muted-foreground",children:["Active change proposals. Completed changes are moved to"," ",S.jsx(ut,{to:"/archive",className:"text-primary hover:underline",children:"Archive"}),"."]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/changes/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Rp,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.progress.completed,"/",n.progress.total," tasks",n.updatedAt>0&&S.jsxs(S.Fragment,{children:[" · ",Ap(n.updatedAt)]})]})]})]}),S.jsx(kp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",S.jsx("code",{children:"openspec/changes/"})]})]})]})}function TE(e){const t=new Map;for(const n of e){const i=n.section||"General",s=t.get(i)||[];s.push(n),t.set(i,s)}return Array.from(t.entries()).map(([n,i])=>({section:n,tasks:i,completed:i.filter(s=>s.completed).length,total:i.length}))}function CE(e){return`section-${e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`}function rI(e){return e.map(t=>({id:CE(t.section),label:`${t.section} (${t.completed}/${t.total})`,level:2}))}const iI=re.memo(function({task:t,taskIndex:n,isToggling:i,onToggle:s,readonly:o}){const u=S.jsxs(S.Fragment,{children:[i?S.jsx(z2,{className:"w-5 h-5 text-primary shrink-0 animate-spin"}):t.completed?S.jsx(df,{className:"w-5 h-5 text-green-500 shrink-0"}):S.jsx(S2,{className:"w-5 h-5 text-muted-foreground shrink-0 group-hover:text-primary"}),S.jsx("span",{className:t.completed?"line-through text-muted-foreground":"",children:t.text})]});return o||!s?S.jsx("div",{className:"w-full p-3 flex items-center gap-3 text-left",children:u}):S.jsx("button",{onClick:()=>s(n,!t.completed),className:"group w-full p-3 flex items-center gap-3 hover:bg-muted/50 transition-colors text-left",children:u})},(e,t)=>e.task.id===t.task.id&&e.task.completed===t.task.completed&&e.isToggling===t.isToggling&&e.readonly===t.readonly);function kE({tasks:e,progress:t,onToggleTask:n,togglingIndex:i=null,tocBaseIndex:s=0,readonly:o=!1}){const u=re.useMemo(()=>TE(e),[e]),f=t.total>0?Math.round(t.completed/t.total*100):0,h=(d,y)=>{let p=0;for(let _=0;_<d;_++)p+=u[_].tasks.length;return p+y+1};return S.jsxs(ji,{id:"tasks",index:s,children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsxs("h2",{className:"text-lg font-semibold",children:["Tasks (",t.completed,"/",t.total,")"]}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[f,"%"]})]}),S.jsx("div",{className:"w-full bg-muted rounded-full h-2 mb-4",children:S.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${f}%`}})}),S.jsxs("div",{className:"space-y-6",children:[u.map((d,y)=>{const p=CE(d.section),_=d.total>0?Math.round(d.completed/d.total*100):0;return S.jsxs(ji,{id:p,index:s+1+y,as:"div",children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("h3",{className:"font-medium text-foreground",children:d.section}),S.jsxs("span",{className:"text-xs text-muted-foreground",children:[d.completed,"/",d.total," (",_,"%)"]})]}),S.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:d.tasks.map((v,x)=>{const E=h(y,x);return S.jsx(iI,{task:v,taskIndex:E,isToggling:i===E,onToggle:n,readonly:o},v.id)})})]},d.section)}),u.length===0&&S.jsx("div",{className:"p-4 text-muted-foreground text-center border border-border rounded-lg",children:"No tasks defined"})]})]})}function aI(e){return re.useMemo(()=>TE(e),[e])}function sI(){var x;const{changeId:e}=Ws({from:"/changes/$changeId"}),t=jo(),[n,i]=re.useState(null),{data:s,isLoading:o}=dO(e),u=null,f=Qs({mutationFn:()=>Et.cli.archive.mutate({changeId:e}),onSuccess:E=>{E.success?(i(null),t({to:"/archive"})):i(E.stderr||"Archive failed")},onError:E=>{i(E.message)}}),h=Qs({mutationFn:E=>Et.change.toggleTask.mutate({changeId:e,taskIndex:E.taskIndex,completed:E.completed})}),d=re.useCallback((E,C)=>{h.mutate({taskIndex:E,completed:C})},[h]),y=h.isPending?((x=h.variables)==null?void 0:x.taskIndex)??null:null,p=aI((s==null?void 0:s.tasks)??[]),_=re.useMemo(()=>{if(!s)return[];const E=[{id:"why",label:"Why",level:1},{id:"what-changes",label:"What Changes",level:1}];return s.deltas.length>0&&E.push({id:"affected-specs",label:"Affected Specs",level:1}),E.push({id:"tasks",label:"Tasks",level:1}),E.push(...rI(p)),E},[s,p]);if(o)return S.jsx("div",{className:"animate-pulse",children:"Loading change..."});if(!s)return S.jsx("div",{className:"text-red-600",children:"Change not found"});const v=s?s.deltas.length>0?3:2:0;return S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/changes",className:"p-2 hover:bg-muted rounded-md",children:S.jsx(Cp,{className:"w-5 h-5"})}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:s.name}),S.jsxs("p",{className:"text-muted-foreground",children:["ID: ",s.id]})]})]}),S.jsxs("button",{onClick:()=>f.mutate(),disabled:f.isPending,className:"flex items-center gap-2 px-4 py-2 bg-muted hover:bg-muted/80 rounded-md disabled:opacity-50",children:[S.jsx(xa,{className:"w-4 h-4"}),f.isPending?"Archiving...":"Archive"]})]}),n&&S.jsxs("div",{className:"border border-red-500 bg-red-500/10 rounded-lg p-4",children:[S.jsxs("div",{className:"flex items-center gap-2 text-red-600 font-medium mb-2",children:[S.jsx(j1,{className:"w-5 h-5"}),"Archive Failed"]}),S.jsx("pre",{className:"text-sm text-red-600 whitespace-pre-wrap overflow-auto max-h-32",children:n})]}),u,S.jsx(ng,{toc:S.jsx(tg,{items:_,className:"viewer-toc"}),tocItems:_,className:"min-h-0 flex-1",children:S.jsxs("div",{className:"space-y-6",children:[S.jsxs(ji,{id:"why",index:0,children:[S.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Why"}),S.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:s.why?S.jsx(ko,{children:s.why}):S.jsx("span",{className:"text-muted-foreground",children:"No description"})})]}),S.jsxs(ji,{id:"what-changes",index:1,children:[S.jsx("h2",{className:"text-lg font-semibold mb-2",children:"What Changes"}),S.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:s.whatChanges?S.jsx(ko,{children:s.whatChanges}):S.jsx("span",{className:"text-muted-foreground",children:"No changes listed"})})]}),s.deltas.length>0&&S.jsxs(ji,{id:"affected-specs",index:2,children:[S.jsxs("h2",{className:"text-lg font-semibold mb-3",children:["Affected Specs (",s.deltas.length,")"]}),S.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:s.deltas.map((E,C)=>S.jsxs("div",{className:"p-3 flex items-center justify-between",children:[S.jsx(ut,{to:"/specs/$specId",params:{specId:E.spec},className:"font-medium hover:underline",children:E.spec}),S.jsx("span",{className:"text-sm px-2 py-1 bg-muted rounded",children:E.operation})]},C))})]}),S.jsx(kE,{tasks:s.tasks,progress:s.progress,onToggleTask:d,togglingIndex:y,tocBaseIndex:v})]})})]})}function lI(){const{data:e,isLoading:t}=mO();return t?S.jsx("div",{className:"animate-pulse",children:"Loading archived changes..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(xa,{className:"w-6 h-6"}),S.jsx("h1",{className:"text-2xl font-bold",children:"Archive"})]}),S.jsx("p",{className:"text-muted-foreground",children:"Completed changes that have been archived after implementation."}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/archive/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(xa,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.id,n.updatedAt>0&&S.jsxs(S.Fragment,{children:[" · ",Ap(n.updatedAt)]})]})]})]}),S.jsx(kp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-8 text-center text-muted-foreground",children:[S.jsx(xa,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),S.jsx("p",{children:"No archived changes yet."}),S.jsxs("p",{className:"text-sm mt-2",children:["Changes are archived after implementation using"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec archive"})]})]})]})]})}function oI({tabs:e,defaultTab:t,className:n=""}){var o;const[i,s]=re.useState(t||((o=e[0])==null?void 0:o.id));return e.length===0?null:S.jsxs("div",{className:`flex min-h-0 flex-1 flex-col ${n}`,children:[S.jsx("div",{className:"z-2 flex gap-1",children:e.map(u=>S.jsxs("button",{onClick:()=>s(u.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${i===u.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[u.icon,u.label]},u.id))}),S.jsx("div",{className:"min-h-0 flex-1",children:e.map(u=>S.jsx(re.Activity,{mode:i===u.id?"visible":"hidden",children:S.jsx(S.Fragment,{children:u.content})},u.id))})]})}const uI=nR("/archive/$changeId");function cI(){const{changeId:e}=uI.useParams(),{data:t,isLoading:n}=pO(e),s=re.useMemo(()=>{const o=[{id:"proposal",label:"proposal.md",icon:S.jsx(Ks,{className:"w-4 h-4"}),content:S.jsx("div",{className:"p-8 text-center text-muted-foreground border border-border rounded-lg",children:S.jsx("p",{children:"proposal.md not found."})})}];return t!=null&&t.tasks&&t.tasks.length>0&&o.push({id:"tasks",label:"Tasks",icon:S.jsx(j2,{className:"w-4 h-4"}),content:S.jsx("div",{className:"h-full border border-border rounded-lg p-4 overflow-auto",children:S.jsx(kE,{tasks:t.tasks,progress:t.progress,readonly:!0})})}),o},[null,t]);return n?S.jsx("div",{className:"animate-pulse",children:"Loading archived change..."}):t?S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/archive",className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Back to Archive",children:S.jsx(Cp,{className:"w-5 h-5"})}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(xa,{className:"w-6 h-6 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:t.name}),S.jsx("p",{className:"text-sm text-muted-foreground",children:e})]})]})]}),S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx(df,{className:"w-4 h-4 text-green-500"}),S.jsxs("span",{className:"text-green-600",children:["Completed: ",t.progress.completed,"/",t.progress.total," tasks"]})]}),S.jsx(oI,{tabs:s,defaultTab:"proposal"})]}):S.jsxs("div",{className:"text-center py-12",children:[S.jsxs("p",{className:"text-muted-foreground",children:["Archived change not found: ",e]}),S.jsx(ut,{to:"/archive",className:"text-primary hover:underline mt-4 inline-block",children:"Back to Archive"})]})}function fI(){const[e,t]=re.useState("project"),[n,i]=re.useState(null),[s,o]=re.useState(""),{data:u,isLoading:f}=gO(),{data:h,isLoading:d}=yO(),y=Qs({mutationFn:P=>Et.project.saveProjectMd.mutate({content:P}),onSuccess:()=>{i(null)}}),p=Qs({mutationFn:P=>Et.project.saveAgentsMd.mutate({content:P}),onSuccess:()=>{i(null)}}),_=e==="project"?u:h,v=e==="project"?y:p,x=n===e,E=()=>{o(_||""),i(e)},C=()=>{v.mutate(s)},T=()=>{i(null),o("")},k=[{id:"project",label:"project.md",icon:S.jsx(Ks,{className:"w-4 h-4"})},{id:"agents",label:"AGENTS.md",icon:S.jsx(f2,{className:"w-4 h-4"})}],O={project:S.jsxs("p",{children:[S.jsx("strong",{children:"project.md"})," defines project context, tech stack, and conventions for AI assistants."]}),agents:S.jsxs("p",{children:[S.jsx("strong",{children:"AGENTS.md"})," provides workflow instructions for AI coding assistants using OpenSpec."]})};return S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Project"}),!x&&_&&S.jsxs("button",{onClick:E,className:"border-border flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm hover:bg-muted",children:[S.jsx(F2,{className:"h-4 w-4"}),"Edit"]})]}),S.jsx("div",{className:"border-border flex gap-1 border-b",children:k.map(P=>S.jsxs("button",{onClick:()=>t(P.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${e===P.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[P.icon,P.label]},P.id))}),S.jsxs("div",{className:"border-border min-h-0 flex-1 overflow-hidden rounded-lg border",children:[S.jsx(re.Activity,{mode:e==="project"?"visible":"hidden",children:S.jsx(fx,{content:u,isLoading:f,isEditing:n==="project",editContent:s,setEditContent:o,onCancel:T,onSave:C,savePending:y.isPending,tabName:"project.md",defaultContent:"# Project Context\\n\\n## Purpose\\n\\n## Tech Stack\\n\\n## Conventions\\n",onStartEdit:()=>{o(u||""),i("project")}})}),S.jsx(re.Activity,{mode:e==="agents"?"visible":"hidden",children:S.jsx(fx,{content:h,isLoading:d,isEditing:n==="agents",editContent:s,setEditContent:o,onCancel:T,onSave:C,savePending:p.isPending,tabName:"AGENTS.md",defaultContent:"# AI Agent Instructions\\n\\n## Workflow\\n\\n## Commands\\n",onStartEdit:()=>{o(h||""),i("agents")}})})]}),S.jsx("div",{className:"text-muted-foreground text-sm",children:O[e]})]})}function fx({content:e,isLoading:t,isEditing:n,editContent:i,setEditContent:s,onCancel:o,onSave:u,savePending:f,tabName:h,defaultContent:d,onStartEdit:y}){return t?S.jsx("div",{className:"animate-pulse p-4",children:"Loading..."}):e?n?S.jsxs("div",{className:"flex h-full flex-col",children:[S.jsxs("div",{className:"border-border bg-muted/30 flex items-center justify-between border-b p-2",children:[S.jsxs("span",{className:"px-2 text-sm font-medium",children:["Editing ",h]}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("button",{onClick:o,className:"border-border flex items-center gap-1 rounded border px-3 py-1 text-sm hover:bg-muted",children:[S.jsx(z1,{className:"h-3 w-3"}),"Cancel"]}),S.jsxs("button",{onClick:u,disabled:f,className:"bg-primary text-primary-foreground flex items-center gap-1 rounded px-3 py-1 text-sm hover:opacity-90 disabled:opacity-50",children:[S.jsx($2,{className:"h-3 w-3"}),f?"Saving...":"Save"]})]})]}),S.jsx("textarea",{value:i,onChange:p=>s(p.target.value),className:"bg-background flex-1 resize-none p-4 font-mono text-sm focus:outline-none",spellCheck:!1})]}):S.jsx(ng,{markdown:e}):S.jsxs("div",{className:"text-muted-foreground p-8 text-center",children:[S.jsxs("p",{className:"mb-4",children:[h," not found."]}),S.jsxs("button",{onClick:()=>{s(d),y()},className:"bg-primary text-primary-foreground rounded-md px-4 py-2 hover:opacity-90",children:["Create ",h]})]})}function hI(){const e=localStorage.getItem("theme");return e==="light"||e==="dark"||e==="system"?e:"system"}function hx(e){const t=document.documentElement;if(e==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t.classList.toggle("dark",n)}else t.classList.toggle("dark",e==="dark")}function dI(){var P,V,L,B;const[e,t]=re.useState(hI),[n,i]=re.useState(As()||""),[s,o]=re.useState(!1),[u,f]=re.useState(""),[h,d]=re.useState([]),{data:y}=vO(),{data:p,refetch:_}=x0(eb.cli.checkAvailability.queryOptions()),{data:v}=x0(eb.cli.getAvailableTools.queryOptions()),{data:x}=_O();re.useEffect(()=>{var q;(q=y==null?void 0:y.cli)!=null&&q.command&&f(y.cli.command)},[(P=y==null?void 0:y.cli)==null?void 0:P.command]),re.useEffect(()=>{x&&x.length>0&&d(x)},[x]);const E=Qs({mutationFn:q=>Et.cli.init.mutate({tools:q}),onSuccess:q=>{q.success&&(o(!0),setTimeout(()=>o(!1),3e3))}}),C=q=>{d(te=>te.includes(q)?te.filter(N=>N!==q):[...te,q])},T=()=>{v&&h.length===v.length?d([]):v&&d([...v])},k=Qs({mutationFn:q=>Et.config.setCliCommand.mutate({command:q}),onSuccess:()=>{_()}});re.useEffect(()=>{hx(e),localStorage.setItem("theme",e)},[e]),re.useEffect(()=>{if(e!=="system")return;const q=window.matchMedia("(prefers-color-scheme: dark)"),te=()=>hx("system");return q.addEventListener("change",te),()=>q.removeEventListener("change",te)},[e]);const O=()=>{const q=new URL(window.location.href);n?q.searchParams.set("api",n):q.searchParams.delete("api"),window.location.href=q.toString()};return S.jsxs("div",{className:"space-y-8 max-w-2xl",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Settings"}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Appearance"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsx("label",{className:"text-sm font-medium mb-3 block",children:"Theme"}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("button",{onClick:()=>t("light"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="light"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(Z2,{className:"w-4 h-4"}),"Light"]}),S.jsxs("button",{onClick:()=>t("dark"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="dark"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(H2,{className:"w-4 h-4"}),"Dark"]}),S.jsxs("button",{onClick:()=>t("system"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="system"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(q2,{className:"w-4 h-4"}),"System"]})]})]})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"CLI Configuration"}),S.jsxs("div",{className:"border border-border rounded-lg p-4 space-y-4",children:[S.jsxs("div",{children:[S.jsx("label",{className:"text-sm font-medium mb-2 block",children:"OpenSpec CLI Command"}),S.jsxs("p",{className:"text-sm text-muted-foreground mb-3",children:["Configure the command used to run OpenSpec CLI. Install with"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"npm install -g @fission-ai/openspec"}),". Examples:",S.jsx("code",{className:"bg-muted px-1 mx-1 rounded",children:"npx @fission-ai/openspec"}),",",S.jsx("code",{className:"bg-muted px-1 mx-1 rounded",children:"openspec"})," (global install)"]}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("input",{type:"text",value:u,onChange:q=>f(q.target.value),placeholder:"npx @fission-ai/openspec",className:"flex-1 px-3 py-2 border border-border rounded-md bg-background text-foreground font-mono text-sm"}),S.jsx("button",{onClick:()=>k.mutate(u),disabled:k.isPending||u===((V=y==null?void 0:y.cli)==null?void 0:V.command),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90 disabled:opacity-50",children:k.isPending?"Saving...":"Save"})]})]}),S.jsxs("div",{className:"pt-2 border-t border-border",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(W2,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("span",{className:"text-sm font-medium",children:"CLI Status:"}),p!=null&&p.available?S.jsxs("span",{className:"flex items-center gap-1 text-sm text-green-600",children:[S.jsx(df,{className:"w-4 h-4"}),"Available ",p.version&&`(${p.version})`]}):S.jsxs("span",{className:"flex items-center gap-1 text-sm text-red-600",children:[S.jsx(b2,{className:"w-4 h-4"}),"Not available"]})]}),p&&!p.available&&p.error&&S.jsx("p",{className:"text-sm text-muted-foreground mt-1 ml-6",children:p.error})]})]})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"API Configuration"}),S.jsx("div",{className:"border border-border rounded-lg p-4 space-y-4",children:S.jsxs("div",{children:[S.jsx("label",{className:"text-sm font-medium mb-2 block",children:"API Server URL"}),S.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Leave empty for same-origin requests. Set a custom URL to connect to a different server."}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("input",{type:"text",value:n,onChange:q=>i(q.target.value),placeholder:"http://localhost:3100",className:"flex-1 px-3 py-2 border border-border rounded-md bg-background text-foreground"}),S.jsx("button",{onClick:O,className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Apply"})]}),As()&&S.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Current: ",S.jsx("code",{className:"bg-muted px-1 rounded",children:As()})]})]})})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"File Watcher"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"File watcher is configured on the server side. Check the status bar at the bottom of the page to see if file watching is enabled."}),S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx(P1,{className:"w-4 h-4 text-green-500"}),S.jsx("span",{children:"Enabled: Real-time updates when files change"})]}),S.jsxs("div",{className:"flex items-center gap-2 text-sm mt-2",children:[S.jsx(M1,{className:"w-4 h-4 text-yellow-500"}),S.jsx("span",{children:"Disabled: Manual refresh required"})]}),S.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:["To disable file watching, restart the server with"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"--no-watch"})," flag."]})]})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Initialize OpenSpec"}),S.jsxs("div",{className:"border border-border rounded-lg p-4 space-y-4",children:[S.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create the OpenSpec directory structure in the current project. This will create"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/"})," with specs, changes, and archive directories."]}),S.jsxs("div",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("label",{className:"text-sm font-medium",children:"AI Tools Configuration"}),S.jsx("button",{onClick:T,className:"text-xs text-primary hover:underline",children:v&&h.length===v.length?"Deselect All":"Select All"})]}),S.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Select which AI tools to configure instruction files for:"}),S.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 gap-2",children:v==null?void 0:v.map(q=>S.jsxs("button",{onClick:()=>C(q),className:`flex items-center gap-1 px-2 py-1.5 text-xs rounded border transition-colors ${h.includes(q)?"border-primary bg-primary/10 text-primary":"border-border hover:bg-muted"}`,children:[h.includes(q)&&S.jsx(d2,{className:"w-3 h-3"}),S.jsx("span",{className:"truncate",children:q})]},q))})]}),S.jsxs("div",{className:"flex flex-wrap gap-2 pt-2 border-t border-border",children:[S.jsxs("button",{onClick:()=>E.mutate(h.length>0?h:"none"),disabled:E.isPending,className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90 disabled:opacity-50",children:[S.jsx(k2,{className:"w-4 h-4"}),E.isPending?"Initializing...":h.length>0?`Initialize with ${h.length} tools`:"Initialize (no tools)"]}),S.jsx("button",{onClick:()=>E.mutate("all"),disabled:E.isPending,className:"px-4 py-2 border border-border rounded-md hover:bg-muted disabled:opacity-50",children:"Initialize with All Tools"})]}),s&&S.jsx("p",{className:"text-sm text-green-600",children:"OpenSpec initialized successfully!"}),E.isError&&S.jsxs("p",{className:"text-sm text-red-600",children:["Error: ",((L=E.error)==null?void 0:L.message)||"Failed to initialize"]}),E.data&&!E.data.success&&S.jsxs("div",{className:"text-sm text-red-600",children:[S.jsx("p",{children:"CLI Error:"}),S.jsx("pre",{className:"bg-muted p-2 rounded mt-1 text-xs overflow-auto max-h-32",children:E.data.stderr||"Unknown error"})]}),((B=E.data)==null?void 0:B.success)&&E.data.stdout&&S.jsxs("div",{className:"text-sm",children:[S.jsx("p",{className:"font-medium text-green-600 mb-1",children:"Output:"}),S.jsx("pre",{className:"bg-muted p-2 rounded text-xs overflow-auto max-h-32",children:E.data.stdout})]})]})]})]})}const fr=sR({component:lO}),mI=or({getParentRoute:()=>fr,path:"/",component:bO}),pI=or({getParentRoute:()=>fr,path:"/project",component:fI}),gI=or({getParentRoute:()=>fr,path:"/specs",component:xO}),yI=or({getParentRoute:()=>fr,path:"/specs/$specId",component:tI}),vI=or({getParentRoute:()=>fr,path:"/changes",component:nI}),_I=or({getParentRoute:()=>fr,path:"/changes/$changeId",component:sI}),bI=or({getParentRoute:()=>fr,path:"/archive",component:lI}),xI=or({getParentRoute:()=>fr,path:"/archive/$changeId",component:cI}),SI=or({getParentRoute:()=>fr,path:"/settings",component:dI}),EI=fr.addChildren([mI,pI,gI,yI,vI,_I,bI,xI,SI]),wI=pR({routeTree:EI});function TI(){return S.jsx(SC,{client:L1,children:S.jsx(vR,{router:wI})})}JT.createRoot(document.getElementById("root")).render(S.jsx(TI,{}));
|