@rsktash/beads-ui 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var
|
|
2
|
+
var Hv=Object.defineProperty;var Vv=(i,l,r)=>l in i?Hv(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r;var w=(i,l,r)=>Vv(i,typeof l!="symbol"?l+"":l,r);(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();var Dc={exports:{}},Ji={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ var jv=Object.defineProperty;var Uv=(i,l,r)=>l in i?jv(i,l,{enumerable:!0,config
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var Ep;function Gv(){if(Ep)return Ji;Ep=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var g in u)g!=="key"&&(f[g]=u[g])}else f=u;return u=f.ref,{$$typeof:i,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Ji.Fragment=l,Ji.jsx=r,Ji.jsxs=r,Ji}var xp;function Iv(){return xp||(xp=1,Dc.exports=Gv()),Dc.exports}var v=Iv(),kc={exports:{}},oe={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react.production.js
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ var jv=Object.defineProperty;var Uv=(i,l,r)=>l in i?jv(i,l,{enumerable:!0,config
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var
|
|
18
|
+
*/var Tp;function qv(){if(Tp)return oe;Tp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),E=Symbol.iterator;function T(A){return A===null||typeof A!="object"?null:(A=E&&A[E]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,q={};function B(A,G,Q){this.props=A,this.context=G,this.refs=q,this.updater=Q||C}B.prototype.isReactComponent={},B.prototype.setState=function(A,G){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,G,"setState")},B.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function I(){}I.prototype=B.prototype;function P(A,G,Q){this.props=A,this.context=G,this.refs=q,this.updater=Q||C}var X=P.prototype=new I;X.constructor=P,U(X,B.prototype),X.isPureReactComponent=!0;var ae=Array.isArray;function fe(){}var te={H:null,A:null,T:null,S:null},Ue=Object.prototype.hasOwnProperty;function pt(A,G,Q){var W=Q.ref;return{$$typeof:i,type:A,key:G,ref:W!==void 0?W:null,props:Q}}function kt(A,G){return pt(A.type,G,A.props)}function Re(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function Ke(A){var G={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Q){return G[Q]})}var Lt=/\/+/g;function Ye(A,G){return typeof A=="object"&&A!==null&&A.key!=null?Ke(""+A.key):G.toString(36)}function Fe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(fe,fe):(A.status="pending",A.then(function(G){A.status==="pending"&&(A.status="fulfilled",A.value=G)},function(G){A.status==="pending"&&(A.status="rejected",A.reason=G)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function z(A,G,Q,W,ee){var ue=typeof A;(ue==="undefined"||ue==="boolean")&&(A=null);var be=!1;if(A===null)be=!0;else switch(ue){case"bigint":case"string":case"number":be=!0;break;case"object":switch(A.$$typeof){case i:case l:be=!0;break;case y:return be=A._init,z(be(A._payload),G,Q,W,ee)}}if(be)return ee=ee(A),be=W===""?"."+Ye(A,0):W,ae(ee)?(Q="",be!=null&&(Q=be.replace(Lt,"$&/")+"/"),z(ee,G,Q,"",function(kn){return kn})):ee!=null&&(Re(ee)&&(ee=kt(ee,Q+(ee.key==null||A&&A.key===ee.key?"":(""+ee.key).replace(Lt,"$&/")+"/")+be)),G.push(ee)),1;be=0;var Ge=W===""?".":W+":";if(ae(A))for(var Ie=0;Ie<A.length;Ie++)W=A[Ie],ue=Ge+Ye(W,Ie),be+=z(W,G,Q,ue,ee);else if(Ie=T(A),typeof Ie=="function")for(A=Ie.call(A),Ie=0;!(W=A.next()).done;)W=W.value,ue=Ge+Ye(W,Ie++),be+=z(W,G,Q,ue,ee);else if(ue==="object"){if(typeof A.then=="function")return z(Fe(A),G,Q,W,ee);throw G=String(A),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return be}function $(A,G,Q){if(A==null)return A;var W=[],ee=0;return z(A,W,"","",function(ue){return G.call(Q,ue,ee++)}),W}function re(A){if(A._status===-1){var G=A._result;G=G(),G.then(function(Q){(A._status===0||A._status===-1)&&(A._status=1,A._result=Q)},function(Q){(A._status===0||A._status===-1)&&(A._status=2,A._result=Q)}),A._status===-1&&(A._status=0,A._result=G)}if(A._status===1)return A._result.default;throw A._result}var Oe=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Ce={map:$,forEach:function(A,G,Q){$(A,function(){G.apply(this,arguments)},Q)},count:function(A){var G=0;return $(A,function(){G++}),G},toArray:function(A){return $(A,function(G){return G})||[]},only:function(A){if(!Re(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return oe.Activity=b,oe.Children=Ce,oe.Component=B,oe.Fragment=r,oe.Profiler=u,oe.PureComponent=P,oe.StrictMode=s,oe.Suspense=p,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,oe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return te.H.useMemoCache(A)}},oe.cache=function(A){return function(){return A.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(A,G,Q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=U({},A.props),ee=A.key;if(G!=null)for(ue in G.key!==void 0&&(ee=""+G.key),G)!Ue.call(G,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&G.ref===void 0||(W[ue]=G[ue]);var ue=arguments.length-2;if(ue===1)W.children=Q;else if(1<ue){for(var be=Array(ue),Ge=0;Ge<ue;Ge++)be[Ge]=arguments[Ge+2];W.children=be}return pt(A.type,ee,W)},oe.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},oe.createElement=function(A,G,Q){var W,ee={},ue=null;if(G!=null)for(W in G.key!==void 0&&(ue=""+G.key),G)Ue.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ee[W]=G[W]);var be=arguments.length-2;if(be===1)ee.children=Q;else if(1<be){for(var Ge=Array(be),Ie=0;Ie<be;Ie++)Ge[Ie]=arguments[Ie+2];ee.children=Ge}if(A&&A.defaultProps)for(W in be=A.defaultProps,be)ee[W]===void 0&&(ee[W]=be[W]);return pt(A,ue,ee)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(A){return{$$typeof:g,render:A}},oe.isValidElement=Re,oe.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:re}},oe.memo=function(A,G){return{$$typeof:h,type:A,compare:G===void 0?null:G}},oe.startTransition=function(A){var G=te.T,Q={};te.T=Q;try{var W=A(),ee=te.S;ee!==null&&ee(Q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(fe,Oe)}catch(ue){Oe(ue)}finally{G!==null&&Q.types!==null&&(G.types=Q.types),te.T=G}},oe.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},oe.use=function(A){return te.H.use(A)},oe.useActionState=function(A,G,Q){return te.H.useActionState(A,G,Q)},oe.useCallback=function(A,G){return te.H.useCallback(A,G)},oe.useContext=function(A){return te.H.useContext(A)},oe.useDebugValue=function(){},oe.useDeferredValue=function(A,G){return te.H.useDeferredValue(A,G)},oe.useEffect=function(A,G){return te.H.useEffect(A,G)},oe.useEffectEvent=function(A){return te.H.useEffectEvent(A)},oe.useId=function(){return te.H.useId()},oe.useImperativeHandle=function(A,G,Q){return te.H.useImperativeHandle(A,G,Q)},oe.useInsertionEffect=function(A,G){return te.H.useInsertionEffect(A,G)},oe.useLayoutEffect=function(A,G){return te.H.useLayoutEffect(A,G)},oe.useMemo=function(A,G){return te.H.useMemo(A,G)},oe.useOptimistic=function(A,G){return te.H.useOptimistic(A,G)},oe.useReducer=function(A,G,Q){return te.H.useReducer(A,G,Q)},oe.useRef=function(A){return te.H.useRef(A)},oe.useState=function(A){return te.H.useState(A)},oe.useSyncExternalStore=function(A,G,Q){return te.H.useSyncExternalStore(A,G,Q)},oe.useTransition=function(){return te.H.useTransition()},oe.version="19.2.4",oe}var Ap;function hf(){return Ap||(Ap=1,kc.exports=qv()),kc.exports}var K=hf(),Lc={exports:{}},Wi={},Nc={exports:{}},wc={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ var jv=Object.defineProperty;var Uv=(i,l,r)=>l in i?jv(i,l,{enumerable:!0,config
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var
|
|
26
|
+
*/var Rp;function Pv(){return Rp||(Rp=1,(function(i){function l(z,$){var re=z.length;z.push($);e:for(;0<re;){var Oe=re-1>>>1,Ce=z[Oe];if(0<u(Ce,$))z[Oe]=$,z[re]=Ce,re=Oe;else break e}}function r(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var $=z[0],re=z.pop();if(re!==$){z[0]=re;e:for(var Oe=0,Ce=z.length,A=Ce>>>1;Oe<A;){var G=2*(Oe+1)-1,Q=z[G],W=G+1,ee=z[W];if(0>u(Q,re))W<Ce&&0>u(ee,Q)?(z[Oe]=ee,z[W]=re,Oe=W):(z[Oe]=Q,z[G]=re,Oe=G);else if(W<Ce&&0>u(ee,re))z[Oe]=ee,z[W]=re,Oe=W;else break e}}return $}function u(z,$){var re=z.sortIndex-$.sortIndex;return re!==0?re:z.id-$.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();i.unstable_now=function(){return d.now()-g}}var p=[],h=[],y=1,b=null,E=3,T=!1,C=!1,U=!1,q=!1,B=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function X(z){for(var $=r(h);$!==null;){if($.callback===null)s(h);else if($.startTime<=z)s(h),$.sortIndex=$.expirationTime,l(p,$);else break;$=r(h)}}function ae(z){if(U=!1,X(z),!C)if(r(p)!==null)C=!0,fe||(fe=!0,Ke());else{var $=r(h);$!==null&&Fe(ae,$.startTime-z)}}var fe=!1,te=-1,Ue=5,pt=-1;function kt(){return q?!0:!(i.unstable_now()-pt<Ue)}function Re(){if(q=!1,fe){var z=i.unstable_now();pt=z;var $=!0;try{e:{C=!1,U&&(U=!1,I(te),te=-1),T=!0;var re=E;try{t:{for(X(z),b=r(p);b!==null&&!(b.expirationTime>z&&kt());){var Oe=b.callback;if(typeof Oe=="function"){b.callback=null,E=b.priorityLevel;var Ce=Oe(b.expirationTime<=z);if(z=i.unstable_now(),typeof Ce=="function"){b.callback=Ce,X(z),$=!0;break t}b===r(p)&&s(p),X(z)}else s(p);b=r(p)}if(b!==null)$=!0;else{var A=r(h);A!==null&&Fe(ae,A.startTime-z),$=!1}}break e}finally{b=null,E=re,T=!1}$=void 0}}finally{$?Ke():fe=!1}}}var Ke;if(typeof P=="function")Ke=function(){P(Re)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,Ye=Lt.port2;Lt.port1.onmessage=Re,Ke=function(){Ye.postMessage(null)}}else Ke=function(){B(Re,0)};function Fe(z,$){te=B(function(){z(i.unstable_now())},$)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ue=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return E},i.unstable_next=function(z){switch(E){case 1:case 2:case 3:var $=3;break;default:$=E}var re=E;E=$;try{return z()}finally{E=re}},i.unstable_requestPaint=function(){q=!0},i.unstable_runWithPriority=function(z,$){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var re=E;E=z;try{return $()}finally{E=re}},i.unstable_scheduleCallback=function(z,$,re){var Oe=i.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Oe+re:Oe):re=Oe,z){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=re+Ce,z={id:y++,callback:$,priorityLevel:z,startTime:re,expirationTime:Ce,sortIndex:-1},re>Oe?(z.sortIndex=re,l(h,z),r(p)===null&&z===r(h)&&(U?(I(te),te=-1):U=!0,Fe(ae,re-Oe))):(z.sortIndex=Ce,l(p,z),C||T||(C=!0,fe||(fe=!0,Ke()))),z},i.unstable_shouldYield=kt,i.unstable_wrapCallback=function(z){var $=E;return function(){var re=E;E=$;try{return z.apply(this,arguments)}finally{E=re}}}})(wc)),wc}var Op;function Yv(){return Op||(Op=1,Nc.exports=Pv()),Nc.exports}var Mc={exports:{}},Et={};/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom.production.js
|
|
29
29
|
*
|
|
@@ -31,7 +31,7 @@ var jv=Object.defineProperty;var Uv=(i,l,r)=>l in i?jv(i,l,{enumerable:!0,config
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var
|
|
34
|
+
*/var Cp;function Xv(){if(Cp)return Et;Cp=1;var i=hf();function l(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,h,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:p,containerInfo:h,implementation:y}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Et.createPortal=function(p,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(l(299));return f(p,h,null,y)},Et.flushSync=function(p){var h=d.T,y=s.p;try{if(d.T=null,s.p=2,p)return p()}finally{d.T=h,s.p=y,s.d.f()}},Et.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(p,h))},Et.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Et.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var y=h.as,b=g(y,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,T=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?s.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:E,fetchPriority:T}):y==="script"&&s.d.X(p,{crossOrigin:b,integrity:E,fetchPriority:T,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Et.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=g(h.as,h.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(p)},Et.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,b=g(y,h.crossOrigin);s.d.L(p,y,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Et.preloadModule=function(p,h){if(typeof p=="string")if(h){var y=g(h.as,h.crossOrigin);s.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(p)},Et.requestFormReset=function(p){s.d.r(p)},Et.unstable_batchedUpdates=function(p,h){return p(h)},Et.useFormState=function(p,h,y){return d.H.useFormState(p,h,y)},Et.useFormStatus=function(){return d.H.useHostTransitionStatus()},Et.version="19.2.4",Et}var Dp;function Qv(){if(Dp)return Mc.exports;Dp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Mc.exports=Xv(),Mc.exports}/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-dom-client.production.js
|
|
37
37
|
*
|
|
@@ -39,57 +39,57 @@ var jv=Object.defineProperty;var Uv=(i,l,r)=>l in i?jv(i,l,{enumerable:!0,config
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var
|
|
42
|
+
*/var kp;function Zv(){if(kp)return Wi;kp=1;var i=Yv(),l=hf(),r=Qv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(s(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return p(o),e;if(c===a)return p(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==a.return)n=o,a=c;else{for(var m=!1,_=o.child;_;){if(_===n){m=!0,n=o,a=c;break}if(_===a){m=!0,a=o,n=c;break}_=_.sibling}if(!m){for(_=c.child;_;){if(_===n){m=!0,n=c,a=o;break}if(_===a){m=!0,a=c,n=o;break}_=_.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),P=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),pt=Symbol.for("react.activity"),kt=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var Lt=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Lt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case B:return"Profiler";case q:return"StrictMode";case ae:return"Suspense";case fe:return"SuspenseList";case pt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case P:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var Fe=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Oe=[],Ce=-1;function A(e){return{current:e}}function G(e){0>Ce||(e.current=Oe[Ce],Oe[Ce]=null,Ce--)}function Q(e,t){Ce++,Oe[Ce]=e.current,e.current=t}var W=A(null),ee=A(null),ue=A(null),be=A(null);function Ge(e,t){switch(Q(ue,t),Q(ee,e),Q(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ym(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ym(t),e=Xm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),Q(W,e)}function Ie(){G(W),G(ee),G(ue)}function kn(e){e.memoizedState!==null&&Q(be,e);var t=W.current,n=Xm(t,e.type);t!==n&&(Q(ee,e),Q(W,n))}function zl(e){ee.current===e&&(G(W),G(ee)),be.current===e&&(G(be),Qi._currentValue=re)}var sa,Ln;function Wt(e){if(sa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sa=t&&t[1]||"",Ln=-1<n.stack.indexOf(`
|
|
43
43
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+sa+e+
|
|
45
|
-
`),
|
|
46
|
-
`);for(o=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;o<
|
|
47
|
-
`+x[a].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=a&&0<=o);break}}}finally{
|
|
44
|
+
`+sa+e+Ln}var pn=!1;function jl(e,t){if(!e||pn)return"";pn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(M){var N=M}Reflect.construct(e,[],V)}else{try{V.call()}catch(M){N=M}e.call(V.prototype)}}else{try{throw Error()}catch(M){N=M}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(M){if(M&&N&&typeof M.stack=="string")return[M.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),m=c[0],_=c[1];if(m&&_){var x=m.split(`
|
|
45
|
+
`),L=_.split(`
|
|
46
|
+
`);for(o=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(a===x.length||o===L.length)for(a=x.length-1,o=L.length-1;1<=a&&0<=o&&x[a]!==L[o];)o--;for(;1<=a&&0<=o;a--,o--)if(x[a]!==L[o]){if(a!==1||o!==1)do if(a--,o--,0>o||x[a]!==L[o]){var j=`
|
|
47
|
+
`+x[a].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=a&&0<=o);break}}}finally{pn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Wt(n):""}function Ja(e,t){switch(e.tag){case 26:case 27:case 5:return Wt(e.type);case 16:return Wt("Lazy");case 13:return e.child!==t&&t!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return jl(e.type,!1);case 11:return jl(e.type.render,!1);case 1:return jl(e.type,!0);case 31:return Wt("Activity");default:return""}}function Nn(e){try{var t="",n=null;do t+=Ja(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
48
48
|
Error generating stack: `+a.message+`
|
|
49
|
-
`+a.stack}}var ol=Object.prototype.hasOwnProperty,ul=i.unstable_scheduleCallback,oa=i.unstable_cancelCallback,br=i.unstable_shouldYield,bo=i.unstable_requestPaint,gt=i.unstable_now,Ul=i.unstable_getCurrentPriorityLevel,wn=i.unstable_ImmediatePriority,Gt=i.unstable_UserBlockingPriority,cl=i.unstable_NormalPriority,Sr=i.unstable_LowPriority,Wa=i.unstable_IdlePriority,Fa=i.log,Er=i.unstable_setDisableYieldValue,bn=null,ft=null;function dt(e){if(typeof Fa=="function"&&Er(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(bn,e)}catch{}}var et=Math.clz32?Math.clz32:So,ei=Math.log,ti=Math.LN2;function So(e){return e>>>=0,e===0?32:31-(ei(e)/ti|0)|0}var Mn=256,zn=262144,ua=4194304;function It(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ca(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var _=a&134217727;return _!==0?(a=_&~c,a!==0?o=It(a):(m&=_,m!==0?o=It(m):n||(n=_&~e,n!==0&&(o=It(n))))):(_=a&~c,_!==0?o=It(_):m!==0?o=It(m):n||(n=a&~e,n!==0&&(o=It(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jn(){var e=ua;return ua<<=1,(ua&62914560)===0&&(ua=4194304),e}function ni(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function li(e,t,n,a,o,c){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var _=e.entanglements,x=e.expirationTimes,k=e.hiddenUpdates;for(n=m&~n;0<n;){var j=31-et(n),V=1<<j;_[j]=0,x[j]=-1;var N=k[j];if(N!==null)for(k[j]=null,j=0;j<N.length;j++){var M=N[j];M!==null&&(M.lane&=-536870913)}n&=~V}a!==0&&ai(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function ai(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ii(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-et(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function xr(e,t){var n=t&-t;return n=(n&42)!==0?1:Nt(n),(n&(e.suspendedLanes|t))!==0?0:n}function Nt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ri(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:hm(e.type))}function si(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Ft=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ft,qe="__reactProps$"+Ft,Un="__reactContainer$"+Ft,fa="__reactEvents$"+Ft,Tr="__reactListeners$"+Ft,Ar="__reactHandles$"+Ft,Rr="__reactResources$"+Ft,ne="__reactMarker$"+Ft;function R(e){delete e[tt],delete e[qe],delete e[fa],delete e[Tr],delete e[Ar]}function Y(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Un]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jp(e);e!==null;){if(n=e[tt])return n;e=Jp(e)}return t}e=n,n=e.parentNode}return null}function J(e){if(e=e[tt]||e[Un]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function De(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Xe(e){var t=e[Rr];return t||(t=e[Rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pe(e){e[ne]=!0}var _t=new Set,en={};function wt(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(en[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var st=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]*$"),oi={},ui={};function C_(e){return ol.call(ui,e)?!0:ol.call(oi,e)?!1:st.test(e)?ui[e]=!0:(oi[e]=!0,!1)}function Or(e,t,n){if(C_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Cr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Bn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D_(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eo(e){if(!e._valueTracker){var t=zf(e)?"checked":"value";e._valueTracker=D_(e,t,""+e[t])}}function jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=zf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Dr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var L_=/[\n"\\]/g;function nn(e){return e.replace(L_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xo(e,t,n,a,o,c,m,_){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?To(e,m,tn(t)):n!=null?To(e,m,tn(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+tn(_):e.removeAttribute("name")}function Uf(e,t,n,a,o,c,m,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Eo(e);return}n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,_||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=_?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Eo(e)}function To(e,t,n){t==="number"&&Dr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function da(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Bf(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function Hf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Fe(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Eo(e)}function ha(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var k_=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 Vf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||k_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Gf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Vf(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&Vf(e,c,t[c])}function Ao(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var N_=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"]]),w_=/^[\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 Lr(e){return w_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hn(){}var Ro=null;function Oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pa=null,ma=null;function If(e){var t=J(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(xo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[qe]||null;if(!o)throw Error(s(90));xo(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&jf(a)}break e;case"textarea":Bf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&da(e,!!n.multiple,t,!1)}}}var Co=!1;function qf(e,t,n){if(Co)return e(t,n);Co=!0;try{var a=e(t);return a}finally{if(Co=!1,(pa!==null||ma!==null)&&(_s(),pa&&(t=pa,e=ma,ma=pa=null,If(t),e)))for(t=0;t<e.length;t++)If(e[t])}}function ci(e,t){var n=e.stateNode;if(n===null)return null;var a=n[qe]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=!1;if(Vn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){Do=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{Do=!1}var dl=null,Lo=null,kr=null;function Pf(){if(kr)return kr;var e,t=Lo,n=t.length,a,o="value"in dl?dl.value:dl.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[c-a];a++);return kr=o.slice(e,1<a?1-a:void 0)}function Nr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wr(){return!0}function Yf(){return!1}function Mt(e){function t(n,a,o,c,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(n=e[_],this[_]=n?n(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?wr:Yf,this.isPropagationStopped=Yf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wr)},persist:function(){},isPersistent:wr}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mr=Mt(Hl),di=b({},Hl,{view:0,detail:0}),M_=Mt(di),ko,No,hi,zr=b({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&e.type==="mousemove"?(ko=e.screenX-hi.screenX,No=e.screenY-hi.screenY):No=ko=0,hi=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:No}}),Xf=Mt(zr),z_=b({},zr,{dataTransfer:0}),j_=Mt(z_),U_=b({},di,{relatedTarget:0}),wo=Mt(U_),B_=b({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),H_=Mt(B_),V_=b({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),G_=Mt(V_),I_=b({},Hl,{data:0}),Qf=Mt(I_),q_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P_={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"},Y_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Y_[e])?!!t[e]:!1}function Mo(){return X_}var Q_=b({},di,{key:function(e){if(e.key){var t=q_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Z_=Mt(Q_),K_=b({},zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=Mt(K_),$_=b({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),J_=Mt($_),W_=b({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),F_=Mt(W_),ey=b({},zr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ty=Mt(ey),ny=b({},Hl,{newState:0,oldState:0}),ly=Mt(ny),ay=[9,13,27,32],zo=Vn&&"CompositionEvent"in window,pi=null;Vn&&"documentMode"in document&&(pi=document.documentMode);var iy=Vn&&"TextEvent"in window&&!pi,Kf=Vn&&(!zo||pi&&8<pi&&11>=pi),$f=" ",Jf=!1;function Wf(e,t){switch(e){case"keyup":return ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function ry(e,t){switch(e){case"compositionend":return Ff(t);case"keypress":return t.which!==32?null:(Jf=!0,$f);case"textInput":return e=t.data,e===$f&&Jf?null:e;default:return null}}function sy(e,t){if(ga)return e==="compositionend"||!zo&&Wf(e,t)?(e=Pf(),kr=Lo=dl=null,ga=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Kf&&t.locale!=="ko"?null:t.data;default:return null}}var oy={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 ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oy[e.type]:t==="textarea"}function td(e,t,n,a){pa?ma?ma.push(a):ma=[a]:pa=a,t=Ts(t,"onChange"),0<t.length&&(n=new Mr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var mi=null,gi=null;function uy(e){Up(e,0)}function jr(e){var t=De(e);if(jf(t))return e}function nd(e,t){if(e==="change")return t}var ld=!1;if(Vn){var jo;if(Vn){var Uo="oninput"in document;if(!Uo){var ad=document.createElement("div");ad.setAttribute("oninput","return;"),Uo=typeof ad.oninput=="function"}jo=Uo}else jo=!1;ld=jo&&(!document.documentMode||9<document.documentMode)}function id(){mi&&(mi.detachEvent("onpropertychange",rd),gi=mi=null)}function rd(e){if(e.propertyName==="value"&&jr(gi)){var t=[];td(t,gi,e,Oo(e)),qf(uy,t)}}function cy(e,t,n){e==="focusin"?(id(),mi=t,gi=n,mi.attachEvent("onpropertychange",rd)):e==="focusout"&&id()}function fy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jr(gi)}function dy(e,t){if(e==="click")return jr(t)}function hy(e,t){if(e==="input"||e==="change")return jr(t)}function py(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:py;function _i(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!ol.call(t,o)||!qt(e[o],t[o]))return!1}return!0}function sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function od(e,t){var n=sd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sd(n)}}function ud(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ud(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Dr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dr(e.document)}return t}function Bo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var my=Vn&&"documentMode"in document&&11>=document.documentMode,_a=null,Ho=null,yi=null,Vo=!1;function fd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||_a==null||_a!==Dr(a)||(a=_a,"selectionStart"in a&&Bo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),yi&&_i(yi,a)||(yi=a,a=Ts(Ho,"onSelect"),0<a.length&&(t=new Mr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=_a)))}function Vl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ya={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Go={},dd={};Vn&&(dd=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Gl(e){if(Go[e])return Go[e];if(!ya[e])return e;var t=ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dd)return Go[e]=t[n];return e}var hd=Gl("animationend"),pd=Gl("animationiteration"),md=Gl("animationstart"),gy=Gl("transitionrun"),_y=Gl("transitionstart"),yy=Gl("transitioncancel"),gd=Gl("transitionend"),_d=new Map,Io="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(" ");Io.push("scrollEnd");function _n(e,t){_d.set(e,t),wt(t,[e])}var Ur=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],va=0,qo=0;function Br(){for(var e=va,t=qo=va=0;t<e;){var n=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];ln[t++]=null;var c=ln[t];if(ln[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}c!==0&&yd(n,o,c)}}function Hr(e,t,n,a){ln[va++]=e,ln[va++]=t,ln[va++]=n,ln[va++]=a,qo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Po(e,t,n,a){return Hr(e,t,n,a),Vr(e)}function Il(e,t){return Hr(e,null,null,t),Vr(e)}function yd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-et(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Vr(e){if(50<Vi)throw Vi=0,Fu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ba={};function vy(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,a){return new vy(e,t,n,a)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function vd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gr(e,t,n,a,o,c){var m=0;if(a=e,typeof e=="function")Yo(e)&&(m=1);else if(typeof e=="string")m=Tv(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case mt:return e=Pt(31,n,t,o),e.elementType=mt,e.lanes=c,e;case U:return ql(n.children,o,c,t);case P:m=8,o|=24;break;case B:return e=Pt(12,n,t,o|2),e.elementType=B,e.lanes=c,e;case ae:return e=Pt(13,n,t,o),e.elementType=ae,e.lanes=c,e;case fe:return e=Pt(19,n,t,o),e.elementType=fe,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:m=10;break e;case I:m=9;break e;case X:m=11;break e;case te:m=14;break e;case Ue:m=16,a=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Pt(m,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ql(e,t,n,a){return e=Pt(7,e,a,t),e.lanes=n,e}function Xo(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function bd(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Qo(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Sd=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var n=Sd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nn(t)},Sd.set(e,t),t)}return{value:e,source:t,stack:Nn(t)}}var Sa=[],Ea=0,Ir=null,vi=0,rn=[],sn=0,hl=null,En=1,xn="";function In(e,t){Sa[Ea++]=vi,Sa[Ea++]=Ir,Ir=e,vi=t}function Ed(e,t,n){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,hl=e;var a=En;e=xn;var o=32-et(a)-1;a&=~(1<<o),n+=1;var c=32-et(t)+o;if(30<c){var m=o-o%5;c=(a&(1<<m)-1).toString(32),a>>=m,o-=m,En=1<<32-et(t)+o|n<<o|a,xn=c+e}else En=1<<c|n<<o|a,xn=e}function Zo(e){e.return!==null&&(In(e,1),Ed(e,1,0))}function Ko(e){for(;e===Ir;)Ir=Sa[--Ea],Sa[Ea]=null,vi=Sa[--Ea],Sa[Ea]=null;for(;e===hl;)hl=rn[--sn],rn[sn]=null,xn=rn[--sn],rn[sn]=null,En=rn[--sn],rn[sn]=null}function xd(e,t){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,En=t.id,xn=t.overflow,hl=e}var yt=null,He=null,Se=!1,pl=null,on=!1,$o=Error(s(519));function ml(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bi(an(t,e)),$o}function Td(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[tt]=e,t[qe]=a,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<Ii.length;n++)_e(Ii[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),Uf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),Hf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Gp(t.textContent,n)?(a.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),a.onScroll!=null&&_e("scroll",t),a.onScrollEnd!=null&&_e("scrollend",t),a.onClick!=null&&(t.onclick=Hn),t=!0):t=!1,t||ml(e,!0)}function Ad(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:yt=yt.return}}function xa(e){if(e!==yt)return!1;if(!Se)return Ad(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||pc(e.type,e.memoizedProps)),n=!n),n&&He&&ml(e),Ad(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=$p(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=$p(e)}else t===27?(t=He,Dl(e.type)?(e=vc,vc=null,He=e):He=t):He=yt?cn(e.stateNode.nextSibling):null;return!0}function Pl(){He=yt=null,Se=!1}function Jo(){var e=pl;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),pl=null),e}function bi(e){pl===null?pl=[e]:pl.push(e)}var Wo=T(null),Yl=null,qn=null;function gl(e,t,n){Q(Wo,t._currentValue),t._currentValue=n}function Pn(e){e._currentValue=Wo.current,G(Wo)}function Fo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function eu(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=o;for(var x=0;x<t.length;x++)if(_.context===t[x]){c.lanes|=n,_=c.alternate,_!==null&&(_.lanes|=n),Fo(c.return,n,e),a||(m=null);break e}c=_.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(s(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),Fo(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Ta(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var _=o.type;qt(o.pendingProps.value,m.value)||(e!==null?e.push(_):e=[_])}}else if(o===be.current){if(m=o.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Qi):e=[Qi])}o=o.return}e!==null&&eu(t,e,n,a),t.flags|=262144}function qr(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Yl=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Rd(Yl,e)}function Pr(e,t){return Yl===null&&Xl(e),Rd(e,t)}function Rd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qn===null){if(e===null)throw Error(s(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return n}var by=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Sy=i.unstable_scheduleCallback,Ey=i.unstable_NormalPriority,nt={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tu(){return{controller:new by,data:new Map,refCount:0}}function Si(e){e.refCount--,e.refCount===0&&Sy(Ey,function(){e.controller.abort()})}var Ei=null,nu=0,Aa=0,Ra=null;function xy(e,t){if(Ei===null){var n=Ei=[];nu=0,Aa=ic(),Ra={status:"pending",value:void 0,then:function(a){n.push(a)}}}return nu++,t.then(Od,Od),t}function Od(){if(--nu===0&&Ei!==null){Ra!==null&&(Ra.status="fulfilled");var e=Ei;Ei=null,Aa=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ty(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Cd=z.S;z.S=function(e,t){fp=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&xy(e,t),Cd!==null&&Cd(e,t)};var Ql=T(null);function lu(){var e=Ql.current;return e!==null?e:je.pooledCache}function Yr(e,t){t===null?Q(Ql,Ql.current):Q(Ql,t.pool)}function Dd(){var e=lu();return e===null?null:{parent:nt._currentValue,pool:e}}var Oa=Error(s(460)),au=Error(s(474)),Xr=Error(s(542)),Qr={then:function(){}};function Ld(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hn,Hn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wd(e),e;default:if(typeof t.status=="string")t.then(Hn,Hn);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wd(e),e}throw Kl=t,Oa}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Kl=n,Oa):n}}var Kl=null;function Nd(){if(Kl===null)throw Error(s(459));var e=Kl;return Kl=null,e}function wd(e){if(e===Oa||e===Xr)throw Error(s(483))}var Ca=null,xi=0;function Zr(e){var t=xi;return xi+=1,Ca===null&&(Ca=[]),kd(Ca,e,t)}function Ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Md(e){function t(D,O){if(e){var L=D.deletions;L===null?(D.deletions=[O],D.flags|=16):L.push(O)}}function n(D,O){if(!e)return null;for(;O!==null;)t(D,O),O=O.sibling;return null}function a(D){for(var O=new Map;D!==null;)D.key!==null?O.set(D.key,D):O.set(D.index,D),D=D.sibling;return O}function o(D,O){return D=Gn(D,O),D.index=0,D.sibling=null,D}function c(D,O,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<O?(D.flags|=67108866,O):L):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function m(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function _(D,O,L,H){return O===null||O.tag!==6?(O=Xo(L,D.mode,H),O.return=D,O):(O=o(O,L),O.return=D,O)}function x(D,O,L,H){var ie=L.type;return ie===U?j(D,O,L.props.children,H,L.key):O!==null&&(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type)?(O=o(O,L.props),Ti(O,L),O.return=D,O):(O=Gr(L.type,L.key,L.props,null,D.mode,H),Ti(O,L),O.return=D,O)}function k(D,O,L,H){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Qo(L,D.mode,H),O.return=D,O):(O=o(O,L.children||[]),O.return=D,O)}function j(D,O,L,H,ie){return O===null||O.tag!==7?(O=ql(L,D.mode,H,ie),O.return=D,O):(O=o(O,L),O.return=D,O)}function V(D,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Xo(""+O,D.mode,L),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case A:return L=Gr(O.type,O.key,O.props,null,D.mode,L),Ti(L,O),L.return=D,L;case C:return O=Qo(O,D.mode,L),O.return=D,O;case Ue:return O=Zl(O),V(D,O,L)}if(Fe(O)||Ke(O))return O=ql(O,D.mode,L,null),O.return=D,O;if(typeof O.then=="function")return V(D,Zr(O),L);if(O.$$typeof===q)return V(D,Pr(D,O),L);Kr(D,O)}return null}function N(D,O,L,H){var ie=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ie!==null?null:_(D,O,""+L,H);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case A:return L.key===ie?x(D,O,L,H):null;case C:return L.key===ie?k(D,O,L,H):null;case Ue:return L=Zl(L),N(D,O,L,H)}if(Fe(L)||Ke(L))return ie!==null?null:j(D,O,L,H,null);if(typeof L.then=="function")return N(D,O,Zr(L),H);if(L.$$typeof===q)return N(D,O,Pr(D,L),H);Kr(D,L)}return null}function M(D,O,L,H,ie){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return D=D.get(L)||null,_(O,D,""+H,ie);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case A:return D=D.get(H.key===null?L:H.key)||null,x(O,D,H,ie);case C:return D=D.get(H.key===null?L:H.key)||null,k(O,D,H,ie);case Ue:return H=Zl(H),M(D,O,L,H,ie)}if(Fe(H)||Ke(H))return D=D.get(L)||null,j(O,D,H,ie,null);if(typeof H.then=="function")return M(D,O,L,Zr(H),ie);if(H.$$typeof===q)return M(D,O,L,Pr(O,H),ie);Kr(O,H)}return null}function F(D,O,L,H){for(var ie=null,Ee=null,le=O,de=O=0,ve=null;le!==null&&de<L.length;de++){le.index>de?(ve=le,le=null):ve=le.sibling;var xe=N(D,le,L[de],H);if(xe===null){le===null&&(le=ve);break}e&&le&&xe.alternate===null&&t(D,le),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe,le=ve}if(de===L.length)return n(D,le),Se&&In(D,de),ie;if(le===null){for(;de<L.length;de++)le=V(D,L[de],H),le!==null&&(O=c(le,O,de),Ee===null?ie=le:Ee.sibling=le,Ee=le);return Se&&In(D,de),ie}for(le=a(le);de<L.length;de++)ve=M(le,D,de,L[de],H),ve!==null&&(e&&ve.alternate!==null&&le.delete(ve.key===null?de:ve.key),O=c(ve,O,de),Ee===null?ie=ve:Ee.sibling=ve,Ee=ve);return e&&le.forEach(function(Ml){return t(D,Ml)}),Se&&In(D,de),ie}function se(D,O,L,H){if(L==null)throw Error(s(151));for(var ie=null,Ee=null,le=O,de=O=0,ve=null,xe=L.next();le!==null&&!xe.done;de++,xe=L.next()){le.index>de?(ve=le,le=null):ve=le.sibling;var Ml=N(D,le,xe.value,H);if(Ml===null){le===null&&(le=ve);break}e&&le&&Ml.alternate===null&&t(D,le),O=c(Ml,O,de),Ee===null?ie=Ml:Ee.sibling=Ml,Ee=Ml,le=ve}if(xe.done)return n(D,le),Se&&In(D,de),ie;if(le===null){for(;!xe.done;de++,xe=L.next())xe=V(D,xe.value,H),xe!==null&&(O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return Se&&In(D,de),ie}for(le=a(le);!xe.done;de++,xe=L.next())xe=M(le,D,de,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&le.delete(xe.key===null?de:xe.key),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return e&&le.forEach(function(zv){return t(D,zv)}),Se&&In(D,de),ie}function ze(D,O,L,H){if(typeof L=="object"&&L!==null&&L.type===U&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case A:e:{for(var ie=L.key;O!==null;){if(O.key===ie){if(ie=L.type,ie===U){if(O.tag===7){n(D,O.sibling),H=o(O,L.props.children),H.return=D,D=H;break e}}else if(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type){n(D,O.sibling),H=o(O,L.props),Ti(H,L),H.return=D,D=H;break e}n(D,O);break}else t(D,O);O=O.sibling}L.type===U?(H=ql(L.props.children,D.mode,H,L.key),H.return=D,D=H):(H=Gr(L.type,L.key,L.props,null,D.mode,H),Ti(H,L),H.return=D,D=H)}return m(D);case C:e:{for(ie=L.key;O!==null;){if(O.key===ie)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){n(D,O.sibling),H=o(O,L.children||[]),H.return=D,D=H;break e}else{n(D,O);break}else t(D,O);O=O.sibling}H=Qo(L,D.mode,H),H.return=D,D=H}return m(D);case Ue:return L=Zl(L),ze(D,O,L,H)}if(Fe(L))return F(D,O,L,H);if(Ke(L)){if(ie=Ke(L),typeof ie!="function")throw Error(s(150));return L=ie.call(L),se(D,O,L,H)}if(typeof L.then=="function")return ze(D,O,Zr(L),H);if(L.$$typeof===q)return ze(D,O,Pr(D,L),H);Kr(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(n(D,O.sibling),H=o(O,L),H.return=D,D=H):(n(D,O),H=Xo(L,D.mode,H),H.return=D,D=H),m(D)):n(D,O)}return function(D,O,L,H){try{xi=0;var ie=ze(D,O,L,H);return Ca=null,ie}catch(le){if(le===Oa||le===Xr)throw le;var Ee=Pt(29,le,null,D.mode);return Ee.lanes=H,Ee.return=D,Ee}finally{}}}var $l=Md(!0),zd=Md(!1),_l=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ru(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Vr(e),yd(e,null,n),t}return Hr(e,a,t,n),Vr(e)}function Ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ii(e,n)}}function su(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ou=!1;function Ri(){if(ou){var e=Ra;if(e!==null)throw e}}function Oi(e,t,n,a){ou=!1;var o=e.updateQueue;_l=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var x=_,k=x.next;x.next=null,m===null?c=k:m.next=k,m=x;var j=e.alternate;j!==null&&(j=j.updateQueue,_=j.lastBaseUpdate,_!==m&&(_===null?j.firstBaseUpdate=k:_.next=k,j.lastBaseUpdate=x))}if(c!==null){var V=o.baseState;m=0,j=k=x=null,_=c;do{var N=_.lane&-536870913,M=N!==_.lane;if(M?(ye&N)===N:(a&N)===N){N!==0&&N===Aa&&(ou=!0),j!==null&&(j=j.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var F=e,se=_;N=t;var ze=n;switch(se.tag){case 1:if(F=se.payload,typeof F=="function"){V=F.call(ze,V,N);break e}V=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=se.payload,N=typeof F=="function"?F.call(ze,V,N):F,N==null)break e;V=b({},V,N);break e;case 2:_l=!0}}N=_.callback,N!==null&&(e.flags|=64,M&&(e.flags|=8192),M=o.callbacks,M===null?o.callbacks=[N]:M.push(N))}else M={lane:N,tag:_.tag,payload:_.payload,callback:_.callback,next:null},j===null?(k=j=M,x=V):j=j.next=M,m|=N;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;M=_,_=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);j===null&&(x=V),o.baseState=x,o.firstBaseUpdate=k,o.lastBaseUpdate=j,c===null&&(o.shared.lanes=0),Tl|=m,e.lanes=m,e.memoizedState=V}}function jd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Ud(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jd(n[e],t)}var Da=T(null),$r=T(0);function Bd(e,t){e=Fn,Q($r,e),Q(Da,t),Fn=e|t.baseLanes}function uu(){Q($r,Fn),Q(Da,Da.current)}function cu(){Fn=$r.current,G(Da),G($r)}var Yt=T(null),un=null;function bl(e){var t=e.alternate;Q(Je,Je.current&1),Q(Yt,e),un===null&&(t===null||Da.current!==null||t.memoizedState!==null)&&(un=e)}function fu(e){Q(Je,Je.current),Q(Yt,e),un===null&&(un=e)}function Hd(e){e.tag===22?(Q(Je,Je.current),Q(Yt,e),un===null&&(un=e)):Sl()}function Sl(){Q(Je,Je.current),Q(Yt,Yt.current)}function Xt(e){G(Yt),un===e&&(un=null),G(Je)}var Je=T(0);function Jr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_c(n)||yc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yn=0,ce=null,we=null,lt=null,Wr=!1,La=!1,Jl=!1,Fr=0,Ci=0,ka=null,Ay=0;function Qe(){throw Error(s(321))}function du(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function hu(e,t,n,a,o,c){return Yn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Eh:Cu,Jl=!1,c=n(a,o),Jl=!1,La&&(c=Gd(t,n,a,o)),Vd(e),c}function Vd(e){z.H=ki;var t=we!==null&&we.next!==null;if(Yn=0,lt=we=ce=null,Wr=!1,Ci=0,ka=null,t)throw Error(s(300));e===null||at||(e=e.dependencies,e!==null&&qr(e)&&(at=!0))}function Gd(e,t,n,a){ce=e;var o=0;do{if(La&&(ka=null),Ci=0,La=!1,25<=o)throw Error(s(301));if(o+=1,lt=we=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=xh,c=t(n,a)}while(La);return c}function Ry(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Di(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ce.flags|=1024),t}function pu(){var e=Fr!==0;return Fr=0,e}function mu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function gu(e){if(Wr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wr=!1}Yn=0,lt=we=ce=null,La=!1,Ci=Fr=0,ka=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ce.memoizedState=lt=e:lt=lt.next=e,lt}function We(){if(we===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=lt===null?ce.memoizedState:lt.next;if(t!==null)lt=t,we=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},lt===null?ce.memoizedState=lt=e:lt=lt.next=e}return lt}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Di(e){var t=Ci;return Ci+=1,ka===null&&(ka=[]),e=kd(ka,e,t),t=ce,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Eh:Cu),e}function ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Di(e);if(e.$$typeof===q)return vt(e)}throw Error(s(438,String(e)))}function _u(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=es(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Lt;return t.index++,n}function Xn(e,t){return typeof t=="function"?t(e):t}function ns(e){var t=We();return yu(t,we,e)}function yu(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var _=m=null,x=null,k=t,j=!1;do{var V=k.lane&-536870913;if(V!==k.lane?(ye&V)===V:(Yn&V)===V){var N=k.revertLane;if(N===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),V===Aa&&(j=!0);else if((Yn&N)===N){k=k.next,N===Aa&&(j=!0);continue}else V={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(_=x=V,m=c):x=x.next=V,ce.lanes|=N,Tl|=N;V=k.action,Jl&&n(c,V),c=k.hasEagerState?k.eagerState:n(c,V)}else N={lane:V,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(_=x=N,m=c):x=x.next=N,ce.lanes|=V,Tl|=V;k=k.next}while(k!==null&&k!==t);if(x===null?m=c:x.next=_,!qt(c,e.memoizedState)&&(at=!0,j&&(n=Ra,n!==null)))throw n;e.memoizedState=c,e.baseState=m,e.baseQueue=x,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function vu(e){var t=We(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);qt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Id(e,t,n){var a=ce,o=We(),c=Se;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!qt((we||o).memoizedState,n);if(m&&(o.memoizedState=n,at=!0),o=o.queue,Eu(Yd.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||lt!==null&<.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},Pd.bind(null,a,o,n,t),null),je===null)throw Error(s(349));c||(Yn&127)!==0||qd(a,t,n)}return n}function qd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=es(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pd(e,t,n,a){t.value=n,t.getSnapshot=a,Xd(t)&&Qd(e)}function Yd(e,t,n){return n(function(){Xd(t)&&Qd(e)})}function Xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function Qd(e){var t=Il(e,2);t!==null&&Ht(t,e,2)}function bu(e){var t=Tt();if(typeof e=="function"){var n=e;if(e=n(),Jl){dt(!0);try{n()}finally{dt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},t}function Zd(e,t,n,a){return e.baseState=n,yu(e,we,typeof a=="function"?a:Xn)}function Oy(e,t,n,a,o){if(is(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};z.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Kd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Kd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=z.T,m={};z.T=m;try{var _=n(o,a),x=z.S;x!==null&&x(m,_),$d(e,t,_)}catch(k){Su(e,t,k)}finally{c!==null&&m.types!==null&&(c.types=m.types),z.T=c}}else try{c=n(o,a),$d(e,t,c)}catch(k){Su(e,t,k)}}function $d(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Jd(e,t,a)},function(a){return Su(e,t,a)}):Jd(e,t,n)}function Jd(e,t,n){t.status="fulfilled",t.value=n,Wd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Kd(e,n)))}function Su(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Wd(t),t=t.next;while(t!==a)}e.action=null}function Wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Fd(e,t){return t}function eh(e,t){if(Se){var n=je.formState;if(n!==null){e:{var a=ce;if(Se){if(He){t:{for(var o=He,c=on;o.nodeType!==8;){if(!c){o=null;break t}if(o=cn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){He=cn(o.nextSibling),a=o.data==="F!";break e}}ml(a)}a=!1}a&&(t=n[0])}}return n=Tt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fd,lastRenderedState:t},n.queue=a,n=vh.bind(null,ce,a),a.dispatch=n,a=bu(!1),c=Ou.bind(null,ce,!1,a.queue),a=Tt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Oy.bind(null,ce,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function th(e){var t=We();return nh(t,we,e)}function nh(e,t,n){if(t=yu(e,t,Fd)[0],e=ns(Xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Di(t)}catch(m){throw m===Oa?Xr:m}else a=t;t=We();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,Na(9,{destroy:void 0},Cy.bind(null,o,n),null)),[a,c,e]}function Cy(e,t){e.action=t}function lh(e){var t=We(),n=we;if(n!==null)return nh(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Na(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=es(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function ah(){return We().memoizedState}function ls(e,t,n,a){var o=Tt();ce.flags|=e,o.memoizedState=Na(1|t,{destroy:void 0},n,a===void 0?null:a)}function as(e,t,n,a){var o=We();a=a===void 0?null:a;var c=o.memoizedState.inst;we!==null&&a!==null&&du(a,we.memoizedState.deps)?o.memoizedState=Na(t,c,n,a):(ce.flags|=e,o.memoizedState=Na(1|t,c,n,a))}function ih(e,t){ls(8390656,8,e,t)}function Eu(e,t){as(2048,8,e,t)}function Dy(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=es(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function rh(e){var t=We().memoizedState;return Dy({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function sh(e,t){return as(4,2,e,t)}function oh(e,t){return as(4,4,e,t)}function uh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ch(e,t,n){n=n!=null?n.concat([e]):null,as(4,4,uh.bind(null,t,e),n)}function xu(){}function fh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&du(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function dh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&du(t,a[1]))return a[0];if(a=e(),Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a}function Tu(e,t,n){return n===void 0||(Yn&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=hp(),ce.lanes|=e,Tl|=e,n)}function hh(e,t,n,a){return qt(n,t)?n:Da.current!==null?(e=Tu(e,n,a),qt(e,t)||(at=!0),e):(Yn&42)===0||(Yn&1073741824)!==0&&(ye&261930)===0?(at=!0,e.memoizedState=n):(e=hp(),ce.lanes|=e,Tl|=e,t)}function ph(e,t,n,a,o){var c=K.p;K.p=c!==0&&8>c?c:8;var m=z.T,_={};z.T=_,Ou(e,!1,t,n);try{var x=o(),k=z.S;if(k!==null&&k(_,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var j=Ty(x,a);Li(e,t,j,Kt(e))}else Li(e,t,a,Kt(e))}catch(V){Li(e,t,{then:function(){},status:"rejected",reason:V},Kt())}finally{K.p=c,m!==null&&_.types!==null&&(m.types=_.types),z.T=m}}function Ly(){}function Au(e,t,n,a){if(e.tag!==5)throw Error(s(476));var o=mh(e).queue;ph(e,o,t,re,n===null?Ly:function(){return gh(e),n(a)})}function mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function gh(e){var t=mh(e);t.next===null&&(t=e.alternate.memoizedState),Li(e,t.next.queue,{},Kt())}function Ru(){return vt(Qi)}function _h(){return We().memoizedState}function yh(){return We().memoizedState}function ky(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=yl(n);var a=vl(t,e,n);a!==null&&(Ht(a,t,n),Ai(a,t,n)),t={cache:tu()},e.payload=t;return}t=t.return}}function Ny(e,t,n){var a=Kt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},is(e)?bh(t,n):(n=Po(e,t,n,a),n!==null&&(Ht(n,e,a),Sh(n,t,a)))}function vh(e,t,n){var a=Kt();Li(e,t,n,a)}function Li(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))bh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,_=c(m,n);if(o.hasEagerState=!0,o.eagerState=_,qt(_,m))return Hr(e,t,o,0),je===null&&Br(),!1}catch{}finally{}if(n=Po(e,t,o,a),n!==null)return Ht(n,e,a),Sh(n,t,a),!0}return!1}function Ou(e,t,n,a){if(a={lane:2,revertLane:ic(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},is(e)){if(t)throw Error(s(479))}else t=Po(e,n,a,2),t!==null&&Ht(t,e,2)}function is(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function bh(e,t){La=Wr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ii(e,n)}}var ki={readContext:vt,use:ts,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ki.useEffectEvent=Qe;var Eh={readContext:vt,use:ts,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:ih,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ls(4194308,4,uh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=Tt();t=t===void 0?null:t;var a=e();if(Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Tt();if(n!==void 0){var o=n(t);if(Jl){dt(!0);try{n(t)}finally{dt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Ny.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=bu(e);var t=e.queue,n=vh.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:xu,useDeferredValue:function(e,t){var n=Tt();return Tu(n,e,t)},useTransition:function(){var e=bu(!1);return e=ph.bind(null,ce,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,o=Tt();if(Se){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),je===null)throw Error(s(349));(ye&127)!==0||qd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,ih(Yd.bind(null,a,c,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},Pd.bind(null,a,c,n,t),null),n},useId:function(){var e=Tt(),t=je.identifierPrefix;if(Se){var n=xn,a=En;n=(a&~(1<<32-et(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Fr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Ay++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ru,useFormState:eh,useActionState:eh,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ou.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:_u,useCacheRefresh:function(){return Tt().memoizedState=ky.bind(null,ce)},useEffectEvent:function(e){var t=Tt(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Cu={readContext:vt,use:ts,useCallback:fh,useContext:vt,useEffect:Eu,useImperativeHandle:ch,useInsertionEffect:sh,useLayoutEffect:oh,useMemo:dh,useReducer:ns,useRef:ah,useState:function(){return ns(Xn)},useDebugValue:xu,useDeferredValue:function(e,t){var n=We();return hh(n,we.memoizedState,e,t)},useTransition:function(){var e=ns(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Id,useId:_h,useHostTransitionStatus:Ru,useFormState:th,useActionState:th,useOptimistic:function(e,t){var n=We();return Zd(n,we,e,t)},useMemoCache:_u,useCacheRefresh:yh};Cu.useEffectEvent=rh;var xh={readContext:vt,use:ts,useCallback:fh,useContext:vt,useEffect:Eu,useImperativeHandle:ch,useInsertionEffect:sh,useLayoutEffect:oh,useMemo:dh,useReducer:vu,useRef:ah,useState:function(){return vu(Xn)},useDebugValue:xu,useDeferredValue:function(e,t){var n=We();return we===null?Tu(n,e,t):hh(n,we.memoizedState,e,t)},useTransition:function(){var e=vu(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Id,useId:_h,useHostTransitionStatus:Ru,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var n=We();return we!==null?Zd(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_u,useCacheRefresh:yh};xh.useEffectEvent=rh;function Du(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ai(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ai(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),a=yl(n);a.tag=2,t!=null&&(a.callback=t),t=vl(e,a,n),t!==null&&(Ht(t,e,n),Ai(t,e,n))}};function Th(e,t,n,a,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,m):t.prototype&&t.prototype.isPureReactComponent?!_i(n,a)||!_i(o,c):!0}function Ah(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Lu.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Rh(e){Ur(e)}function Oh(e){console.error(e)}function Ch(e){Ur(e)}function rs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Dh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function ku(e,t,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){rs(e,t)},n}function Lh(e){return e=yl(e),e.tag=3,e}function kh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Dh(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Dh(t,n,a),typeof o!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var _=a.stack;this.componentDidCatch(a.value,{componentStack:_!==null?_:""})})}function wy(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ta(t,n,o,!0),n=Yt.current,n!==null){switch(n.tag){case 31:case 13:return un===null?ys():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Qr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),nc(e,a,o)),!1;case 22:return n.flags|=65536,a===Qr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),nc(e,a,o)),!1}throw Error(s(435,n.tag))}return nc(e,a,o),ys(),!1}if(Se)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==$o&&(e=Error(s(422),{cause:a}),bi(an(e,n)))):(a!==$o&&(t=Error(s(423),{cause:a}),bi(an(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=an(a,n),o=ku(e.stateNode,a,o),su(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(s(520),{cause:a});if(c=an(c,n),Hi===null?Hi=[c]:Hi.push(c),Ze!==4&&(Ze=2),t===null)return!0;a=an(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=ku(n.stateNode,a,e),su(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Al===null||!Al.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Lh(o),kh(o,e,n,a),su(n,o),!1}n=n.return}while(n!==null);return!1}var Nu=Error(s(461)),at=!1;function bt(e,t,n,a){t.child=e===null?zd(t,null,n,a):$l(t,e.child,n,a)}function Nh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var m={};for(var _ in a)_!=="ref"&&(m[_]=a[_])}else m=a;return Xl(t),a=hu(e,t,n,m,c,o),_=pu(),e!==null&&!at?(mu(e,t,o),Qn(e,t,o)):(Se&&_&&Zo(t),t.flags|=1,bt(e,t,a,o),t.child)}function wh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Yo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Mh(e,t,c,a,o)):(e=Gr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Vu(e,o)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:_i,n(m,a)&&e.ref===t.ref)return Qn(e,t,o)}return t.flags|=1,e=Gn(c,a),e.ref=t.ref,e.return=t,t.child=e}function Mh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(_i(c,a)&&e.ref===t.ref)if(at=!1,t.pendingProps=a=c,Vu(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Qn(e,t,o)}return wu(e,t,n,a,o)}function zh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return jh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,c!==null?c.cachePool:null),c!==null?Bd(t,c):uu(),Hd(t);else return a=t.lanes=536870912,jh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Yr(t,c.cachePool),Bd(t,c),Sl(),t.memoizedState=null):(e!==null&&Yr(t,null),uu(),Sl());return bt(e,t,o,n),t.child}function Ni(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function jh(e,t,n,a,o){var c=lu();return c=c===null?null:{parent:nt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Yr(t,null),uu(),Hd(t),e!==null&&Ta(e,t,a,!0),t.childLanes=o,null}function ss(e,t){return t=us({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Uh(e,t,n){return $l(t,e.child,null,n),e=ss(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function My(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=ss(t,a),t.lanes=536870912,Ni(null,e);if(fu(t),(e=He)?(e=Kp(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=bd(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return ss(t,a)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(fu(t),o)if(t.flags&256)t.flags&=-257,t=Uh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(at||Ta(e,t,n,!1),o=(n&e.childLanes)!==0,at||o){if(a=je,a!==null&&(m=xr(a,n),m!==0&&m!==c.retryLane))throw c.retryLane=m,Il(e,m),Ht(a,e,m),Nu;ys(),t=Uh(e,t,n)}else e=c.treeContext,He=cn(m.nextSibling),yt=t,Se=!0,pl=null,on=!1,e!==null&&xd(t,e),t=ss(t,a),t.flags|=4096;return t}return e=Gn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function os(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function wu(e,t,n,a,o){return Xl(t),n=hu(e,t,n,a,void 0,o),a=pu(),e!==null&&!at?(mu(e,t,o),Qn(e,t,o)):(Se&&a&&Zo(t),t.flags|=1,bt(e,t,n,o),t.child)}function Bh(e,t,n,a,o,c){return Xl(t),t.updateQueue=null,n=Gd(t,a,n,o),Vd(e),a=pu(),e!==null&&!at?(mu(e,t,c),Qn(e,t,c)):(Se&&a&&Zo(t),t.flags|=1,bt(e,t,n,c),t.child)}function Hh(e,t,n,a,o){if(Xl(t),t.stateNode===null){var c=ba,m=n.contextType;typeof m=="object"&&m!==null&&(c=vt(m)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Lu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},iu(t),m=n.contextType,c.context=typeof m=="object"&&m!==null?vt(m):ba,c.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Du(t,n,m,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Lu.enqueueReplaceState(c,c.state,null),Oi(t,a,c,o),Ri(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var _=t.memoizedProps,x=Wl(n,_);c.props=x;var k=c.context,j=n.contextType;m=ba,typeof j=="object"&&j!==null&&(m=vt(j));var V=n.getDerivedStateFromProps;j=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(_||k!==m)&&Ah(t,c,a,m),_l=!1;var N=t.memoizedState;c.state=N,Oi(t,a,c,o),Ri(),k=t.memoizedState,_||N!==k||_l?(typeof V=="function"&&(Du(t,n,V,a),k=t.memoizedState),(x=_l||Th(t,n,x,a,N,k,m))?(j||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),c.props=a,c.state=k,c.context=m,a=x):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,ru(e,t),m=t.memoizedProps,j=Wl(n,m),c.props=j,V=t.pendingProps,N=c.context,k=n.contextType,x=ba,typeof k=="object"&&k!==null&&(x=vt(k)),_=n.getDerivedStateFromProps,(k=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==V||N!==x)&&Ah(t,c,a,x),_l=!1,N=t.memoizedState,c.state=N,Oi(t,a,c,o),Ri();var M=t.memoizedState;m!==V||N!==M||_l||e!==null&&e.dependencies!==null&&qr(e.dependencies)?(typeof _=="function"&&(Du(t,n,_,a),M=t.memoizedState),(j=_l||Th(t,n,j,a,N,M,x)||e!==null&&e.dependencies!==null&&qr(e.dependencies))?(k||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,M,x),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,M,x)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),c.props=a,c.state=M,c.context=x,a=j):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,os(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=$l(t,e.child,null,o),t.child=$l(t,null,n,o)):bt(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Qn(e,t,o),e}function Vh(e,t,n,a){return Pl(),t.flags|=256,bt(e,t,n,a),t.child}var Mu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zu(e){return{baseLanes:e,cachePool:Dd()}}function ju(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Gh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(o?bl(t):Sl(),(e=He)?(e=Kp(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=bd(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw ml(t);return yc(e)?t.lanes=32:t.lanes=536870912,null}var _=a.children;return a=a.fallback,o?(Sl(),o=t.mode,_=us({mode:"hidden",children:_},o),a=ql(a,o,n,null),_.return=t,a.return=t,_.sibling=a,t.child=_,a=t.child,a.memoizedState=zu(n),a.childLanes=ju(e,m,n),t.memoizedState=Mu,Ni(null,a)):(bl(t),Uu(t,_))}var x=e.memoizedState;if(x!==null&&(_=x.dehydrated,_!==null)){if(c)t.flags&256?(bl(t),t.flags&=-257,t=Bu(e,t,n)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),_=a.fallback,o=t.mode,a=us({mode:"visible",children:a.children},o),_=ql(_,o,n,null),_.flags|=2,a.return=t,_.return=t,a.sibling=_,t.child=a,$l(t,e.child,null,n),a=t.child,a.memoizedState=zu(n),a.childLanes=ju(e,m,n),t.memoizedState=Mu,t=Ni(null,a));else if(bl(t),yc(_)){if(m=_.nextSibling&&_.nextSibling.dataset,m)var k=m.dgst;m=k,a=Error(s(419)),a.stack="",a.digest=m,bi({value:a,source:null,stack:null}),t=Bu(e,t,n)}else if(at||Ta(e,t,n,!1),m=(n&e.childLanes)!==0,at||m){if(m=je,m!==null&&(a=xr(m,n),a!==0&&a!==x.retryLane))throw x.retryLane=a,Il(e,a),Ht(m,e,a),Nu;_c(_)||ys(),t=Bu(e,t,n)}else _c(_)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,He=cn(_.nextSibling),yt=t,Se=!0,pl=null,on=!1,e!==null&&xd(t,e),t=Uu(t,a.children),t.flags|=4096);return t}return o?(Sl(),_=a.fallback,o=t.mode,x=e.child,k=x.sibling,a=Gn(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,k!==null?_=Gn(k,_):(_=ql(_,o,n,null),_.flags|=2),_.return=t,a.return=t,a.sibling=_,t.child=a,Ni(null,a),a=t.child,_=e.child.memoizedState,_===null?_=zu(n):(o=_.cachePool,o!==null?(x=nt._currentValue,o=o.parent!==x?{parent:x,pool:x}:o):o=Dd(),_={baseLanes:_.baseLanes|n,cachePool:o}),a.memoizedState=_,a.childLanes=ju(e,m,n),t.memoizedState=Mu,Ni(e.child,a)):(bl(t),n=e.child,e=n.sibling,n=Gn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function Uu(e,t){return t=us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function us(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Bu(e,t,n){return $l(t,e.child,null,n),e=Uu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ih(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Fo(e.return,t,n)}function Hu(e,t,n,a,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=c)}function qh(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var m=Je.current,_=(m&2)!==0;if(_?(m=m&1|2,t.flags|=128):m&=1,Q(Je,m),bt(e,t,a,n),a=Se?vi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ih(e,n,t);else if(e.tag===19)Ih(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Jr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hu(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Jr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hu(t,!0,n,null,c,a);break;case"together":Hu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qr(e)))}function zy(e,t,n){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),gl(t,nt,e.memoizedState.cache),Pl();break;case 27:case 5:Ln(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(bl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Gh(e,t,n):(bl(t),e=Qn(e,t,n),e!==null?e.sibling:null);bl(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ta(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return qh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(Je,Je.current),a)break;return null;case 22:return t.lanes=0,zh(e,t,n,t.pendingProps);case 24:gl(t,nt,e.memoizedState.cache)}return Qn(e,t,n)}function Ph(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Vu(e,n)&&(t.flags&128)===0)return at=!1,zy(e,t,n);at=(e.flags&131072)!==0}else at=!1,Se&&(t.flags&1048576)!==0&&Ed(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Yo(e)?(a=Wl(e,a),t.tag=1,t=Hh(null,t,e,a,n)):(t.tag=0,t=wu(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===X){t.tag=11,t=Nh(null,t,e,a,n);break e}else if(o===te){t.tag=14,t=wh(null,t,e,a,n);break e}}throw t=Ye(e)||e,Error(s(306,t,""))}}return t;case 0:return wu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Wl(a,t.pendingProps),Hh(e,t,a,o,n);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,ru(e,t),Oi(t,a,null,n);var m=t.memoizedState;if(a=m.cache,gl(t,nt,a),a!==c.cache&&eu(t,[nt],n,!0),Ri(),a=m.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Vh(e,t,a,n);break e}else if(a!==o){o=an(Error(s(424)),t),bi(o),t=Vh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=cn(e.firstChild),yt=t,Se=!0,pl=null,on=!0,n=zd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pl(),a===o){t=Qn(e,t,n);break e}bt(e,t,a,n)}t=t.child}return t;case 26:return os(e,t),e===null?(n=tm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=As(ue.current).createElement(n),a[tt]=t,a[qe]=e,St(a,n,e),pe(a),t.stateNode=a):t.memoizedState=tm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ln(t),e===null&&Se&&(a=t.stateNode=Wp(t.type,t.pendingProps,ue.current),yt=t,on=!0,o=He,Dl(t.type)?(vc=o,He=cn(a.firstChild)):He=o),bt(e,t,t.pendingProps.children,n),os(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((o=a=He)&&(a=fv(a,t.type,t.pendingProps,on),a!==null?(t.stateNode=a,yt=t,He=cn(a.firstChild),on=!1,o=!0):o=!1),o||ml(t)),Ln(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,a=c.children,pc(o,c)?a=null:m!==null&&pc(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=hu(e,t,Ry,null,null,n),Qi._currentValue=o),os(e,t),bt(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=He)&&(n=dv(n,t.pendingProps,on),n!==null?(t.stateNode=n,yt=t,He=null,e=!0):e=!1),e||ml(t)),null;case 13:return Gh(e,t,n);case 4:return Ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,n):bt(e,t,a,n),t.child;case 11:return Nh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),bt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Xl(t),o=vt(o),a=a(o),t.flags|=1,bt(e,t,a,n),t.child;case 14:return wh(e,t,t.type,t.pendingProps,n);case 15:return Mh(e,t,t.type,t.pendingProps,n);case 19:return qh(e,t,n);case 31:return My(e,t,n);case 22:return zh(e,t,n,t.pendingProps);case 24:return Xl(t),a=vt(nt),e===null?(o=lu(),o===null&&(o=je,c=tu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},iu(t),gl(t,nt,o)):((e.lanes&n)!==0&&(ru(e,t),Oi(t,null,null,n),Ri()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),gl(t,nt,a)):(a=c.cache,gl(t,nt,a),a!==o.cache&&eu(t,[nt],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Zn(e){e.flags|=4}function Gu(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(_p())e.flags|=8192;else throw Kl=Qr,au}else e.flags&=-16777217}function Yh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rm(t))if(_p())e.flags|=8192;else throw Kl=Qr,au}function cs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jn():536870912,e.lanes|=t,ja|=t)}function wi(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function jy(e,t,n){var a=t.pendingProps;switch(Ko(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(nt),Ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(xa(t)?Zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Zn(t),c!==null?(Ve(t),Yh(t,c)):(Ve(t),Gu(t,o,null,a,n))):c?c!==e.memoizedState?(Zn(t),Ve(t),Yh(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Zn(t),Ve(t),Gu(t,o,e,a,n)),null;case 27:if(zl(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=W.current,xa(t)?Td(t):(e=Wp(o,a,n),t.stateNode=e,Zn(t))}return Ve(t),null;case 5:if(zl(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(c=W.current,xa(t))Td(t);else{var m=As(ue.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}c[tt]=t,c[qe]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(St(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Zn(t)}}return Ve(t),Gu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,xa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=yt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Gp(e.nodeValue,n)),e||ml(t,!0)}else e=As(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=xa(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=xa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cs(t,t.updateQueue),Ve(t),null);case 4:return Ie(),e===null&&uc(t.stateNode.containerInfo),Ve(t),null;case 10:return Pn(t.type),Ve(t),null;case 19:if(G(Je),a=t.memoizedState,a===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)wi(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Jr(e),c!==null){for(t.flags|=128,wi(a,!1),e=c.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vd(n,e),n=n.sibling;return Q(Je,Je.current&1|2),Se&&In(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>ms&&(t.flags|=128,o=!0,wi(a,!1),t.lanes=4194304)}else{if(!o)if(e=Jr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cs(t,e),wi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Se)return Ve(t),null}else 2*gt()-a.renderingStartTime>ms&&n!==536870912&&(t.flags|=128,o=!0,wi(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,n=Je.current,Q(Je,o?n&1|2:n&1),Se&&In(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return Xt(t),cu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&cs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&G(Ql),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pn(nt),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Uy(e,t){switch(Ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(nt),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zl(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Je),null;case 4:return Ie(),null;case 10:return Pn(t.type),null;case 22:case 23:return Xt(t),cu(),e!==null&&G(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(nt),null;case 25:return null;default:return null}}function Xh(e,t){switch(Ko(t),t.tag){case 3:Pn(nt),Ie();break;case 26:case 27:case 5:zl(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(Je);break;case 10:Pn(t.type);break;case 22:case 23:Xt(t),cu(),e!==null&&G(Ql);break;case 24:Pn(nt)}}function Mi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,m=n.inst;a=c(),m.destroy=a}n=n.next}while(n!==o)}}catch(_){Ne(t,t.return,_)}}function El(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var m=a.inst,_=m.destroy;if(_!==void 0){m.destroy=void 0,o=t;var x=n,k=_;try{k()}catch(j){Ne(o,x,j)}}}a=a.next}while(a!==c)}}catch(j){Ne(t,t.return,j)}}function Qh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ud(t,n)}catch(a){Ne(e,e.return,a)}}}function Zh(e,t,n){n.props=Wl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function zi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Ne(e,t,o)}}function Tn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Ne(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ne(e,t,o)}else n.current=null}function Kh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Ne(e,e.return,o)}}function Iu(e,t,n){try{var a=e.stateNode;iv(a,e.type,n,t),a[qe]=t}catch(o){Ne(e,e.return,o)}}function $h(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$h(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hn));else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Pu(e,t,n),e=e.sibling;e!==null;)Pu(e,t,n),e=e.sibling}function fs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function Jh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);St(t,a,n),t[tt]=e,t[qe]=n}catch(c){Ne(e,e.return,c)}}var Kn=!1,it=!1,Yu=!1,Wh=typeof WeakSet=="function"?WeakSet:Set,ht=null;function By(e,t){if(e=e.containerInfo,dc=Ns,e=cd(e),Bo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,_=-1,x=-1,k=0,j=0,V=e,N=null;t:for(;;){for(var M;V!==n||o!==0&&V.nodeType!==3||(_=m+o),V!==c||a!==0&&V.nodeType!==3||(x=m+a),V.nodeType===3&&(m+=V.nodeValue.length),(M=V.firstChild)!==null;)N=V,V=M;for(;;){if(V===e)break t;if(N===n&&++k===o&&(_=m),N===c&&++j===a&&(x=m),(M=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=M}n=_===-1||x===-1?null:{start:_,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(hc={focusedElem:e,selectionRange:n},Ns=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var F=Wl(n.type,o);e=a.getSnapshotBeforeUpdate(F,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){Ne(n,n.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)gc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function Fh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Jn(e,n),a&4&&Mi(5,n);break;case 1:if(Jn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ne(n,n.return,m)}else{var o=Wl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ne(n,n.return,m)}}a&64&&Qh(n),a&512&&zi(n,n.return);break;case 3:if(Jn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ud(e,t)}catch(m){Ne(n,n.return,m)}}break;case 27:t===null&&a&4&&Jh(n);case 26:case 5:Jn(e,n),t===null&&a&4&&Kh(n),a&512&&zi(n,n.return);break;case 12:Jn(e,n);break;case 31:Jn(e,n),a&4&&np(e,n);break;case 13:Jn(e,n),a&4&&lp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Qy.bind(null,n),hv(e,n))));break;case 22:if(a=n.memoizedState!==null||Kn,!a){t=t!==null&&t.memoizedState!==null||it,o=Kn;var c=it;Kn=a,(it=t)&&!c?Wn(e,n,(n.subtreeFlags&8772)!==0):Jn(e,n),Kn=o,it=c}break;case 30:break;default:Jn(e,n)}}function ep(e){var t=e.alternate;t!==null&&(e.alternate=null,ep(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&R(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,zt=!1;function $n(e,t,n){for(n=n.child;n!==null;)tp(e,t,n),n=n.sibling}function tp(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(bn,n)}catch{}switch(n.tag){case 26:it||Tn(n,t),$n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||Tn(n,t);var a=Pe,o=zt;Dl(n.type)&&(Pe=n.stateNode,zt=!1),$n(e,t,n),Pi(n.stateNode),Pe=a,zt=o;break;case 5:it||Tn(n,t);case 6:if(a=Pe,o=zt,Pe=null,$n(e,t,n),Pe=a,zt=o,Pe!==null)if(zt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(c){Ne(n,t,c)}else try{Pe.removeChild(n.stateNode)}catch(c){Ne(n,t,c)}break;case 18:Pe!==null&&(zt?(e=Pe,Qp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Pa(e)):Qp(Pe,n.stateNode));break;case 4:a=Pe,o=zt,Pe=n.stateNode.containerInfo,zt=!0,$n(e,t,n),Pe=a,zt=o;break;case 0:case 11:case 14:case 15:El(2,n,t),it||El(4,n,t),$n(e,t,n);break;case 1:it||(Tn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Zh(n,t,a)),$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,$n(e,t,n),it=a;break;default:$n(e,t,n)}}function np(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pa(e)}catch(n){Ne(t,t.return,n)}}}function lp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pa(e)}catch(n){Ne(t,t.return,n)}}function Hy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wh),t;default:throw Error(s(435,e.tag))}}function ds(e,t){var n=Hy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=Zy.bind(null,e,a);a.then(o,o)}})}function jt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,m=t,_=m;e:for(;_!==null;){switch(_.tag){case 27:if(Dl(_.type)){Pe=_.stateNode,zt=!1;break e}break;case 5:Pe=_.stateNode,zt=!1;break e;case 3:case 4:Pe=_.stateNode.containerInfo,zt=!0;break e}_=_.return}if(Pe===null)throw Error(s(160));tp(c,m,o),Pe=null,zt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ap(t,e),t=t.sibling}var yn=null;function ap(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Ut(e),a&4&&(El(3,e,e.return),Mi(3,e),El(5,e,e.return));break;case 1:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&64&&Kn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=yn;if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ne]||c[tt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),St(c,a,n),c[tt]=e,pe(c),a=c;break e;case"link":var m=am("link","href",o).get(a+(n.href||""));if(m){for(var _=0;_<m.length;_++)if(c=m[_],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;case"meta":if(m=am("meta","content",o).get(a+(n.content||""))){for(_=0;_<m.length;_++)if(c=m[_],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;default:throw Error(s(468,a))}c[tt]=e,pe(c),a=c}e.stateNode=a}else im(o,e.type,e.stateNode);else e.stateNode=lm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?im(o,e.type,e.stateNode):lm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Iu(e,e.memoizedProps,n.memoizedProps)}break;case 27:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),n!==null&&a&4&&Iu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),e.flags&32){o=e.stateNode;try{ha(o,"")}catch(F){Ne(e,e.return,F)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Iu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Yu=!0);break;case 6:if(jt(t,e),Ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(F){Ne(e,e.return,F)}}break;case 3:if(Cs=null,o=yn,yn=Rs(t.containerInfo),jt(t,e),yn=o,Ut(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Pa(t.containerInfo)}catch(F){Ne(e,e.return,F)}Yu&&(Yu=!1,ip(e));break;case 4:a=yn,yn=Rs(e.stateNode.containerInfo),jt(t,e),Ut(e),yn=a;break;case 12:jt(t,e),Ut(e);break;case 31:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 13:jt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ps=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 22:o=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,k=Kn,j=it;if(Kn=k||o,it=j||x,jt(t,e),it=j,Kn=k,Ut(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||x||Kn||it||Fl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(c=x.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{_=x.stateNode;var V=x.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null;_.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(F){Ne(x,x.return,F)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=o?"":x.memoizedProps}catch(F){Ne(x,x.return,F)}}}else if(t.tag===18){if(n===null){x=t;try{var M=x.stateNode;o?Zp(M,!0):Zp(x.stateNode,!1)}catch(F){Ne(x,x.return,F)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ds(e,n))));break;case 19:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 30:break;case 21:break;default:jt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if($h(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=qu(e);fs(e,c,o);break;case 5:var m=n.stateNode;n.flags&32&&(ha(m,""),n.flags&=-33);var _=qu(e);fs(e,_,m);break;case 3:case 4:var x=n.stateNode.containerInfo,k=qu(e);Pu(e,k,x);break;default:throw Error(s(161))}}catch(j){Ne(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ip(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ip(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fh(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:El(4,t,t.return),Fl(t);break;case 1:Tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Zh(t,t.return,n),Fl(t);break;case 27:Pi(t.stateNode);case 26:case 5:Tn(t,t.return),Fl(t);break;case 22:t.memoizedState===null&&Fl(t);break;case 30:Fl(t);break;default:Fl(t)}e=e.sibling}}function Wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:Wn(o,c,n),Mi(4,c);break;case 1:if(Wn(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){Ne(a,a.return,k)}if(a=c,o=a.updateQueue,o!==null){var _=a.stateNode;try{var x=o.shared.hiddenCallbacks;if(x!==null)for(o.shared.hiddenCallbacks=null,o=0;o<x.length;o++)jd(x[o],_)}catch(k){Ne(a,a.return,k)}}n&&m&64&&Qh(c),zi(c,c.return);break;case 27:Jh(c);case 26:case 5:Wn(o,c,n),n&&a===null&&m&4&&Kh(c),zi(c,c.return);break;case 12:Wn(o,c,n);break;case 31:Wn(o,c,n),n&&m&4&&np(o,c);break;case 13:Wn(o,c,n),n&&m&4&&lp(o,c);break;case 22:c.memoizedState===null&&Wn(o,c,n),zi(c,c.return);break;case 30:break;default:Wn(o,c,n)}t=t.sibling}}function Xu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Si(n))}function Qu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e))}function vn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rp(e,t,n,a),t=t.sibling}function rp(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:vn(e,t,n,a),o&2048&&Mi(9,t);break;case 1:vn(e,t,n,a);break;case 3:vn(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e)));break;case 12:if(o&2048){vn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,_=c.onPostCommit;typeof _=="function"&&_(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else vn(e,t,n,a);break;case 31:vn(e,t,n,a);break;case 13:vn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?vn(e,t,n,a):ji(e,t):c._visibility&2?vn(e,t,n,a):(c._visibility|=2,wa(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Xu(m,t);break;case 24:vn(e,t,n,a),o&2048&&Qu(t.alternate,t);break;default:vn(e,t,n,a)}}function wa(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,_=n,x=a,k=m.flags;switch(m.tag){case 0:case 11:case 15:wa(c,m,_,x,o),Mi(8,m);break;case 23:break;case 22:var j=m.stateNode;m.memoizedState!==null?j._visibility&2?wa(c,m,_,x,o):ji(c,m):(j._visibility|=2,wa(c,m,_,x,o)),o&&k&2048&&Xu(m.alternate,m);break;case 24:wa(c,m,_,x,o),o&&k&2048&&Qu(m.alternate,m);break;default:wa(c,m,_,x,o)}t=t.sibling}}function ji(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ji(n,a),o&2048&&Xu(a.alternate,a);break;case 24:ji(n,a),o&2048&&Qu(a.alternate,a);break;default:ji(n,a)}t=t.sibling}}var Ui=8192;function Ma(e,t,n){if(e.subtreeFlags&Ui)for(e=e.child;e!==null;)sp(e,t,n),e=e.sibling}function sp(e,t,n){switch(e.tag){case 26:Ma(e,t,n),e.flags&Ui&&e.memoizedState!==null&&Av(n,yn,e.memoizedState,e.memoizedProps);break;case 5:Ma(e,t,n);break;case 3:case 4:var a=yn;yn=Rs(e.stateNode.containerInfo),Ma(e,t,n),yn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ui,Ui=16777216,Ma(e,t,n),Ui=a):Ma(e,t,n));break;default:Ma(e,t,n)}}function op(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,cp(a,e)}op(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)up(e),e=e.sibling}function up(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&El(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hs(e)):Bi(e);break;default:Bi(e)}}function hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,cp(a,e)}op(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),hs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,hs(t));break;default:hs(t)}e=e.sibling}}function cp(e,t){for(;ht!==null;){var n=ht;switch(n.tag){case 0:case 11:case 15:El(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Si(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ht=a;else e:for(n=e;ht!==null;){a=ht;var o=a.sibling,c=a.return;if(ep(a),a===n){ht=null;break e}if(o!==null){o.return=c,ht=o;break e}ht=c}}}var Vy={getCacheForType:function(e){var t=vt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(nt).controller.signal}},Gy=typeof WeakMap=="function"?WeakMap:Map,Ae=0,je=null,ge=null,ye=0,ke=0,Qt=null,xl=!1,za=!1,Zu=!1,Fn=0,Ze=0,Tl=0,ea=0,Ku=0,Zt=0,ja=0,Hi=null,Bt=null,$u=!1,ps=0,fp=0,ms=1/0,gs=null,Al=null,ot=0,Rl=null,Ua=null,el=0,Ju=0,Wu=null,dp=null,Vi=0,Fu=null;function Kt(){return(Ae&2)!==0&&ye!==0?ye&-ye:z.T!==null?ic():ri()}function hp(){if(Zt===0)if((ye&536870912)===0||Se){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Zt=e}else Zt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,n){(e===je&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Ba(e,0),Ol(e,ye,Zt,!1)),fl(e,n),((Ae&2)===0||e!==je)&&(e===je&&((Ae&2)===0&&(ea|=n),Ze===4&&Ol(e,ye,Zt,!1)),An(e))}function pp(e,t,n){if((Ae&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Bl(e,t),o=a?Py(e,t):tc(e,t,!0),c=a;do{if(o===0){za&&!a&&Ol(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Iy(n)){o=tc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var _=e;o=Hi;var x=_.current.memoizedState.isDehydrated;if(x&&(Ba(_,m).flags|=256),m=tc(_,m,!1),m!==2){if(Zu&&!x){_.errorRecoveryDisabledLanes|=c,ea|=c,o=4;break e}c=Bt,Bt=o,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Ba(e,0),Ol(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ol(a,t,Zt,!xl);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=ps+300-gt(),10<o)){if(Ol(a,t,Zt,!xl),ca(a,0,!0)!==0)break e;el=t,a.timeoutHandle=Yp(mp.bind(null,a,n,Bt,gs,$u,t,Zt,ea,ja,xl,c,"Throttled",-0,0),o);break e}mp(a,n,Bt,gs,$u,t,Zt,ea,ja,xl,c,null,-0,0)}}break}while(!0);An(e)}function mp(e,t,n,a,o,c,m,_,x,k,j,V,N,M){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},sp(t,c,V);var F=(c&62914560)===c?ps-gt():(c&4194048)===c?fp-gt():0;if(F=Rv(V,F),F!==null){el=c,e.cancelPendingCommit=F(xp.bind(null,e,t,c,n,a,o,m,_,x,j,V,null,N,M)),Ol(e,c,m,!k);return}}xp(e,t,c,n,a,o,m,_,x)}function Iy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!qt(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t,n,a){t&=~Ku,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-et(o),m=1<<c;a[c]=-1,o&=~m}n!==0&&ai(e,n,t)}function _s(){return(Ae&6)===0?(Gi(0),!1):!0}function ec(){if(ge!==null){if(ke===0)var e=ge.return;else e=ge,qn=Yl=null,gu(e),Ca=null,xi=0,e=ge;for(;e!==null;)Xh(e.alternate,e),e=e.return;ge=null}}function Ba(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ov(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),el=0,ec(),je=e,ge=n=Gn(e.current,null),ye=t,ke=0,Qt=null,xl=!1,za=Bl(e,t),Zu=!1,ja=Zt=Ku=ea=Tl=Ze=0,Bt=Hi=null,$u=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-et(a),c=1<<o;t|=e[o],a&=~c}return Fn=t,Br(),n}function gp(e,t){ce=null,z.H=ki,t===Oa||t===Xr?(t=Nd(),ke=3):t===au?(t=Nd(),ke=4):ke=t===Nu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,ge===null&&(Ze=1,rs(e,an(t,e.current)))}function _p(){var e=Yt.current;return e===null?!0:(ye&4194048)===ye?un===null:(ye&62914560)===ye||(ye&536870912)!==0?e===un:!1}function yp(){var e=z.H;return z.H=ki,e===null?ki:e}function vp(){var e=z.A;return z.A=Vy,e}function ys(){Ze=4,xl||(ye&4194048)!==ye&&Yt.current!==null||(za=!0),(Tl&134217727)===0&&(ea&134217727)===0||je===null||Ol(je,ye,Zt,!1)}function tc(e,t,n){var a=Ae;Ae|=2;var o=yp(),c=vp();(je!==e||ye!==t)&&(gs=null,Ba(e,t)),t=!1;var m=Ze;e:do try{if(ke!==0&&ge!==null){var _=ge,x=Qt;switch(ke){case 8:ec(),m=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var k=ke;if(ke=0,Qt=null,Ha(e,_,x,k),n&&za){m=0;break e}break;default:k=ke,ke=0,Qt=null,Ha(e,_,x,k)}}qy(),m=Ze;break}catch(j){gp(e,j)}while(!0);return t&&e.shellSuspendCounter++,qn=Yl=null,Ae=a,z.H=o,z.A=c,ge===null&&(je=null,ye=0,Br()),m}function qy(){for(;ge!==null;)bp(ge)}function Py(e,t){var n=Ae;Ae|=2;var a=yp(),o=vp();je!==e||ye!==t?(gs=null,ms=gt()+500,Ba(e,t)):za=Bl(e,t);e:do try{if(ke!==0&&ge!==null){t=ge;var c=Qt;t:switch(ke){case 1:ke=0,Qt=null,Ha(e,t,c,1);break;case 2:case 9:if(Ld(c)){ke=0,Qt=null,Sp(t);break}t=function(){ke!==2&&ke!==9||je!==e||(ke=7),An(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Ld(c)?(ke=0,Qt=null,Sp(t)):(ke=0,Qt=null,Ha(e,t,c,7));break;case 5:var m=null;switch(ge.tag){case 26:m=ge.memoizedState;case 5:case 27:var _=ge;if(m?rm(m):_.stateNode.complete){ke=0,Qt=null;var x=_.sibling;if(x!==null)ge=x;else{var k=_.return;k!==null?(ge=k,vs(k)):ge=null}break t}}ke=0,Qt=null,Ha(e,t,c,5);break;case 6:ke=0,Qt=null,Ha(e,t,c,6);break;case 8:ec(),Ze=6;break e;default:throw Error(s(462))}}Yy();break}catch(j){gp(e,j)}while(!0);return qn=Yl=null,z.H=a,z.A=o,Ae=n,ge!==null?0:(je=null,ye=0,Br(),Ze)}function Yy(){for(;ge!==null&&!br();)bp(ge)}function bp(e){var t=Ph(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?vs(e):ge=t}function Sp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bh(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=Bh(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:gu(t);default:Xh(n,t),t=ge=vd(t,Fn),t=Ph(n,t,Fn)}e.memoizedProps=e.pendingProps,t===null?vs(e):ge=t}function Ha(e,t,n,a){qn=Yl=null,gu(t),Ca=null,xi=0;var o=t.return;try{if(wy(e,o,t,n,ye)){Ze=1,rs(e,an(n,e.current)),ge=null;return}}catch(c){if(o!==null)throw ge=o,c;Ze=1,rs(e,an(n,e.current)),ge=null;return}t.flags&32768?(Se||a===1?e=!0:za||(ye&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ep(t,e)):vs(t)}function vs(e){var t=e;do{if((t.flags&32768)!==0){Ep(t,xl);return}e=t.return;var n=jy(t.alternate,t,Fn);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function Ep(e,t){do{var n=Uy(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);Ze=6,ge=null}function xp(e,t,n,a,o,c,m,_,x){e.cancelPendingCommit=null;do bs();while(ot!==0);if((Ae&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=qo,li(e,n,c,m,_,x),e===je&&(ge=je=null,ye=0),Ua=t,Rl=e,el=n,Ju=c,Wu=o,dp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ky(cl,function(){return Cp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,o=K.p,K.p=2,m=Ae,Ae|=4;try{By(e,t,n)}finally{Ae=m,K.p=o,z.T=a}}ot=1,Tp(),Ap(),Rp()}}function Tp(){if(ot===1){ot=0;var e=Rl,t=Ua,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var a=K.p;K.p=2;var o=Ae;Ae|=4;try{ap(t,e);var c=hc,m=cd(e.containerInfo),_=c.focusedElem,x=c.selectionRange;if(m!==_&&_&&_.ownerDocument&&ud(_.ownerDocument.documentElement,_)){if(x!==null&&Bo(_)){var k=x.start,j=x.end;if(j===void 0&&(j=k),"selectionStart"in _)_.selectionStart=k,_.selectionEnd=Math.min(j,_.value.length);else{var V=_.ownerDocument||document,N=V&&V.defaultView||window;if(N.getSelection){var M=N.getSelection(),F=_.textContent.length,se=Math.min(x.start,F),ze=x.end===void 0?se:Math.min(x.end,F);!M.extend&&se>ze&&(m=ze,ze=se,se=m);var D=od(_,se),O=od(_,ze);if(D&&O&&(M.rangeCount!==1||M.anchorNode!==D.node||M.anchorOffset!==D.offset||M.focusNode!==O.node||M.focusOffset!==O.offset)){var L=V.createRange();L.setStart(D.node,D.offset),M.removeAllRanges(),se>ze?(M.addRange(L),M.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),M.addRange(L))}}}}for(V=[],M=_;M=M.parentNode;)M.nodeType===1&&V.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var H=V[_];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Ns=!!dc,hc=dc=null}finally{Ae=o,K.p=a,z.T=n}}e.current=t,ot=2}}function Ap(){if(ot===2){ot=0;var e=Rl,t=Ua,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var a=K.p;K.p=2;var o=Ae;Ae|=4;try{Fh(e,t.alternate,t)}finally{Ae=o,K.p=a,z.T=n}}ot=3}}function Rp(){if(ot===4||ot===3){ot=0,bo();var e=Rl,t=Ua,n=el,a=dp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Ua=Rl=null,Op(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Al=null),gn(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,o=K.p,K.p=2,z.T=null;try{for(var c=e.onRecoverableError,m=0;m<a.length;m++){var _=a[m];c(_.value,{componentStack:_.stack})}}finally{z.T=t,K.p=o}}(el&3)!==0&&bs(),An(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Fu?Vi++:(Vi=0,Fu=e):Vi=0,Gi(0)}}function Op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Si(t)))}function bs(){return Tp(),Ap(),Rp(),Cp()}function Cp(){if(ot!==5)return!1;var e=Rl,t=Ju;Ju=0;var n=gn(el),a=z.T,o=K.p;try{K.p=32>n?32:n,z.T=null,n=Wu,Wu=null;var c=Rl,m=el;if(ot=0,Ua=Rl=null,el=0,(Ae&6)!==0)throw Error(s(331));var _=Ae;if(Ae|=4,up(c.current),rp(c,c.current,m,n),Ae=_,Gi(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(bn,c)}catch{}return!0}finally{K.p=o,z.T=a,Op(e,t)}}function Dp(e,t,n){t=an(n,t),t=ku(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(fl(e,2),An(e))}function Ne(e,t,n){if(e.tag===3)Dp(e,e,n);else for(;t!==null;){if(t.tag===3){Dp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=an(n,e),n=Lh(2),a=vl(t,n,2),a!==null&&(kh(n,a,t,e),fl(a,2),An(a));break}}t=t.return}}function nc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Gy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Zu=!0,o.add(n),e=Xy.bind(null,e,t,n),t.then(e,e))}function Xy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(ye&n)===n&&(Ze===4||Ze===3&&(ye&62914560)===ye&&300>gt()-ps?(Ae&2)===0&&Ba(e,0):Ku|=n,ja===ye&&(ja=0)),An(e)}function Lp(e,t){t===0&&(t=jn()),e=Il(e,t),e!==null&&(fl(e,t),An(e))}function Qy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lp(e,n)}function Zy(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Lp(e,n)}function Ky(e,t){return ul(e,t)}var Ss=null,Va=null,lc=!1,Es=!1,ac=!1,Cl=0;function An(e){e!==Va&&e.next===null&&(Va===null?Ss=Va=e:Va=Va.next=e),Es=!0,lc||(lc=!0,Jy())}function Gi(e,t){if(!ac&&Es){ac=!0;do for(var n=!1,a=Ss;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var m=a.suspendedLanes,_=a.pingedLanes;c=(1<<31-et(42|e)+1)-1,c&=o&~(m&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Mp(a,c))}else c=ye,c=ca(a,a===je?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(n=!0,Mp(a,c));a=a.next}while(n);ac=!1}}function $y(){kp()}function kp(){Es=lc=!1;var e=0;Cl!==0&&sv()&&(e=Cl);for(var t=gt(),n=null,a=Ss;a!==null;){var o=a.next,c=Np(a,t);c===0?(a.next=null,n===null?Ss=o:n.next=o,o===null&&(Va=n)):(n=a,(e!==0||(c&3)!==0)&&(Es=!0)),a=o}ot!==0&&ot!==5||Gi(e),Cl!==0&&(Cl=0)}function Np(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-et(c),_=1<<m,x=o[m];x===-1?((_&n)===0||(_&a)!==0)&&(o[m]=$e(_,t)):x<=t&&(e.expiredLanes|=_),c&=~_}if(t=je,n=ye,n=ca(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&oa(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Bl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&oa(a),gn(n)){case 2:case 8:n=Gt;break;case 32:n=cl;break;case 268435456:n=Wa;break;default:n=cl}return a=wp.bind(null,e),n=ul(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&oa(a),e.callbackPriority=2,e.callbackNode=null,2}function wp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bs()&&e.callbackNode!==n)return null;var a=ye;return a=ca(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(pp(e,a,t),Np(e,gt()),e.callbackNode!=null&&e.callbackNode===n?wp.bind(null,e):null)}function Mp(e,t){if(bs())return null;pp(e,t,!0)}function Jy(){uv(function(){(Ae&6)!==0?ul(wn,$y):kp()})}function ic(){if(Cl===0){var e=Aa;e===0&&(e=Mn,Mn<<=1,(Mn&261888)===0&&(Mn=256)),Cl=e}return Cl}function zp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Lr(""+e)}function jp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Wy(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=zp((o[qe]||null).action),m=a.submitter;m&&(t=(t=m[qe]||null)?zp(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var _=new Mr("action","action",null,a,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var x=m?jp(o,m):new FormData(o);Au(n,{pending:!0,data:x,method:o.method,action:c},null,x)}}else typeof c=="function"&&(_.preventDefault(),x=m?jp(o,m):new FormData(o),Au(n,{pending:!0,data:x,method:o.method,action:c},c,x))},currentTarget:o}]})}}for(var rc=0;rc<Io.length;rc++){var sc=Io[rc],Fy=sc.toLowerCase(),ev=sc[0].toUpperCase()+sc.slice(1);_n(Fy,"on"+ev)}_n(hd,"onAnimationEnd"),_n(pd,"onAnimationIteration"),_n(md,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(gy,"onTransitionRun"),_n(_y,"onTransitionStart"),_n(yy,"onTransitionCancel"),_n(gd,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="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(" "),tv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ii));function Up(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var m=a.length-1;0<=m;m--){var _=a[m],x=_.instance,k=_.currentTarget;if(_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=k;try{c(o)}catch(j){Ur(j)}o.currentTarget=null,c=x}else for(m=0;m<a.length;m++){if(_=a[m],x=_.instance,k=_.currentTarget,_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=k;try{c(o)}catch(j){Ur(j)}o.currentTarget=null,c=x}}}}function _e(e,t){var n=t[fa];n===void 0&&(n=t[fa]=new Set);var a=e+"__bubble";n.has(a)||(Bp(t,e,2,!1),n.add(a))}function oc(e,t,n){var a=0;t&&(a|=4),Bp(n,e,a,t)}var xs="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[xs]){e[xs]=!0,_t.forEach(function(n){n!=="selectionchange"&&(tv.has(n)||oc(n,!1,e),oc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xs]||(t[xs]=!0,oc("selectionchange",!1,t))}}function Bp(e,t,n,a){switch(hm(t)){case 2:var o=Dv;break;case 8:o=Lv;break;default:o=Tc}n=o.bind(null,t,n,e),o=void 0,!Do||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function cc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var _=a.stateNode.containerInfo;if(_===o)break;if(m===4)for(m=a.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;_!==null;){if(m=Y(_),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){a=c=m;continue e}_=_.parentNode}}a=a.return}qf(function(){var k=c,j=Oo(n),V=[];e:{var N=_d.get(e);if(N!==void 0){var M=Mr,F=e;switch(e){case"keypress":if(Nr(n)===0)break e;case"keydown":case"keyup":M=Z_;break;case"focusin":F="focus",M=wo;break;case"focusout":F="blur",M=wo;break;case"beforeblur":case"afterblur":M=wo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=j_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=J_;break;case hd:case pd:case md:M=H_;break;case gd:M=F_;break;case"scroll":case"scrollend":M=M_;break;case"wheel":M=ty;break;case"copy":case"cut":case"paste":M=G_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Zf;break;case"toggle":case"beforetoggle":M=ly}var se=(t&4)!==0,ze=!se&&(e==="scroll"||e==="scrollend"),D=se?N!==null?N+"Capture":null:N;se=[];for(var O=k,L;O!==null;){var H=O;if(L=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||L===null||D===null||(H=ci(O,D),H!=null&&se.push(qi(O,H,L))),ze)break;O=O.return}0<se.length&&(N=new M(N,F,null,n,j),V.push({event:N,listeners:se}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",N&&n!==Ro&&(F=n.relatedTarget||n.fromElement)&&(Y(F)||F[Un]))break e;if((M||N)&&(N=j.window===j?j:(N=j.ownerDocument)?N.defaultView||N.parentWindow:window,M?(F=n.relatedTarget||n.toElement,M=k,F=F?Y(F):null,F!==null&&(ze=f(F),se=F.tag,F!==ze||se!==5&&se!==27&&se!==6)&&(F=null)):(M=null,F=k),M!==F)){if(se=Xf,H="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(se=Zf,H="onPointerLeave",D="onPointerEnter",O="pointer"),ze=M==null?N:De(M),L=F==null?N:De(F),N=new se(H,O+"leave",M,n,j),N.target=ze,N.relatedTarget=L,H=null,Y(j)===k&&(se=new se(D,O+"enter",F,n,j),se.target=L,se.relatedTarget=ze,H=se),ze=H,M&&F)t:{for(se=nv,D=M,O=F,L=0,H=D;H;H=se(H))L++;H=0;for(var ie=O;ie;ie=se(ie))H++;for(;0<L-H;)D=se(D),L--;for(;0<H-L;)O=se(O),H--;for(;L--;){if(D===O||O!==null&&D===O.alternate){se=D;break t}D=se(D),O=se(O)}se=null}else se=null;M!==null&&Hp(V,N,M,se,!1),F!==null&&ze!==null&&Hp(V,ze,F,se,!0)}}e:{if(N=k?De(k):window,M=N.nodeName&&N.nodeName.toLowerCase(),M==="select"||M==="input"&&N.type==="file")var Ee=nd;else if(ed(N))if(ld)Ee=hy;else{Ee=fy;var le=cy}else M=N.nodeName,!M||M.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?k&&Ao(k.elementType)&&(Ee=nd):Ee=dy;if(Ee&&(Ee=Ee(e,k))){td(V,Ee,n,j);break e}le&&le(e,N,k),e==="focusout"&&k&&N.type==="number"&&k.memoizedProps.value!=null&&To(N,"number",N.value)}switch(le=k?De(k):window,e){case"focusin":(ed(le)||le.contentEditable==="true")&&(_a=le,Ho=k,yi=null);break;case"focusout":yi=Ho=_a=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,fd(V,n,j);break;case"selectionchange":if(my)break;case"keydown":case"keyup":fd(V,n,j)}var de;if(zo)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else ga?Wf(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Kf&&n.locale!=="ko"&&(ga||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ga&&(de=Pf()):(dl=j,Lo="value"in dl?dl.value:dl.textContent,ga=!0)),le=Ts(k,ve),0<le.length&&(ve=new Qf(ve,e,null,n,j),V.push({event:ve,listeners:le}),de?ve.data=de:(de=Ff(n),de!==null&&(ve.data=de)))),(de=iy?ry(e,n):sy(e,n))&&(ve=Ts(k,"onBeforeInput"),0<ve.length&&(le=new Qf("onBeforeInput","beforeinput",null,n,j),V.push({event:le,listeners:ve}),le.data=de)),Wy(V,e,k,n,j)}Up(V,t)})}function qi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ts(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ci(e,n),o!=null&&a.unshift(qi(e,o,c)),o=ci(e,t),o!=null&&a.push(qi(e,o,c))),e.tag===3)return a;e=e.return}return[]}function nv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hp(e,t,n,a,o){for(var c=t._reactName,m=[];n!==null&&n!==a;){var _=n,x=_.alternate,k=_.stateNode;if(_=_.tag,x!==null&&x===a)break;_!==5&&_!==26&&_!==27||k===null||(x=k,o?(k=ci(n,c),k!=null&&m.unshift(qi(n,k,x))):o||(k=ci(n,c),k!=null&&m.push(qi(n,k,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var lv=/\r\n?/g,av=/\u0000|\uFFFD/g;function Vp(e){return(typeof e=="string"?e:""+e).replace(lv,`
|
|
50
|
-
`).replace(av,"")}function Gp(e,t){return t=Vp(t),Vp(e)===t}function Me(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ha(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ha(e,""+a);break;case"className":Cr(e,"class",a);break;case"tabIndex":Cr(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Cr(e,n,a);break;case"style":Gf(e,a,c);break;case"data":if(t!=="object"){Cr(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Lr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",o.name,o,null),Me(e,t,"formEncType",o.formEncType,o,null),Me(e,t,"formMethod",o.formMethod,o,null),Me(e,t,"formTarget",o.formTarget,o,null)):(Me(e,t,"encType",o.encType,o,null),Me(e,t,"method",o.method,o,null),Me(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Lr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Lr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Or(e,"popover",a);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Or(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=N_.get(n)||n,Or(e,n,a))}}function fc(e,t,n,a,o,c){switch(n){case"style":Gf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ha(e,a):(typeof a=="number"||typeof a=="bigint")&&ha(e,""+a);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!en.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[qe]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Or(e,n,a)}}}function St(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,c,m,n,null)}}o&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var _=c=m=o=null,x=null,k=null;for(a in n)if(n.hasOwnProperty(a)){var j=n[a];if(j!=null)switch(a){case"name":o=j;break;case"type":m=j;break;case"checked":x=j;break;case"defaultChecked":k=j;break;case"value":c=j;break;case"defaultValue":_=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Me(e,t,a,j,n,null)}}Uf(e,c,_,x,k,m,o,!1);return;case"select":_e("invalid",e),a=m=c=null;for(o in n)if(n.hasOwnProperty(o)&&(_=n[o],_!=null))switch(o){case"value":c=_;break;case"defaultValue":m=_;break;case"multiple":a=_;default:Me(e,t,o,_,n,null)}t=c,n=m,e.multiple=!!a,t!=null?da(e,!!a,t,!1):n!=null&&da(e,!!a,n,!0);return;case"textarea":_e("invalid",e),c=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(_=n[m],_!=null))switch(m){case"value":a=_;break;case"defaultValue":o=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:Me(e,t,m,_,n,null)}Hf(e,a,o,c);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,x,a,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(a=0;a<Ii.length;a++)_e(Ii[a],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in n)if(n.hasOwnProperty(k)&&(a=n[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,k,a,n,null)}return;default:if(Ao(t)){for(j in n)n.hasOwnProperty(j)&&(a=n[j],a!==void 0&&fc(e,t,j,a,n,void 0));return}}for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!=null&&Me(e,t,_,a,n,null))}function iv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,_=null,x=null,k=null,j=null;for(M in n){var V=n[M];if(n.hasOwnProperty(M)&&V!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":x=V;default:a.hasOwnProperty(M)||Me(e,t,M,null,a,V)}}for(var N in a){var M=a[N];if(V=n[N],a.hasOwnProperty(N)&&(M!=null||V!=null))switch(N){case"type":c=M;break;case"name":o=M;break;case"checked":k=M;break;case"defaultChecked":j=M;break;case"value":m=M;break;case"defaultValue":_=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==V&&Me(e,t,N,M,a,V)}}xo(e,m,_,x,k,j,c,o);return;case"select":M=m=_=N=null;for(c in n)if(x=n[c],n.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":M=x;default:a.hasOwnProperty(c)||Me(e,t,c,null,a,x)}for(o in a)if(c=a[o],x=n[o],a.hasOwnProperty(o)&&(c!=null||x!=null))switch(o){case"value":N=c;break;case"defaultValue":_=c;break;case"multiple":m=c;default:c!==x&&Me(e,t,o,c,a,x)}t=_,n=m,a=M,N!=null?da(e,!!n,N,!1):!!a!=!!n&&(t!=null?da(e,!!n,t,!0):da(e,!!n,n?[]:"",!1));return;case"textarea":M=N=null;for(_ in n)if(o=n[_],n.hasOwnProperty(_)&&o!=null&&!a.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Me(e,t,_,null,a,o)}for(m in a)if(o=a[m],c=n[m],a.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":N=o;break;case"defaultValue":M=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Me(e,t,m,o,a,c)}Bf(e,N,M);return;case"option":for(var F in n)if(N=n[F],n.hasOwnProperty(F)&&N!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Me(e,t,F,null,a,N)}for(x in a)if(N=a[x],M=n[x],a.hasOwnProperty(x)&&N!==M&&(N!=null||M!=null))switch(x){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Me(e,t,x,N,a,M)}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 se in n)N=n[se],n.hasOwnProperty(se)&&N!=null&&!a.hasOwnProperty(se)&&Me(e,t,se,null,a,N);for(k in a)if(N=a[k],M=n[k],a.hasOwnProperty(k)&&N!==M&&(N!=null||M!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Me(e,t,k,N,a,M)}return;default:if(Ao(t)){for(var ze in n)N=n[ze],n.hasOwnProperty(ze)&&N!==void 0&&!a.hasOwnProperty(ze)&&fc(e,t,ze,void 0,a,N);for(j in a)N=a[j],M=n[j],!a.hasOwnProperty(j)||N===M||N===void 0&&M===void 0||fc(e,t,j,N,a,M);return}}for(var D in n)N=n[D],n.hasOwnProperty(D)&&N!=null&&!a.hasOwnProperty(D)&&Me(e,t,D,null,a,N);for(V in a)N=a[V],M=n[V],!a.hasOwnProperty(V)||N===M||N==null&&M==null||Me(e,t,V,N,a,M)}function Ip(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,m=o.initiatorType,_=o.duration;if(c&&_&&Ip(m)){for(m=0,_=o.responseEnd,a+=1;a<n.length;a++){var x=n[a],k=x.startTime;if(k>_)break;var j=x.transferSize,V=x.initiatorType;j&&Ip(V)&&(x=x.responseEnd,m+=j*(x<_?1:(_-k)/(x-k)))}if(--a,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var dc=null,hc=null;function As(e){return e.nodeType===9?e:e.ownerDocument}function qp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function pc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mc=null;function sv(){var e=window.event;return e&&e.type==="popstate"?e===mc?!1:(mc=e,!0):(mc=null,!1)}var Yp=typeof setTimeout=="function"?setTimeout:void 0,ov=typeof clearTimeout=="function"?clearTimeout:void 0,Xp=typeof Promise=="function"?Promise:void 0,uv=typeof queueMicrotask=="function"?queueMicrotask:typeof Xp<"u"?function(e){return Xp.resolve(null).then(e).catch(cv)}:Yp;function cv(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Qp(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Pa(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Pi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Pi(n);for(var c=n.firstChild;c;){var m=c.nextSibling,_=c.nodeName;c[ne]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=m}}else n==="body"&&Pi(e.ownerDocument.body);n=o}while(n);Pa(t)}function Zp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":gc(n),R(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function fv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ne])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function dv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Kp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function _c(e){return e.data==="$?"||e.data==="$~"}function yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vc=null;function $p(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Jp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Wp(e,t,n){switch(t=As(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);R(e)}var fn=new Map,Fp=new Set;function Rs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var tl=K.d;K.d={f:pv,r:mv,D:gv,C:_v,L:yv,m:vv,X:Sv,S:bv,M:Ev};function pv(){var e=tl.f(),t=_s();return e||t}function mv(e){var t=J(e);t!==null&&t.tag===5&&t.type==="form"?gh(t):tl.r(e)}var Ga=typeof document>"u"?null:document;function em(e,t,n){var a=Ga;if(a&&typeof t=="string"&&t){var o=nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Fp.has(o)||(Fp.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),St(t,"link",e),pe(t),a.head.appendChild(t)))}}function gv(e){tl.D(e),em("dns-prefetch",e,null)}function _v(e,t){tl.C(e,t),em("preconnect",e,t)}function yv(e,t,n){tl.L(e,t,n);var a=Ga;if(a&&e&&t){var o='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+nn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+nn(n.imageSizes)+'"]')):o+='[href="'+nn(e)+'"]';var c=o;switch(t){case"style":c=Ia(e);break;case"script":c=qa(e)}fn.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),fn.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Yi(c))||t==="script"&&a.querySelector(Xi(c))||(t=a.createElement("link"),St(t,"link",e),pe(t),a.head.appendChild(t)))}}function vv(e,t){tl.m(e,t);var n=Ga;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+nn(a)+'"][href="'+nn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=qa(e)}if(!fn.has(c)&&(e=b({rel:"modulepreload",href:e},t),fn.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xi(c)))return}a=n.createElement("link"),St(a,"link",e),pe(a),n.head.appendChild(a)}}}function bv(e,t,n){tl.S(e,t,n);var a=Ga;if(a&&e){var o=Xe(a).hoistableStyles,c=Ia(e);t=t||"default";var m=o.get(c);if(!m){var _={loading:0,preload:null};if(m=a.querySelector(Yi(c)))_.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=fn.get(c))&&bc(e,n);var x=m=a.createElement("link");pe(x),St(x,"link",e),x._p=new Promise(function(k,j){x.onload=k,x.onerror=j}),x.addEventListener("load",function(){_.loading|=1}),x.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Os(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:_},o.set(c,m)}}}function Sv(e,t){tl.X(e,t);var n=Ga;if(n&&e){var a=Xe(n).hoistableScripts,o=qa(e),c=a.get(o);c||(c=n.querySelector(Xi(o)),c||(e=b({src:e,async:!0},t),(t=fn.get(o))&&Sc(e,t),c=n.createElement("script"),pe(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Ev(e,t){tl.M(e,t);var n=Ga;if(n&&e){var a=Xe(n).hoistableScripts,o=qa(e),c=a.get(o);c||(c=n.querySelector(Xi(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&Sc(e,t),c=n.createElement("script"),pe(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function tm(e,t,n,a){var o=(o=ue.current)?Rs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ia(n.href),n=Xe(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ia(n.href);var c=Xe(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(Yi(e)))&&!c._p&&(m.instance=c,m.state.loading=5),fn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(e,n),c||xv(o,e,n,m.state))),t&&a===null)throw Error(s(528,""));return m}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(n),n=Xe(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ia(e){return'href="'+nn(e)+'"'}function Yi(e){return'link[rel="stylesheet"]['+e+"]"}function nm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function xv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),St(t,"link",n),pe(t),e.head.appendChild(t))}function qa(e){return'[src="'+nn(e)+'"]'}function Xi(e){return"script[async]"+e}function lm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+nn(n.href)+'"]');if(a)return t.instance=a,pe(a),a;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),pe(a),St(a,"style",o),Os(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ia(n.href);var c=e.querySelector(Yi(o));if(c)return t.state.loading|=4,t.instance=c,pe(c),c;a=nm(n),(o=fn.get(o))&&bc(a,o),c=(e.ownerDocument||e).createElement("link"),pe(c);var m=c;return m._p=new Promise(function(_,x){m.onload=_,m.onerror=x}),St(c,"link",a),t.state.loading|=4,Os(c,n.precedence,e),t.instance=c;case"script":return c=qa(n.src),(o=e.querySelector(Xi(c)))?(t.instance=o,pe(o),o):(a=n,(o=fn.get(c))&&(a=b({},n),Sc(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),pe(o),St(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Os(a,n.precedence,e));return t.instance}function Os(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,m=0;m<a.length;m++){var _=a[m];if(_.dataset.precedence===t)c=_;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cs=null;function am(e,t,n){if(Cs===null){var a=new Map,o=Cs=new Map;o.set(n,a)}else o=Cs,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ne]||c[tt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var _=a.get(m);_?_.push(c):a.set(m,[c])}}return a}function im(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Tv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Av(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ia(a.href),c=t.querySelector(Yi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ds.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,pe(c);return}c=t.ownerDocument||t,a=nm(a),(o=fn.get(o))&&bc(a,o),c=c.createElement("link"),pe(c);var m=c;m._p=new Promise(function(_,x){m.onload=_,m.onerror=x}),St(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ds.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ec=0;function Rv(e,t){return e.stylesheets&&e.count===0&&ks(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&ks(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Ec===0&&(Ec=62500*rv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ks(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Ec?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ks(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ls=null;function ks(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ls=new Map,t.forEach(Ov,e),Ls=null,Ds.call(e))}function Ov(e,t){if(!(t.state.loading&4)){var n=Ls.get(e);if(n)var a=n.get(null);else{n=new Map,Ls.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),c=n.get(m)||a,c===a&&n.set(null,o),n.set(m,o),this.count++,a=Ds.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Qi={$$typeof:q,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Cv(e,t,n,a,o,c,m,_,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ni(0),this.hiddenUpdates=ni(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function sm(e,t,n,a,o,c,m,_,x,k,j,V){return e=new Cv(e,t,n,m,x,k,j,V,_),t=1,c===!0&&(t|=24),c=Pt(3,null,null,t),e.current=c,c.stateNode=e,t=tu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},iu(c),e}function om(e){return e?(e=ba,e):ba}function um(e,t,n,a,o,c){o=om(o),a.context===null?a.context=o:a.pendingContext=o,a=yl(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=vl(e,a,t),n!==null&&(Ht(n,e,t),Ai(n,e,t))}function cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xc(e,t){cm(e,t),(e=e.alternate)&&cm(e,t)}function fm(e){if(e.tag===13||e.tag===31){var t=Il(e,67108864);t!==null&&Ht(t,e,67108864),xc(e,67108864)}}function dm(e){if(e.tag===13||e.tag===31){var t=Kt();t=Nt(t);var n=Il(e,t);n!==null&&Ht(n,e,t),xc(e,t)}}var Ns=!0;function Dv(e,t,n,a){var o=z.T;z.T=null;var c=K.p;try{K.p=2,Tc(e,t,n,a)}finally{K.p=c,z.T=o}}function Lv(e,t,n,a){var o=z.T;z.T=null;var c=K.p;try{K.p=8,Tc(e,t,n,a)}finally{K.p=c,z.T=o}}function Tc(e,t,n,a){if(Ns){var o=Ac(a);if(o===null)cc(e,t,a,ws,n),pm(e,a);else if(Nv(o,e,t,n,a))a.stopPropagation();else if(pm(e,a),t&4&&-1<kv.indexOf(e)){for(;o!==null;){var c=J(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=It(c.pendingLanes);if(m!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;m;){var x=1<<31-et(m);_.entanglements[1]|=x,m&=~x}An(c),(Ae&6)===0&&(ms=gt()+500,Gi(0))}}break;case 31:case 13:_=Il(c,2),_!==null&&Ht(_,c,2),_s(),xc(c,2)}if(c=Ac(a),c===null&&cc(e,t,a,ws,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else cc(e,t,a,null,n)}}function Ac(e){return e=Oo(e),Rc(e)}var ws=null;function Rc(e){if(ws=null,e=Y(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ws=e,null}function hm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ul()){case wn:return 2;case Gt:return 8;case cl:case Sr:return 32;case Wa:return 268435456;default:return 32}default:return 32}}var Oc=!1,Ll=null,kl=null,Nl=null,Zi=new Map,Ki=new Map,wl=[],kv="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 pm(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":kl=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ki.delete(t.pointerId)}}function $i(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=J(t),t!==null&&fm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Nv(e,t,n,a,o){switch(t){case"focusin":return Ll=$i(Ll,e,t,n,a,o),!0;case"dragenter":return kl=$i(kl,e,t,n,a,o),!0;case"mouseover":return Nl=$i(Nl,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return Zi.set(c,$i(Zi.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Ki.set(c,$i(Ki.get(c)||null,e,t,n,a,o)),!0}return!1}function mm(e){var t=Y(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,si(e.priority,function(){dm(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,si(e.priority,function(){dm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ac(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ro=a,n.target.dispatchEvent(a),Ro=null}else return t=J(n),t!==null&&fm(t),e.blockedOn=n,!1;t.shift()}return!0}function gm(e,t,n){Ms(e)&&n.delete(t)}function wv(){Oc=!1,Ll!==null&&Ms(Ll)&&(Ll=null),kl!==null&&Ms(kl)&&(kl=null),Nl!==null&&Ms(Nl)&&(Nl=null),Zi.forEach(gm),Ki.forEach(gm)}function zs(e,t){e.blockedOn===t&&(e.blockedOn=null,Oc||(Oc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wv)))}var js=null;function _m(e){js!==e&&(js=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){js===e&&(js=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Rc(a||n)===null)continue;break}var c=J(n);c!==null&&(e.splice(t,3),t-=3,Au(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Pa(e){function t(x){return zs(x,e)}Ll!==null&&zs(Ll,e),kl!==null&&zs(kl,e),Nl!==null&&zs(Nl,e),Zi.forEach(t),Ki.forEach(t);for(var n=0;n<wl.length;n++){var a=wl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(n=wl[0],n.blockedOn===null);)mm(n),n.blockedOn===null&&wl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],m=o[qe]||null;if(typeof c=="function")m||_m(n);else if(m){var _=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[qe]||null)_=m.formAction;else if(Rc(o)!==null)continue}else _=m.action;typeof _=="function"?n[a+1]=_:(n.splice(a,3),a-=3),_m(n)}}}function ym(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Cc(e){this._internalRoot=e}Us.prototype.render=Cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Kt();um(n,a,e,t,null,null)},Us.prototype.unmount=Cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;um(e.current,2,null,e,null,null),_s(),t[Un]=null}};function Us(e){this._internalRoot=e}Us.prototype.unstable_scheduleHydration=function(e){if(e){var t=ri();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wl.length&&t!==0&&t<wl[n].priority;n++);wl.splice(n,0,e),n===0&&mm(e)}};var vm=l.version;if(vm!=="19.2.4")throw Error(s(527,vm,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=h(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Mv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bs.isDisabled&&Bs.supportsFiber)try{bn=Bs.inject(Mv),ft=Bs}catch{}}return Wi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,a="",o=Rh,c=Oh,m=Ch;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=sm(e,1,!1,null,null,n,a,null,o,c,m,ym),e[Un]=t.current,uc(e),new Cc(t)},Wi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var a=!1,o="",c=Rh,m=Oh,_=Ch,x=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(_=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),t=sm(e,1,!0,t,n??null,a,o,x,c,m,_,ym),t.context=om(null),n=t.current,a=Kt(),a=Nt(a),o=yl(a),o.callback=null,vl(n,o,a),n=a,t.current.lanes=n,fl(t,n),An(t),e[Un]=t.current,uc(e),new Us(t)},Wi.version="19.2.4",Wi}var Dm;function Xv(){if(Dm)return kc.exports;Dm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),kc.exports=Yv(),kc.exports}var Qv=Xv();let Zv=0;function Lm(){return`req-${Date.now()}-${++Zv}`}class Kv{constructor(){w(this,"ws",null);w(this,"pending",new Map);w(this,"sendQueue",[]);w(this,"pushHandlers",new Set);w(this,"connectionHandlers",new Set);w(this,"activeSubscriptions",new Map);w(this,"reconnectDelay",500);w(this,"url");w(this,"disposed",!1);const l=location.protocol==="https:"?"wss:":"ws:";this.url=`${l}//${location.host}/ws`}connect(){this.disposed||(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{var l;this.reconnectDelay=500;for(const r of this.sendQueue)(l=this.ws)==null||l.send(r);this.sendQueue=[];for(const[,r]of this.activeSubscriptions)this.rawSend("subscribe-list",r);for(const r of this.connectionHandlers)r(!0)},this.ws.onclose=()=>{for(const l of this.connectionHandlers)l(!1);this.scheduleReconnect()},this.ws.onmessage=l=>{this.handleMessage(JSON.parse(l.data))})}dispose(){var l;this.disposed=!0,(l=this.ws)==null||l.close(),this.ws=null;for(const[,r]of this.pending)r.reject(new Error("disposed"));this.pending.clear(),this.sendQueue=[]}scheduleReconnect(){if(!this.disposed){setTimeout(()=>this.connect(),this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*2,1e4);for(const[l,r]of this.pending)r.reject(new Error("disconnected")),this.pending.delete(l)}}handleMessage(l){var s;if(l.type==="snapshot"||l.type==="upsert"||l.type==="delete"){const u=l.payload;for(const f of this.pushHandlers)f(u);return}const r=this.pending.get(l.id);r&&(this.pending.delete(l.id),l.ok?r.resolve(l.payload):r.reject(new Error(((s=l.error)==null?void 0:s.message)||"unknown error")))}rawSend(l,r){var d;const u={id:Lm(),type:l,payload:r},f=JSON.stringify(u);((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN?this.ws.send(f):this.sendQueue.push(f)}send(l,r){return new Promise((s,u)=>{var g;const f=Lm();this.pending.set(f,{resolve:s,reject:u});const p=JSON.stringify({id:f,type:l,payload:r});((g=this.ws)==null?void 0:g.readyState)===WebSocket.OPEN?this.ws.send(p):this.sendQueue.push(p)})}onConnection(l){return this.connectionHandlers.add(l),()=>this.connectionHandlers.delete(l)}onPush(l){return this.pushHandlers.add(l),()=>this.pushHandlers.delete(l)}subscribe(l){return this.activeSubscriptions.set(l.id,l),this.send("subscribe-list",l)}unsubscribe(l){return this.activeSubscriptions.delete(l),this.send("unsubscribe-list",{id:l})}updateStatus(l){return this.send("update-status",l)}editText(l){return this.send("edit-text",l)}createIssue(l){return this.send("create-issue",l)}updatePriority(l,r){return this.send("update-priority",{id:l,priority:r})}updateAssignee(l,r){return this.send("update-assignee",{id:l,assignee:r})}addLabel(l,r){return this.send("label-add",{id:l,label:r})}removeLabel(l,r){return this.send("label-remove",{id:l,label:r})}deleteIssue(l){return this.send("delete-issue",{id:l})}getComments(l){return this.send("get-comments",{id:l})}addComment(l,r){return this.send("add-comment",{id:l,text:r})}addDep(l,r){return this.send("dep-add",{a:l,b:r})}removeDep(l,r){return this.send("dep-remove",{a:l,b:r})}listWorkspaces(){return this.send("list-workspaces")}getWorkspace(){return this.send("get-workspace")}setWorkspace(l,r){return this.send("set-workspace",{path:l,database:r})}fetchIssue(l){return new Promise(r=>{const s=`peek-${l}-${Date.now()}`,u=this.onPush(f=>{f.id!==s||f.type!=="snapshot"||(u(),this.unsubscribe(s),r(f.issues[0]??null))});this.subscribe({id:s,type:"issue-detail",params:{id:l}}),setTimeout(()=>{u(),this.unsubscribe(s),r(null)},3e3)})}}const Eg=$.createContext(null);function $v({children:i}){const l=$.useRef(null);return l.current||(l.current=new Kv,l.current.connect()),v.jsx(Eg.Provider,{value:l.current,children:i})}function po(){const i=$.useContext(Eg);if(!i)throw new Error("useWs must be inside WsProvider");return i}function Jv(){const[i,l]=$.useState(window.location.pathname||"/board");return $.useEffect(()=>{const r=()=>l(window.location.pathname||"/board");return window.addEventListener("popstate",r),()=>window.removeEventListener("popstate",r)},[]),i}function la(i){window.history.pushState(null,"",i),window.dispatchEvent(new PopStateEvent("popstate"))}function km({href:i,label:l,icon:r,active:s}){return v.jsxs("a",{href:i,onClick:u=>{u.preventDefault(),la(i)},className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",style:{background:s?"var(--bg-hover)":"transparent",color:s?"var(--text-primary)":"var(--text-secondary)",fontWeight:s?500:400},onMouseEnter:u=>{s||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{s||(u.currentTarget.style.background="transparent")},children:[r,l]})}const Wv=()=>v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"1",y:"1",width:"5",height:"6",rx:"1"}),v.jsx("rect",{x:"10",y:"1",width:"5",height:"9",rx:"1"}),v.jsx("rect",{x:"1",y:"9",width:"5",height:"6",rx:"1"}),v.jsx("rect",{x:"10",y:"12",width:"5",height:"3",rx:"1"})]}),Fv=()=>v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("line",{x1:"5",y1:"4",x2:"14",y2:"4"}),v.jsx("line",{x1:"5",y1:"8",x2:"14",y2:"8"}),v.jsx("line",{x1:"5",y1:"12",x2:"14",y2:"12"}),v.jsx("circle",{cx:"2",cy:"4",r:"0.75",fill:"currentColor",stroke:"none"}),v.jsx("circle",{cx:"2",cy:"8",r:"0.75",fill:"currentColor",stroke:"none"}),v.jsx("circle",{cx:"2",cy:"12",r:"0.75",fill:"currentColor",stroke:"none"})]});function e0({children:i}){const l=Jv();$.useEffect(()=>{const p=g=>{var b,E;const h=(E=(b=g.target).closest)==null?void 0:E.call(b,"a[href]");if(!h)return;const y=h.getAttribute("href");!y||!y.startsWith("/")||y.startsWith("//")||g.metaKey||g.ctrlKey||g.shiftKey||(g.preventDefault(),la(y))};return document.addEventListener("click",p),()=>document.removeEventListener("click",p)},[]);const r=po(),[s,u]=$.useState(""),[f,d]=$.useState({version:"",user:"",role:""});return $.useEffect(()=>{fetch("/api/config").then(p=>p.json()).then(p=>{d({version:p.version||"",user:p.user||"",role:p.role||""})}).catch(()=>{})},[]),$.useEffect(()=>{r.getWorkspace().then(p=>{if(p!=null&&p.db_path){const g=p.db_path.split("/").filter(Boolean),h=g.lastIndexOf(".beads");if(h>0){u(g[h-1]);return}}p!=null&&p.root_dir&&u(p.root_dir.split("/").pop()||"")}).catch(()=>{})},[r]),v.jsxs("div",{className:"flex h-screen",style:{background:"var(--bg-base)"},children:[v.jsxs("nav",{className:"flex flex-col",style:{width:"200px",borderRight:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[v.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-5",children:[v.jsx("div",{className:"flex items-center justify-center rounded-md",style:{width:"28px",height:"28px",background:"var(--accent)"},children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"white",children:[v.jsx("circle",{cx:"7",cy:"4",r:"2.5"}),v.jsx("circle",{cx:"4",cy:"10",r:"2.5"}),v.jsx("circle",{cx:"10",cy:"10",r:"2.5"})]})}),v.jsx("span",{className:"font-bold",style:{fontSize:"16px",color:"var(--text-primary)"},children:"Beads"})]}),s&&v.jsx("div",{className:"px-4 pb-3 mb-1",style:{borderBottom:"1px solid var(--border-subtle)"},children:v.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:s})}),v.jsxs("div",{className:"px-2 space-y-0.5",children:[v.jsx(km,{href:"/board",label:"Board",icon:v.jsx(Wv,{}),active:l.startsWith("/board")||l==="/"}),v.jsx(km,{href:"/list",label:"List",icon:v.jsx(Fv,{}),active:l.startsWith("/list")})]}),v.jsx("div",{className:"flex-1"}),f.version&&v.jsx("div",{className:"px-4 pb-2 text-center",children:v.jsxs("span",{style:{fontSize:"10px",color:"var(--text-tertiary)"},children:["v",f.version]})}),f.user&&v.jsxs("div",{className:"mx-3 mb-3 px-3 py-2.5 rounded-md flex items-center gap-2.5",style:{border:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-xs font-bold shrink-0",style:{width:"28px",height:"28px",background:"var(--accent)",color:"white"},children:f.user.charAt(0).toUpperCase()}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:f.user}),f.role&&v.jsx("div",{style:{fontSize:"11px",color:"var(--text-tertiary)"},children:f.role})]})]})]}),v.jsx("main",{className:"flex-1 overflow-auto",children:i(l)})]})}const Nm=new WeakMap;function xg(i){let l=Nm.get(i);return l||(l=new Map,Nm.set(i,l)),l}function Tg(i,l){return l?`${i}:${JSON.stringify(l)}`:i}function t0(i,l,r){const s=xg(i),u=Tg(l,r);let f=s.get(u);if(f)return f.refCount++,f;const d=`sub-${l}-${Date.now()}`;f={refCount:1,subId:d,items:new Map,listeners:new Set,loading:!0,total:0,cleanupPush:null};const p=()=>{for(const g of f.listeners)g()};return f.cleanupPush=i.onPush(g=>{if(g.id===d)if(g.type==="snapshot"){f.items=new Map;for(const h of g.issues)f.items.set(h.id,h);f.loading=!1,typeof g.total=="number"?f.total=g.total:f.total=g.issues.length,p()}else g.type==="upsert"?(f.items.set(g.issue.id,g.issue),p()):g.type==="delete"&&(f.items.delete(g.issue_id),p())}),i.subscribe({id:d,type:l,params:r}),s.set(u,f),f}function n0(i,l,r){var d;const s=xg(i),u=Tg(l,r),f=s.get(u);f&&(f.refCount--,f.refCount<=0&&((d=f.cleanupPush)==null||d.call(f),i.unsubscribe(f.subId),s.delete(u)))}function Qa(i,l){const r=po(),s=l?JSON.stringify(l):"",u=$.useRef(null),f=$.useRef(!1),[d,p]=$.useState([]),[g,h]=$.useState(0);$.useEffect(()=>{const I=t0(r,i,l);return u.current=I,()=>{n0(r,i,l),u.current=null}},[r,i,s]);const[y,b]=$.useState([]),[E,A]=$.useState(!0),[C,U]=$.useState(0);$.useEffect(()=>{const I=u.current;if(!I)return;const q=Array.from(I.items.values());b(q),A(I.loading),U(I.total),!I.loading&&q.length>0&&(f.current=!0,p(q),h(I.total));const X=()=>{const ae=Array.from(I.items.values());b(ae),A(I.loading),U(I.total),!I.loading&&ae.length>0&&(f.current=!0,p(ae),h(I.total))};return I.listeners.add(X),()=>{I.listeners.delete(X)}},[r,i,s]);const P=E&&!f.current,B=E&&f.current;return{issues:B?d:y,loading:P,refreshing:B,total:B?g:C}}const wm={0:{bg:"rgba(239,68,68,0.12)",text:"#DC2626"},1:{bg:"rgba(249,115,22,0.12)",text:"#EA580C"},2:{bg:"rgba(59,130,246,0.12)",text:"#2563EB"},3:{bg:"rgba(34,197,94,0.12)",text:"#16A34A"},4:{bg:"rgba(156,163,175,0.1)",text:"#9CA3AF"}};function hf({priority:i}){const l=wm[i]||wm[4];return v.jsxs("span",{className:"inline-flex items-center justify-center font-mono font-bold",style:{fontSize:"11px",lineHeight:1,padding:"3px 8px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:["P",i]})}const l0={epic:{bg:"rgba(124,58,237,0.1)",text:"#7C3AED"},feature:{bg:"rgba(99,102,241,0.1)",text:"#6366F1"},bug:{bg:"rgba(239,68,68,0.1)",text:"#DC2626"},task:{bg:"rgba(22,163,74,0.1)",text:"#16A34A"},chore:{bg:"rgba(120,113,108,0.1)",text:"#78716C"}},a0={bg:"rgba(120,113,108,0.1)",text:"#78716C"};function pf({type:i}){const l=l0[i]||a0;return v.jsx("span",{className:"inline-flex items-center px-2 py-0.5 font-semibold capitalize",style:{fontSize:"11px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:i})}const Mm=["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#64B5F6","#4FC3F7","#4DD0E1","#4DB6AC","#81C784","#AED581","#FFB74D"];function mf(i){const l=i.trim().split(/\s+/);return l.length>=2?(l[0][0]+l[l.length-1][0]).toUpperCase():i.slice(0,2).toUpperCase()}function gf(i){let l=0;for(let r=0;r<i.length;r++)l=i.charCodeAt(r)+((l<<5)-l);return Mm[Math.abs(l)%Mm.length]}const i0={epic:"#7C3AED",feature:"#6366F1",bug:"#EF4444",task:"#16A34A",chore:"#78716C"};function r0({issue:i,onClick:l,dimmed:r=!1}){const s=i0[i.issue_type]??"#78716C";return v.jsx("button",{onClick:l,className:`issue-card group w-full text-left relative cursor-pointer ${r?"issue-card--dimmed":""}`,style:{borderLeft:`3px solid ${s}`},children:v.jsxs("div",{className:"px-3.5 py-3",children:[v.jsx("div",{className:"mb-1",children:v.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:i.id})}),v.jsx("p",{className:"text-sm font-medium line-clamp-2 mb-2.5",style:{color:"var(--text-primary)"},children:i.title}),v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx(pf,{type:i.issue_type}),v.jsx(hf,{priority:i.priority}),v.jsx("div",{className:"flex-1"}),i.assignee&&v.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:gf(i.assignee),color:"var(--text-inverse)"},title:i.assignee,children:mf(i.assignee)})]})]})})}const zm=20,s0={open:"var(--status-open)",in_progress:"var(--status-in-progress)",blocked:"var(--status-blocked)",closed:"var(--status-closed)"};function Hs({title:i,subscriptionType:l,statusKey:r,onCardClick:s,isClosed:u=!1}){const[f,d]=$.useState(zm),p=$.useMemo(()=>({limit:f,offset:0}),[f]),{issues:g,loading:h,total:y}=Qa(l,p),b=$.useRef(null),[E,A]=$.useState(!1),C=y>g.length,U=y-g.length,P=s0[r]??"var(--text-tertiary)";return $.useEffect(()=>{const B=b.current;if(!B)return;const I=()=>A(B.scrollHeight>B.clientHeight);I();const q=new ResizeObserver(I);return q.observe(B),()=>q.disconnect()},[g.length]),v.jsxs("div",{className:"flex-1 min-w-[280px] max-w-[360px] flex flex-col self-start",children:[v.jsxs("div",{className:"flex items-center gap-2.5 px-1 pb-3 mb-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"rounded-full shrink-0",style:{width:"10px",height:"10px",backgroundColor:P,boxShadow:`0 0 0 3px ${P}33`}}),v.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:i}),v.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full ml-auto",style:{backgroundColor:"rgba(0,0,0,0.05)",color:"var(--text-tertiary)",fontSize:"11px"},children:h?"…":u&&y>g.length?`${g.length} / ${y}`:y})]}),v.jsxs("div",{ref:b,className:"space-y-2 overflow-y-auto flex-1 pr-1 relative",style:{maxHeight:"calc(100vh - 160px)",maskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0,WebkitMaskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0},children:[h&&g.length===0&&v.jsx("div",{className:"py-8 text-center",children:v.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"Loading…"})}),!h&&g.length===0&&v.jsx("div",{className:"py-8 text-center",style:{border:"2px dashed var(--border-default)",borderRadius:"var(--radius-md)",minHeight:"100px",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"No items"})}),g.map(B=>v.jsx(r0,{issue:B,onClick:()=>s(B.id),dimmed:u},B.id)),C&&v.jsxs("button",{onClick:()=>d(B=>B+zm),className:"w-full text-xs py-2",style:{color:"var(--text-secondary)",transition:"color 120ms ease"},onMouseEnter:B=>{B.currentTarget.style.color="var(--accent)"},onMouseLeave:B=>{B.currentTarget.style.color="var(--text-secondary)"},children:["Show ",U," more…"]})]})]})}function o0(){const{total:i}=Qa("all-issues",{limit:1,offset:0}),{total:l}=Qa("epics",{limit:1,offset:0}),r=s=>{la(`/detail/${s}`)};return v.jsxs("div",{className:"p-6",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Board"}),v.jsxs("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:[i," issues across ",l," epics"]})]}),v.jsxs("div",{className:"flex gap-4 overflow-x-auto items-start",children:[v.jsx(Hs,{title:"Open",subscriptionType:"ready-issues",statusKey:"open",onCardClick:r}),v.jsx(Hs,{title:"In Progress",subscriptionType:"in-progress-issues",statusKey:"in_progress",onCardClick:r}),v.jsx(Hs,{title:"Blocked",subscriptionType:"blocked-issues",statusKey:"blocked",onCardClick:r}),v.jsx(Hs,{title:"Closed",subscriptionType:"closed-issues",statusKey:"closed",onCardClick:r,isClosed:!0})]})]})}const u0={open:{dot:"var(--status-open)",bg:"rgba(59,130,246,0.08)",text:"#2563EB",border:"rgba(59,130,246,0.2)",label:"Open"},in_progress:{dot:"var(--status-in-progress)",bg:"rgba(245,158,11,0.08)",text:"#D97706",border:"rgba(245,158,11,0.2)",label:"In Progress"},blocked:{dot:"var(--status-blocked)",bg:"rgba(239,68,68,0.08)",text:"#DC2626",border:"rgba(239,68,68,0.2)",label:"Blocked"},closed:{dot:"var(--status-closed)",bg:"rgba(34,197,94,0.08)",text:"#16A34A",border:"rgba(34,197,94,0.2)",label:"Closed"}},c0={dot:"#9CA3AF",bg:"rgba(156,163,175,0.08)",text:"#6B7280",border:"rgba(156,163,175,0.2)",label:""};function fr({status:i}){const l=u0[i]||c0;return v.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 font-semibold",style:{fontSize:"11px",borderRadius:"20px",backgroundColor:l.bg,color:l.text,border:`1px solid ${l.border}`},children:[v.jsx("span",{className:"rounded-full shrink-0",style:{width:"6px",height:"6px",backgroundColor:l.dot}}),l.label||i]})}const Vs=20,f0=()=>v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("circle",{cx:"7",cy:"7",r:"5"}),v.jsx("line",{x1:"11",y1:"11",x2:"14",y2:"14"})]});function d0(){return v.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"w-36 h-3 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-20 h-5 rounded-full skeleton-shimmer"}),v.jsx("div",{className:"w-8 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"flex-1 h-3 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-14 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-24 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-16 h-3 rounded skeleton-shimmer"})]})}function h0(){return v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{animation:"spin 0.8s linear infinite"},children:[v.jsx("circle",{cx:"10",cy:"10",r:"8",stroke:"var(--border-default)",strokeWidth:"2"}),v.jsx("path",{d:"M10 2a8 8 0 0 1 8 8",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round"})]})}function p0({search:i,setSearch:l,statusFilter:r,setStatusFilter:s,typeFilter:u,setTypeFilter:f}){return v.jsxs("div",{className:"flex items-center gap-3 mb-4 px-4 py-3 rounded-lg",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-sm)"},children:[v.jsxs("div",{className:"relative flex-1 max-w-xs",children:[v.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--text-tertiary)"},children:v.jsx(f0,{})}),v.jsx("input",{type:"text",value:i,onChange:d=>l(d.target.value),placeholder:"Search issues...",className:"w-full pl-9 pr-3 py-1.5 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:d=>{d.currentTarget.style.borderColor="var(--accent)"},onBlur:d=>{d.currentTarget.style.borderColor="var(--border-default)"}})]}),v.jsxs("select",{value:r,onChange:d=>s(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"all",children:"All statuses"}),v.jsx("option",{value:"open",children:"Open"}),v.jsx("option",{value:"in_progress",children:"In Progress"}),v.jsx("option",{value:"blocked",children:"Blocked"}),v.jsx("option",{value:"closed",children:"Closed"})]}),v.jsxs("select",{value:u,onChange:d=>f(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"all",children:"All types"}),v.jsx("option",{value:"epic",children:"Epic"}),v.jsx("option",{value:"feature",children:"Feature"}),v.jsx("option",{value:"task",children:"Task"}),v.jsx("option",{value:"bug",children:"Bug"}),v.jsx("option",{value:"chore",children:"Chore"})]})]})}function m0({page:i,totalPages:l,total:r,pageSize:s,onPageChange:u}){const f=i*s+1,d=Math.min((i+1)*s,r);return v.jsxs("div",{className:"flex items-center justify-between px-1 py-2 text-xs",style:{color:"var(--text-tertiary)"},children:[v.jsx("span",{children:r>0?`${f}–${d} of ${r}`:"0 issues"}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("button",{disabled:i===0,onClick:()=>u(0),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"««"}),v.jsx("button",{disabled:i===0,onClick:()=>u(i-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"«"}),v.jsxs("span",{className:"px-2",children:[i+1," / ",l||1]}),v.jsx("button",{disabled:i>=l-1,onClick:()=>u(i+1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»"}),v.jsx("button",{disabled:i>=l-1,onClick:()=>u(l-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»»"})]})]})}function g0({issue:i,selected:l,onClick:r}){const s=new Date(i.updated_at).toLocaleDateString();return v.jsxs("button",{onClick:r,className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors",style:{borderBottom:"1px solid var(--border-subtle)",background:l?"var(--bg-hover)":"transparent"},onMouseEnter:u=>{l||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{l||(u.currentTarget.style.background="transparent")},children:[v.jsx("span",{className:"font-mono text-xs w-36 shrink-0 text-left",style:{color:"var(--text-tertiary)"},children:i.id}),v.jsx("span",{className:"w-28 shrink-0",children:v.jsx(fr,{status:i.status})}),v.jsx("span",{className:"w-12 shrink-0",children:v.jsx(hf,{priority:i.priority})}),v.jsxs("span",{className:"flex-1 text-left truncate",style:{color:"var(--text-primary)"},children:[i.title,i.issue_type==="epic"&&i.total_children!=null&&v.jsxs("span",{className:"ml-2 text-xs px-1.5 py-0.5 rounded",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},children:[i.total_children," sub"]})]}),v.jsx("span",{className:"w-16 shrink-0",children:v.jsx(pf,{type:i.issue_type})}),v.jsx("span",{className:"w-28 shrink-0 flex items-center gap-1.5 justify-end",children:i.assignee?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-[9px] font-bold shrink-0",style:{width:"20px",height:"20px",backgroundColor:gf(i.assignee),color:"var(--text-inverse)"},children:mf(i.assignee)}),v.jsx("span",{className:"text-xs truncate",style:{color:"var(--text-secondary)"},children:i.assignee})]}):v.jsx("span",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"—"})}),v.jsx("span",{className:"text-xs w-20 text-right shrink-0",style:{color:"var(--text-tertiary)"},children:s})]})}function _0(){const[i,l]=$.useState(""),[r,s]=$.useState(""),[u,f]=$.useState("all"),[d,p]=$.useState("all"),[g,h]=$.useState(0),[y,b]=$.useState(-1),E=$.useRef(null);$.useEffect(()=>{const X=setTimeout(()=>s(i),300);return()=>clearTimeout(X)},[i]);const A=$.useMemo(()=>{const X={};return r.trim()&&(X.q=r.trim()),u!=="all"&&(X.status=u),d!=="all"&&(X.type=d),X},[r,u,d]),{issues:C,loading:U,refreshing:P,total:B}=Qa("search-issues",A),I=Math.ceil(B/Vs),q=$.useMemo(()=>{const X=g*Vs;return C.slice(X,X+Vs)},[C,g]);return $.useEffect(()=>{h(0),b(-1)},[u,d,i]),$.useEffect(()=>{b(-1)},[g]),$.useEffect(()=>{const X=ae=>{ae.target instanceof HTMLInputElement||ae.target instanceof HTMLTextAreaElement||ae.target instanceof HTMLSelectElement||(ae.key==="j"&&b(fe=>Math.min(fe+1,q.length-1)),ae.key==="k"&&b(fe=>Math.max(fe-1,-1)),ae.key==="Enter"&&q[y]&&la(`/detail/${q[y].id}`))};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[q,y]),v.jsxs("div",{className:"p-6 h-full flex flex-col",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"mb-4",children:[v.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Issues"}),v.jsx("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:U?" ":`${B} issues`})]}),v.jsx(p0,{search:i,setSearch:l,statusFilter:u,setStatusFilter:f,typeFilter:d,setTypeFilter:p}),v.jsx("div",{className:"rounded-t-lg overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderBottom:"none",boxShadow:"var(--shadow-card)"},children:v.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-tertiary)",borderBottom:"1px solid var(--border-subtle)",fontSize:"11px"},children:[v.jsx("span",{className:"w-36 shrink-0",children:"ID"}),v.jsx("span",{className:"w-28 shrink-0",children:"Status"}),v.jsx("span",{className:"w-12 shrink-0",children:"Priority"}),v.jsx("span",{className:"flex-1",children:"Title"}),v.jsx("span",{className:"w-16 shrink-0",children:"Type"}),v.jsx("span",{className:"w-28 shrink-0 text-right",children:"Assignee"}),v.jsx("span",{className:"w-20 shrink-0 text-right",children:"Date"})]})}),v.jsxs("div",{ref:E,className:"flex-1 overflow-y-auto rounded-b-lg relative",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderTop:"none",boxShadow:"var(--shadow-card)"},children:[U&&v.jsx(v.Fragment,{children:Array.from({length:8}).map((X,ae)=>v.jsx(d0,{},ae))}),P&&v.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",style:{background:"rgba(253,251,247,0.6)",backdropFilter:"blur(1px)"},children:v.jsx(h0,{})}),!U&&(q.length===0?v.jsx("p",{className:"text-sm p-8 text-center",style:{color:"var(--text-tertiary)"},children:"No issues match your filters"}):q.map((X,ae)=>v.jsx(g0,{issue:X,selected:ae===y,onClick:()=>{b(ae),la(`/detail/${X.id}`)}},X.id)))]}),!U&&I>1&&v.jsx(m0,{page:g,totalPages:I,total:B,pageSize:Vs,onPageChange:h})]})}function Ag(){const i=po();return{updateStatus:$.useCallback((l,r)=>i.updateStatus({id:l,status:r}),[i]),editText:$.useCallback(l=>i.editText(l),[i]),createIssue:$.useCallback(l=>i.createIssue(l),[i]),updatePriority:$.useCallback((l,r)=>i.updatePriority(l,r),[i]),updateAssignee:$.useCallback((l,r)=>i.updateAssignee(l,r),[i]),addLabel:$.useCallback((l,r)=>i.addLabel(l,r),[i]),removeLabel:$.useCallback((l,r)=>i.removeLabel(l,r),[i]),deleteIssue:$.useCallback(l=>i.deleteIssue(l),[i]),addComment:$.useCallback((l,r)=>i.addComment(l,r),[i]),addDep:$.useCallback((l,r)=>i.addDep(l,r),[i]),removeDep:$.useCallback((l,r)=>i.removeDep(l,r),[i])}}function _f(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ia=_f();function Rg(i){ia=i}var ur={exec:()=>null};function Le(i,l=""){let r=typeof i=="string"?i:i.source;const s={replace:(u,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(Ot.caret,"$1"),r=r.replace(u,d),s},getRegex:()=>new RegExp(r,l)};return s}var Ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},y0=/^(?:[ \t]*(?:\n|$))+/,v0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,b0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,S0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yf=/(?:[*+-]|\d{1,9}[.)])/,Og=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Cg=Le(Og).replace(/bull/g,yf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),E0=Le(Og).replace(/bull/g,yf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),vf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,x0=/^[^\n]+/,bf=/(?!\s*\])(?:\\.|[^\[\]\\])+/,T0=Le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),A0=Le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yf).getRegex(),mo="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Sf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,R0=Le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Sf).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dg=Le(vf).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),O0=Le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Dg).getRegex(),Ef={blockquote:O0,code:v0,def:T0,fences:b0,heading:S0,hr:gr,html:R0,lheading:Cg,list:A0,newline:y0,paragraph:Dg,table:ur,text:x0},jm=Le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),C0={...Ef,lheading:E0,table:jm,paragraph:Le(vf).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex()},D0={...Ef,html:Le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ur,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Le(vf).replace("hr",gr).replace("heading",` *#{1,6} *[^
|
|
51
|
-
]`).replace("lheading",
|
|
52
|
-
`).map(f=>{const d=f.match(r.other.beginningSpace);if(d===null)return f;const[
|
|
49
|
+
`+a.stack}}var ol=Object.prototype.hasOwnProperty,ul=i.unstable_scheduleCallback,oa=i.unstable_cancelCallback,br=i.unstable_shouldYield,bo=i.unstable_requestPaint,gt=i.unstable_now,Ul=i.unstable_getCurrentPriorityLevel,wn=i.unstable_ImmediatePriority,Gt=i.unstable_UserBlockingPriority,cl=i.unstable_NormalPriority,Sr=i.unstable_LowPriority,Wa=i.unstable_IdlePriority,Fa=i.log,Er=i.unstable_setDisableYieldValue,bn=null,ft=null;function dt(e){if(typeof Fa=="function"&&Er(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(bn,e)}catch{}}var et=Math.clz32?Math.clz32:So,ei=Math.log,ti=Math.LN2;function So(e){return e>>>=0,e===0?32:31-(ei(e)/ti|0)|0}var Mn=256,zn=262144,ua=4194304;function It(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ca(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var _=a&134217727;return _!==0?(a=_&~c,a!==0?o=It(a):(m&=_,m!==0?o=It(m):n||(n=_&~e,n!==0&&(o=It(n))))):(_=a&~c,_!==0?o=It(_):m!==0?o=It(m):n||(n=a&~e,n!==0&&(o=It(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jn(){var e=ua;return ua<<=1,(ua&62914560)===0&&(ua=4194304),e}function ni(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function li(e,t,n,a,o,c){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var _=e.entanglements,x=e.expirationTimes,L=e.hiddenUpdates;for(n=m&~n;0<n;){var j=31-et(n),V=1<<j;_[j]=0,x[j]=-1;var N=L[j];if(N!==null)for(L[j]=null,j=0;j<N.length;j++){var M=N[j];M!==null&&(M.lane&=-536870913)}n&=~V}a!==0&&ai(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function ai(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ii(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-et(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function xr(e,t){var n=t&-t;return n=(n&42)!==0?1:Nt(n),(n&(e.suspendedLanes|t))!==0?0:n}function Nt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ri(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:pp(e.type))}function si(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Ft=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ft,qe="__reactProps$"+Ft,Un="__reactContainer$"+Ft,fa="__reactEvents$"+Ft,Tr="__reactListeners$"+Ft,Ar="__reactHandles$"+Ft,Rr="__reactResources$"+Ft,ne="__reactMarker$"+Ft;function R(e){delete e[tt],delete e[qe],delete e[fa],delete e[Tr],delete e[Ar]}function Y(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Un]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fm(e);e!==null;){if(n=e[tt])return n;e=Fm(e)}return t}e=n,n=e.parentNode}return null}function J(e){if(e=e[tt]||e[Un]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function De(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Xe(e){var t=e[Rr];return t||(t=e[Rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function me(e){e[ne]=!0}var _t=new Set,en={};function wt(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(en[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var st=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]*$"),oi={},ui={};function L_(e){return ol.call(ui,e)?!0:ol.call(oi,e)?!1:st.test(e)?ui[e]=!0:(oi[e]=!0,!1)}function Or(e,t,n){if(L_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Cr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Bn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N_(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eo(e){if(!e._valueTracker){var t=Uf(e)?"checked":"value";e._valueTracker=N_(e,t,""+e[t])}}function Bf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Uf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Dr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var w_=/[\n"\\]/g;function nn(e){return e.replace(w_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xo(e,t,n,a,o,c,m,_){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?To(e,m,tn(t)):n!=null?To(e,m,tn(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+tn(_):e.removeAttribute("name")}function Hf(e,t,n,a,o,c,m,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Eo(e);return}n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,_||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=_?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Eo(e)}function To(e,t,n){t==="number"&&Dr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function da(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Vf(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function Gf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Fe(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Eo(e)}function ha(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var M_=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 If(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||M_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function qf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&If(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&If(e,c,t[c])}function Ao(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var z_=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"]]),j_=/^[\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 kr(e){return j_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hn(){}var Ro=null;function Oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,pa=null;function Pf(e){var t=J(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(xo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[qe]||null;if(!o)throw Error(s(90));xo(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Bf(a)}break e;case"textarea":Vf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&da(e,!!n.multiple,t,!1)}}}var Co=!1;function Yf(e,t,n){if(Co)return e(t,n);Co=!0;try{var a=e(t);return a}finally{if(Co=!1,(ma!==null||pa!==null)&&(_s(),ma&&(t=ma,e=pa,pa=ma=null,Pf(t),e)))for(t=0;t<e.length;t++)Pf(e[t])}}function ci(e,t){var n=e.stateNode;if(n===null)return null;var a=n[qe]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=!1;if(Vn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){Do=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{Do=!1}var dl=null,ko=null,Lr=null;function Xf(){if(Lr)return Lr;var e,t=ko,n=t.length,a,o="value"in dl?dl.value:dl.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[c-a];a++);return Lr=o.slice(e,1<a?1-a:void 0)}function Nr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wr(){return!0}function Qf(){return!1}function Mt(e){function t(n,a,o,c,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(n=e[_],this[_]=n?n(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?wr:Qf,this.isPropagationStopped=Qf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wr)},persist:function(){},isPersistent:wr}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mr=Mt(Hl),di=b({},Hl,{view:0,detail:0}),U_=Mt(di),Lo,No,hi,zr=b({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&e.type==="mousemove"?(Lo=e.screenX-hi.screenX,No=e.screenY-hi.screenY):No=Lo=0,hi=e),Lo)},movementY:function(e){return"movementY"in e?e.movementY:No}}),Zf=Mt(zr),B_=b({},zr,{dataTransfer:0}),H_=Mt(B_),V_=b({},di,{relatedTarget:0}),wo=Mt(V_),G_=b({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),I_=Mt(G_),q_=b({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P_=Mt(q_),Y_=b({},Hl,{data:0}),Kf=Mt(Y_),X_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q_={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"},Z_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Z_[e])?!!t[e]:!1}function Mo(){return K_}var $_=b({},di,{key:function(e){if(e.key){var t=X_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Q_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J_=Mt($_),W_=b({},zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$f=Mt(W_),F_=b({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),ey=Mt(F_),ty=b({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ny=Mt(ty),ly=b({},zr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ay=Mt(ly),iy=b({},Hl,{newState:0,oldState:0}),ry=Mt(iy),sy=[9,13,27,32],zo=Vn&&"CompositionEvent"in window,mi=null;Vn&&"documentMode"in document&&(mi=document.documentMode);var oy=Vn&&"TextEvent"in window&&!mi,Jf=Vn&&(!zo||mi&&8<mi&&11>=mi),Wf=" ",Ff=!1;function ed(e,t){switch(e){case"keyup":return sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function uy(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Ff=!0,Wf);case"textInput":return e=t.data,e===Wf&&Ff?null:e;default:return null}}function cy(e,t){if(ga)return e==="compositionend"||!zo&&ed(e,t)?(e=Xf(),Lr=ko=dl=null,ga=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jf&&t.locale!=="ko"?null:t.data;default:return null}}var fy={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 nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fy[e.type]:t==="textarea"}function ld(e,t,n,a){ma?pa?pa.push(a):pa=[a]:ma=a,t=Ts(t,"onChange"),0<t.length&&(n=new Mr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var pi=null,gi=null;function dy(e){Hm(e,0)}function jr(e){var t=De(e);if(Bf(t))return e}function ad(e,t){if(e==="change")return t}var id=!1;if(Vn){var jo;if(Vn){var Uo="oninput"in document;if(!Uo){var rd=document.createElement("div");rd.setAttribute("oninput","return;"),Uo=typeof rd.oninput=="function"}jo=Uo}else jo=!1;id=jo&&(!document.documentMode||9<document.documentMode)}function sd(){pi&&(pi.detachEvent("onpropertychange",od),gi=pi=null)}function od(e){if(e.propertyName==="value"&&jr(gi)){var t=[];ld(t,gi,e,Oo(e)),Yf(dy,t)}}function hy(e,t,n){e==="focusin"?(sd(),pi=t,gi=n,pi.attachEvent("onpropertychange",od)):e==="focusout"&&sd()}function my(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jr(gi)}function py(e,t){if(e==="click")return jr(t)}function gy(e,t){if(e==="input"||e==="change")return jr(t)}function _y(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:_y;function _i(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!ol.call(t,o)||!qt(e[o],t[o]))return!1}return!0}function ud(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cd(e,t){var n=ud(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ud(n)}}function fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Dr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dr(e.document)}return t}function Bo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var yy=Vn&&"documentMode"in document&&11>=document.documentMode,_a=null,Ho=null,yi=null,Vo=!1;function hd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||_a==null||_a!==Dr(a)||(a=_a,"selectionStart"in a&&Bo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),yi&&_i(yi,a)||(yi=a,a=Ts(Ho,"onSelect"),0<a.length&&(t=new Mr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=_a)))}function Vl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ya={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Go={},md={};Vn&&(md=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Gl(e){if(Go[e])return Go[e];if(!ya[e])return e;var t=ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in md)return Go[e]=t[n];return e}var pd=Gl("animationend"),gd=Gl("animationiteration"),_d=Gl("animationstart"),vy=Gl("transitionrun"),by=Gl("transitionstart"),Sy=Gl("transitioncancel"),yd=Gl("transitionend"),vd=new Map,Io="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(" ");Io.push("scrollEnd");function _n(e,t){vd.set(e,t),wt(t,[e])}var Ur=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],va=0,qo=0;function Br(){for(var e=va,t=qo=va=0;t<e;){var n=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];ln[t++]=null;var c=ln[t];if(ln[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}c!==0&&bd(n,o,c)}}function Hr(e,t,n,a){ln[va++]=e,ln[va++]=t,ln[va++]=n,ln[va++]=a,qo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Po(e,t,n,a){return Hr(e,t,n,a),Vr(e)}function Il(e,t){return Hr(e,null,null,t),Vr(e)}function bd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-et(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Vr(e){if(50<Vi)throw Vi=0,Fu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ba={};function Ey(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,a){return new Ey(e,t,n,a)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Sd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gr(e,t,n,a,o,c){var m=0;if(a=e,typeof e=="function")Yo(e)&&(m=1);else if(typeof e=="string")m=Ov(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pt:return e=Pt(31,n,t,o),e.elementType=pt,e.lanes=c,e;case U:return ql(n.children,o,c,t);case q:m=8,o|=24;break;case B:return e=Pt(12,n,t,o|2),e.elementType=B,e.lanes=c,e;case ae:return e=Pt(13,n,t,o),e.elementType=ae,e.lanes=c,e;case fe:return e=Pt(19,n,t,o),e.elementType=fe,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:m=10;break e;case I:m=9;break e;case X:m=11;break e;case te:m=14;break e;case Ue:m=16,a=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Pt(m,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ql(e,t,n,a){return e=Pt(7,e,a,t),e.lanes=n,e}function Xo(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ed(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Qo(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xd=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var n=xd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nn(t)},xd.set(e,t),t)}return{value:e,source:t,stack:Nn(t)}}var Sa=[],Ea=0,Ir=null,vi=0,rn=[],sn=0,hl=null,En=1,xn="";function In(e,t){Sa[Ea++]=vi,Sa[Ea++]=Ir,Ir=e,vi=t}function Td(e,t,n){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,hl=e;var a=En;e=xn;var o=32-et(a)-1;a&=~(1<<o),n+=1;var c=32-et(t)+o;if(30<c){var m=o-o%5;c=(a&(1<<m)-1).toString(32),a>>=m,o-=m,En=1<<32-et(t)+o|n<<o|a,xn=c+e}else En=1<<c|n<<o|a,xn=e}function Zo(e){e.return!==null&&(In(e,1),Td(e,1,0))}function Ko(e){for(;e===Ir;)Ir=Sa[--Ea],Sa[Ea]=null,vi=Sa[--Ea],Sa[Ea]=null;for(;e===hl;)hl=rn[--sn],rn[sn]=null,xn=rn[--sn],rn[sn]=null,En=rn[--sn],rn[sn]=null}function Ad(e,t){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,En=t.id,xn=t.overflow,hl=e}var yt=null,He=null,Se=!1,ml=null,on=!1,$o=Error(s(519));function pl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bi(an(t,e)),$o}function Rd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[tt]=e,t[qe]=a,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<Ii.length;n++)_e(Ii[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),Hf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),Gf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||qm(t.textContent,n)?(a.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),a.onScroll!=null&&_e("scroll",t),a.onScrollEnd!=null&&_e("scrollend",t),a.onClick!=null&&(t.onclick=Hn),t=!0):t=!1,t||pl(e,!0)}function Od(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:yt=yt.return}}function xa(e){if(e!==yt)return!1;if(!Se)return Od(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||mc(e.type,e.memoizedProps)),n=!n),n&&He&&pl(e),Od(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=Wm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=Wm(e)}else t===27?(t=He,Dl(e.type)?(e=vc,vc=null,He=e):He=t):He=yt?cn(e.stateNode.nextSibling):null;return!0}function Pl(){He=yt=null,Se=!1}function Jo(){var e=ml;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),ml=null),e}function bi(e){ml===null?ml=[e]:ml.push(e)}var Wo=A(null),Yl=null,qn=null;function gl(e,t,n){Q(Wo,t._currentValue),t._currentValue=n}function Pn(e){e._currentValue=Wo.current,G(Wo)}function Fo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function eu(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=o;for(var x=0;x<t.length;x++)if(_.context===t[x]){c.lanes|=n,_=c.alternate,_!==null&&(_.lanes|=n),Fo(c.return,n,e),a||(m=null);break e}c=_.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(s(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),Fo(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Ta(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var _=o.type;qt(o.pendingProps.value,m.value)||(e!==null?e.push(_):e=[_])}}else if(o===be.current){if(m=o.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Qi):e=[Qi])}o=o.return}e!==null&&eu(t,e,n,a),t.flags|=262144}function qr(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Yl=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Cd(Yl,e)}function Pr(e,t){return Yl===null&&Xl(e),Cd(e,t)}function Cd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qn===null){if(e===null)throw Error(s(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return n}var xy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ty=i.unstable_scheduleCallback,Ay=i.unstable_NormalPriority,nt={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tu(){return{controller:new xy,data:new Map,refCount:0}}function Si(e){e.refCount--,e.refCount===0&&Ty(Ay,function(){e.controller.abort()})}var Ei=null,nu=0,Aa=0,Ra=null;function Ry(e,t){if(Ei===null){var n=Ei=[];nu=0,Aa=ic(),Ra={status:"pending",value:void 0,then:function(a){n.push(a)}}}return nu++,t.then(Dd,Dd),t}function Dd(){if(--nu===0&&Ei!==null){Ra!==null&&(Ra.status="fulfilled");var e=Ei;Ei=null,Aa=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Oy(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var kd=z.S;z.S=function(e,t){hm=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ry(e,t),kd!==null&&kd(e,t)};var Ql=A(null);function lu(){var e=Ql.current;return e!==null?e:je.pooledCache}function Yr(e,t){t===null?Q(Ql,Ql.current):Q(Ql,t.pool)}function Ld(){var e=lu();return e===null?null:{parent:nt._currentValue,pool:e}}var Oa=Error(s(460)),au=Error(s(474)),Xr=Error(s(542)),Qr={then:function(){}};function Nd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hn,Hn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zd(e),e;default:if(typeof t.status=="string")t.then(Hn,Hn);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zd(e),e}throw Kl=t,Oa}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Kl=n,Oa):n}}var Kl=null;function Md(){if(Kl===null)throw Error(s(459));var e=Kl;return Kl=null,e}function zd(e){if(e===Oa||e===Xr)throw Error(s(483))}var Ca=null,xi=0;function Zr(e){var t=xi;return xi+=1,Ca===null&&(Ca=[]),wd(Ca,e,t)}function Ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jd(e){function t(D,O){if(e){var k=D.deletions;k===null?(D.deletions=[O],D.flags|=16):k.push(O)}}function n(D,O){if(!e)return null;for(;O!==null;)t(D,O),O=O.sibling;return null}function a(D){for(var O=new Map;D!==null;)D.key!==null?O.set(D.key,D):O.set(D.index,D),D=D.sibling;return O}function o(D,O){return D=Gn(D,O),D.index=0,D.sibling=null,D}function c(D,O,k){return D.index=k,e?(k=D.alternate,k!==null?(k=k.index,k<O?(D.flags|=67108866,O):k):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function m(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function _(D,O,k,H){return O===null||O.tag!==6?(O=Xo(k,D.mode,H),O.return=D,O):(O=o(O,k),O.return=D,O)}function x(D,O,k,H){var ie=k.type;return ie===U?j(D,O,k.props.children,H,k.key):O!==null&&(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type)?(O=o(O,k.props),Ti(O,k),O.return=D,O):(O=Gr(k.type,k.key,k.props,null,D.mode,H),Ti(O,k),O.return=D,O)}function L(D,O,k,H){return O===null||O.tag!==4||O.stateNode.containerInfo!==k.containerInfo||O.stateNode.implementation!==k.implementation?(O=Qo(k,D.mode,H),O.return=D,O):(O=o(O,k.children||[]),O.return=D,O)}function j(D,O,k,H,ie){return O===null||O.tag!==7?(O=ql(k,D.mode,H,ie),O.return=D,O):(O=o(O,k),O.return=D,O)}function V(D,O,k){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Xo(""+O,D.mode,k),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case T:return k=Gr(O.type,O.key,O.props,null,D.mode,k),Ti(k,O),k.return=D,k;case C:return O=Qo(O,D.mode,k),O.return=D,O;case Ue:return O=Zl(O),V(D,O,k)}if(Fe(O)||Ke(O))return O=ql(O,D.mode,k,null),O.return=D,O;if(typeof O.then=="function")return V(D,Zr(O),k);if(O.$$typeof===P)return V(D,Pr(D,O),k);Kr(D,O)}return null}function N(D,O,k,H){var ie=O!==null?O.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ie!==null?null:_(D,O,""+k,H);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case T:return k.key===ie?x(D,O,k,H):null;case C:return k.key===ie?L(D,O,k,H):null;case Ue:return k=Zl(k),N(D,O,k,H)}if(Fe(k)||Ke(k))return ie!==null?null:j(D,O,k,H,null);if(typeof k.then=="function")return N(D,O,Zr(k),H);if(k.$$typeof===P)return N(D,O,Pr(D,k),H);Kr(D,k)}return null}function M(D,O,k,H,ie){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return D=D.get(k)||null,_(O,D,""+H,ie);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case T:return D=D.get(H.key===null?k:H.key)||null,x(O,D,H,ie);case C:return D=D.get(H.key===null?k:H.key)||null,L(O,D,H,ie);case Ue:return H=Zl(H),M(D,O,k,H,ie)}if(Fe(H)||Ke(H))return D=D.get(k)||null,j(O,D,H,ie,null);if(typeof H.then=="function")return M(D,O,k,Zr(H),ie);if(H.$$typeof===P)return M(D,O,k,Pr(O,H),ie);Kr(O,H)}return null}function F(D,O,k,H){for(var ie=null,Ee=null,le=O,de=O=0,ve=null;le!==null&&de<k.length;de++){le.index>de?(ve=le,le=null):ve=le.sibling;var xe=N(D,le,k[de],H);if(xe===null){le===null&&(le=ve);break}e&&le&&xe.alternate===null&&t(D,le),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe,le=ve}if(de===k.length)return n(D,le),Se&&In(D,de),ie;if(le===null){for(;de<k.length;de++)le=V(D,k[de],H),le!==null&&(O=c(le,O,de),Ee===null?ie=le:Ee.sibling=le,Ee=le);return Se&&In(D,de),ie}for(le=a(le);de<k.length;de++)ve=M(le,D,de,k[de],H),ve!==null&&(e&&ve.alternate!==null&&le.delete(ve.key===null?de:ve.key),O=c(ve,O,de),Ee===null?ie=ve:Ee.sibling=ve,Ee=ve);return e&&le.forEach(function(Ml){return t(D,Ml)}),Se&&In(D,de),ie}function se(D,O,k,H){if(k==null)throw Error(s(151));for(var ie=null,Ee=null,le=O,de=O=0,ve=null,xe=k.next();le!==null&&!xe.done;de++,xe=k.next()){le.index>de?(ve=le,le=null):ve=le.sibling;var Ml=N(D,le,xe.value,H);if(Ml===null){le===null&&(le=ve);break}e&&le&&Ml.alternate===null&&t(D,le),O=c(Ml,O,de),Ee===null?ie=Ml:Ee.sibling=Ml,Ee=Ml,le=ve}if(xe.done)return n(D,le),Se&&In(D,de),ie;if(le===null){for(;!xe.done;de++,xe=k.next())xe=V(D,xe.value,H),xe!==null&&(O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return Se&&In(D,de),ie}for(le=a(le);!xe.done;de++,xe=k.next())xe=M(le,D,de,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&le.delete(xe.key===null?de:xe.key),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return e&&le.forEach(function(Bv){return t(D,Bv)}),Se&&In(D,de),ie}function ze(D,O,k,H){if(typeof k=="object"&&k!==null&&k.type===U&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case T:e:{for(var ie=k.key;O!==null;){if(O.key===ie){if(ie=k.type,ie===U){if(O.tag===7){n(D,O.sibling),H=o(O,k.props.children),H.return=D,D=H;break e}}else if(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type){n(D,O.sibling),H=o(O,k.props),Ti(H,k),H.return=D,D=H;break e}n(D,O);break}else t(D,O);O=O.sibling}k.type===U?(H=ql(k.props.children,D.mode,H,k.key),H.return=D,D=H):(H=Gr(k.type,k.key,k.props,null,D.mode,H),Ti(H,k),H.return=D,D=H)}return m(D);case C:e:{for(ie=k.key;O!==null;){if(O.key===ie)if(O.tag===4&&O.stateNode.containerInfo===k.containerInfo&&O.stateNode.implementation===k.implementation){n(D,O.sibling),H=o(O,k.children||[]),H.return=D,D=H;break e}else{n(D,O);break}else t(D,O);O=O.sibling}H=Qo(k,D.mode,H),H.return=D,D=H}return m(D);case Ue:return k=Zl(k),ze(D,O,k,H)}if(Fe(k))return F(D,O,k,H);if(Ke(k)){if(ie=Ke(k),typeof ie!="function")throw Error(s(150));return k=ie.call(k),se(D,O,k,H)}if(typeof k.then=="function")return ze(D,O,Zr(k),H);if(k.$$typeof===P)return ze(D,O,Pr(D,k),H);Kr(D,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,O!==null&&O.tag===6?(n(D,O.sibling),H=o(O,k),H.return=D,D=H):(n(D,O),H=Xo(k,D.mode,H),H.return=D,D=H),m(D)):n(D,O)}return function(D,O,k,H){try{xi=0;var ie=ze(D,O,k,H);return Ca=null,ie}catch(le){if(le===Oa||le===Xr)throw le;var Ee=Pt(29,le,null,D.mode);return Ee.lanes=H,Ee.return=D,Ee}finally{}}}var $l=jd(!0),Ud=jd(!1),_l=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ru(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Vr(e),bd(e,null,n),t}return Hr(e,a,t,n),Vr(e)}function Ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ii(e,n)}}function su(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ou=!1;function Ri(){if(ou){var e=Ra;if(e!==null)throw e}}function Oi(e,t,n,a){ou=!1;var o=e.updateQueue;_l=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var x=_,L=x.next;x.next=null,m===null?c=L:m.next=L,m=x;var j=e.alternate;j!==null&&(j=j.updateQueue,_=j.lastBaseUpdate,_!==m&&(_===null?j.firstBaseUpdate=L:_.next=L,j.lastBaseUpdate=x))}if(c!==null){var V=o.baseState;m=0,j=L=x=null,_=c;do{var N=_.lane&-536870913,M=N!==_.lane;if(M?(ye&N)===N:(a&N)===N){N!==0&&N===Aa&&(ou=!0),j!==null&&(j=j.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var F=e,se=_;N=t;var ze=n;switch(se.tag){case 1:if(F=se.payload,typeof F=="function"){V=F.call(ze,V,N);break e}V=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=se.payload,N=typeof F=="function"?F.call(ze,V,N):F,N==null)break e;V=b({},V,N);break e;case 2:_l=!0}}N=_.callback,N!==null&&(e.flags|=64,M&&(e.flags|=8192),M=o.callbacks,M===null?o.callbacks=[N]:M.push(N))}else M={lane:N,tag:_.tag,payload:_.payload,callback:_.callback,next:null},j===null?(L=j=M,x=V):j=j.next=M,m|=N;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;M=_,_=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);j===null&&(x=V),o.baseState=x,o.firstBaseUpdate=L,o.lastBaseUpdate=j,c===null&&(o.shared.lanes=0),Tl|=m,e.lanes=m,e.memoizedState=V}}function Bd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Hd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Bd(n[e],t)}var Da=A(null),$r=A(0);function Vd(e,t){e=Fn,Q($r,e),Q(Da,t),Fn=e|t.baseLanes}function uu(){Q($r,Fn),Q(Da,Da.current)}function cu(){Fn=$r.current,G(Da),G($r)}var Yt=A(null),un=null;function bl(e){var t=e.alternate;Q(Je,Je.current&1),Q(Yt,e),un===null&&(t===null||Da.current!==null||t.memoizedState!==null)&&(un=e)}function fu(e){Q(Je,Je.current),Q(Yt,e),un===null&&(un=e)}function Gd(e){e.tag===22?(Q(Je,Je.current),Q(Yt,e),un===null&&(un=e)):Sl()}function Sl(){Q(Je,Je.current),Q(Yt,Yt.current)}function Xt(e){G(Yt),un===e&&(un=null),G(Je)}var Je=A(0);function Jr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_c(n)||yc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yn=0,ce=null,we=null,lt=null,Wr=!1,ka=!1,Jl=!1,Fr=0,Ci=0,La=null,Cy=0;function Qe(){throw Error(s(321))}function du(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function hu(e,t,n,a,o,c){return Yn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Th:Cu,Jl=!1,c=n(a,o),Jl=!1,ka&&(c=qd(t,n,a,o)),Id(e),c}function Id(e){z.H=Li;var t=we!==null&&we.next!==null;if(Yn=0,lt=we=ce=null,Wr=!1,Ci=0,La=null,t)throw Error(s(300));e===null||at||(e=e.dependencies,e!==null&&qr(e)&&(at=!0))}function qd(e,t,n,a){ce=e;var o=0;do{if(ka&&(La=null),Ci=0,ka=!1,25<=o)throw Error(s(301));if(o+=1,lt=we=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Ah,c=t(n,a)}while(ka);return c}function Dy(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Di(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ce.flags|=1024),t}function mu(){var e=Fr!==0;return Fr=0,e}function pu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function gu(e){if(Wr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wr=!1}Yn=0,lt=we=ce=null,ka=!1,Ci=Fr=0,La=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ce.memoizedState=lt=e:lt=lt.next=e,lt}function We(){if(we===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=lt===null?ce.memoizedState:lt.next;if(t!==null)lt=t,we=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},lt===null?ce.memoizedState=lt=e:lt=lt.next=e}return lt}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Di(e){var t=Ci;return Ci+=1,La===null&&(La=[]),e=wd(La,e,t),t=ce,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Th:Cu),e}function ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Di(e);if(e.$$typeof===P)return vt(e)}throw Error(s(438,String(e)))}function _u(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=es(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=kt;return t.index++,n}function Xn(e,t){return typeof t=="function"?t(e):t}function ns(e){var t=We();return yu(t,we,e)}function yu(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var _=m=null,x=null,L=t,j=!1;do{var V=L.lane&-536870913;if(V!==L.lane?(ye&V)===V:(Yn&V)===V){var N=L.revertLane;if(N===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),V===Aa&&(j=!0);else if((Yn&N)===N){L=L.next,N===Aa&&(j=!0);continue}else V={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},x===null?(_=x=V,m=c):x=x.next=V,ce.lanes|=N,Tl|=N;V=L.action,Jl&&n(c,V),c=L.hasEagerState?L.eagerState:n(c,V)}else N={lane:V,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},x===null?(_=x=N,m=c):x=x.next=N,ce.lanes|=V,Tl|=V;L=L.next}while(L!==null&&L!==t);if(x===null?m=c:x.next=_,!qt(c,e.memoizedState)&&(at=!0,j&&(n=Ra,n!==null)))throw n;e.memoizedState=c,e.baseState=m,e.baseQueue=x,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function vu(e){var t=We(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);qt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Pd(e,t,n){var a=ce,o=We(),c=Se;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!qt((we||o).memoizedState,n);if(m&&(o.memoizedState=n,at=!0),o=o.queue,Eu(Qd.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||lt!==null&<.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},Xd.bind(null,a,o,n,t),null),je===null)throw Error(s(349));c||(Yn&127)!==0||Yd(a,t,n)}return n}function Yd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=es(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xd(e,t,n,a){t.value=n,t.getSnapshot=a,Zd(t)&&Kd(e)}function Qd(e,t,n){return n(function(){Zd(t)&&Kd(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function Kd(e){var t=Il(e,2);t!==null&&Ht(t,e,2)}function bu(e){var t=Tt();if(typeof e=="function"){var n=e;if(e=n(),Jl){dt(!0);try{n()}finally{dt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},t}function $d(e,t,n,a){return e.baseState=n,yu(e,we,typeof a=="function"?a:Xn)}function ky(e,t,n,a,o){if(is(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};z.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Jd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Jd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=z.T,m={};z.T=m;try{var _=n(o,a),x=z.S;x!==null&&x(m,_),Wd(e,t,_)}catch(L){Su(e,t,L)}finally{c!==null&&m.types!==null&&(c.types=m.types),z.T=c}}else try{c=n(o,a),Wd(e,t,c)}catch(L){Su(e,t,L)}}function Wd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Fd(e,t,a)},function(a){return Su(e,t,a)}):Fd(e,t,n)}function Fd(e,t,n){t.status="fulfilled",t.value=n,eh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jd(e,n)))}function Su(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,eh(t),t=t.next;while(t!==a)}e.action=null}function eh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function th(e,t){return t}function nh(e,t){if(Se){var n=je.formState;if(n!==null){e:{var a=ce;if(Se){if(He){t:{for(var o=He,c=on;o.nodeType!==8;){if(!c){o=null;break t}if(o=cn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){He=cn(o.nextSibling),a=o.data==="F!";break e}}pl(a)}a=!1}a&&(t=n[0])}}return n=Tt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:th,lastRenderedState:t},n.queue=a,n=Sh.bind(null,ce,a),a.dispatch=n,a=bu(!1),c=Ou.bind(null,ce,!1,a.queue),a=Tt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=ky.bind(null,ce,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function lh(e){var t=We();return ah(t,we,e)}function ah(e,t,n){if(t=yu(e,t,th)[0],e=ns(Xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Di(t)}catch(m){throw m===Oa?Xr:m}else a=t;t=We();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,Na(9,{destroy:void 0},Ly.bind(null,o,n),null)),[a,c,e]}function Ly(e,t){e.action=t}function ih(e){var t=We(),n=we;if(n!==null)return ah(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Na(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=es(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function rh(){return We().memoizedState}function ls(e,t,n,a){var o=Tt();ce.flags|=e,o.memoizedState=Na(1|t,{destroy:void 0},n,a===void 0?null:a)}function as(e,t,n,a){var o=We();a=a===void 0?null:a;var c=o.memoizedState.inst;we!==null&&a!==null&&du(a,we.memoizedState.deps)?o.memoizedState=Na(t,c,n,a):(ce.flags|=e,o.memoizedState=Na(1|t,c,n,a))}function sh(e,t){ls(8390656,8,e,t)}function Eu(e,t){as(2048,8,e,t)}function Ny(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=es(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function oh(e){var t=We().memoizedState;return Ny({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function uh(e,t){return as(4,2,e,t)}function ch(e,t){return as(4,4,e,t)}function fh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dh(e,t,n){n=n!=null?n.concat([e]):null,as(4,4,fh.bind(null,t,e),n)}function xu(){}function hh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&du(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function mh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&du(t,a[1]))return a[0];if(a=e(),Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a}function Tu(e,t,n){return n===void 0||(Yn&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=pm(),ce.lanes|=e,Tl|=e,n)}function ph(e,t,n,a){return qt(n,t)?n:Da.current!==null?(e=Tu(e,n,a),qt(e,t)||(at=!0),e):(Yn&42)===0||(Yn&1073741824)!==0&&(ye&261930)===0?(at=!0,e.memoizedState=n):(e=pm(),ce.lanes|=e,Tl|=e,t)}function gh(e,t,n,a,o){var c=$.p;$.p=c!==0&&8>c?c:8;var m=z.T,_={};z.T=_,Ou(e,!1,t,n);try{var x=o(),L=z.S;if(L!==null&&L(_,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var j=Oy(x,a);ki(e,t,j,Kt(e))}else ki(e,t,a,Kt(e))}catch(V){ki(e,t,{then:function(){},status:"rejected",reason:V},Kt())}finally{$.p=c,m!==null&&_.types!==null&&(m.types=_.types),z.T=m}}function wy(){}function Au(e,t,n,a){if(e.tag!==5)throw Error(s(476));var o=_h(e).queue;gh(e,o,t,re,n===null?wy:function(){return yh(e),n(a)})}function _h(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yh(e){var t=_h(e);t.next===null&&(t=e.alternate.memoizedState),ki(e,t.next.queue,{},Kt())}function Ru(){return vt(Qi)}function vh(){return We().memoizedState}function bh(){return We().memoizedState}function My(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=yl(n);var a=vl(t,e,n);a!==null&&(Ht(a,t,n),Ai(a,t,n)),t={cache:tu()},e.payload=t;return}t=t.return}}function zy(e,t,n){var a=Kt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},is(e)?Eh(t,n):(n=Po(e,t,n,a),n!==null&&(Ht(n,e,a),xh(n,t,a)))}function Sh(e,t,n){var a=Kt();ki(e,t,n,a)}function ki(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))Eh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,_=c(m,n);if(o.hasEagerState=!0,o.eagerState=_,qt(_,m))return Hr(e,t,o,0),je===null&&Br(),!1}catch{}finally{}if(n=Po(e,t,o,a),n!==null)return Ht(n,e,a),xh(n,t,a),!0}return!1}function Ou(e,t,n,a){if(a={lane:2,revertLane:ic(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},is(e)){if(t)throw Error(s(479))}else t=Po(e,n,a,2),t!==null&&Ht(t,e,2)}function is(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Eh(e,t){ka=Wr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ii(e,n)}}var Li={readContext:vt,use:ts,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Li.useEffectEvent=Qe;var Th={readContext:vt,use:ts,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:sh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ls(4194308,4,fh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=Tt();t=t===void 0?null:t;var a=e();if(Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Tt();if(n!==void 0){var o=n(t);if(Jl){dt(!0);try{n(t)}finally{dt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=zy.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=bu(e);var t=e.queue,n=Sh.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:xu,useDeferredValue:function(e,t){var n=Tt();return Tu(n,e,t)},useTransition:function(){var e=bu(!1);return e=gh.bind(null,ce,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,o=Tt();if(Se){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),je===null)throw Error(s(349));(ye&127)!==0||Yd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,sh(Qd.bind(null,a,c,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},Xd.bind(null,a,c,n,t),null),n},useId:function(){var e=Tt(),t=je.identifierPrefix;if(Se){var n=xn,a=En;n=(a&~(1<<32-et(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Fr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Cy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ru,useFormState:nh,useActionState:nh,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ou.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:_u,useCacheRefresh:function(){return Tt().memoizedState=My.bind(null,ce)},useEffectEvent:function(e){var t=Tt(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Cu={readContext:vt,use:ts,useCallback:hh,useContext:vt,useEffect:Eu,useImperativeHandle:dh,useInsertionEffect:uh,useLayoutEffect:ch,useMemo:mh,useReducer:ns,useRef:rh,useState:function(){return ns(Xn)},useDebugValue:xu,useDeferredValue:function(e,t){var n=We();return ph(n,we.memoizedState,e,t)},useTransition:function(){var e=ns(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Pd,useId:vh,useHostTransitionStatus:Ru,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var n=We();return $d(n,we,e,t)},useMemoCache:_u,useCacheRefresh:bh};Cu.useEffectEvent=oh;var Ah={readContext:vt,use:ts,useCallback:hh,useContext:vt,useEffect:Eu,useImperativeHandle:dh,useInsertionEffect:uh,useLayoutEffect:ch,useMemo:mh,useReducer:vu,useRef:rh,useState:function(){return vu(Xn)},useDebugValue:xu,useDeferredValue:function(e,t){var n=We();return we===null?Tu(n,e,t):ph(n,we.memoizedState,e,t)},useTransition:function(){var e=vu(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Pd,useId:vh,useHostTransitionStatus:Ru,useFormState:ih,useActionState:ih,useOptimistic:function(e,t){var n=We();return we!==null?$d(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_u,useCacheRefresh:bh};Ah.useEffectEvent=oh;function Du(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ku={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ai(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ai(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),a=yl(n);a.tag=2,t!=null&&(a.callback=t),t=vl(e,a,n),t!==null&&(Ht(t,e,n),Ai(t,e,n))}};function Rh(e,t,n,a,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,m):t.prototype&&t.prototype.isPureReactComponent?!_i(n,a)||!_i(o,c):!0}function Oh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&ku.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Ch(e){Ur(e)}function Dh(e){console.error(e)}function kh(e){Ur(e)}function rs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Lh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Lu(e,t,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){rs(e,t)},n}function Nh(e){return e=yl(e),e.tag=3,e}function wh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Lh(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Lh(t,n,a),typeof o!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var _=a.stack;this.componentDidCatch(a.value,{componentStack:_!==null?_:""})})}function jy(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ta(t,n,o,!0),n=Yt.current,n!==null){switch(n.tag){case 31:case 13:return un===null?ys():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Qr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),nc(e,a,o)),!1;case 22:return n.flags|=65536,a===Qr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),nc(e,a,o)),!1}throw Error(s(435,n.tag))}return nc(e,a,o),ys(),!1}if(Se)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==$o&&(e=Error(s(422),{cause:a}),bi(an(e,n)))):(a!==$o&&(t=Error(s(423),{cause:a}),bi(an(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=an(a,n),o=Lu(e.stateNode,a,o),su(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(s(520),{cause:a});if(c=an(c,n),Hi===null?Hi=[c]:Hi.push(c),Ze!==4&&(Ze=2),t===null)return!0;a=an(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Lu(n.stateNode,a,e),su(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Al===null||!Al.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Nh(o),wh(o,e,n,a),su(n,o),!1}n=n.return}while(n!==null);return!1}var Nu=Error(s(461)),at=!1;function bt(e,t,n,a){t.child=e===null?Ud(t,null,n,a):$l(t,e.child,n,a)}function Mh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var m={};for(var _ in a)_!=="ref"&&(m[_]=a[_])}else m=a;return Xl(t),a=hu(e,t,n,m,c,o),_=mu(),e!==null&&!at?(pu(e,t,o),Qn(e,t,o)):(Se&&_&&Zo(t),t.flags|=1,bt(e,t,a,o),t.child)}function zh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Yo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,jh(e,t,c,a,o)):(e=Gr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Vu(e,o)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:_i,n(m,a)&&e.ref===t.ref)return Qn(e,t,o)}return t.flags|=1,e=Gn(c,a),e.ref=t.ref,e.return=t,t.child=e}function jh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(_i(c,a)&&e.ref===t.ref)if(at=!1,t.pendingProps=a=c,Vu(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Qn(e,t,o)}return wu(e,t,n,a,o)}function Uh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Bh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,c!==null?c.cachePool:null),c!==null?Vd(t,c):uu(),Gd(t);else return a=t.lanes=536870912,Bh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Yr(t,c.cachePool),Vd(t,c),Sl(),t.memoizedState=null):(e!==null&&Yr(t,null),uu(),Sl());return bt(e,t,o,n),t.child}function Ni(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bh(e,t,n,a,o){var c=lu();return c=c===null?null:{parent:nt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Yr(t,null),uu(),Gd(t),e!==null&&Ta(e,t,a,!0),t.childLanes=o,null}function ss(e,t){return t=us({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hh(e,t,n){return $l(t,e.child,null,n),e=ss(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function Uy(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=ss(t,a),t.lanes=536870912,Ni(null,e);if(fu(t),(e=He)?(e=Jm(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=Ed(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return ss(t,a)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(fu(t),o)if(t.flags&256)t.flags&=-257,t=Hh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(at||Ta(e,t,n,!1),o=(n&e.childLanes)!==0,at||o){if(a=je,a!==null&&(m=xr(a,n),m!==0&&m!==c.retryLane))throw c.retryLane=m,Il(e,m),Ht(a,e,m),Nu;ys(),t=Hh(e,t,n)}else e=c.treeContext,He=cn(m.nextSibling),yt=t,Se=!0,ml=null,on=!1,e!==null&&Ad(t,e),t=ss(t,a),t.flags|=4096;return t}return e=Gn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function os(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function wu(e,t,n,a,o){return Xl(t),n=hu(e,t,n,a,void 0,o),a=mu(),e!==null&&!at?(pu(e,t,o),Qn(e,t,o)):(Se&&a&&Zo(t),t.flags|=1,bt(e,t,n,o),t.child)}function Vh(e,t,n,a,o,c){return Xl(t),t.updateQueue=null,n=qd(t,a,n,o),Id(e),a=mu(),e!==null&&!at?(pu(e,t,c),Qn(e,t,c)):(Se&&a&&Zo(t),t.flags|=1,bt(e,t,n,c),t.child)}function Gh(e,t,n,a,o){if(Xl(t),t.stateNode===null){var c=ba,m=n.contextType;typeof m=="object"&&m!==null&&(c=vt(m)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ku,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},iu(t),m=n.contextType,c.context=typeof m=="object"&&m!==null?vt(m):ba,c.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Du(t,n,m,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&ku.enqueueReplaceState(c,c.state,null),Oi(t,a,c,o),Ri(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var _=t.memoizedProps,x=Wl(n,_);c.props=x;var L=c.context,j=n.contextType;m=ba,typeof j=="object"&&j!==null&&(m=vt(j));var V=n.getDerivedStateFromProps;j=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(_||L!==m)&&Oh(t,c,a,m),_l=!1;var N=t.memoizedState;c.state=N,Oi(t,a,c,o),Ri(),L=t.memoizedState,_||N!==L||_l?(typeof V=="function"&&(Du(t,n,V,a),L=t.memoizedState),(x=_l||Rh(t,n,x,a,N,L,m))?(j||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=L),c.props=a,c.state=L,c.context=m,a=x):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,ru(e,t),m=t.memoizedProps,j=Wl(n,m),c.props=j,V=t.pendingProps,N=c.context,L=n.contextType,x=ba,typeof L=="object"&&L!==null&&(x=vt(L)),_=n.getDerivedStateFromProps,(L=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==V||N!==x)&&Oh(t,c,a,x),_l=!1,N=t.memoizedState,c.state=N,Oi(t,a,c,o),Ri();var M=t.memoizedState;m!==V||N!==M||_l||e!==null&&e.dependencies!==null&&qr(e.dependencies)?(typeof _=="function"&&(Du(t,n,_,a),M=t.memoizedState),(j=_l||Rh(t,n,j,a,N,M,x)||e!==null&&e.dependencies!==null&&qr(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,M,x),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,M,x)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),c.props=a,c.state=M,c.context=x,a=j):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,os(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=$l(t,e.child,null,o),t.child=$l(t,null,n,o)):bt(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Qn(e,t,o),e}function Ih(e,t,n,a){return Pl(),t.flags|=256,bt(e,t,n,a),t.child}var Mu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zu(e){return{baseLanes:e,cachePool:Ld()}}function ju(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function qh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(o?bl(t):Sl(),(e=He)?(e=Jm(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=Ed(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw pl(t);return yc(e)?t.lanes=32:t.lanes=536870912,null}var _=a.children;return a=a.fallback,o?(Sl(),o=t.mode,_=us({mode:"hidden",children:_},o),a=ql(a,o,n,null),_.return=t,a.return=t,_.sibling=a,t.child=_,a=t.child,a.memoizedState=zu(n),a.childLanes=ju(e,m,n),t.memoizedState=Mu,Ni(null,a)):(bl(t),Uu(t,_))}var x=e.memoizedState;if(x!==null&&(_=x.dehydrated,_!==null)){if(c)t.flags&256?(bl(t),t.flags&=-257,t=Bu(e,t,n)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),_=a.fallback,o=t.mode,a=us({mode:"visible",children:a.children},o),_=ql(_,o,n,null),_.flags|=2,a.return=t,_.return=t,a.sibling=_,t.child=a,$l(t,e.child,null,n),a=t.child,a.memoizedState=zu(n),a.childLanes=ju(e,m,n),t.memoizedState=Mu,t=Ni(null,a));else if(bl(t),yc(_)){if(m=_.nextSibling&&_.nextSibling.dataset,m)var L=m.dgst;m=L,a=Error(s(419)),a.stack="",a.digest=m,bi({value:a,source:null,stack:null}),t=Bu(e,t,n)}else if(at||Ta(e,t,n,!1),m=(n&e.childLanes)!==0,at||m){if(m=je,m!==null&&(a=xr(m,n),a!==0&&a!==x.retryLane))throw x.retryLane=a,Il(e,a),Ht(m,e,a),Nu;_c(_)||ys(),t=Bu(e,t,n)}else _c(_)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,He=cn(_.nextSibling),yt=t,Se=!0,ml=null,on=!1,e!==null&&Ad(t,e),t=Uu(t,a.children),t.flags|=4096);return t}return o?(Sl(),_=a.fallback,o=t.mode,x=e.child,L=x.sibling,a=Gn(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,L!==null?_=Gn(L,_):(_=ql(_,o,n,null),_.flags|=2),_.return=t,a.return=t,a.sibling=_,t.child=a,Ni(null,a),a=t.child,_=e.child.memoizedState,_===null?_=zu(n):(o=_.cachePool,o!==null?(x=nt._currentValue,o=o.parent!==x?{parent:x,pool:x}:o):o=Ld(),_={baseLanes:_.baseLanes|n,cachePool:o}),a.memoizedState=_,a.childLanes=ju(e,m,n),t.memoizedState=Mu,Ni(e.child,a)):(bl(t),n=e.child,e=n.sibling,n=Gn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function Uu(e,t){return t=us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function us(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Bu(e,t,n){return $l(t,e.child,null,n),e=Uu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ph(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Fo(e.return,t,n)}function Hu(e,t,n,a,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=c)}function Yh(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var m=Je.current,_=(m&2)!==0;if(_?(m=m&1|2,t.flags|=128):m&=1,Q(Je,m),bt(e,t,a,n),a=Se?vi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,n,t);else if(e.tag===19)Ph(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Jr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hu(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Jr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hu(t,!0,n,null,c,a);break;case"together":Hu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qr(e)))}function By(e,t,n){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),gl(t,nt,e.memoizedState.cache),Pl();break;case 27:case 5:kn(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(bl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?qh(e,t,n):(bl(t),e=Qn(e,t,n),e!==null?e.sibling:null);bl(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ta(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Yh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(Je,Je.current),a)break;return null;case 22:return t.lanes=0,Uh(e,t,n,t.pendingProps);case 24:gl(t,nt,e.memoizedState.cache)}return Qn(e,t,n)}function Xh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Vu(e,n)&&(t.flags&128)===0)return at=!1,By(e,t,n);at=(e.flags&131072)!==0}else at=!1,Se&&(t.flags&1048576)!==0&&Td(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Yo(e)?(a=Wl(e,a),t.tag=1,t=Gh(null,t,e,a,n)):(t.tag=0,t=wu(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===X){t.tag=11,t=Mh(null,t,e,a,n);break e}else if(o===te){t.tag=14,t=zh(null,t,e,a,n);break e}}throw t=Ye(e)||e,Error(s(306,t,""))}}return t;case 0:return wu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Wl(a,t.pendingProps),Gh(e,t,a,o,n);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,ru(e,t),Oi(t,a,null,n);var m=t.memoizedState;if(a=m.cache,gl(t,nt,a),a!==c.cache&&eu(t,[nt],n,!0),Ri(),a=m.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ih(e,t,a,n);break e}else if(a!==o){o=an(Error(s(424)),t),bi(o),t=Ih(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=cn(e.firstChild),yt=t,Se=!0,ml=null,on=!0,n=Ud(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pl(),a===o){t=Qn(e,t,n);break e}bt(e,t,a,n)}t=t.child}return t;case 26:return os(e,t),e===null?(n=lp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=As(ue.current).createElement(n),a[tt]=t,a[qe]=e,St(a,n,e),me(a),t.stateNode=a):t.memoizedState=lp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return kn(t),e===null&&Se&&(a=t.stateNode=ep(t.type,t.pendingProps,ue.current),yt=t,on=!0,o=He,Dl(t.type)?(vc=o,He=cn(a.firstChild)):He=o),bt(e,t,t.pendingProps.children,n),os(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((o=a=He)&&(a=mv(a,t.type,t.pendingProps,on),a!==null?(t.stateNode=a,yt=t,He=cn(a.firstChild),on=!1,o=!0):o=!1),o||pl(t)),kn(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,a=c.children,mc(o,c)?a=null:m!==null&&mc(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=hu(e,t,Dy,null,null,n),Qi._currentValue=o),os(e,t),bt(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=He)&&(n=pv(n,t.pendingProps,on),n!==null?(t.stateNode=n,yt=t,He=null,e=!0):e=!1),e||pl(t)),null;case 13:return qh(e,t,n);case 4:return Ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,n):bt(e,t,a,n),t.child;case 11:return Mh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),bt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Xl(t),o=vt(o),a=a(o),t.flags|=1,bt(e,t,a,n),t.child;case 14:return zh(e,t,t.type,t.pendingProps,n);case 15:return jh(e,t,t.type,t.pendingProps,n);case 19:return Yh(e,t,n);case 31:return Uy(e,t,n);case 22:return Uh(e,t,n,t.pendingProps);case 24:return Xl(t),a=vt(nt),e===null?(o=lu(),o===null&&(o=je,c=tu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},iu(t),gl(t,nt,o)):((e.lanes&n)!==0&&(ru(e,t),Oi(t,null,null,n),Ri()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),gl(t,nt,a)):(a=c.cache,gl(t,nt,a),a!==o.cache&&eu(t,[nt],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Zn(e){e.flags|=4}function Gu(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(vm())e.flags|=8192;else throw Kl=Qr,au}else e.flags&=-16777217}function Qh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!op(t))if(vm())e.flags|=8192;else throw Kl=Qr,au}function cs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jn():536870912,e.lanes|=t,ja|=t)}function wi(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Hy(e,t,n){var a=t.pendingProps;switch(Ko(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(nt),Ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(xa(t)?Zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Zn(t),c!==null?(Ve(t),Qh(t,c)):(Ve(t),Gu(t,o,null,a,n))):c?c!==e.memoizedState?(Zn(t),Ve(t),Qh(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Zn(t),Ve(t),Gu(t,o,e,a,n)),null;case 27:if(zl(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=W.current,xa(t)?Rd(t):(e=ep(o,a,n),t.stateNode=e,Zn(t))}return Ve(t),null;case 5:if(zl(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(c=W.current,xa(t))Rd(t);else{var m=As(ue.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}c[tt]=t,c[qe]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(St(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Zn(t)}}return Ve(t),Gu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,xa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=yt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||qm(e.nodeValue,n)),e||pl(t,!0)}else e=As(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=xa(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=xa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cs(t,t.updateQueue),Ve(t),null);case 4:return Ie(),e===null&&uc(t.stateNode.containerInfo),Ve(t),null;case 10:return Pn(t.type),Ve(t),null;case 19:if(G(Je),a=t.memoizedState,a===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)wi(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Jr(e),c!==null){for(t.flags|=128,wi(a,!1),e=c.updateQueue,t.updateQueue=e,cs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Sd(n,e),n=n.sibling;return Q(Je,Je.current&1|2),Se&&In(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>ps&&(t.flags|=128,o=!0,wi(a,!1),t.lanes=4194304)}else{if(!o)if(e=Jr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cs(t,e),wi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Se)return Ve(t),null}else 2*gt()-a.renderingStartTime>ps&&n!==536870912&&(t.flags|=128,o=!0,wi(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,n=Je.current,Q(Je,o?n&1|2:n&1),Se&&In(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return Xt(t),cu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&cs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&G(Ql),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pn(nt),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Vy(e,t){switch(Ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(nt),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zl(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Je),null;case 4:return Ie(),null;case 10:return Pn(t.type),null;case 22:case 23:return Xt(t),cu(),e!==null&&G(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(nt),null;case 25:return null;default:return null}}function Zh(e,t){switch(Ko(t),t.tag){case 3:Pn(nt),Ie();break;case 26:case 27:case 5:zl(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(Je);break;case 10:Pn(t.type);break;case 22:case 23:Xt(t),cu(),e!==null&&G(Ql);break;case 24:Pn(nt)}}function Mi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,m=n.inst;a=c(),m.destroy=a}n=n.next}while(n!==o)}}catch(_){Ne(t,t.return,_)}}function El(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var m=a.inst,_=m.destroy;if(_!==void 0){m.destroy=void 0,o=t;var x=n,L=_;try{L()}catch(j){Ne(o,x,j)}}}a=a.next}while(a!==c)}}catch(j){Ne(t,t.return,j)}}function Kh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Hd(t,n)}catch(a){Ne(e,e.return,a)}}}function $h(e,t,n){n.props=Wl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function zi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Ne(e,t,o)}}function Tn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Ne(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ne(e,t,o)}else n.current=null}function Jh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Ne(e,e.return,o)}}function Iu(e,t,n){try{var a=e.stateNode;ov(a,e.type,n,t),a[qe]=t}catch(o){Ne(e,e.return,o)}}function Wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hn));else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Pu(e,t,n),e=e.sibling;e!==null;)Pu(e,t,n),e=e.sibling}function fs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function Fh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);St(t,a,n),t[tt]=e,t[qe]=n}catch(c){Ne(e,e.return,c)}}var Kn=!1,it=!1,Yu=!1,em=typeof WeakSet=="function"?WeakSet:Set,ht=null;function Gy(e,t){if(e=e.containerInfo,dc=Ns,e=dd(e),Bo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,_=-1,x=-1,L=0,j=0,V=e,N=null;t:for(;;){for(var M;V!==n||o!==0&&V.nodeType!==3||(_=m+o),V!==c||a!==0&&V.nodeType!==3||(x=m+a),V.nodeType===3&&(m+=V.nodeValue.length),(M=V.firstChild)!==null;)N=V,V=M;for(;;){if(V===e)break t;if(N===n&&++L===o&&(_=m),N===c&&++j===a&&(x=m),(M=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=M}n=_===-1||x===-1?null:{start:_,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(hc={focusedElem:e,selectionRange:n},Ns=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var F=Wl(n.type,o);e=a.getSnapshotBeforeUpdate(F,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){Ne(n,n.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)gc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function tm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Jn(e,n),a&4&&Mi(5,n);break;case 1:if(Jn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ne(n,n.return,m)}else{var o=Wl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ne(n,n.return,m)}}a&64&&Kh(n),a&512&&zi(n,n.return);break;case 3:if(Jn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Hd(e,t)}catch(m){Ne(n,n.return,m)}}break;case 27:t===null&&a&4&&Fh(n);case 26:case 5:Jn(e,n),t===null&&a&4&&Jh(n),a&512&&zi(n,n.return);break;case 12:Jn(e,n);break;case 31:Jn(e,n),a&4&&am(e,n);break;case 13:Jn(e,n),a&4&&im(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$y.bind(null,n),gv(e,n))));break;case 22:if(a=n.memoizedState!==null||Kn,!a){t=t!==null&&t.memoizedState!==null||it,o=Kn;var c=it;Kn=a,(it=t)&&!c?Wn(e,n,(n.subtreeFlags&8772)!==0):Jn(e,n),Kn=o,it=c}break;case 30:break;default:Jn(e,n)}}function nm(e){var t=e.alternate;t!==null&&(e.alternate=null,nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&R(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,zt=!1;function $n(e,t,n){for(n=n.child;n!==null;)lm(e,t,n),n=n.sibling}function lm(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(bn,n)}catch{}switch(n.tag){case 26:it||Tn(n,t),$n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||Tn(n,t);var a=Pe,o=zt;Dl(n.type)&&(Pe=n.stateNode,zt=!1),$n(e,t,n),Pi(n.stateNode),Pe=a,zt=o;break;case 5:it||Tn(n,t);case 6:if(a=Pe,o=zt,Pe=null,$n(e,t,n),Pe=a,zt=o,Pe!==null)if(zt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(c){Ne(n,t,c)}else try{Pe.removeChild(n.stateNode)}catch(c){Ne(n,t,c)}break;case 18:Pe!==null&&(zt?(e=Pe,Km(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Pa(e)):Km(Pe,n.stateNode));break;case 4:a=Pe,o=zt,Pe=n.stateNode.containerInfo,zt=!0,$n(e,t,n),Pe=a,zt=o;break;case 0:case 11:case 14:case 15:El(2,n,t),it||El(4,n,t),$n(e,t,n);break;case 1:it||(Tn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&$h(n,t,a)),$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,$n(e,t,n),it=a;break;default:$n(e,t,n)}}function am(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pa(e)}catch(n){Ne(t,t.return,n)}}}function im(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pa(e)}catch(n){Ne(t,t.return,n)}}function Iy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new em),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new em),t;default:throw Error(s(435,e.tag))}}function ds(e,t){var n=Iy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=Jy.bind(null,e,a);a.then(o,o)}})}function jt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,m=t,_=m;e:for(;_!==null;){switch(_.tag){case 27:if(Dl(_.type)){Pe=_.stateNode,zt=!1;break e}break;case 5:Pe=_.stateNode,zt=!1;break e;case 3:case 4:Pe=_.stateNode.containerInfo,zt=!0;break e}_=_.return}if(Pe===null)throw Error(s(160));lm(c,m,o),Pe=null,zt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rm(t,e),t=t.sibling}var yn=null;function rm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Ut(e),a&4&&(El(3,e,e.return),Mi(3,e),El(5,e,e.return));break;case 1:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&64&&Kn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=yn;if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ne]||c[tt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),St(c,a,n),c[tt]=e,me(c),a=c;break e;case"link":var m=rp("link","href",o).get(a+(n.href||""));if(m){for(var _=0;_<m.length;_++)if(c=m[_],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;case"meta":if(m=rp("meta","content",o).get(a+(n.content||""))){for(_=0;_<m.length;_++)if(c=m[_],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;default:throw Error(s(468,a))}c[tt]=e,me(c),a=c}e.stateNode=a}else sp(o,e.type,e.stateNode);else e.stateNode=ip(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?sp(o,e.type,e.stateNode):ip(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Iu(e,e.memoizedProps,n.memoizedProps)}break;case 27:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),n!==null&&a&4&&Iu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),e.flags&32){o=e.stateNode;try{ha(o,"")}catch(F){Ne(e,e.return,F)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Iu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Yu=!0);break;case 6:if(jt(t,e),Ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(F){Ne(e,e.return,F)}}break;case 3:if(Cs=null,o=yn,yn=Rs(t.containerInfo),jt(t,e),yn=o,Ut(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Pa(t.containerInfo)}catch(F){Ne(e,e.return,F)}Yu&&(Yu=!1,sm(e));break;case 4:a=yn,yn=Rs(e.stateNode.containerInfo),jt(t,e),Ut(e),yn=a;break;case 12:jt(t,e),Ut(e);break;case 31:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 13:jt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ms=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 22:o=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,L=Kn,j=it;if(Kn=L||o,it=j||x,jt(t,e),it=j,Kn=L,Ut(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||x||Kn||it||Fl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(c=x.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{_=x.stateNode;var V=x.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null;_.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(F){Ne(x,x.return,F)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=o?"":x.memoizedProps}catch(F){Ne(x,x.return,F)}}}else if(t.tag===18){if(n===null){x=t;try{var M=x.stateNode;o?$m(M,!0):$m(x.stateNode,!1)}catch(F){Ne(x,x.return,F)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ds(e,n))));break;case 19:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 30:break;case 21:break;default:jt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Wh(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=qu(e);fs(e,c,o);break;case 5:var m=n.stateNode;n.flags&32&&(ha(m,""),n.flags&=-33);var _=qu(e);fs(e,_,m);break;case 3:case 4:var x=n.stateNode.containerInfo,L=qu(e);Pu(e,L,x);break;default:throw Error(s(161))}}catch(j){Ne(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;sm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tm(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:El(4,t,t.return),Fl(t);break;case 1:Tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$h(t,t.return,n),Fl(t);break;case 27:Pi(t.stateNode);case 26:case 5:Tn(t,t.return),Fl(t);break;case 22:t.memoizedState===null&&Fl(t);break;case 30:Fl(t);break;default:Fl(t)}e=e.sibling}}function Wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:Wn(o,c,n),Mi(4,c);break;case 1:if(Wn(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){Ne(a,a.return,L)}if(a=c,o=a.updateQueue,o!==null){var _=a.stateNode;try{var x=o.shared.hiddenCallbacks;if(x!==null)for(o.shared.hiddenCallbacks=null,o=0;o<x.length;o++)Bd(x[o],_)}catch(L){Ne(a,a.return,L)}}n&&m&64&&Kh(c),zi(c,c.return);break;case 27:Fh(c);case 26:case 5:Wn(o,c,n),n&&a===null&&m&4&&Jh(c),zi(c,c.return);break;case 12:Wn(o,c,n);break;case 31:Wn(o,c,n),n&&m&4&&am(o,c);break;case 13:Wn(o,c,n),n&&m&4&&im(o,c);break;case 22:c.memoizedState===null&&Wn(o,c,n),zi(c,c.return);break;case 30:break;default:Wn(o,c,n)}t=t.sibling}}function Xu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Si(n))}function Qu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e))}function vn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)om(e,t,n,a),t=t.sibling}function om(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:vn(e,t,n,a),o&2048&&Mi(9,t);break;case 1:vn(e,t,n,a);break;case 3:vn(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e)));break;case 12:if(o&2048){vn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,_=c.onPostCommit;typeof _=="function"&&_(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else vn(e,t,n,a);break;case 31:vn(e,t,n,a);break;case 13:vn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?vn(e,t,n,a):ji(e,t):c._visibility&2?vn(e,t,n,a):(c._visibility|=2,wa(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Xu(m,t);break;case 24:vn(e,t,n,a),o&2048&&Qu(t.alternate,t);break;default:vn(e,t,n,a)}}function wa(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,_=n,x=a,L=m.flags;switch(m.tag){case 0:case 11:case 15:wa(c,m,_,x,o),Mi(8,m);break;case 23:break;case 22:var j=m.stateNode;m.memoizedState!==null?j._visibility&2?wa(c,m,_,x,o):ji(c,m):(j._visibility|=2,wa(c,m,_,x,o)),o&&L&2048&&Xu(m.alternate,m);break;case 24:wa(c,m,_,x,o),o&&L&2048&&Qu(m.alternate,m);break;default:wa(c,m,_,x,o)}t=t.sibling}}function ji(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ji(n,a),o&2048&&Xu(a.alternate,a);break;case 24:ji(n,a),o&2048&&Qu(a.alternate,a);break;default:ji(n,a)}t=t.sibling}}var Ui=8192;function Ma(e,t,n){if(e.subtreeFlags&Ui)for(e=e.child;e!==null;)um(e,t,n),e=e.sibling}function um(e,t,n){switch(e.tag){case 26:Ma(e,t,n),e.flags&Ui&&e.memoizedState!==null&&Cv(n,yn,e.memoizedState,e.memoizedProps);break;case 5:Ma(e,t,n);break;case 3:case 4:var a=yn;yn=Rs(e.stateNode.containerInfo),Ma(e,t,n),yn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ui,Ui=16777216,Ma(e,t,n),Ui=a):Ma(e,t,n));break;default:Ma(e,t,n)}}function cm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,dm(a,e)}cm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fm(e),e=e.sibling}function fm(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&El(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hs(e)):Bi(e);break;default:Bi(e)}}function hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,dm(a,e)}cm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),hs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,hs(t));break;default:hs(t)}e=e.sibling}}function dm(e,t){for(;ht!==null;){var n=ht;switch(n.tag){case 0:case 11:case 15:El(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Si(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ht=a;else e:for(n=e;ht!==null;){a=ht;var o=a.sibling,c=a.return;if(nm(a),a===n){ht=null;break e}if(o!==null){o.return=c,ht=o;break e}ht=c}}}var qy={getCacheForType:function(e){var t=vt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(nt).controller.signal}},Py=typeof WeakMap=="function"?WeakMap:Map,Ae=0,je=null,ge=null,ye=0,Le=0,Qt=null,xl=!1,za=!1,Zu=!1,Fn=0,Ze=0,Tl=0,ea=0,Ku=0,Zt=0,ja=0,Hi=null,Bt=null,$u=!1,ms=0,hm=0,ps=1/0,gs=null,Al=null,ot=0,Rl=null,Ua=null,el=0,Ju=0,Wu=null,mm=null,Vi=0,Fu=null;function Kt(){return(Ae&2)!==0&&ye!==0?ye&-ye:z.T!==null?ic():ri()}function pm(){if(Zt===0)if((ye&536870912)===0||Se){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Zt=e}else Zt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,n){(e===je&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(Ba(e,0),Ol(e,ye,Zt,!1)),fl(e,n),((Ae&2)===0||e!==je)&&(e===je&&((Ae&2)===0&&(ea|=n),Ze===4&&Ol(e,ye,Zt,!1)),An(e))}function gm(e,t,n){if((Ae&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Bl(e,t),o=a?Qy(e,t):tc(e,t,!0),c=a;do{if(o===0){za&&!a&&Ol(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Yy(n)){o=tc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var _=e;o=Hi;var x=_.current.memoizedState.isDehydrated;if(x&&(Ba(_,m).flags|=256),m=tc(_,m,!1),m!==2){if(Zu&&!x){_.errorRecoveryDisabledLanes|=c,ea|=c,o=4;break e}c=Bt,Bt=o,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Ba(e,0),Ol(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ol(a,t,Zt,!xl);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=ms+300-gt(),10<o)){if(Ol(a,t,Zt,!xl),ca(a,0,!0)!==0)break e;el=t,a.timeoutHandle=Qm(_m.bind(null,a,n,Bt,gs,$u,t,Zt,ea,ja,xl,c,"Throttled",-0,0),o);break e}_m(a,n,Bt,gs,$u,t,Zt,ea,ja,xl,c,null,-0,0)}}break}while(!0);An(e)}function _m(e,t,n,a,o,c,m,_,x,L,j,V,N,M){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},um(t,c,V);var F=(c&62914560)===c?ms-gt():(c&4194048)===c?hm-gt():0;if(F=Dv(V,F),F!==null){el=c,e.cancelPendingCommit=F(Am.bind(null,e,t,c,n,a,o,m,_,x,j,V,null,N,M)),Ol(e,c,m,!L);return}}Am(e,t,c,n,a,o,m,_,x)}function Yy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!qt(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t,n,a){t&=~Ku,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-et(o),m=1<<c;a[c]=-1,o&=~m}n!==0&&ai(e,n,t)}function _s(){return(Ae&6)===0?(Gi(0),!1):!0}function ec(){if(ge!==null){if(Le===0)var e=ge.return;else e=ge,qn=Yl=null,gu(e),Ca=null,xi=0,e=ge;for(;e!==null;)Zh(e.alternate,e),e=e.return;ge=null}}function Ba(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,fv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),el=0,ec(),je=e,ge=n=Gn(e.current,null),ye=t,Le=0,Qt=null,xl=!1,za=Bl(e,t),Zu=!1,ja=Zt=Ku=ea=Tl=Ze=0,Bt=Hi=null,$u=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-et(a),c=1<<o;t|=e[o],a&=~c}return Fn=t,Br(),n}function ym(e,t){ce=null,z.H=Li,t===Oa||t===Xr?(t=Md(),Le=3):t===au?(t=Md(),Le=4):Le=t===Nu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,ge===null&&(Ze=1,rs(e,an(t,e.current)))}function vm(){var e=Yt.current;return e===null?!0:(ye&4194048)===ye?un===null:(ye&62914560)===ye||(ye&536870912)!==0?e===un:!1}function bm(){var e=z.H;return z.H=Li,e===null?Li:e}function Sm(){var e=z.A;return z.A=qy,e}function ys(){Ze=4,xl||(ye&4194048)!==ye&&Yt.current!==null||(za=!0),(Tl&134217727)===0&&(ea&134217727)===0||je===null||Ol(je,ye,Zt,!1)}function tc(e,t,n){var a=Ae;Ae|=2;var o=bm(),c=Sm();(je!==e||ye!==t)&&(gs=null,Ba(e,t)),t=!1;var m=Ze;e:do try{if(Le!==0&&ge!==null){var _=ge,x=Qt;switch(Le){case 8:ec(),m=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var L=Le;if(Le=0,Qt=null,Ha(e,_,x,L),n&&za){m=0;break e}break;default:L=Le,Le=0,Qt=null,Ha(e,_,x,L)}}Xy(),m=Ze;break}catch(j){ym(e,j)}while(!0);return t&&e.shellSuspendCounter++,qn=Yl=null,Ae=a,z.H=o,z.A=c,ge===null&&(je=null,ye=0,Br()),m}function Xy(){for(;ge!==null;)Em(ge)}function Qy(e,t){var n=Ae;Ae|=2;var a=bm(),o=Sm();je!==e||ye!==t?(gs=null,ps=gt()+500,Ba(e,t)):za=Bl(e,t);e:do try{if(Le!==0&&ge!==null){t=ge;var c=Qt;t:switch(Le){case 1:Le=0,Qt=null,Ha(e,t,c,1);break;case 2:case 9:if(Nd(c)){Le=0,Qt=null,xm(t);break}t=function(){Le!==2&&Le!==9||je!==e||(Le=7),An(e)},c.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Nd(c)?(Le=0,Qt=null,xm(t)):(Le=0,Qt=null,Ha(e,t,c,7));break;case 5:var m=null;switch(ge.tag){case 26:m=ge.memoizedState;case 5:case 27:var _=ge;if(m?op(m):_.stateNode.complete){Le=0,Qt=null;var x=_.sibling;if(x!==null)ge=x;else{var L=_.return;L!==null?(ge=L,vs(L)):ge=null}break t}}Le=0,Qt=null,Ha(e,t,c,5);break;case 6:Le=0,Qt=null,Ha(e,t,c,6);break;case 8:ec(),Ze=6;break e;default:throw Error(s(462))}}Zy();break}catch(j){ym(e,j)}while(!0);return qn=Yl=null,z.H=a,z.A=o,Ae=n,ge!==null?0:(je=null,ye=0,Br(),Ze)}function Zy(){for(;ge!==null&&!br();)Em(ge)}function Em(e){var t=Xh(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?vs(e):ge=t}function xm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vh(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=Vh(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:gu(t);default:Zh(n,t),t=ge=Sd(t,Fn),t=Xh(n,t,Fn)}e.memoizedProps=e.pendingProps,t===null?vs(e):ge=t}function Ha(e,t,n,a){qn=Yl=null,gu(t),Ca=null,xi=0;var o=t.return;try{if(jy(e,o,t,n,ye)){Ze=1,rs(e,an(n,e.current)),ge=null;return}}catch(c){if(o!==null)throw ge=o,c;Ze=1,rs(e,an(n,e.current)),ge=null;return}t.flags&32768?(Se||a===1?e=!0:za||(ye&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Tm(t,e)):vs(t)}function vs(e){var t=e;do{if((t.flags&32768)!==0){Tm(t,xl);return}e=t.return;var n=Hy(t.alternate,t,Fn);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function Tm(e,t){do{var n=Vy(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);Ze=6,ge=null}function Am(e,t,n,a,o,c,m,_,x){e.cancelPendingCommit=null;do bs();while(ot!==0);if((Ae&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=qo,li(e,n,c,m,_,x),e===je&&(ge=je=null,ye=0),Ua=t,Rl=e,el=n,Ju=c,Wu=o,mm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wy(cl,function(){return km(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,o=$.p,$.p=2,m=Ae,Ae|=4;try{Gy(e,t,n)}finally{Ae=m,$.p=o,z.T=a}}ot=1,Rm(),Om(),Cm()}}function Rm(){if(ot===1){ot=0;var e=Rl,t=Ua,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var a=$.p;$.p=2;var o=Ae;Ae|=4;try{rm(t,e);var c=hc,m=dd(e.containerInfo),_=c.focusedElem,x=c.selectionRange;if(m!==_&&_&&_.ownerDocument&&fd(_.ownerDocument.documentElement,_)){if(x!==null&&Bo(_)){var L=x.start,j=x.end;if(j===void 0&&(j=L),"selectionStart"in _)_.selectionStart=L,_.selectionEnd=Math.min(j,_.value.length);else{var V=_.ownerDocument||document,N=V&&V.defaultView||window;if(N.getSelection){var M=N.getSelection(),F=_.textContent.length,se=Math.min(x.start,F),ze=x.end===void 0?se:Math.min(x.end,F);!M.extend&&se>ze&&(m=ze,ze=se,se=m);var D=cd(_,se),O=cd(_,ze);if(D&&O&&(M.rangeCount!==1||M.anchorNode!==D.node||M.anchorOffset!==D.offset||M.focusNode!==O.node||M.focusOffset!==O.offset)){var k=V.createRange();k.setStart(D.node,D.offset),M.removeAllRanges(),se>ze?(M.addRange(k),M.extend(O.node,O.offset)):(k.setEnd(O.node,O.offset),M.addRange(k))}}}}for(V=[],M=_;M=M.parentNode;)M.nodeType===1&&V.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var H=V[_];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Ns=!!dc,hc=dc=null}finally{Ae=o,$.p=a,z.T=n}}e.current=t,ot=2}}function Om(){if(ot===2){ot=0;var e=Rl,t=Ua,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var a=$.p;$.p=2;var o=Ae;Ae|=4;try{tm(e,t.alternate,t)}finally{Ae=o,$.p=a,z.T=n}}ot=3}}function Cm(){if(ot===4||ot===3){ot=0,bo();var e=Rl,t=Ua,n=el,a=mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Ua=Rl=null,Dm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Al=null),gn(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,o=$.p,$.p=2,z.T=null;try{for(var c=e.onRecoverableError,m=0;m<a.length;m++){var _=a[m];c(_.value,{componentStack:_.stack})}}finally{z.T=t,$.p=o}}(el&3)!==0&&bs(),An(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Fu?Vi++:(Vi=0,Fu=e):Vi=0,Gi(0)}}function Dm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Si(t)))}function bs(){return Rm(),Om(),Cm(),km()}function km(){if(ot!==5)return!1;var e=Rl,t=Ju;Ju=0;var n=gn(el),a=z.T,o=$.p;try{$.p=32>n?32:n,z.T=null,n=Wu,Wu=null;var c=Rl,m=el;if(ot=0,Ua=Rl=null,el=0,(Ae&6)!==0)throw Error(s(331));var _=Ae;if(Ae|=4,fm(c.current),om(c,c.current,m,n),Ae=_,Gi(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(bn,c)}catch{}return!0}finally{$.p=o,z.T=a,Dm(e,t)}}function Lm(e,t,n){t=an(n,t),t=Lu(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(fl(e,2),An(e))}function Ne(e,t,n){if(e.tag===3)Lm(e,e,n);else for(;t!==null;){if(t.tag===3){Lm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=an(n,e),n=Nh(2),a=vl(t,n,2),a!==null&&(wh(n,a,t,e),fl(a,2),An(a));break}}t=t.return}}function nc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Py;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Zu=!0,o.add(n),e=Ky.bind(null,e,t,n),t.then(e,e))}function Ky(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(ye&n)===n&&(Ze===4||Ze===3&&(ye&62914560)===ye&&300>gt()-ms?(Ae&2)===0&&Ba(e,0):Ku|=n,ja===ye&&(ja=0)),An(e)}function Nm(e,t){t===0&&(t=jn()),e=Il(e,t),e!==null&&(fl(e,t),An(e))}function $y(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nm(e,n)}function Jy(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Nm(e,n)}function Wy(e,t){return ul(e,t)}var Ss=null,Va=null,lc=!1,Es=!1,ac=!1,Cl=0;function An(e){e!==Va&&e.next===null&&(Va===null?Ss=Va=e:Va=Va.next=e),Es=!0,lc||(lc=!0,ev())}function Gi(e,t){if(!ac&&Es){ac=!0;do for(var n=!1,a=Ss;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var m=a.suspendedLanes,_=a.pingedLanes;c=(1<<31-et(42|e)+1)-1,c&=o&~(m&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,jm(a,c))}else c=ye,c=ca(a,a===je?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(n=!0,jm(a,c));a=a.next}while(n);ac=!1}}function Fy(){wm()}function wm(){Es=lc=!1;var e=0;Cl!==0&&cv()&&(e=Cl);for(var t=gt(),n=null,a=Ss;a!==null;){var o=a.next,c=Mm(a,t);c===0?(a.next=null,n===null?Ss=o:n.next=o,o===null&&(Va=n)):(n=a,(e!==0||(c&3)!==0)&&(Es=!0)),a=o}ot!==0&&ot!==5||Gi(e),Cl!==0&&(Cl=0)}function Mm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-et(c),_=1<<m,x=o[m];x===-1?((_&n)===0||(_&a)!==0)&&(o[m]=$e(_,t)):x<=t&&(e.expiredLanes|=_),c&=~_}if(t=je,n=ye,n=ca(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&oa(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Bl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&oa(a),gn(n)){case 2:case 8:n=Gt;break;case 32:n=cl;break;case 268435456:n=Wa;break;default:n=cl}return a=zm.bind(null,e),n=ul(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&oa(a),e.callbackPriority=2,e.callbackNode=null,2}function zm(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bs()&&e.callbackNode!==n)return null;var a=ye;return a=ca(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(gm(e,a,t),Mm(e,gt()),e.callbackNode!=null&&e.callbackNode===n?zm.bind(null,e):null)}function jm(e,t){if(bs())return null;gm(e,t,!0)}function ev(){dv(function(){(Ae&6)!==0?ul(wn,Fy):wm()})}function ic(){if(Cl===0){var e=Aa;e===0&&(e=Mn,Mn<<=1,(Mn&261888)===0&&(Mn=256)),Cl=e}return Cl}function Um(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:kr(""+e)}function Bm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function tv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Um((o[qe]||null).action),m=a.submitter;m&&(t=(t=m[qe]||null)?Um(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var _=new Mr("action","action",null,a,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var x=m?Bm(o,m):new FormData(o);Au(n,{pending:!0,data:x,method:o.method,action:c},null,x)}}else typeof c=="function"&&(_.preventDefault(),x=m?Bm(o,m):new FormData(o),Au(n,{pending:!0,data:x,method:o.method,action:c},c,x))},currentTarget:o}]})}}for(var rc=0;rc<Io.length;rc++){var sc=Io[rc],nv=sc.toLowerCase(),lv=sc[0].toUpperCase()+sc.slice(1);_n(nv,"on"+lv)}_n(pd,"onAnimationEnd"),_n(gd,"onAnimationIteration"),_n(_d,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(vy,"onTransitionRun"),_n(by,"onTransitionStart"),_n(Sy,"onTransitionCancel"),_n(yd,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="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(" "),av=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ii));function Hm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var m=a.length-1;0<=m;m--){var _=a[m],x=_.instance,L=_.currentTarget;if(_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=L;try{c(o)}catch(j){Ur(j)}o.currentTarget=null,c=x}else for(m=0;m<a.length;m++){if(_=a[m],x=_.instance,L=_.currentTarget,_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=L;try{c(o)}catch(j){Ur(j)}o.currentTarget=null,c=x}}}}function _e(e,t){var n=t[fa];n===void 0&&(n=t[fa]=new Set);var a=e+"__bubble";n.has(a)||(Vm(t,e,2,!1),n.add(a))}function oc(e,t,n){var a=0;t&&(a|=4),Vm(n,e,a,t)}var xs="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[xs]){e[xs]=!0,_t.forEach(function(n){n!=="selectionchange"&&(av.has(n)||oc(n,!1,e),oc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xs]||(t[xs]=!0,oc("selectionchange",!1,t))}}function Vm(e,t,n,a){switch(pp(t)){case 2:var o=Nv;break;case 8:o=wv;break;default:o=Tc}n=o.bind(null,t,n,e),o=void 0,!Do||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function cc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var _=a.stateNode.containerInfo;if(_===o)break;if(m===4)for(m=a.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;_!==null;){if(m=Y(_),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){a=c=m;continue e}_=_.parentNode}}a=a.return}Yf(function(){var L=c,j=Oo(n),V=[];e:{var N=vd.get(e);if(N!==void 0){var M=Mr,F=e;switch(e){case"keypress":if(Nr(n)===0)break e;case"keydown":case"keyup":M=J_;break;case"focusin":F="focus",M=wo;break;case"focusout":F="blur",M=wo;break;case"beforeblur":case"afterblur":M=wo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=H_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=ey;break;case pd:case gd:case _d:M=I_;break;case yd:M=ny;break;case"scroll":case"scrollend":M=U_;break;case"wheel":M=ay;break;case"copy":case"cut":case"paste":M=P_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=$f;break;case"toggle":case"beforetoggle":M=ry}var se=(t&4)!==0,ze=!se&&(e==="scroll"||e==="scrollend"),D=se?N!==null?N+"Capture":null:N;se=[];for(var O=L,k;O!==null;){var H=O;if(k=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||k===null||D===null||(H=ci(O,D),H!=null&&se.push(qi(O,H,k))),ze)break;O=O.return}0<se.length&&(N=new M(N,F,null,n,j),V.push({event:N,listeners:se}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",N&&n!==Ro&&(F=n.relatedTarget||n.fromElement)&&(Y(F)||F[Un]))break e;if((M||N)&&(N=j.window===j?j:(N=j.ownerDocument)?N.defaultView||N.parentWindow:window,M?(F=n.relatedTarget||n.toElement,M=L,F=F?Y(F):null,F!==null&&(ze=f(F),se=F.tag,F!==ze||se!==5&&se!==27&&se!==6)&&(F=null)):(M=null,F=L),M!==F)){if(se=Zf,H="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(se=$f,H="onPointerLeave",D="onPointerEnter",O="pointer"),ze=M==null?N:De(M),k=F==null?N:De(F),N=new se(H,O+"leave",M,n,j),N.target=ze,N.relatedTarget=k,H=null,Y(j)===L&&(se=new se(D,O+"enter",F,n,j),se.target=k,se.relatedTarget=ze,H=se),ze=H,M&&F)t:{for(se=iv,D=M,O=F,k=0,H=D;H;H=se(H))k++;H=0;for(var ie=O;ie;ie=se(ie))H++;for(;0<k-H;)D=se(D),k--;for(;0<H-k;)O=se(O),H--;for(;k--;){if(D===O||O!==null&&D===O.alternate){se=D;break t}D=se(D),O=se(O)}se=null}else se=null;M!==null&&Gm(V,N,M,se,!1),F!==null&&ze!==null&&Gm(V,ze,F,se,!0)}}e:{if(N=L?De(L):window,M=N.nodeName&&N.nodeName.toLowerCase(),M==="select"||M==="input"&&N.type==="file")var Ee=ad;else if(nd(N))if(id)Ee=gy;else{Ee=my;var le=hy}else M=N.nodeName,!M||M.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?L&&Ao(L.elementType)&&(Ee=ad):Ee=py;if(Ee&&(Ee=Ee(e,L))){ld(V,Ee,n,j);break e}le&&le(e,N,L),e==="focusout"&&L&&N.type==="number"&&L.memoizedProps.value!=null&&To(N,"number",N.value)}switch(le=L?De(L):window,e){case"focusin":(nd(le)||le.contentEditable==="true")&&(_a=le,Ho=L,yi=null);break;case"focusout":yi=Ho=_a=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,hd(V,n,j);break;case"selectionchange":if(yy)break;case"keydown":case"keyup":hd(V,n,j)}var de;if(zo)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else ga?ed(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Jf&&n.locale!=="ko"&&(ga||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ga&&(de=Xf()):(dl=j,ko="value"in dl?dl.value:dl.textContent,ga=!0)),le=Ts(L,ve),0<le.length&&(ve=new Kf(ve,e,null,n,j),V.push({event:ve,listeners:le}),de?ve.data=de:(de=td(n),de!==null&&(ve.data=de)))),(de=oy?uy(e,n):cy(e,n))&&(ve=Ts(L,"onBeforeInput"),0<ve.length&&(le=new Kf("onBeforeInput","beforeinput",null,n,j),V.push({event:le,listeners:ve}),le.data=de)),tv(V,e,L,n,j)}Hm(V,t)})}function qi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ts(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ci(e,n),o!=null&&a.unshift(qi(e,o,c)),o=ci(e,t),o!=null&&a.push(qi(e,o,c))),e.tag===3)return a;e=e.return}return[]}function iv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gm(e,t,n,a,o){for(var c=t._reactName,m=[];n!==null&&n!==a;){var _=n,x=_.alternate,L=_.stateNode;if(_=_.tag,x!==null&&x===a)break;_!==5&&_!==26&&_!==27||L===null||(x=L,o?(L=ci(n,c),L!=null&&m.unshift(qi(n,L,x))):o||(L=ci(n,c),L!=null&&m.push(qi(n,L,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var rv=/\r\n?/g,sv=/\u0000|\uFFFD/g;function Im(e){return(typeof e=="string"?e:""+e).replace(rv,`
|
|
50
|
+
`).replace(sv,"")}function qm(e,t){return t=Im(t),Im(e)===t}function Me(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ha(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ha(e,""+a);break;case"className":Cr(e,"class",a);break;case"tabIndex":Cr(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Cr(e,n,a);break;case"style":qf(e,a,c);break;case"data":if(t!=="object"){Cr(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=kr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",o.name,o,null),Me(e,t,"formEncType",o.formEncType,o,null),Me(e,t,"formMethod",o.formMethod,o,null),Me(e,t,"formTarget",o.formTarget,o,null)):(Me(e,t,"encType",o.encType,o,null),Me(e,t,"method",o.method,o,null),Me(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=kr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=kr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Or(e,"popover",a);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Or(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=z_.get(n)||n,Or(e,n,a))}}function fc(e,t,n,a,o,c){switch(n){case"style":qf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ha(e,a):(typeof a=="number"||typeof a=="bigint")&&ha(e,""+a);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!en.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[qe]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Or(e,n,a)}}}function St(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,c,m,n,null)}}o&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var _=c=m=o=null,x=null,L=null;for(a in n)if(n.hasOwnProperty(a)){var j=n[a];if(j!=null)switch(a){case"name":o=j;break;case"type":m=j;break;case"checked":x=j;break;case"defaultChecked":L=j;break;case"value":c=j;break;case"defaultValue":_=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Me(e,t,a,j,n,null)}}Hf(e,c,_,x,L,m,o,!1);return;case"select":_e("invalid",e),a=m=c=null;for(o in n)if(n.hasOwnProperty(o)&&(_=n[o],_!=null))switch(o){case"value":c=_;break;case"defaultValue":m=_;break;case"multiple":a=_;default:Me(e,t,o,_,n,null)}t=c,n=m,e.multiple=!!a,t!=null?da(e,!!a,t,!1):n!=null&&da(e,!!a,n,!0);return;case"textarea":_e("invalid",e),c=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(_=n[m],_!=null))switch(m){case"value":a=_;break;case"defaultValue":o=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:Me(e,t,m,_,n,null)}Gf(e,a,o,c);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,x,a,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(a=0;a<Ii.length;a++)_e(Ii[a],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in n)if(n.hasOwnProperty(L)&&(a=n[L],a!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,L,a,n,null)}return;default:if(Ao(t)){for(j in n)n.hasOwnProperty(j)&&(a=n[j],a!==void 0&&fc(e,t,j,a,n,void 0));return}}for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!=null&&Me(e,t,_,a,n,null))}function ov(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,_=null,x=null,L=null,j=null;for(M in n){var V=n[M];if(n.hasOwnProperty(M)&&V!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":x=V;default:a.hasOwnProperty(M)||Me(e,t,M,null,a,V)}}for(var N in a){var M=a[N];if(V=n[N],a.hasOwnProperty(N)&&(M!=null||V!=null))switch(N){case"type":c=M;break;case"name":o=M;break;case"checked":L=M;break;case"defaultChecked":j=M;break;case"value":m=M;break;case"defaultValue":_=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==V&&Me(e,t,N,M,a,V)}}xo(e,m,_,x,L,j,c,o);return;case"select":M=m=_=N=null;for(c in n)if(x=n[c],n.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":M=x;default:a.hasOwnProperty(c)||Me(e,t,c,null,a,x)}for(o in a)if(c=a[o],x=n[o],a.hasOwnProperty(o)&&(c!=null||x!=null))switch(o){case"value":N=c;break;case"defaultValue":_=c;break;case"multiple":m=c;default:c!==x&&Me(e,t,o,c,a,x)}t=_,n=m,a=M,N!=null?da(e,!!n,N,!1):!!a!=!!n&&(t!=null?da(e,!!n,t,!0):da(e,!!n,n?[]:"",!1));return;case"textarea":M=N=null;for(_ in n)if(o=n[_],n.hasOwnProperty(_)&&o!=null&&!a.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Me(e,t,_,null,a,o)}for(m in a)if(o=a[m],c=n[m],a.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":N=o;break;case"defaultValue":M=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Me(e,t,m,o,a,c)}Vf(e,N,M);return;case"option":for(var F in n)if(N=n[F],n.hasOwnProperty(F)&&N!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Me(e,t,F,null,a,N)}for(x in a)if(N=a[x],M=n[x],a.hasOwnProperty(x)&&N!==M&&(N!=null||M!=null))switch(x){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Me(e,t,x,N,a,M)}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 se in n)N=n[se],n.hasOwnProperty(se)&&N!=null&&!a.hasOwnProperty(se)&&Me(e,t,se,null,a,N);for(L in a)if(N=a[L],M=n[L],a.hasOwnProperty(L)&&N!==M&&(N!=null||M!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Me(e,t,L,N,a,M)}return;default:if(Ao(t)){for(var ze in n)N=n[ze],n.hasOwnProperty(ze)&&N!==void 0&&!a.hasOwnProperty(ze)&&fc(e,t,ze,void 0,a,N);for(j in a)N=a[j],M=n[j],!a.hasOwnProperty(j)||N===M||N===void 0&&M===void 0||fc(e,t,j,N,a,M);return}}for(var D in n)N=n[D],n.hasOwnProperty(D)&&N!=null&&!a.hasOwnProperty(D)&&Me(e,t,D,null,a,N);for(V in a)N=a[V],M=n[V],!a.hasOwnProperty(V)||N===M||N==null&&M==null||Me(e,t,V,N,a,M)}function Pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,m=o.initiatorType,_=o.duration;if(c&&_&&Pm(m)){for(m=0,_=o.responseEnd,a+=1;a<n.length;a++){var x=n[a],L=x.startTime;if(L>_)break;var j=x.transferSize,V=x.initiatorType;j&&Pm(V)&&(x=x.responseEnd,m+=j*(x<_?1:(_-L)/(x-L)))}if(--a,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var dc=null,hc=null;function As(e){return e.nodeType===9?e:e.ownerDocument}function Ym(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function mc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pc=null;function cv(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var Qm=typeof setTimeout=="function"?setTimeout:void 0,fv=typeof clearTimeout=="function"?clearTimeout:void 0,Zm=typeof Promise=="function"?Promise:void 0,dv=typeof queueMicrotask=="function"?queueMicrotask:typeof Zm<"u"?function(e){return Zm.resolve(null).then(e).catch(hv)}:Qm;function hv(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Km(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Pa(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Pi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Pi(n);for(var c=n.firstChild;c;){var m=c.nextSibling,_=c.nodeName;c[ne]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=m}}else n==="body"&&Pi(e.ownerDocument.body);n=o}while(n);Pa(t)}function $m(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":gc(n),R(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function mv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ne])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function pv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Jm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function _c(e){return e.data==="$?"||e.data==="$~"}function yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vc=null;function Wm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ep(e,t,n){switch(t=As(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);R(e)}var fn=new Map,tp=new Set;function Rs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var tl=$.d;$.d={f:_v,r:yv,D:vv,C:bv,L:Sv,m:Ev,X:Tv,S:xv,M:Av};function _v(){var e=tl.f(),t=_s();return e||t}function yv(e){var t=J(e);t!==null&&t.tag===5&&t.type==="form"?yh(t):tl.r(e)}var Ga=typeof document>"u"?null:document;function np(e,t,n){var a=Ga;if(a&&typeof t=="string"&&t){var o=nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),tp.has(o)||(tp.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),St(t,"link",e),me(t),a.head.appendChild(t)))}}function vv(e){tl.D(e),np("dns-prefetch",e,null)}function bv(e,t){tl.C(e,t),np("preconnect",e,t)}function Sv(e,t,n){tl.L(e,t,n);var a=Ga;if(a&&e&&t){var o='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+nn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+nn(n.imageSizes)+'"]')):o+='[href="'+nn(e)+'"]';var c=o;switch(t){case"style":c=Ia(e);break;case"script":c=qa(e)}fn.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),fn.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Yi(c))||t==="script"&&a.querySelector(Xi(c))||(t=a.createElement("link"),St(t,"link",e),me(t),a.head.appendChild(t)))}}function Ev(e,t){tl.m(e,t);var n=Ga;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+nn(a)+'"][href="'+nn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=qa(e)}if(!fn.has(c)&&(e=b({rel:"modulepreload",href:e},t),fn.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xi(c)))return}a=n.createElement("link"),St(a,"link",e),me(a),n.head.appendChild(a)}}}function xv(e,t,n){tl.S(e,t,n);var a=Ga;if(a&&e){var o=Xe(a).hoistableStyles,c=Ia(e);t=t||"default";var m=o.get(c);if(!m){var _={loading:0,preload:null};if(m=a.querySelector(Yi(c)))_.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=fn.get(c))&&bc(e,n);var x=m=a.createElement("link");me(x),St(x,"link",e),x._p=new Promise(function(L,j){x.onload=L,x.onerror=j}),x.addEventListener("load",function(){_.loading|=1}),x.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Os(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:_},o.set(c,m)}}}function Tv(e,t){tl.X(e,t);var n=Ga;if(n&&e){var a=Xe(n).hoistableScripts,o=qa(e),c=a.get(o);c||(c=n.querySelector(Xi(o)),c||(e=b({src:e,async:!0},t),(t=fn.get(o))&&Sc(e,t),c=n.createElement("script"),me(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Av(e,t){tl.M(e,t);var n=Ga;if(n&&e){var a=Xe(n).hoistableScripts,o=qa(e),c=a.get(o);c||(c=n.querySelector(Xi(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&Sc(e,t),c=n.createElement("script"),me(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function lp(e,t,n,a){var o=(o=ue.current)?Rs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ia(n.href),n=Xe(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ia(n.href);var c=Xe(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(Yi(e)))&&!c._p&&(m.instance=c,m.state.loading=5),fn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(e,n),c||Rv(o,e,n,m.state))),t&&a===null)throw Error(s(528,""));return m}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(n),n=Xe(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ia(e){return'href="'+nn(e)+'"'}function Yi(e){return'link[rel="stylesheet"]['+e+"]"}function ap(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Rv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),St(t,"link",n),me(t),e.head.appendChild(t))}function qa(e){return'[src="'+nn(e)+'"]'}function Xi(e){return"script[async]"+e}function ip(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+nn(n.href)+'"]');if(a)return t.instance=a,me(a),a;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),me(a),St(a,"style",o),Os(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ia(n.href);var c=e.querySelector(Yi(o));if(c)return t.state.loading|=4,t.instance=c,me(c),c;a=ap(n),(o=fn.get(o))&&bc(a,o),c=(e.ownerDocument||e).createElement("link"),me(c);var m=c;return m._p=new Promise(function(_,x){m.onload=_,m.onerror=x}),St(c,"link",a),t.state.loading|=4,Os(c,n.precedence,e),t.instance=c;case"script":return c=qa(n.src),(o=e.querySelector(Xi(c)))?(t.instance=o,me(o),o):(a=n,(o=fn.get(c))&&(a=b({},n),Sc(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),me(o),St(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Os(a,n.precedence,e));return t.instance}function Os(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,m=0;m<a.length;m++){var _=a[m];if(_.dataset.precedence===t)c=_;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cs=null;function rp(e,t,n){if(Cs===null){var a=new Map,o=Cs=new Map;o.set(n,a)}else o=Cs,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ne]||c[tt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var _=a.get(m);_?_.push(c):a.set(m,[c])}}return a}function sp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ov(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function op(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ia(a.href),c=t.querySelector(Yi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ds.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,me(c);return}c=t.ownerDocument||t,a=ap(a),(o=fn.get(o))&&bc(a,o),c=c.createElement("link"),me(c);var m=c;m._p=new Promise(function(_,x){m.onload=_,m.onerror=x}),St(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ds.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ec=0;function Dv(e,t){return e.stylesheets&&e.count===0&&Ls(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Ec===0&&(Ec=62500*uv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Ec?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ls(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ks=null;function Ls(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ks=new Map,t.forEach(kv,e),ks=null,Ds.call(e))}function kv(e,t){if(!(t.state.loading&4)){var n=ks.get(e);if(n)var a=n.get(null);else{n=new Map,ks.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),c=n.get(m)||a,c===a&&n.set(null,o),n.set(m,o),this.count++,a=Ds.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Qi={$$typeof:P,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Lv(e,t,n,a,o,c,m,_,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ni(0),this.hiddenUpdates=ni(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function up(e,t,n,a,o,c,m,_,x,L,j,V){return e=new Lv(e,t,n,m,x,L,j,V,_),t=1,c===!0&&(t|=24),c=Pt(3,null,null,t),e.current=c,c.stateNode=e,t=tu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},iu(c),e}function cp(e){return e?(e=ba,e):ba}function fp(e,t,n,a,o,c){o=cp(o),a.context===null?a.context=o:a.pendingContext=o,a=yl(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=vl(e,a,t),n!==null&&(Ht(n,e,t),Ai(n,e,t))}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xc(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function hp(e){if(e.tag===13||e.tag===31){var t=Il(e,67108864);t!==null&&Ht(t,e,67108864),xc(e,67108864)}}function mp(e){if(e.tag===13||e.tag===31){var t=Kt();t=Nt(t);var n=Il(e,t);n!==null&&Ht(n,e,t),xc(e,t)}}var Ns=!0;function Nv(e,t,n,a){var o=z.T;z.T=null;var c=$.p;try{$.p=2,Tc(e,t,n,a)}finally{$.p=c,z.T=o}}function wv(e,t,n,a){var o=z.T;z.T=null;var c=$.p;try{$.p=8,Tc(e,t,n,a)}finally{$.p=c,z.T=o}}function Tc(e,t,n,a){if(Ns){var o=Ac(a);if(o===null)cc(e,t,a,ws,n),gp(e,a);else if(zv(o,e,t,n,a))a.stopPropagation();else if(gp(e,a),t&4&&-1<Mv.indexOf(e)){for(;o!==null;){var c=J(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=It(c.pendingLanes);if(m!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;m;){var x=1<<31-et(m);_.entanglements[1]|=x,m&=~x}An(c),(Ae&6)===0&&(ps=gt()+500,Gi(0))}}break;case 31:case 13:_=Il(c,2),_!==null&&Ht(_,c,2),_s(),xc(c,2)}if(c=Ac(a),c===null&&cc(e,t,a,ws,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else cc(e,t,a,null,n)}}function Ac(e){return e=Oo(e),Rc(e)}var ws=null;function Rc(e){if(ws=null,e=Y(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ws=e,null}function pp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ul()){case wn:return 2;case Gt:return 8;case cl:case Sr:return 32;case Wa:return 268435456;default:return 32}default:return 32}}var Oc=!1,kl=null,Ll=null,Nl=null,Zi=new Map,Ki=new Map,wl=[],Mv="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 gp(e,t){switch(e){case"focusin":case"focusout":kl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ki.delete(t.pointerId)}}function $i(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=J(t),t!==null&&hp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function zv(e,t,n,a,o){switch(t){case"focusin":return kl=$i(kl,e,t,n,a,o),!0;case"dragenter":return Ll=$i(Ll,e,t,n,a,o),!0;case"mouseover":return Nl=$i(Nl,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return Zi.set(c,$i(Zi.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Ki.set(c,$i(Ki.get(c)||null,e,t,n,a,o)),!0}return!1}function _p(e){var t=Y(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,si(e.priority,function(){mp(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,si(e.priority,function(){mp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ac(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ro=a,n.target.dispatchEvent(a),Ro=null}else return t=J(n),t!==null&&hp(t),e.blockedOn=n,!1;t.shift()}return!0}function yp(e,t,n){Ms(e)&&n.delete(t)}function jv(){Oc=!1,kl!==null&&Ms(kl)&&(kl=null),Ll!==null&&Ms(Ll)&&(Ll=null),Nl!==null&&Ms(Nl)&&(Nl=null),Zi.forEach(yp),Ki.forEach(yp)}function zs(e,t){e.blockedOn===t&&(e.blockedOn=null,Oc||(Oc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jv)))}var js=null;function vp(e){js!==e&&(js=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){js===e&&(js=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Rc(a||n)===null)continue;break}var c=J(n);c!==null&&(e.splice(t,3),t-=3,Au(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Pa(e){function t(x){return zs(x,e)}kl!==null&&zs(kl,e),Ll!==null&&zs(Ll,e),Nl!==null&&zs(Nl,e),Zi.forEach(t),Ki.forEach(t);for(var n=0;n<wl.length;n++){var a=wl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(n=wl[0],n.blockedOn===null);)_p(n),n.blockedOn===null&&wl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],m=o[qe]||null;if(typeof c=="function")m||vp(n);else if(m){var _=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[qe]||null)_=m.formAction;else if(Rc(o)!==null)continue}else _=m.action;typeof _=="function"?n[a+1]=_:(n.splice(a,3),a-=3),vp(n)}}}function bp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Cc(e){this._internalRoot=e}Us.prototype.render=Cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Kt();fp(n,a,e,t,null,null)},Us.prototype.unmount=Cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fp(e.current,2,null,e,null,null),_s(),t[Un]=null}};function Us(e){this._internalRoot=e}Us.prototype.unstable_scheduleHydration=function(e){if(e){var t=ri();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wl.length&&t!==0&&t<wl[n].priority;n++);wl.splice(n,0,e),n===0&&_p(e)}};var Sp=l.version;if(Sp!=="19.2.4")throw Error(s(527,Sp,"19.2.4"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=h(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Uv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bs.isDisabled&&Bs.supportsFiber)try{bn=Bs.inject(Uv),ft=Bs}catch{}}return Wi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,a="",o=Ch,c=Dh,m=kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=up(e,1,!1,null,null,n,a,null,o,c,m,bp),e[Un]=t.current,uc(e),new Cc(t)},Wi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var a=!1,o="",c=Ch,m=Dh,_=kh,x=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(_=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),t=up(e,1,!0,t,n??null,a,o,x,c,m,_,bp),t.context=cp(null),n=t.current,a=Kt(),a=Nt(a),o=yl(a),o.callback=null,vl(n,o,a),n=a,t.current.lanes=n,fl(t,n),An(t),e[Un]=t.current,uc(e),new Us(t)},Wi.version="19.2.4",Wi}var Lp;function Kv(){if(Lp)return Lc.exports;Lp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Lc.exports=Zv(),Lc.exports}var $v=Kv();const Tg=K.createContext(null);function mf(){return K.useContext(Tg)}function $c(){return localStorage.getItem("bd-ui-token")}function Jv({children:i}){const[l,r]=K.useState(!0),[s,u]=K.useState(!1),[f,d]=K.useState($c),[g,p]=K.useState(null);K.useEffect(()=>{async function b(){try{if(!(await(await fetch("/api/config")).json()).authEnabled){u(!1),r(!1);return}u(!0);const C=$c();if(C){const q=await(await fetch("/api/auth/me",{headers:{Authorization:`Bearer ${C}`}})).json();if(q.ok&&q.user){p(q.user),d(C),r(!1);return}}localStorage.removeItem("bd-ui-token"),d(null),p(null)}catch{u(!1)}r(!1)}b()},[]);const h=K.useCallback(async(b,E)=>{try{const C=await(await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:b,password:E})})).json();return C.ok?(localStorage.setItem("bd-ui-token",C.token),d(C.token),p(C.user),null):C.error||"Login failed"}catch{return"Network error"}},[]),y=K.useCallback(()=>{localStorage.removeItem("bd-ui-token"),d(null),p(null)},[]);return v.jsx(Tg.Provider,{value:{loading:l,authEnabled:s,token:f,user:g,login:h,logout:y},children:i})}let Wv=0;function Np(){return`req-${Date.now()}-${++Wv}`}class Fv{constructor(){w(this,"ws",null);w(this,"pending",new Map);w(this,"sendQueue",[]);w(this,"pushHandlers",new Set);w(this,"connectionHandlers",new Set);w(this,"activeSubscriptions",new Map);w(this,"reconnectDelay",500);w(this,"url");w(this,"disposed",!1);const l=location.protocol==="https:"?"wss:":"ws:";this.url=`${l}//${location.host}/ws`}connect(){if(this.disposed)return;const l=$c(),r=l?`${this.url}?token=${encodeURIComponent(l)}`:this.url;this.ws=new WebSocket(r),this.ws.onopen=()=>{var s;this.reconnectDelay=500;for(const u of this.sendQueue)(s=this.ws)==null||s.send(u);this.sendQueue=[];for(const[,u]of this.activeSubscriptions)this.rawSend("subscribe-list",u);for(const u of this.connectionHandlers)u(!0)},this.ws.onclose=()=>{for(const s of this.connectionHandlers)s(!1);this.scheduleReconnect()},this.ws.onmessage=s=>{this.handleMessage(JSON.parse(s.data))}}dispose(){var l;this.disposed=!0,(l=this.ws)==null||l.close(),this.ws=null;for(const[,r]of this.pending)r.reject(new Error("disposed"));this.pending.clear(),this.sendQueue=[]}scheduleReconnect(){if(!this.disposed){setTimeout(()=>this.connect(),this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*2,1e4);for(const[l,r]of this.pending)r.reject(new Error("disconnected")),this.pending.delete(l)}}handleMessage(l){var s;if(l.type==="snapshot"||l.type==="upsert"||l.type==="delete"){const u=l.payload;for(const f of this.pushHandlers)f(u);return}const r=this.pending.get(l.id);r&&(this.pending.delete(l.id),l.ok?r.resolve(l.payload):r.reject(new Error(((s=l.error)==null?void 0:s.message)||"unknown error")))}rawSend(l,r){var d;const u={id:Np(),type:l,payload:r},f=JSON.stringify(u);((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN?this.ws.send(f):this.sendQueue.push(f)}send(l,r){return new Promise((s,u)=>{var p;const f=Np();this.pending.set(f,{resolve:s,reject:u});const g=JSON.stringify({id:f,type:l,payload:r});((p=this.ws)==null?void 0:p.readyState)===WebSocket.OPEN?this.ws.send(g):this.sendQueue.push(g)})}onConnection(l){return this.connectionHandlers.add(l),()=>this.connectionHandlers.delete(l)}onPush(l){return this.pushHandlers.add(l),()=>this.pushHandlers.delete(l)}subscribe(l){return this.activeSubscriptions.set(l.id,l),this.send("subscribe-list",l)}unsubscribe(l){return this.activeSubscriptions.delete(l),this.send("unsubscribe-list",{id:l})}updateStatus(l){return this.send("update-status",l)}editText(l){return this.send("edit-text",l)}createIssue(l){return this.send("create-issue",l)}updatePriority(l,r){return this.send("update-priority",{id:l,priority:r})}updateAssignee(l,r){return this.send("update-assignee",{id:l,assignee:r})}addLabel(l,r){return this.send("label-add",{id:l,label:r})}removeLabel(l,r){return this.send("label-remove",{id:l,label:r})}deleteIssue(l){return this.send("delete-issue",{id:l})}getComments(l){return this.send("get-comments",{id:l})}addComment(l,r){return this.send("add-comment",{id:l,text:r})}addDep(l,r){return this.send("dep-add",{a:l,b:r})}removeDep(l,r){return this.send("dep-remove",{a:l,b:r})}listWorkspaces(){return this.send("list-workspaces")}getWorkspace(){return this.send("get-workspace")}setWorkspace(l,r){return this.send("set-workspace",{path:l,database:r})}fetchIssue(l){return new Promise(r=>{const s=`peek-${l}-${Date.now()}`,u=this.onPush(f=>{f.id!==s||f.type!=="snapshot"||(u(),this.unsubscribe(s),r(f.issues[0]??null))});this.subscribe({id:s,type:"issue-detail",params:{id:l}}),setTimeout(()=>{u(),this.unsubscribe(s),r(null)},3e3)})}}const Ag=K.createContext(null);function e0({children:i}){const l=K.useRef(null);return l.current||(l.current=new Fv,l.current.connect()),v.jsx(Ag.Provider,{value:l.current,children:i})}function mo(){const i=K.useContext(Ag);if(!i)throw new Error("useWs must be inside WsProvider");return i}function t0(){const[i,l]=K.useState(window.location.pathname||"/board");return K.useEffect(()=>{const r=()=>l(window.location.pathname||"/board");return window.addEventListener("popstate",r),()=>window.removeEventListener("popstate",r)},[]),i}function la(i){window.history.pushState(null,"",i),window.dispatchEvent(new PopStateEvent("popstate"))}function wp({href:i,label:l,icon:r,active:s}){return v.jsxs("a",{href:i,onClick:u=>{u.preventDefault(),la(i)},className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",style:{background:s?"var(--bg-hover)":"transparent",color:s?"var(--text-primary)":"var(--text-secondary)",fontWeight:s?500:400},onMouseEnter:u=>{s||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{s||(u.currentTarget.style.background="transparent")},children:[r,l]})}const n0=()=>v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"1",y:"1",width:"5",height:"6",rx:"1"}),v.jsx("rect",{x:"10",y:"1",width:"5",height:"9",rx:"1"}),v.jsx("rect",{x:"1",y:"9",width:"5",height:"6",rx:"1"}),v.jsx("rect",{x:"10",y:"12",width:"5",height:"3",rx:"1"})]}),l0=()=>v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("line",{x1:"5",y1:"4",x2:"14",y2:"4"}),v.jsx("line",{x1:"5",y1:"8",x2:"14",y2:"8"}),v.jsx("line",{x1:"5",y1:"12",x2:"14",y2:"12"}),v.jsx("circle",{cx:"2",cy:"4",r:"0.75",fill:"currentColor",stroke:"none"}),v.jsx("circle",{cx:"2",cy:"8",r:"0.75",fill:"currentColor",stroke:"none"}),v.jsx("circle",{cx:"2",cy:"12",r:"0.75",fill:"currentColor",stroke:"none"})]});function a0({children:i}){const l=t0();K.useEffect(()=>{const y=b=>{var C,U;const E=(U=(C=b.target).closest)==null?void 0:U.call(C,"a[href]");if(!E)return;const T=E.getAttribute("href");!T||!T.startsWith("/")||T.startsWith("//")||b.metaKey||b.ctrlKey||b.shiftKey||(b.preventDefault(),la(T))};return document.addEventListener("click",y),()=>document.removeEventListener("click",y)},[]);const r=mo(),{user:s,authEnabled:u,logout:f}=mf(),[d,g]=K.useState(""),[p,h]=K.useState("");return K.useEffect(()=>{fetch("/api/config").then(y=>y.json()).then(y=>{h(y.version||"")}).catch(()=>{})},[]),K.useEffect(()=>{r.getWorkspace().then(y=>{if(y!=null&&y.db_path){const b=y.db_path.split("/").filter(Boolean),E=b.lastIndexOf(".beads");if(E>0){g(b[E-1]);return}}y!=null&&y.root_dir&&g(y.root_dir.split("/").pop()||"")}).catch(()=>{})},[r]),v.jsxs("div",{className:"flex h-screen",style:{background:"var(--bg-base)"},children:[v.jsxs("nav",{className:"flex flex-col",style:{width:"200px",borderRight:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[v.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-5",children:[v.jsx("div",{className:"flex items-center justify-center rounded-md",style:{width:"28px",height:"28px",background:"var(--accent)"},children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"white",children:[v.jsx("circle",{cx:"7",cy:"4",r:"2.5"}),v.jsx("circle",{cx:"4",cy:"10",r:"2.5"}),v.jsx("circle",{cx:"10",cy:"10",r:"2.5"})]})}),v.jsx("span",{className:"font-bold",style:{fontSize:"16px",color:"var(--text-primary)"},children:"Beads"})]}),d&&v.jsx("div",{className:"px-4 pb-3 mb-1",style:{borderBottom:"1px solid var(--border-subtle)"},children:v.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:d})}),v.jsxs("div",{className:"px-2 space-y-0.5",children:[v.jsx(wp,{href:"/board",label:"Board",icon:v.jsx(n0,{}),active:l.startsWith("/board")||l==="/"}),v.jsx(wp,{href:"/list",label:"List",icon:v.jsx(l0,{}),active:l.startsWith("/list")})]}),v.jsx("div",{className:"flex-1"}),p&&v.jsx("div",{className:"px-4 pb-2 text-center",children:v.jsxs("span",{style:{fontSize:"10px",color:"var(--text-tertiary)"},children:["v",p]})}),s&&v.jsxs("div",{className:"mx-3 mb-3 px-3 py-2.5 rounded-md flex items-center gap-2.5",style:{border:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-xs font-bold shrink-0",style:{width:"28px",height:"28px",background:"var(--accent)",color:"white"},children:s.username.charAt(0).toUpperCase()}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("div",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:s.username}),s.role&&v.jsx("div",{style:{fontSize:"11px",color:"var(--text-tertiary)"},children:s.role})]}),u&&v.jsx("button",{onClick:f,className:"shrink-0 p-1 rounded transition-colors",style:{color:"var(--text-tertiary)"},onMouseEnter:y=>y.currentTarget.style.color="var(--text-primary)",onMouseLeave:y=>y.currentTarget.style.color="var(--text-tertiary)",title:"Sign out",children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M6 2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3"}),v.jsx("path",{d:"M11 11l3-3-3-3"}),v.jsx("line",{x1:"6",y1:"8",x2:"14",y2:"8"})]})})]})]}),v.jsx("main",{className:"flex-1 overflow-auto",children:i(l)})]})}function i0(){const{login:i}=mf(),[l,r]=K.useState(""),[s,u]=K.useState(""),[f,d]=K.useState(null),[g,p]=K.useState(!1);async function h(y){y.preventDefault(),d(null),p(!0);const b=await i(l,s);b&&d(b),p(!1)}return v.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{background:"var(--bg-base)"},children:v.jsxs("div",{className:"w-full max-w-sm rounded-lg p-8",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-default)"},children:[v.jsxs("div",{className:"flex items-center gap-2.5 mb-8 justify-center",children:[v.jsx("div",{className:"flex items-center justify-center rounded-md",style:{width:"32px",height:"32px",background:"var(--accent)"},children:v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"white",children:[v.jsx("circle",{cx:"7",cy:"4",r:"2.5"}),v.jsx("circle",{cx:"4",cy:"10",r:"2.5"}),v.jsx("circle",{cx:"10",cy:"10",r:"2.5"})]})}),v.jsx("span",{className:"font-bold text-xl",style:{color:"var(--text-primary)"},children:"Beads"})]}),v.jsxs("form",{onSubmit:h,children:[v.jsxs("div",{className:"mb-4",children:[v.jsx("label",{className:"block text-sm mb-1.5",style:{color:"var(--text-secondary)"},children:"Username"}),v.jsx("input",{type:"text",value:l,onChange:y=>r(y.target.value),className:"w-full px-3 py-2 rounded-md text-sm outline-none",style:{background:"var(--bg-base)",border:"1px solid var(--border-default)",color:"var(--text-primary)"},autoFocus:!0})]}),v.jsxs("div",{className:"mb-6",children:[v.jsx("label",{className:"block text-sm mb-1.5",style:{color:"var(--text-secondary)"},children:"Password"}),v.jsx("input",{type:"password",value:s,onChange:y=>u(y.target.value),className:"w-full px-3 py-2 rounded-md text-sm outline-none",style:{background:"var(--bg-base)",border:"1px solid var(--border-default)",color:"var(--text-primary)"}})]}),f&&v.jsx("div",{className:"mb-4 text-sm px-3 py-2 rounded-md",style:{background:"#fee2e2",color:"#dc2626"},children:f}),v.jsx("button",{type:"submit",disabled:g||!l||!s,className:"w-full py-2 rounded-md text-sm font-medium transition-opacity",style:{background:"var(--accent)",color:"white",opacity:g||!l||!s?.5:1},children:g?"Signing in...":"Sign in"})]})]})})}const Mp=new WeakMap;function Rg(i){let l=Mp.get(i);return l||(l=new Map,Mp.set(i,l)),l}function Og(i,l){return l?`${i}:${JSON.stringify(l)}`:i}function r0(i,l,r){const s=Rg(i),u=Og(l,r);let f=s.get(u);if(f)return f.refCount++,f;const d=`sub-${l}-${Date.now()}`;f={refCount:1,subId:d,items:new Map,listeners:new Set,loading:!0,total:0,cleanupPush:null};const g=()=>{for(const p of f.listeners)p()};return f.cleanupPush=i.onPush(p=>{if(p.id===d)if(p.type==="snapshot"){f.items=new Map;for(const h of p.issues)f.items.set(h.id,h);f.loading=!1,typeof p.total=="number"?f.total=p.total:f.total=p.issues.length,g()}else p.type==="upsert"?(f.items.set(p.issue.id,p.issue),g()):p.type==="delete"&&(f.items.delete(p.issue_id),g())}),i.subscribe({id:d,type:l,params:r}),s.set(u,f),f}function s0(i,l,r){var d;const s=Rg(i),u=Og(l,r),f=s.get(u);f&&(f.refCount--,f.refCount<=0&&((d=f.cleanupPush)==null||d.call(f),i.unsubscribe(f.subId),s.delete(u)))}function Qa(i,l){const r=mo(),s=l?JSON.stringify(l):"",u=K.useRef(null),f=K.useRef(!1),[d,g]=K.useState([]),[p,h]=K.useState(0);K.useEffect(()=>{const I=r0(r,i,l);return u.current=I,()=>{s0(r,i,l),u.current=null}},[r,i,s]);const[y,b]=K.useState([]),[E,T]=K.useState(!0),[C,U]=K.useState(0);K.useEffect(()=>{const I=u.current;if(!I)return;const P=Array.from(I.items.values());b(P),T(I.loading),U(I.total),!I.loading&&P.length>0&&(f.current=!0,g(P),h(I.total));const X=()=>{const ae=Array.from(I.items.values());b(ae),T(I.loading),U(I.total),!I.loading&&ae.length>0&&(f.current=!0,g(ae),h(I.total))};return I.listeners.add(X),()=>{I.listeners.delete(X)}},[r,i,s]);const q=E&&!f.current,B=E&&f.current;return{issues:B?d:y,loading:q,refreshing:B,total:B?p:C}}const zp={0:{bg:"rgba(239,68,68,0.12)",text:"#DC2626"},1:{bg:"rgba(249,115,22,0.12)",text:"#EA580C"},2:{bg:"rgba(59,130,246,0.12)",text:"#2563EB"},3:{bg:"rgba(34,197,94,0.12)",text:"#16A34A"},4:{bg:"rgba(156,163,175,0.1)",text:"#9CA3AF"}};function pf({priority:i}){const l=zp[i]||zp[4];return v.jsxs("span",{className:"inline-flex items-center justify-center font-mono font-bold",style:{fontSize:"11px",lineHeight:1,padding:"3px 8px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:["P",i]})}const o0={epic:{bg:"rgba(124,58,237,0.1)",text:"#7C3AED"},feature:{bg:"rgba(99,102,241,0.1)",text:"#6366F1"},bug:{bg:"rgba(239,68,68,0.1)",text:"#DC2626"},task:{bg:"rgba(22,163,74,0.1)",text:"#16A34A"},chore:{bg:"rgba(120,113,108,0.1)",text:"#78716C"}},u0={bg:"rgba(120,113,108,0.1)",text:"#78716C"};function gf({type:i}){const l=o0[i]||u0;return v.jsx("span",{className:"inline-flex items-center px-2 py-0.5 font-semibold capitalize",style:{fontSize:"11px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:i})}const jp=["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#64B5F6","#4FC3F7","#4DD0E1","#4DB6AC","#81C784","#AED581","#FFB74D"];function _f(i){const l=i.trim().split(/\s+/);return l.length>=2?(l[0][0]+l[l.length-1][0]).toUpperCase():i.slice(0,2).toUpperCase()}function yf(i){let l=0;for(let r=0;r<i.length;r++)l=i.charCodeAt(r)+((l<<5)-l);return jp[Math.abs(l)%jp.length]}const c0={epic:"#7C3AED",feature:"#6366F1",bug:"#EF4444",task:"#16A34A",chore:"#78716C"};function f0({issue:i,onClick:l,dimmed:r=!1}){const s=c0[i.issue_type]??"#78716C";return v.jsx("button",{onClick:l,className:`issue-card group w-full text-left relative cursor-pointer ${r?"issue-card--dimmed":""}`,style:{borderLeft:`3px solid ${s}`},children:v.jsxs("div",{className:"px-3.5 py-3",children:[v.jsx("div",{className:"mb-1",children:v.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:i.id})}),v.jsx("p",{className:"text-sm font-medium line-clamp-2 mb-2.5",style:{color:"var(--text-primary)"},children:i.title}),v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx(gf,{type:i.issue_type}),v.jsx(pf,{priority:i.priority}),v.jsx("div",{className:"flex-1"}),i.assignee&&v.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:yf(i.assignee),color:"var(--text-inverse)"},title:i.assignee,children:_f(i.assignee)})]})]})})}const Up=20,d0={open:"var(--status-open)",in_progress:"var(--status-in-progress)",blocked:"var(--status-blocked)",closed:"var(--status-closed)"};function Hs({title:i,subscriptionType:l,statusKey:r,onCardClick:s,isClosed:u=!1}){const[f,d]=K.useState(Up),g=K.useMemo(()=>({limit:f,offset:0}),[f]),{issues:p,loading:h,total:y}=Qa(l,g),b=K.useRef(null),[E,T]=K.useState(!1),C=y>p.length,U=y-p.length,q=d0[r]??"var(--text-tertiary)";return K.useEffect(()=>{const B=b.current;if(!B)return;const I=()=>T(B.scrollHeight>B.clientHeight);I();const P=new ResizeObserver(I);return P.observe(B),()=>P.disconnect()},[p.length]),v.jsxs("div",{className:"flex-1 min-w-[280px] max-w-[360px] flex flex-col self-start",children:[v.jsxs("div",{className:"flex items-center gap-2.5 px-1 pb-3 mb-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"rounded-full shrink-0",style:{width:"10px",height:"10px",backgroundColor:q,boxShadow:`0 0 0 3px ${q}33`}}),v.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:i}),v.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full ml-auto",style:{backgroundColor:"rgba(0,0,0,0.05)",color:"var(--text-tertiary)",fontSize:"11px"},children:h?"…":u&&y>p.length?`${p.length} / ${y}`:y})]}),v.jsxs("div",{ref:b,className:"space-y-2 overflow-y-auto flex-1 pr-1 relative",style:{maxHeight:"calc(100vh - 160px)",maskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0,WebkitMaskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0},children:[h&&p.length===0&&v.jsx("div",{className:"py-8 text-center",children:v.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"Loading…"})}),!h&&p.length===0&&v.jsx("div",{className:"py-8 text-center",style:{border:"2px dashed var(--border-default)",borderRadius:"var(--radius-md)",minHeight:"100px",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"No items"})}),p.map(B=>v.jsx(f0,{issue:B,onClick:()=>s(B.id),dimmed:u},B.id)),C&&v.jsxs("button",{onClick:()=>d(B=>B+Up),className:"w-full text-xs py-2",style:{color:"var(--text-secondary)",transition:"color 120ms ease"},onMouseEnter:B=>{B.currentTarget.style.color="var(--accent)"},onMouseLeave:B=>{B.currentTarget.style.color="var(--text-secondary)"},children:["Show ",U," more…"]})]})]})}function h0(){const{total:i}=Qa("all-issues",{limit:1,offset:0}),{total:l}=Qa("epics",{limit:1,offset:0}),r=s=>{la(`/detail/${s}`)};return v.jsxs("div",{className:"p-6",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Board"}),v.jsxs("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:[i," issues across ",l," epics"]})]}),v.jsxs("div",{className:"flex gap-4 overflow-x-auto items-start",children:[v.jsx(Hs,{title:"Open",subscriptionType:"ready-issues",statusKey:"open",onCardClick:r}),v.jsx(Hs,{title:"In Progress",subscriptionType:"in-progress-issues",statusKey:"in_progress",onCardClick:r}),v.jsx(Hs,{title:"Blocked",subscriptionType:"blocked-issues",statusKey:"blocked",onCardClick:r}),v.jsx(Hs,{title:"Closed",subscriptionType:"closed-issues",statusKey:"closed",onCardClick:r,isClosed:!0})]})]})}const m0={open:{dot:"var(--status-open)",bg:"rgba(59,130,246,0.08)",text:"#2563EB",border:"rgba(59,130,246,0.2)",label:"Open"},in_progress:{dot:"var(--status-in-progress)",bg:"rgba(245,158,11,0.08)",text:"#D97706",border:"rgba(245,158,11,0.2)",label:"In Progress"},blocked:{dot:"var(--status-blocked)",bg:"rgba(239,68,68,0.08)",text:"#DC2626",border:"rgba(239,68,68,0.2)",label:"Blocked"},closed:{dot:"var(--status-closed)",bg:"rgba(34,197,94,0.08)",text:"#16A34A",border:"rgba(34,197,94,0.2)",label:"Closed"}},p0={dot:"#9CA3AF",bg:"rgba(156,163,175,0.08)",text:"#6B7280",border:"rgba(156,163,175,0.2)",label:""};function fr({status:i}){const l=m0[i]||p0;return v.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 font-semibold",style:{fontSize:"11px",borderRadius:"20px",backgroundColor:l.bg,color:l.text,border:`1px solid ${l.border}`},children:[v.jsx("span",{className:"rounded-full shrink-0",style:{width:"6px",height:"6px",backgroundColor:l.dot}}),l.label||i]})}const Vs=20,g0=()=>v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("circle",{cx:"7",cy:"7",r:"5"}),v.jsx("line",{x1:"11",y1:"11",x2:"14",y2:"14"})]});function _0(){return v.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"w-36 h-3 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-20 h-5 rounded-full skeleton-shimmer"}),v.jsx("div",{className:"w-8 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"flex-1 h-3 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-14 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-24 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-16 h-3 rounded skeleton-shimmer"})]})}function y0(){return v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{animation:"spin 0.8s linear infinite"},children:[v.jsx("circle",{cx:"10",cy:"10",r:"8",stroke:"var(--border-default)",strokeWidth:"2"}),v.jsx("path",{d:"M10 2a8 8 0 0 1 8 8",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round"})]})}function v0({search:i,setSearch:l,statusFilter:r,setStatusFilter:s,typeFilter:u,setTypeFilter:f}){return v.jsxs("div",{className:"flex items-center gap-3 mb-4 px-4 py-3 rounded-lg",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-sm)"},children:[v.jsxs("div",{className:"relative flex-1 max-w-xs",children:[v.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--text-tertiary)"},children:v.jsx(g0,{})}),v.jsx("input",{type:"text",value:i,onChange:d=>l(d.target.value),placeholder:"Search issues...",className:"w-full pl-9 pr-3 py-1.5 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:d=>{d.currentTarget.style.borderColor="var(--accent)"},onBlur:d=>{d.currentTarget.style.borderColor="var(--border-default)"}})]}),v.jsxs("select",{value:r,onChange:d=>s(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"all",children:"All statuses"}),v.jsx("option",{value:"open",children:"Open"}),v.jsx("option",{value:"in_progress",children:"In Progress"}),v.jsx("option",{value:"blocked",children:"Blocked"}),v.jsx("option",{value:"closed",children:"Closed"})]}),v.jsxs("select",{value:u,onChange:d=>f(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"all",children:"All types"}),v.jsx("option",{value:"epic",children:"Epic"}),v.jsx("option",{value:"feature",children:"Feature"}),v.jsx("option",{value:"task",children:"Task"}),v.jsx("option",{value:"bug",children:"Bug"}),v.jsx("option",{value:"chore",children:"Chore"})]})]})}function b0({page:i,totalPages:l,total:r,pageSize:s,onPageChange:u}){const f=i*s+1,d=Math.min((i+1)*s,r);return v.jsxs("div",{className:"flex items-center justify-between px-1 py-2 text-xs",style:{color:"var(--text-tertiary)"},children:[v.jsx("span",{children:r>0?`${f}–${d} of ${r}`:"0 issues"}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("button",{disabled:i===0,onClick:()=>u(0),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"««"}),v.jsx("button",{disabled:i===0,onClick:()=>u(i-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"«"}),v.jsxs("span",{className:"px-2",children:[i+1," / ",l||1]}),v.jsx("button",{disabled:i>=l-1,onClick:()=>u(i+1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»"}),v.jsx("button",{disabled:i>=l-1,onClick:()=>u(l-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»»"})]})]})}function S0({issue:i,selected:l,onClick:r}){const s=new Date(i.updated_at).toLocaleDateString();return v.jsxs("button",{onClick:r,className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors",style:{borderBottom:"1px solid var(--border-subtle)",background:l?"var(--bg-hover)":"transparent"},onMouseEnter:u=>{l||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{l||(u.currentTarget.style.background="transparent")},children:[v.jsx("span",{className:"font-mono text-xs w-36 shrink-0 text-left",style:{color:"var(--text-tertiary)"},children:i.id}),v.jsx("span",{className:"w-28 shrink-0",children:v.jsx(fr,{status:i.status})}),v.jsx("span",{className:"w-12 shrink-0",children:v.jsx(pf,{priority:i.priority})}),v.jsxs("span",{className:"flex-1 text-left truncate",style:{color:"var(--text-primary)"},children:[i.title,i.issue_type==="epic"&&i.total_children!=null&&v.jsxs("span",{className:"ml-2 text-xs px-1.5 py-0.5 rounded",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},children:[i.total_children," sub"]})]}),v.jsx("span",{className:"w-16 shrink-0",children:v.jsx(gf,{type:i.issue_type})}),v.jsx("span",{className:"w-28 shrink-0 flex items-center gap-1.5 justify-end",children:i.assignee?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-[9px] font-bold shrink-0",style:{width:"20px",height:"20px",backgroundColor:yf(i.assignee),color:"var(--text-inverse)"},children:_f(i.assignee)}),v.jsx("span",{className:"text-xs truncate",style:{color:"var(--text-secondary)"},children:i.assignee})]}):v.jsx("span",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"—"})}),v.jsx("span",{className:"text-xs w-20 text-right shrink-0",style:{color:"var(--text-tertiary)"},children:s})]})}function E0(){const[i,l]=K.useState(""),[r,s]=K.useState(""),[u,f]=K.useState("all"),[d,g]=K.useState("all"),[p,h]=K.useState(0),[y,b]=K.useState(-1),E=K.useRef(null);K.useEffect(()=>{const X=setTimeout(()=>s(i),300);return()=>clearTimeout(X)},[i]);const T=K.useMemo(()=>{const X={};return r.trim()&&(X.q=r.trim()),u!=="all"&&(X.status=u),d!=="all"&&(X.type=d),X},[r,u,d]),{issues:C,loading:U,refreshing:q,total:B}=Qa("search-issues",T),I=Math.ceil(B/Vs),P=K.useMemo(()=>{const X=p*Vs;return C.slice(X,X+Vs)},[C,p]);return K.useEffect(()=>{h(0),b(-1)},[u,d,i]),K.useEffect(()=>{b(-1)},[p]),K.useEffect(()=>{const X=ae=>{ae.target instanceof HTMLInputElement||ae.target instanceof HTMLTextAreaElement||ae.target instanceof HTMLSelectElement||(ae.key==="j"&&b(fe=>Math.min(fe+1,P.length-1)),ae.key==="k"&&b(fe=>Math.max(fe-1,-1)),ae.key==="Enter"&&P[y]&&la(`/detail/${P[y].id}`))};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[P,y]),v.jsxs("div",{className:"p-6 h-full flex flex-col",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"mb-4",children:[v.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Issues"}),v.jsx("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:U?" ":`${B} issues`})]}),v.jsx(v0,{search:i,setSearch:l,statusFilter:u,setStatusFilter:f,typeFilter:d,setTypeFilter:g}),v.jsx("div",{className:"rounded-t-lg overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderBottom:"none",boxShadow:"var(--shadow-card)"},children:v.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-tertiary)",borderBottom:"1px solid var(--border-subtle)",fontSize:"11px"},children:[v.jsx("span",{className:"w-36 shrink-0",children:"ID"}),v.jsx("span",{className:"w-28 shrink-0",children:"Status"}),v.jsx("span",{className:"w-12 shrink-0",children:"Priority"}),v.jsx("span",{className:"flex-1",children:"Title"}),v.jsx("span",{className:"w-16 shrink-0",children:"Type"}),v.jsx("span",{className:"w-28 shrink-0 text-right",children:"Assignee"}),v.jsx("span",{className:"w-20 shrink-0 text-right",children:"Date"})]})}),v.jsxs("div",{ref:E,className:"flex-1 overflow-y-auto rounded-b-lg relative",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderTop:"none",boxShadow:"var(--shadow-card)"},children:[U&&v.jsx(v.Fragment,{children:Array.from({length:8}).map((X,ae)=>v.jsx(_0,{},ae))}),q&&v.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",style:{background:"rgba(253,251,247,0.6)",backdropFilter:"blur(1px)"},children:v.jsx(y0,{})}),!U&&(P.length===0?v.jsx("p",{className:"text-sm p-8 text-center",style:{color:"var(--text-tertiary)"},children:"No issues match your filters"}):P.map((X,ae)=>v.jsx(S0,{issue:X,selected:ae===y,onClick:()=>{b(ae),la(`/detail/${X.id}`)}},X.id)))]}),!U&&I>1&&v.jsx(b0,{page:p,totalPages:I,total:B,pageSize:Vs,onPageChange:h})]})}function Cg(){const i=mo();return{updateStatus:K.useCallback((l,r)=>i.updateStatus({id:l,status:r}),[i]),editText:K.useCallback(l=>i.editText(l),[i]),createIssue:K.useCallback(l=>i.createIssue(l),[i]),updatePriority:K.useCallback((l,r)=>i.updatePriority(l,r),[i]),updateAssignee:K.useCallback((l,r)=>i.updateAssignee(l,r),[i]),addLabel:K.useCallback((l,r)=>i.addLabel(l,r),[i]),removeLabel:K.useCallback((l,r)=>i.removeLabel(l,r),[i]),deleteIssue:K.useCallback(l=>i.deleteIssue(l),[i]),addComment:K.useCallback((l,r)=>i.addComment(l,r),[i]),addDep:K.useCallback((l,r)=>i.addDep(l,r),[i]),removeDep:K.useCallback((l,r)=>i.removeDep(l,r),[i])}}function vf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ia=vf();function Dg(i){ia=i}var ur={exec:()=>null};function ke(i,l=""){let r=typeof i=="string"?i:i.source;const s={replace:(u,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(Ot.caret,"$1"),r=r.replace(u,d),s},getRegex:()=>new RegExp(r,l)};return s}var Ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},x0=/^(?:[ \t]*(?:\n|$))+/,T0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,A0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,R0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bf=/(?:[*+-]|\d{1,9}[.)])/,kg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Lg=ke(kg).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),O0=ke(kg).replace(/bull/g,bf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Sf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,C0=/^[^\n]+/,Ef=/(?!\s*\])(?:\\.|[^\[\]\\])+/,D0=ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ef).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),k0=ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bf).getRegex(),po="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,L0=ke("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",xf).replace("tag",po).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ng=ke(Sf).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",po).getRegex(),N0=ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ng).getRegex(),Tf={blockquote:N0,code:T0,def:D0,fences:A0,heading:R0,hr:gr,html:L0,lheading:Lg,list:k0,newline:x0,paragraph:Ng,table:ur,text:C0},Bp=ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",po).getRegex(),w0={...Tf,lheading:O0,table:Bp,paragraph:ke(Sf).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",po).getRegex()},M0={...Tf,html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ur,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ke(Sf).replace("hr",gr).replace("heading",` *#{1,6} *[^
|
|
51
|
+
]`).replace("lheading",Lg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,j0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,wg=/^( {2,}|\\)\n(?!\s*$)/,U0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,go=/[\p{P}\p{S}]/u,Af=/[\s\p{P}\p{S}]/u,Mg=/[^\s\p{P}\p{S}]/u,B0=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Af).getRegex(),zg=/(?!~)[\p{P}\p{S}]/u,H0=/(?!~)[\s\p{P}\p{S}]/u,V0=/(?:[^\s\p{P}\p{S}]|~)/u,G0=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,jg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,I0=ke(jg,"u").replace(/punct/g,go).getRegex(),q0=ke(jg,"u").replace(/punct/g,zg).getRegex(),Ug="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",P0=ke(Ug,"gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,Af).replace(/punct/g,go).getRegex(),Y0=ke(Ug,"gu").replace(/notPunctSpace/g,V0).replace(/punctSpace/g,H0).replace(/punct/g,zg).getRegex(),X0=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,Af).replace(/punct/g,go).getRegex(),Q0=ke(/\\(punct)/,"gu").replace(/punct/g,go).getRegex(),Z0=ke(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),K0=ke(xf).replace("(?:-->|$)","-->").getRegex(),$0=ke("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",K0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,J0=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bg=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",Ef).getRegex(),Hg=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ef).getRegex(),W0=ke("reflink|nolink(?!\\()","g").replace("reflink",Bg).replace("nolink",Hg).getRegex(),Rf={_backpedal:ur,anyPunctuation:Q0,autolink:Z0,blockSkip:G0,br:wg,code:j0,del:ur,emStrongLDelim:I0,emStrongRDelimAst:P0,emStrongRDelimUnd:X0,escape:z0,link:J0,nolink:Hg,punctuation:B0,reflink:Bg,reflinkSearch:W0,tag:$0,text:U0,url:ur},F0={...Rf,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()},Jc={...Rf,emStrongRDelimAst:Y0,emStrongLDelim:q0,url:ke(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},eb={...Jc,br:ke(wg).replace("{2,}","*").getRegex(),text:ke(Jc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Gs={normal:Tf,gfm:w0,pedantic:M0},Fi={normal:Rf,gfm:Jc,breaks:eb,pedantic:F0},tb={"&":"&","<":"<",">":">",'"':""","'":"'"},Hp=i=>tb[i];function Rn(i,l){if(l){if(Ot.escapeTest.test(i))return i.replace(Ot.escapeReplace,Hp)}else if(Ot.escapeTestNoEncode.test(i))return i.replace(Ot.escapeReplaceNoEncode,Hp);return i}function Vp(i){try{i=encodeURI(i).replace(Ot.percentDecode,"%")}catch{return null}return i}function Gp(i,l){var f;const r=i.replace(Ot.findPipe,(d,g,p)=>{let h=!1,y=g;for(;--y>=0&&p[y]==="\\";)h=!h;return h?"|":" |"}),s=r.split(Ot.splitPipe);let u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),l)if(s.length>l)s.splice(l);else for(;s.length<l;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Ot.slashPipe,"|");return s}function er(i,l,r){const s=i.length;if(s===0)return"";let u=0;for(;u<s&&i.charAt(s-u-1)===l;)u++;return i.slice(0,s-u)}function nb(i,l){if(i.indexOf(l[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===l[0])r++;else if(i[s]===l[1]&&(r--,r<0))return s;return r>0?-2:-1}function Ip(i,l,r,s,u){const f=l.href,d=l.title||null,g=i[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;const p={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:d,text:g,tokens:s.inlineTokens(g)};return s.state.inLink=!1,p}function lb(i,l,r){const s=i.match(r.other.indentCodeCompensation);if(s===null)return l;const u=s[1];return l.split(`
|
|
52
|
+
`).map(f=>{const d=f.match(r.other.beginningSpace);if(d===null)return f;const[g]=d;return g.length>=u.length?f.slice(u.length):f}).join(`
|
|
53
53
|
`)}var to=class{constructor(i){w(this,"options");w(this,"rules");w(this,"lexer");this.options=i||ia}space(i){const l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){const l=this.rules.block.code.exec(i);if(l){const r=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?r:er(r,`
|
|
54
|
-
`)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const r=l[0],s=
|
|
54
|
+
`)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const r=l[0],s=lb(r,l[3]||"",this.rules);return{type:"code",raw:r,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:s}}}heading(i){const l=this.rules.block.heading.exec(i);if(l){let r=l[2].trim();if(this.rules.other.endingHash.test(r)){const s=er(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){const l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:er(l[0],`
|
|
55
55
|
`)}}blockquote(i){const l=this.rules.block.blockquote.exec(i);if(l){let r=er(l[0],`
|
|
56
56
|
`).split(`
|
|
57
|
-
`),s="",u="";const f=[];for(;r.length>0;){let d=!1;const
|
|
57
|
+
`),s="",u="";const f=[];for(;r.length>0;){let d=!1;const g=[];let p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))g.push(r[p]),d=!0;else if(!d)g.push(r[p]);else break;r=r.slice(p);const h=g.join(`
|
|
58
58
|
`),y=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
59
59
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
60
60
|
${h}`:h,u=u?`${u}
|
|
61
|
-
${y}`:y;const b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,f,!0),this.lexer.state.top=b,r.length===0)break;const E=f.at(-1);if((E==null?void 0:E.type)==="code")break;if((E==null?void 0:E.type)==="blockquote"){const
|
|
61
|
+
${y}`:y;const b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,f,!0),this.lexer.state.top=b,r.length===0)break;const E=f.at(-1);if((E==null?void 0:E.type)==="code")break;if((E==null?void 0:E.type)==="blockquote"){const T=E,C=T.raw+`
|
|
62
62
|
`+r.join(`
|
|
63
|
-
`),U=this.blockquote(C);f[f.length-1]=U,s=s.substring(0,s.length-
|
|
63
|
+
`),U=this.blockquote(C);f[f.length-1]=U,s=s.substring(0,s.length-T.raw.length)+U.raw,u=u.substring(0,u.length-T.text.length)+U.text;break}else if((E==null?void 0:E.type)==="list"){const T=E,C=T.raw+`
|
|
64
64
|
`+r.join(`
|
|
65
|
-
`),U=this.list(C);f[f.length-1]=U,s=s.substring(0,s.length-E.raw.length)+U.raw,u=u.substring(0,u.length-
|
|
66
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let l=this.rules.block.list.exec(i);if(l){let r=l[1].trim();const s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const f=this.rules.other.listItemRegex(r);let d=!1;for(;i;){let
|
|
65
|
+
`),U=this.list(C);f[f.length-1]=U,s=s.substring(0,s.length-E.raw.length)+U.raw,u=u.substring(0,u.length-T.raw.length)+U.raw,r=C.substring(f.at(-1).raw.length).split(`
|
|
66
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let l=this.rules.block.list.exec(i);if(l){let r=l[1].trim();const s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const f=this.rules.other.listItemRegex(r);let d=!1;for(;i;){let p=!1,h="",y="";if(!(l=f.exec(i))||this.rules.block.hr.test(i))break;h=l[0],i=i.substring(h.length);let b=l[2].split(`
|
|
67
67
|
`,1)[0].replace(this.rules.other.listReplaceTabs,B=>" ".repeat(3*B.length)),E=i.split(`
|
|
68
|
-
`,1)[0],
|
|
69
|
-
`,i=i.substring(E.length+1),
|
|
70
|
-
`,1)[0];let te;if(E=fe,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),te=E):te=E.replace(this.rules.other.tabCharGlobal," "),
|
|
71
|
-
`+te.slice(C);else{if(
|
|
72
|
-
`+E}!
|
|
73
|
-
`,i=i.substring(fe.length+1),b=te.slice(C)}}u.loose||(d?u.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(d=!0));let U=null,
|
|
74
|
-
`):[],f={type:"table",raw:l[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const
|
|
75
|
-
`?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:r,tokens:this.lexer.inline(r)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const r=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const f=er(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{const f=
|
|
76
|
-
`),this.blockTokens(l,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,r=[],s=!1){var u,f,d;for(this.options.pedantic&&(l=l.replace(Ot.tabCharGlobal," ").replace(Ot.spaceLine,""));l;){let
|
|
77
|
-
`:r.push(
|
|
78
|
-
`+
|
|
79
|
-
`+
|
|
80
|
-
`+
|
|
81
|
-
`+
|
|
82
|
-
`+
|
|
83
|
-
`+
|
|
84
|
-
`+
|
|
85
|
-
`+
|
|
68
|
+
`,1)[0],T=!b.trim(),C=0;if(this.options.pedantic?(C=2,y=b.trimStart()):T?C=l[1].length+1:(C=l[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,y=b.slice(C),C+=l[1].length),T&&this.rules.other.blankLine.test(E)&&(h+=E+`
|
|
69
|
+
`,i=i.substring(E.length+1),p=!0),!p){const B=this.rules.other.nextBulletRegex(C),I=this.rules.other.hrRegex(C),P=this.rules.other.fencesBeginRegex(C),X=this.rules.other.headingBeginRegex(C),ae=this.rules.other.htmlBeginRegex(C);for(;i;){const fe=i.split(`
|
|
70
|
+
`,1)[0];let te;if(E=fe,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),te=E):te=E.replace(this.rules.other.tabCharGlobal," "),P.test(E)||X.test(E)||ae.test(E)||B.test(E)||I.test(E))break;if(te.search(this.rules.other.nonSpaceChar)>=C||!E.trim())y+=`
|
|
71
|
+
`+te.slice(C);else{if(T||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||P.test(b)||X.test(b)||I.test(b))break;y+=`
|
|
72
|
+
`+E}!T&&!E.trim()&&(T=!0),h+=fe+`
|
|
73
|
+
`,i=i.substring(fe.length+1),b=te.slice(C)}}u.loose||(d?u.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(d=!0));let U=null,q;this.options.gfm&&(U=this.rules.other.listIsTask.exec(y),U&&(q=U[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),u.items.push({type:"list_item",raw:h,task:!!U,checked:q,loose:!1,text:y,tokens:[]}),u.raw+=h}const g=u.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let p=0;p<u.items.length;p++)if(this.lexer.state.top=!1,u.items[p].tokens=this.lexer.blockTokens(u.items[p].text,[]),!u.loose){const h=u.items[p].tokens.filter(b=>b.type==="space"),y=h.length>0&&h.some(b=>this.rules.other.anyLine.test(b.raw));u.loose=y}if(u.loose)for(let p=0;p<u.items.length;p++)u.items[p].loose=!0;return u}}html(i){const l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){const l=this.rules.block.def.exec(i);if(l){const r=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:r,raw:l[0],href:s,title:u}}}table(i){var d;const l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;const r=Gp(l[1]),s=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(d=l[3])!=null&&d.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
74
|
+
`):[],f={type:"table",raw:l[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const g of s)this.rules.other.tableAlignRight.test(g)?f.align.push("right"):this.rules.other.tableAlignCenter.test(g)?f.align.push("center"):this.rules.other.tableAlignLeft.test(g)?f.align.push("left"):f.align.push(null);for(let g=0;g<r.length;g++)f.header.push({text:r[g],tokens:this.lexer.inline(r[g]),header:!0,align:f.align[g]});for(const g of u)f.rows.push(Gp(g,f.header.length).map((p,h)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:f.align[h]})));return f}}lheading(i){const l=this.rules.block.lheading.exec(i);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(i){const l=this.rules.block.paragraph.exec(i);if(l){const r=l[1].charAt(l[1].length-1)===`
|
|
75
|
+
`?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:r,tokens:this.lexer.inline(r)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const r=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const f=er(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{const f=nb(l[2],"()");if(f===-2)return;if(f>-1){const g=(l[0].indexOf("!")===0?5:4)+l[1].length+f;l[2]=l[2].substring(0,f),l[0]=l[0].substring(0,g).trim(),l[3]=""}}let s=l[2],u="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[3])}else u=l[3]?l[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Ip(l,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=l[s.toLowerCase()];if(!u){const f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return Ip(r,u,r[0],this.lexer,this.rules)}}emStrong(i,l,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const f=[...s[0]].length-1;let d,g,p=f,h=0;const y=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,l=l.slice(-1*i.length+f);(s=y.exec(l))!=null;){if(d=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!d)continue;if(g=[...d].length,s[3]||s[4]){p+=g;continue}else if((s[5]||s[6])&&f%3&&!((f+g)%3)){h+=g;continue}if(p-=g,p>0)continue;g=Math.min(g,g+p+h);const b=[...s[0]][0].length,E=i.slice(0,f+s.index+b+g);if(Math.min(f,g)%2){const C=E.slice(1,-1);return{type:"em",raw:E,text:C,tokens:this.lexer.inlineTokens(C)}}const T=E.slice(2,-2);return{type:"strong",raw:E,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(i){const l=this.rules.inline.code.exec(i);if(l){let r=l[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:l[0],text:r}}}br(i){const l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){const l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){const l=this.rules.inline.autolink.exec(i);if(l){let r,s;return l[2]==="@"?(r=l[1],s="mailto:"+r):(r=l[1],s=r),{type:"link",raw:l[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let l;if(l=this.rules.inline.url.exec(i)){let s,u;if(l[2]==="@")s=l[0],u="mailto:"+s;else{let f;do f=l[0],l[0]=((r=this.rules.inline._backpedal.exec(l[0]))==null?void 0:r[0])??"";while(f!==l[0]);s=l[0],l[1]==="www."?u="http://"+l[0]:u=l[0]}return{type:"link",raw:l[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){const l=this.rules.inline.text.exec(i);if(l){const r=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:r}}}},al=class Wc{constructor(l){w(this,"tokens");w(this,"options");w(this,"state");w(this,"tokenizer");w(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=l||ia,this.options.tokenizer=this.options.tokenizer||new to,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Ot,block:Gs.normal,inline:Fi.normal};this.options.pedantic?(r.block=Gs.pedantic,r.inline=Fi.pedantic):this.options.gfm&&(r.block=Gs.gfm,this.options.breaks?r.inline=Fi.breaks:r.inline=Fi.gfm),this.tokenizer.rules=r}static get rules(){return{block:Gs,inline:Fi}}static lex(l,r){return new Wc(r).lex(l)}static lexInline(l,r){return new Wc(r).inlineTokens(l)}lex(l){l=l.replace(Ot.carriageReturn,`
|
|
76
|
+
`),this.blockTokens(l,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,r=[],s=!1){var u,f,d;for(this.options.pedantic&&(l=l.replace(Ot.tabCharGlobal," ").replace(Ot.spaceLine,""));l;){let g;if((f=(u=this.options.extensions)==null?void 0:u.block)!=null&&f.some(h=>(g=h.call({lexer:this},l,r))?(l=l.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(l)){l=l.substring(g.raw.length);const h=r.at(-1);g.raw.length===1&&h!==void 0?h.raw+=`
|
|
77
|
+
`:r.push(g);continue}if(g=this.tokenizer.code(l)){l=l.substring(g.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
78
|
+
`+g.raw,h.text+=`
|
|
79
|
+
`+g.text,this.inlineQueue.at(-1).src=h.text):r.push(g);continue}if(g=this.tokenizer.fences(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.heading(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.hr(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.blockquote(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.list(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.html(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.def(l)){l=l.substring(g.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
80
|
+
`+g.raw,h.text+=`
|
|
81
|
+
`+g.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title});continue}if(g=this.tokenizer.table(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(l)){l=l.substring(g.raw.length),r.push(g);continue}let p=l;if((d=this.options.extensions)!=null&&d.startBlock){let h=1/0;const y=l.slice(1);let b;this.options.extensions.startBlock.forEach(E=>{b=E.call({lexer:this},y),typeof b=="number"&&b>=0&&(h=Math.min(h,b))}),h<1/0&&h>=0&&(p=l.substring(0,h+1))}if(this.state.top&&(g=this.tokenizer.paragraph(p))){const h=r.at(-1);s&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=`
|
|
82
|
+
`+g.raw,h.text+=`
|
|
83
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(g),s=p.length!==l.length,l=l.substring(g.raw.length);continue}if(g=this.tokenizer.text(l)){l=l.substring(g.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
84
|
+
`+g.raw,h.text+=`
|
|
85
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(g);continue}if(l){const h="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(l,r=[]){return this.inlineQueue.push({src:l,tokens:r}),r}inlineTokens(l,r=[]){var g,p,h;let s=l,u=null;if(this.tokens.links){const y=Object.keys(this.tokens.links);if(y.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)y.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,u.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(u=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,d="";for(;l;){f||(d=""),f=!1;let y;if((p=(g=this.options.extensions)==null?void 0:g.inline)!=null&&p.some(E=>(y=E.call({lexer:this},l,r))?(l=l.substring(y.raw.length),r.push(y),!0):!1))continue;if(y=this.tokenizer.escape(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.tag(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.link(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(y.raw.length);const E=r.at(-1);y.type==="text"&&(E==null?void 0:E.type)==="text"?(E.raw+=y.raw,E.text+=y.text):r.push(y);continue}if(y=this.tokenizer.emStrong(l,s,d)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.codespan(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.br(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.del(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.autolink(l)){l=l.substring(y.raw.length),r.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(l))){l=l.substring(y.raw.length),r.push(y);continue}let b=l;if((h=this.options.extensions)!=null&&h.startInline){let E=1/0;const T=l.slice(1);let C;this.options.extensions.startInline.forEach(U=>{C=U.call({lexer:this},T),typeof C=="number"&&C>=0&&(E=Math.min(E,C))}),E<1/0&&E>=0&&(b=l.substring(0,E+1))}if(y=this.tokenizer.inlineText(b)){l=l.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(d=y.raw.slice(-1)),f=!0;const E=r.at(-1);(E==null?void 0:E.type)==="text"?(E.raw+=y.raw,E.text+=y.text):r.push(y);continue}if(l){const E="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(E);break}else throw new Error(E)}}return r}},no=class{constructor(i){w(this,"options");w(this,"parser");this.options=i||ia}space(i){return""}code({text:i,lang:l,escaped:r}){var f;const s=(f=(l||"").match(Ot.notSpaceStart))==null?void 0:f[0],u=i.replace(Ot.endingNewline,"")+`
|
|
86
86
|
`;return s?'<pre><code class="language-'+Rn(s)+'">'+(r?u:Rn(u,!0))+`</code></pre>
|
|
87
87
|
`:"<pre><code>"+(r?u:Rn(u,!0))+`</code></pre>
|
|
88
88
|
`}blockquote({tokens:i}){return`<blockquote>
|
|
89
89
|
${this.parser.parse(i)}</blockquote>
|
|
90
90
|
`}html({text:i}){return i}heading({tokens:i,depth:l}){return`<h${l}>${this.parser.parseInline(i)}</h${l}>
|
|
91
91
|
`}hr(i){return`<hr>
|
|
92
|
-
`}list(i){const l=i.ordered,r=i.start;let s="";for(let d=0;d<i.items.length;d++){const
|
|
92
|
+
`}list(i){const l=i.ordered,r=i.start;let s="";for(let d=0;d<i.items.length;d++){const g=i.items[d];s+=this.listitem(g)}const u=l?"ol":"ul",f=l&&r!==1?' start="'+r+'"':"";return"<"+u+f+`>
|
|
93
93
|
`+s+"</"+u+`>
|
|
94
94
|
`}listitem(i){var r;let l="";if(i.task){const s=this.checkbox({checked:!!i.checked});i.loose?((r=i.tokens[0])==null?void 0:r.type)==="paragraph"?(i.tokens[0].text=s+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=s+" "+Rn(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):l+=s+" "}return l+=this.parser.parse(i.tokens,!!i.loose),`<li>${l}</li>
|
|
95
95
|
`}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
|
|
@@ -100,12 +100,12 @@ ${this.parser.parse(i)}</blockquote>
|
|
|
100
100
|
`}tablerow({text:i}){return`<tr>
|
|
101
101
|
${i}</tr>
|
|
102
102
|
`}tablecell(i){const l=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+l+`</${r}>
|
|
103
|
-
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Rn(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:r}){const s=this.parser.parseInline(r),u=
|
|
104
|
-
`+this.renderer.text(h);r?s+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):s+=y;continue}default:{const h='Token with "'+
|
|
105
|
-
Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Rn(r.message+"",!0)+"</pre>";return l?Promise.resolve(s):s}if(l)return Promise.reject(r);throw r}}},aa=new F0;function Te(i,l){return aa.parse(i,l)}Te.options=Te.setOptions=function(i){return aa.setOptions(i),Te.defaults=aa.defaults,Rg(Te.defaults),Te};Te.getDefaults=_f;Te.defaults=ia;Te.use=function(...i){return aa.use(...i),Te.defaults=aa.defaults,Rg(Te.defaults),Te};Te.walkTokens=function(i,l){return aa.walkTokens(i,l)};Te.parseInline=aa.parseInline;Te.Parser=il;Te.parser=il.parse;Te.Renderer=no;Te.TextRenderer=Af;Te.Lexer=al;Te.lexer=al.lex;Te.Tokenizer=to;Te.Hooks=Ks;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;il.parse;al.lex;/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Ug,setPrototypeOf:Gm,isFrozen:eb,getPrototypeOf:tb,getOwnPropertyDescriptor:nb}=Object;let{freeze:Ct,seal:pn,create:$s}=Object,{apply:Fc,construct:ef}=typeof Reflect<"u"&&Reflect;Ct||(Ct=function(l){return l});pn||(pn=function(l){return l});Fc||(Fc=function(l,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return l.apply(r,u)});ef||(ef=function(l){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new l(...s)});const Is=Dt(Array.prototype.forEach),lb=Dt(Array.prototype.lastIndexOf),Im=Dt(Array.prototype.pop),tr=Dt(Array.prototype.push),ab=Dt(Array.prototype.splice),Js=Dt(String.prototype.toLowerCase),zc=Dt(String.prototype.toString),jc=Dt(String.prototype.match),nr=Dt(String.prototype.replace),ib=Dt(String.prototype.indexOf),rb=Dt(String.prototype.trim),Jt=Dt(Object.prototype.hasOwnProperty),At=Dt(RegExp.prototype.test),lr=sb(TypeError);function Dt(i){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Fc(i,l,s)}}function sb(i){return function(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return ef(i,r)}}function me(i,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Js;Gm&&Gm(i,null);let s=l.length;for(;s--;){let u=l[s];if(typeof u=="string"){const f=r(u);f!==u&&(eb(l)||(l[s]=f),u=f)}i[u]=!0}return i}function ob(i){for(let l=0;l<i.length;l++)Jt(i,l)||(i[l]=null);return i}function On(i){const l=$s(null);for(const[r,s]of Ug(i))Jt(i,r)&&(Array.isArray(s)?l[r]=ob(s):s&&typeof s=="object"&&s.constructor===Object?l[r]=On(s):l[r]=s);return l}function ar(i,l){for(;i!==null;){const s=nb(i,l);if(s){if(s.get)return Dt(s.get);if(typeof s.value=="function")return Dt(s.value)}i=tb(i)}function r(){return null}return r}const qm=Ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Uc=Ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Bc=Ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ub=Ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hc=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cb=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pm=Ct(["#text"]),Ym=Ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Vc=Ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xm=Ct(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qs=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fb=pn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),db=pn(/<%[\w\W]*|[\w\W]*%>/gm),hb=pn(/\$\{[\w\W]*/gm),pb=pn(/^data-[\-\w.\u00B7-\uFFFF]+$/),mb=pn(/^aria-[\-\w]+$/),Bg=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gb=pn(/^(?:\w+script|data):/i),_b=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hg=pn(/^html$/i),yb=pn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Qm=Object.freeze({__proto__:null,ARIA_ATTR:mb,ATTR_WHITESPACE:_b,CUSTOM_ELEMENT:yb,DATA_ATTR:pb,DOCTYPE_NAME:Hg,ERB_EXPR:db,IS_ALLOWED_URI:Bg,IS_SCRIPT_OR_DATA:gb,MUSTACHE_EXPR:fb,TMPLIT_EXPR:hb});const ir={element:1,text:3,progressingInstruction:7,comment:8,document:9},vb=function(){return typeof window>"u"?null:window},bb=function(l,r){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Zm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Vg(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vb();const l=ne=>Vg(ne);if(l.version="3.3.3",l.removed=[],!i||!i.document||i.document.nodeType!==ir.document||!i.Element)return l.isSupported=!1,l;let{document:r}=i;const s=r,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:p,Element:g,NodeFilter:h,NamedNodeMap:y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:b,DOMParser:E,trustedTypes:A}=i,C=g.prototype,U=ar(C,"cloneNode"),P=ar(C,"remove"),B=ar(C,"nextSibling"),I=ar(C,"childNodes"),q=ar(C,"parentNode");if(typeof d=="function"){const ne=r.createElement("template");ne.content&&ne.content.ownerDocument&&(r=ne.content.ownerDocument)}let X,ae="";const{implementation:fe,createNodeIterator:te,createDocumentFragment:Ue,getElementsByTagName:mt}=r,{importNode:Lt}=s;let Re=Zm();l.isSupported=typeof Ug=="function"&&typeof q=="function"&&fe&&fe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ke,ERB_EXPR:kt,TMPLIT_EXPR:Ye,DATA_ATTR:Fe,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:Oe}=Qm;let{IS_ALLOWED_URI:Ce}=Qm,T=null;const G=me({},[...qm,...Uc,...Bc,...Hc,...Pm]);let Q=null;const W=me({},[...Ym,...Vc,...Xm,...qs]);let ee=Object.seal($s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,be=null;const Ge=Object.seal($s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Ln=!0,zl=!1,sa=!0,kn=!1,Wt=!0,mn=!1,jl=!1,Ja=!1,Nn=!1,ol=!1,ul=!1,oa=!0,br=!1;const bo="user-content-";let gt=!0,Ul=!1,wn={},Gt=null;const cl=me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Sr=null;const Wa=me({},["audio","video","img","source","image","track"]);let Fa=null;const Er=me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bn="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let et=dt,ei=!1,ti=null;const So=me({},[bn,ft,dt],zc);let Mn=me({},["mi","mo","mn","ms","mtext"]),zn=me({},["annotation-xml"]);const ua=me({},["title","style","font","a","script"]);let It=null;const ca=["application/xhtml+xml","text/html"],Bl="text/html";let $e=null,jn=null;const ni=r.createElement("form"),fl=function(R){return R instanceof RegExp||R instanceof Function},li=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jn&&jn===R)){if((!R||typeof R!="object")&&(R={}),R=On(R),It=ca.indexOf(R.PARSER_MEDIA_TYPE)===-1?Bl:R.PARSER_MEDIA_TYPE,$e=It==="application/xhtml+xml"?zc:Js,T=Jt(R,"ALLOWED_TAGS")?me({},R.ALLOWED_TAGS,$e):G,Q=Jt(R,"ALLOWED_ATTR")?me({},R.ALLOWED_ATTR,$e):W,ti=Jt(R,"ALLOWED_NAMESPACES")?me({},R.ALLOWED_NAMESPACES,zc):So,Fa=Jt(R,"ADD_URI_SAFE_ATTR")?me(On(Er),R.ADD_URI_SAFE_ATTR,$e):Er,Sr=Jt(R,"ADD_DATA_URI_TAGS")?me(On(Wa),R.ADD_DATA_URI_TAGS,$e):Wa,Gt=Jt(R,"FORBID_CONTENTS")?me({},R.FORBID_CONTENTS,$e):cl,ue=Jt(R,"FORBID_TAGS")?me({},R.FORBID_TAGS,$e):On({}),be=Jt(R,"FORBID_ATTR")?me({},R.FORBID_ATTR,$e):On({}),wn=Jt(R,"USE_PROFILES")?R.USE_PROFILES:!1,Ie=R.ALLOW_ARIA_ATTR!==!1,Ln=R.ALLOW_DATA_ATTR!==!1,zl=R.ALLOW_UNKNOWN_PROTOCOLS||!1,sa=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kn=R.SAFE_FOR_TEMPLATES||!1,Wt=R.SAFE_FOR_XML!==!1,mn=R.WHOLE_DOCUMENT||!1,Nn=R.RETURN_DOM||!1,ol=R.RETURN_DOM_FRAGMENT||!1,ul=R.RETURN_TRUSTED_TYPE||!1,Ja=R.FORCE_BODY||!1,oa=R.SANITIZE_DOM!==!1,br=R.SANITIZE_NAMED_PROPS||!1,gt=R.KEEP_CONTENT!==!1,Ul=R.IN_PLACE||!1,Ce=R.ALLOWED_URI_REGEXP||Bg,et=R.NAMESPACE||dt,Mn=R.MATHML_TEXT_INTEGRATION_POINTS||Mn,zn=R.HTML_INTEGRATION_POINTS||zn,ee=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kn&&(Ln=!1),ol&&(Nn=!0),wn&&(T=me({},Pm),Q=$s(null),wn.html===!0&&(me(T,qm),me(Q,Ym)),wn.svg===!0&&(me(T,Uc),me(Q,Vc),me(Q,qs)),wn.svgFilters===!0&&(me(T,Bc),me(Q,Vc),me(Q,qs)),wn.mathMl===!0&&(me(T,Hc),me(Q,Xm),me(Q,qs))),Jt(R,"ADD_TAGS")||(Ge.tagCheck=null),Jt(R,"ADD_ATTR")||(Ge.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Ge.tagCheck=R.ADD_TAGS:(T===G&&(T=On(T)),me(T,R.ADD_TAGS,$e))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Ge.attributeCheck=R.ADD_ATTR:(Q===W&&(Q=On(Q)),me(Q,R.ADD_ATTR,$e))),R.ADD_URI_SAFE_ATTR&&me(Fa,R.ADD_URI_SAFE_ATTR,$e),R.FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),me(Gt,R.FORBID_CONTENTS,$e)),R.ADD_FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),me(Gt,R.ADD_FORBID_CONTENTS,$e)),gt&&(T["#text"]=!0),mn&&me(T,["html","head","body"]),T.table&&(me(T,["tbody"]),delete ue.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');X=R.TRUSTED_TYPES_POLICY,ae=X.createHTML("")}else X===void 0&&(X=bb(A,u)),X!==null&&typeof ae=="string"&&(ae=X.createHTML(""));Ct&&Ct(R),jn=R}},ai=me({},[...Uc,...Bc,...ub]),ii=me({},[...Hc,...cb]),xr=function(R){let Y=q(R);(!Y||!Y.tagName)&&(Y={namespaceURI:et,tagName:"template"});const J=Js(R.tagName),De=Js(Y.tagName);return ti[R.namespaceURI]?R.namespaceURI===ft?Y.namespaceURI===dt?J==="svg":Y.namespaceURI===bn?J==="svg"&&(De==="annotation-xml"||Mn[De]):!!ai[J]:R.namespaceURI===bn?Y.namespaceURI===dt?J==="math":Y.namespaceURI===ft?J==="math"&&zn[De]:!!ii[J]:R.namespaceURI===dt?Y.namespaceURI===ft&&!zn[De]||Y.namespaceURI===bn&&!Mn[De]?!1:!ii[J]&&(ua[J]||!ai[J]):!!(It==="application/xhtml+xml"&&ti[R.namespaceURI]):!1},Nt=function(R){tr(l.removed,{element:R});try{q(R).removeChild(R)}catch{P(R)}},gn=function(R,Y){try{tr(l.removed,{attribute:Y.getAttributeNode(R),from:Y})}catch{tr(l.removed,{attribute:null,from:Y})}if(Y.removeAttribute(R),R==="is")if(Nn||ol)try{Nt(Y)}catch{}else try{Y.setAttribute(R,"")}catch{}},ri=function(R){let Y=null,J=null;if(Ja)R="<remove></remove>"+R;else{const pe=jc(R,/^[\r\n\t ]+/);J=pe&&pe[0]}It==="application/xhtml+xml"&&et===dt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const De=X?X.createHTML(R):R;if(et===dt)try{Y=new E().parseFromString(De,It)}catch{}if(!Y||!Y.documentElement){Y=fe.createDocument(et,"template",null);try{Y.documentElement.innerHTML=ei?ae:De}catch{}}const Xe=Y.body||Y.documentElement;return R&&J&&Xe.insertBefore(r.createTextNode(J),Xe.childNodes[0]||null),et===dt?mt.call(Y,mn?"html":"body")[0]:mn?Y.documentElement:Xe},si=function(R){return te.call(R.ownerDocument||R,R,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ft=function(R){return R instanceof b&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof y)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},tt=function(R){return typeof p=="function"&&R instanceof p};function qe(ne,R,Y){Is(ne,J=>{J.call(l,R,Y,jn)})}const Un=function(R){let Y=null;if(qe(Re.beforeSanitizeElements,R,null),Ft(R))return Nt(R),!0;const J=$e(R.nodeName);if(qe(Re.uponSanitizeElement,R,{tagName:J,allowedTags:T}),Wt&&R.hasChildNodes()&&!tt(R.firstElementChild)&&At(/<[/\w!]/g,R.innerHTML)&&At(/<[/\w!]/g,R.textContent)||R.nodeType===ir.progressingInstruction||Wt&&R.nodeType===ir.comment&&At(/<[/\w]/g,R.data))return Nt(R),!0;if(!(Ge.tagCheck instanceof Function&&Ge.tagCheck(J))&&(!T[J]||ue[J])){if(!ue[J]&&Tr(J)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J)))return!1;if(gt&&!Gt[J]){const De=q(R)||R.parentNode,Xe=I(R)||R.childNodes;if(Xe&&De){const pe=Xe.length;for(let _t=pe-1;_t>=0;--_t){const en=U(Xe[_t],!0);en.__removalCount=(R.__removalCount||0)+1,De.insertBefore(en,B(R))}}}return Nt(R),!0}return R instanceof g&&!xr(R)||(J==="noscript"||J==="noembed"||J==="noframes")&&At(/<\/no(script|embed|frames)/i,R.innerHTML)?(Nt(R),!0):(kn&&R.nodeType===ir.text&&(Y=R.textContent,Is([Ke,kt,Ye],De=>{Y=nr(Y,De," ")}),R.textContent!==Y&&(tr(l.removed,{element:R.cloneNode()}),R.textContent=Y)),qe(Re.afterSanitizeElements,R,null),!1)},fa=function(R,Y,J){if(be[Y]||oa&&(Y==="id"||Y==="name")&&(J in r||J in ni))return!1;if(!(Ln&&!be[Y]&&At(Fe,Y))){if(!(Ie&&At(z,Y))){if(!(Ge.attributeCheck instanceof Function&&Ge.attributeCheck(Y,R))){if(!Q[Y]||be[Y]){if(!(Tr(R)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,R)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(R))&&(ee.attributeNameCheck instanceof RegExp&&At(ee.attributeNameCheck,Y)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Y,R))||Y==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J))))return!1}else if(!Fa[Y]){if(!At(Ce,nr(J,re,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&R!=="script"&&ib(J,"data:")===0&&Sr[R])){if(!(zl&&!At(K,nr(J,re,"")))){if(J)return!1}}}}}}}return!0},Tr=function(R){return R!=="annotation-xml"&&jc(R,Oe)},Ar=function(R){qe(Re.beforeSanitizeAttributes,R,null);const{attributes:Y}=R;if(!Y||Ft(R))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let De=Y.length;for(;De--;){const Xe=Y[De],{name:pe,namespaceURI:_t,value:en}=Xe,wt=$e(pe),Sn=en;let st=pe==="value"?Sn:rb(Sn);if(J.attrName=wt,J.attrValue=st,J.keepAttr=!0,J.forceKeepAttr=void 0,qe(Re.uponSanitizeAttribute,R,J),st=J.attrValue,br&&(wt==="id"||wt==="name")&&(gn(pe,R),st=bo+st),Wt&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,st)){gn(pe,R);continue}if(wt==="attributename"&&jc(st,"href")){gn(pe,R);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){gn(pe,R);continue}if(!sa&&At(/\/>/i,st)){gn(pe,R);continue}kn&&Is([Ke,kt,Ye],ui=>{st=nr(st,ui," ")});const oi=$e(R.nodeName);if(!fa(oi,wt,st)){gn(pe,R);continue}if(X&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!_t)switch(A.getAttributeType(oi,wt)){case"TrustedHTML":{st=X.createHTML(st);break}case"TrustedScriptURL":{st=X.createScriptURL(st);break}}if(st!==Sn)try{_t?R.setAttributeNS(_t,pe,st):R.setAttribute(pe,st),Ft(R)?Nt(R):Im(l.removed)}catch{gn(pe,R)}}qe(Re.afterSanitizeAttributes,R,null)},Rr=function ne(R){let Y=null;const J=si(R);for(qe(Re.beforeSanitizeShadowDOM,R,null);Y=J.nextNode();)qe(Re.uponSanitizeShadowNode,Y,null),Un(Y),Ar(Y),Y.content instanceof f&&ne(Y.content);qe(Re.afterSanitizeShadowDOM,R,null)};return l.sanitize=function(ne){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,J=null,De=null,Xe=null;if(ei=!ne,ei&&(ne="<!-->"),typeof ne!="string"&&!tt(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw lr("dirty is not a string, aborting")}else throw lr("toString is not a function");if(!l.isSupported)return ne;if(jl||li(R),l.removed=[],typeof ne=="string"&&(Ul=!1),Ul){if(ne.nodeName){const en=$e(ne.nodeName);if(!T[en]||ue[en])throw lr("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof p)Y=ri("<!---->"),J=Y.ownerDocument.importNode(ne,!0),J.nodeType===ir.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?Y=J:Y.appendChild(J);else{if(!Nn&&!kn&&!mn&&ne.indexOf("<")===-1)return X&&ul?X.createHTML(ne):ne;if(Y=ri(ne),!Y)return Nn?null:ul?ae:""}Y&&Ja&&Nt(Y.firstChild);const pe=si(Ul?ne:Y);for(;De=pe.nextNode();)Un(De),Ar(De),De.content instanceof f&&Rr(De.content);if(Ul)return ne;if(Nn){if(ol)for(Xe=Ue.call(Y.ownerDocument);Y.firstChild;)Xe.appendChild(Y.firstChild);else Xe=Y;return(Q.shadowroot||Q.shadowrootmode)&&(Xe=Lt.call(s,Xe,!0)),Xe}let _t=mn?Y.outerHTML:Y.innerHTML;return mn&&T["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&At(Hg,Y.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
|
|
106
|
-
`+_t),kn&&Is([Ke,kt,Ye],en=>{_t=nr(_t,en," ")}),X&&ul?X.createHTML(_t):_t},l.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};li(ne),jl=!0},l.clearConfig=function(){jn=null,jl=!1},l.isValidAttribute=function(ne,R,Y){jn||li({});const J=$e(ne),De=$e(R);return fa(J,De,Y)},l.addHook=function(ne,R){typeof R=="function"&&tr(Re[ne],R)},l.removeHook=function(ne,R){if(R!==void 0){const Y=lb(Re[ne],R);return Y===-1?void 0:ab(Re[ne],Y,1)[0]}return Im(Re[ne])},l.removeHooks=function(ne){Re[ne]=[]},l.removeAllHooks=function(){Re=Zm()},l}var Km=Vg();const Sb="modulepreload",Eb=function(i){return"/"+i},$m={},S=function(l,r,s){let u=Promise.resolve();if(r&&r.length>0){let d=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),g=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));u=d(r.map(h=>{if(h=Eb(h),h in $m)return;$m[h]=!0;const y=h.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${b}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":Sb,y||(E.as="script"),E.crossOrigin="",E.href=h,g&&E.setAttribute("nonce",g),document.head.appendChild(E),y)return new Promise((A,C)=>{E.addEventListener("load",A),E.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${h}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return u.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return l().catch(f)})},Gg=[{id:"abap",name:"ABAP",import:()=>S(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>S(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>S(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>S(()=>import("./angular-html-LfdN0zeE.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>S(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>S(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>S(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>S(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>S(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>S(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>S(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>S(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>S(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>S(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>S(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>S(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>S(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>S(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>S(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>S(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>S(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>S(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>S(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>S(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>S(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>S(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>S(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>S(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>S(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>S(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>S(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>S(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>S(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>S(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>S(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>S(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>S(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>S(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>S(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>S(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>S(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>S(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>S(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>S(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>S(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>S(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>S(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>S(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>S(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>S(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>S(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>S(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>S(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>S(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>S(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>S(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>S(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>S(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>S(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>S(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>S(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>S(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>S(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>S(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>S(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>S(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>S(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>S(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>S(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>S(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>S(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>S(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>S(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>S(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>S(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>S(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>S(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>S(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>S(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>S(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>S(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>S(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>S(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>S(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>S(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>S(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>S(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>S(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>S(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>S(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>S(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>S(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>S(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>S(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>S(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>S(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>S(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>S(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>S(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>S(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>S(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>S(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>S(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>S(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>S(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>S(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>S(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>S(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>S(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>S(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>S(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>S(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>S(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>S(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>S(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>S(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>S(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>S(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>S(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>S(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>S(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>S(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>S(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>S(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>S(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>S(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>S(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>S(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>S(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>S(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>S(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>S(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>S(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>S(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>S(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>S(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>S(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>S(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>S(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>S(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>S(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>S(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>S(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>S(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>S(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>S(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>S(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>S(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>S(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>S(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>S(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>S(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>S(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>S(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>S(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>S(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>S(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>S(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>S(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>S(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>S(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>S(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>S(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>S(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>S(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>S(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>S(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>S(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>S(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>S(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>S(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>S(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>S(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>S(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>S(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>S(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>S(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>S(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>S(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>S(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>S(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>S(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>S(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>S(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>S(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>S(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>S(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>S(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>S(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>S(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>S(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>S(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>S(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>S(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>S(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>S(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>S(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>S(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>S(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>S(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>S(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>S(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>S(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>S(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>S(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>S(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>S(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>S(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>S(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>S(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>S(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>S(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>S(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>S(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>S(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>S(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>S(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>S(()=>import("./zig-BVz_zdnA.js"),[])}],xb=Object.fromEntries(Gg.map(i=>[i.id,i.import])),Tb=Object.fromEntries(Gg.flatMap(i=>{var l;return((l=i.aliases)==null?void 0:l.map(r=>[r,i.import]))||[]})),Ab={...xb,...Tb},Rb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>S(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>S(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>S(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>S(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>S(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>S(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>S(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>S(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>S(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>S(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>S(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>S(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>S(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>S(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>S(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>S(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>S(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>S(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>S(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>S(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>S(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>S(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>S(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>S(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>S(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>S(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>S(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>S(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>S(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>S(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>S(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>S(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>S(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>S(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>S(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>S(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>S(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>S(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>S(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>S(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>S(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>S(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>S(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>S(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>S(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>S(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>S(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>S(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>S(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>S(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>S(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>S(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>S(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>S(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Ob=Object.fromEntries(Rb.map(i=>[i.id,i.import]));let sl=class extends Error{constructor(l){super(l),this.name="ShikiError"}},Rf=class extends Error{constructor(l){super(l),this.name="ShikiError"}};function Cb(){return 2147483648}function Db(){return typeof performance<"u"?performance.now():Date.now()}const Lb=(i,l)=>i+(l-i%l)%l;async function kb(i){let l,r;const s={};function u(A){r=A,s.HEAPU8=new Uint8Array(A),s.HEAPU32=new Uint32Array(A)}function f(A,C,U){s.HEAPU8.copyWithin(A,C,C+U)}function d(A){try{return l.grow(A-r.byteLength+65535>>>16),u(l.buffer),1}catch{}}function p(A){const C=s.HEAPU8.length;A=A>>>0;const U=Cb();if(A>U)return!1;for(let P=1;P<=4;P*=2){let B=C*(1+.2/P);B=Math.min(B,A+100663296);const I=Math.min(U,Lb(Math.max(A,B),65536));if(d(I))return!0}return!1}const g=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(A,C,U=1024){const P=C+U;let B=C;for(;A[B]&&!(B>=P);)++B;if(B-C>16&&A.buffer&&g)return g.decode(A.subarray(C,B));let I="";for(;C<B;){let q=A[C++];if(!(q&128)){I+=String.fromCharCode(q);continue}const X=A[C++]&63;if((q&224)===192){I+=String.fromCharCode((q&31)<<6|X);continue}const ae=A[C++]&63;if((q&240)===224?q=(q&15)<<12|X<<6|ae:q=(q&7)<<18|X<<12|ae<<6|A[C++]&63,q<65536)I+=String.fromCharCode(q);else{const fe=q-65536;I+=String.fromCharCode(55296|fe>>10,56320|fe&1023)}}return I}function y(A,C){return A?h(s.HEAPU8,A,C):""}const b={emscripten_get_now:Db,emscripten_memcpy_big:f,emscripten_resize_heap:p,fd_write:()=>0};async function E(){const C=await i({env:b,wasi_snapshot_preview1:b});l=C.memory,u(l.buffer),Object.assign(s,C),s.UTF8ToString=y}return await E(),s}var Nb=Object.defineProperty,wb=(i,l,r)=>l in i?Nb(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r,ut=(i,l,r)=>(wb(i,typeof l!="symbol"?l+"":l,r),r);let pt=null;function Mb(i){throw new Rf(i.UTF8ToString(i.getLastOnigError()))}class _o{constructor(l){ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16Value"),ut(this,"utf8Value"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16");const r=l.length,s=_o._utf8ByteLength(l),u=s!==r,f=u?new Uint32Array(r+1):null;u&&(f[r]=s);const d=u?new Uint32Array(s+1):null;u&&(d[s]=r);const p=new Uint8Array(s);let g=0;for(let h=0;h<r;h++){const y=l.charCodeAt(h);let b=y,E=!1;if(y>=55296&&y<=56319&&h+1<r){const A=l.charCodeAt(h+1);A>=56320&&A<=57343&&(b=(y-55296<<10)+65536|A-56320,E=!0)}u&&(f[h]=g,E&&(f[h+1]=g),b<=127?d[g+0]=h:b<=2047?(d[g+0]=h,d[g+1]=h):b<=65535?(d[g+0]=h,d[g+1]=h,d[g+2]=h):(d[g+0]=h,d[g+1]=h,d[g+2]=h,d[g+3]=h)),b<=127?p[g++]=b:b<=2047?(p[g++]=192|(b&1984)>>>6,p[g++]=128|(b&63)>>>0):b<=65535?(p[g++]=224|(b&61440)>>>12,p[g++]=128|(b&4032)>>>6,p[g++]=128|(b&63)>>>0):(p[g++]=240|(b&1835008)>>>18,p[g++]=128|(b&258048)>>>12,p[g++]=128|(b&4032)>>>6,p[g++]=128|(b&63)>>>0),E&&h++}this.utf16Length=r,this.utf8Length=s,this.utf16Value=l,this.utf8Value=p,this.utf16OffsetToUtf8=f,this.utf8OffsetToUtf16=d}static _utf8ByteLength(l){let r=0;for(let s=0,u=l.length;s<u;s++){const f=l.charCodeAt(s);let d=f,p=!1;if(f>=55296&&f<=56319&&s+1<u){const g=l.charCodeAt(s+1);g>=56320&&g<=57343&&(d=(f-55296<<10)+65536|g-56320,p=!0)}d<=127?r+=1:d<=2047?r+=2:d<=65535?r+=3:r+=4,p&&s++}return r}createString(l){const r=l.omalloc(this.utf8Length);return l.HEAPU8.set(this.utf8Value,r),r}}const Cn=class{constructor(i){if(ut(this,"id",++Cn.LAST_ID),ut(this,"_onigBinding"),ut(this,"content"),ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16"),ut(this,"ptr"),!pt)throw new Rf("Must invoke loadWasm first.");this._onigBinding=pt,this.content=i;const l=new _o(i);this.utf16Length=l.utf16Length,this.utf8Length=l.utf8Length,this.utf16OffsetToUtf8=l.utf16OffsetToUtf8,this.utf8OffsetToUtf16=l.utf8OffsetToUtf16,this.utf8Length<1e4&&!Cn._sharedPtrInUse?(Cn._sharedPtr||(Cn._sharedPtr=pt.omalloc(1e4)),Cn._sharedPtrInUse=!0,pt.HEAPU8.set(l.utf8Value,Cn._sharedPtr),this.ptr=Cn._sharedPtr):this.ptr=l.createString(pt)}convertUtf8OffsetToUtf16(i){return this.utf8OffsetToUtf16?i<0?0:i>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[i]:i}convertUtf16OffsetToUtf8(i){return this.utf16OffsetToUtf8?i<0?0:i>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[i]:i}dispose(){this.ptr===Cn._sharedPtr?Cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let _r=Cn;ut(_r,"LAST_ID",0);ut(_r,"_sharedPtr",0);ut(_r,"_sharedPtrInUse",!1);class zb{constructor(l){if(ut(this,"_onigBinding"),ut(this,"_ptr"),!pt)throw new Rf("Must invoke loadWasm first.");const r=[],s=[];for(let p=0,g=l.length;p<g;p++){const h=new _o(l[p]);r[p]=h.createString(pt),s[p]=h.utf8Length}const u=pt.omalloc(4*l.length);pt.HEAPU32.set(r,u/4);const f=pt.omalloc(4*l.length);pt.HEAPU32.set(s,f/4);const d=pt.createOnigScanner(u,f,l.length);for(let p=0,g=l.length;p<g;p++)pt.ofree(r[p]);pt.ofree(f),pt.ofree(u),d===0&&Mb(pt),this._onigBinding=pt,this._ptr=d}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(l,r,s){let u=0;if(typeof s=="number"&&(u=s),typeof l=="string"){l=new _r(l);const f=this._findNextMatchSync(l,r,!1,u);return l.dispose(),f}return this._findNextMatchSync(l,r,!1,u)}_findNextMatchSync(l,r,s,u){const f=this._onigBinding,d=f.findNextOnigScannerMatch(this._ptr,l.id,l.ptr,l.utf8Length,l.convertUtf16OffsetToUtf8(r),u);if(d===0)return null;const p=f.HEAPU32;let g=d/4;const h=p[g++],y=p[g++],b=[];for(let E=0;E<y;E++){const A=l.convertUtf8OffsetToUtf16(p[g++]),C=l.convertUtf8OffsetToUtf16(p[g++]);b[E]={start:A,end:C,length:C-A}}return{index:h,captureIndices:b}}}function jb(i){return typeof i.instantiator=="function"}function Ub(i){return typeof i.default=="function"}function Bb(i){return typeof i.data<"u"}function Hb(i){return typeof Response<"u"&&i instanceof Response}function Vb(i){var l;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((l=Buffer.isBuffer)==null?void 0:l.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let Ps;function Gb(i){if(Ps)return Ps;async function l(){pt=await kb(async r=>{let s=i;return s=await s,typeof s=="function"&&(s=await s(r)),typeof s=="function"&&(s=await s(r)),jb(s)?s=await s.instantiator(r):Ub(s)?s=await s.default(r):(Bb(s)&&(s=s.data),Hb(s)?typeof WebAssembly.instantiateStreaming=="function"?s=await Ib(s)(r):s=await qb(s)(r):Vb(s)?s=await Gc(s)(r):s instanceof WebAssembly.Module?s=await Gc(s)(r):"default"in s&&s.default instanceof WebAssembly.Module&&(s=await Gc(s.default)(r))),"instance"in s&&(s=s.instance),"exports"in s&&(s=s.exports),s})}return Ps=l(),Ps}function Gc(i){return l=>WebAssembly.instantiate(i,l)}function Ib(i){return l=>WebAssembly.instantiateStreaming(i,l)}function qb(i){return async l=>{const r=await i.arrayBuffer();return WebAssembly.instantiate(r,l)}}let Pb;function Yb(){return Pb}async function Ig(i){return i&&await Gb(i),{createScanner(l){return new zb(l.map(r=>typeof r=="string"?r:r.source))},createString(l){return new _r(l)}}}function Xb(i){return Of(i)}function Of(i){return Array.isArray(i)?Qb(i):i instanceof RegExp?i:typeof i=="object"?Zb(i):i}function Qb(i){let l=[];for(let r=0,s=i.length;r<s;r++)l[r]=Of(i[r]);return l}function Zb(i){let l={};for(let r in i)l[r]=Of(i[r]);return l}function qg(i,...l){return l.forEach(r=>{for(let s in r)i[s]=r[s]}),i}function Pg(i){const l=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return l===0?i:~l===i.length-1?Pg(i.substring(0,i.length-1)):i.substr(~l+1)}var Ic=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ys=class{static hasCaptures(i){return i===null?!1:(Ic.lastIndex=0,Ic.test(i))}static replaceCaptures(i,l,r){return i.replace(Ic,(s,u,f,d)=>{let p=r[parseInt(u||f,10)];if(p){let g=l.substring(p.start,p.end);for(;g[0]===".";)g=g.substring(1);switch(d){case"downcase":return g.toLowerCase();case"upcase":return g.toUpperCase();default:return g}}else return s})}};function Yg(i,l){return i<l?-1:i>l?1:0}function Xg(i,l){if(i===null&&l===null)return 0;if(!i)return-1;if(!l)return 1;let r=i.length,s=l.length;if(r===s){for(let u=0;u<r;u++){let f=Yg(i[u],l[u]);if(f!==0)return f}return 0}return r-s}function Jm(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Qg(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Zg=class{constructor(i){w(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const l=this.fn(i);return this.cache.set(i,l),l}},lo=class{constructor(i,l,r){w(this,"_cachedMatchRoot",new Zg(i=>this._root.match(i)));this._colorMap=i,this._defaults=l,this._root=r}static createFromRawTheme(i,l){return this.createFromParsedTheme(Jb(i),l)}static createFromParsedTheme(i,l){return Fb(i,l)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const l=i.scopeName,s=this._cachedMatchRoot.get(l).find(u=>Kb(i.parent,u.parentScopes));return s?new Kg(s.fontStyle,s.foreground,s.background):null}},qc=class Ws{constructor(l,r){this.parent=l,this.scopeName=r}static push(l,r){for(const s of r)l=new Ws(l,s);return l}static from(...l){let r=null;for(let s=0;s<l.length;s++)r=new Ws(r,l[s]);return r}push(l){return new Ws(this,l)}getSegments(){let l=this;const r=[];for(;l;)r.push(l.scopeName),l=l.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(l){return this===l?!0:this.parent===null?!1:this.parent.extends(l)}getExtensionIfDefined(l){const r=[];let s=this;for(;s&&s!==l;)r.push(s.scopeName),s=s.parent;return s===l?r.reverse():void 0}};function Kb(i,l){if(l.length===0)return!0;for(let r=0;r<l.length;r++){let s=l[r],u=!1;if(s===">"){if(r===l.length-1)return!1;s=l[++r],u=!0}for(;i&&!$b(i.scopeName,s);){if(u)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function $b(i,l){return l===i||i.startsWith(l)&&i[l.length]==="."}var Kg=class{constructor(i,l,r){this.fontStyle=i,this.foregroundId=l,this.backgroundId=r}};function Jb(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let l=i.settings,r=[],s=0;for(let u=0,f=l.length;u<f;u++){let d=l[u];if(!d.settings)continue;let p;if(typeof d.scope=="string"){let b=d.scope;b=b.replace(/^[,]+/,""),b=b.replace(/[,]+$/,""),p=b.split(",")}else Array.isArray(d.scope)?p=d.scope:p=[""];let g=-1;if(typeof d.settings.fontStyle=="string"){g=0;let b=d.settings.fontStyle.split(" ");for(let E=0,A=b.length;E<A;E++)switch(b[E]){case"italic":g=g|1;break;case"bold":g=g|2;break;case"underline":g=g|4;break;case"strikethrough":g=g|8;break}}let h=null;typeof d.settings.foreground=="string"&&Jm(d.settings.foreground)&&(h=d.settings.foreground);let y=null;typeof d.settings.background=="string"&&Jm(d.settings.background)&&(y=d.settings.background);for(let b=0,E=p.length;b<E;b++){let C=p[b].trim().split(" "),U=C[C.length-1],P=null;C.length>1&&(P=C.slice(0,C.length-1),P.reverse()),r[s++]=new Wb(U,P,u,g,h,y)}}return r}var Wb=class{constructor(i,l,r,s,u,f){this.scope=i,this.parentScopes=l,this.index=r,this.fontStyle=s,this.foreground=u,this.background=f}},rl=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(rl||{});function Fb(i,l){i.sort((g,h)=>{let y=Yg(g.scope,h.scope);return y!==0||(y=Xg(g.parentScopes,h.parentScopes),y!==0)?y:g.index-h.index});let r=0,s="#000000",u="#ffffff";for(;i.length>=1&&i[0].scope==="";){let g=i.shift();g.fontStyle!==-1&&(r=g.fontStyle),g.foreground!==null&&(s=g.foreground),g.background!==null&&(u=g.background)}let f=new e1(l),d=new Kg(r,f.getId(s),f.getId(u)),p=new n1(new tf(0,null,-1,0,0),[]);for(let g=0,h=i.length;g<h;g++){let y=i[g];p.insert(0,y.scope,y.parentScopes,y.fontStyle,f.getId(y.foreground),f.getId(y.background))}return new lo(f,d,p)}var e1=class{constructor(i){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(i)){this._isFrozen=!0;for(let l=0,r=i.length;l<r;l++)this._color2id[i[l]]=l,this._id2color[l]=i[l]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let l=this._color2id[i];if(l)return l;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return l=++this._lastColorId,this._color2id[i]=l,this._id2color[l]=i,l}getColorMap(){return this._id2color.slice(0)}},t1=Object.freeze([]),tf=class $g{constructor(l,r,s,u,f){w(this,"scopeDepth");w(this,"parentScopes");w(this,"fontStyle");w(this,"foreground");w(this,"background");this.scopeDepth=l,this.parentScopes=r||t1,this.fontStyle=s,this.foreground=u,this.background=f}clone(){return new $g(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(l){let r=[];for(let s=0,u=l.length;s<u;s++)r[s]=l[s].clone();return r}acceptOverwrite(l,r,s,u){this.scopeDepth>l?console.log("how did this happen?"):this.scopeDepth=l,r!==-1&&(this.fontStyle=r),s!==0&&(this.foreground=s),u!==0&&(this.background=u)}},n1=class nf{constructor(l,r=[],s={}){w(this,"_rulesWithParentScopes");this._mainRule=l,this._children=s,this._rulesWithParentScopes=r}static _cmpBySpecificity(l,r){if(l.scopeDepth!==r.scopeDepth)return r.scopeDepth-l.scopeDepth;let s=0,u=0;for(;l.parentScopes[s]===">"&&s++,r.parentScopes[u]===">"&&u++,!(s>=l.parentScopes.length||u>=r.parentScopes.length);){const f=r.parentScopes[u].length-l.parentScopes[s].length;if(f!==0)return f;s++,u++}return r.parentScopes.length-l.parentScopes.length}match(l){if(l!==""){let s=l.indexOf("."),u,f;if(s===-1?(u=l,f=""):(u=l.substring(0,s),f=l.substring(s+1)),this._children.hasOwnProperty(u))return this._children[u].match(f)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(nf._cmpBySpecificity),r}insert(l,r,s,u,f,d){if(r===""){this._doInsertHere(l,s,u,f,d);return}let p=r.indexOf("."),g,h;p===-1?(g=r,h=""):(g=r.substring(0,p),h=r.substring(p+1));let y;this._children.hasOwnProperty(g)?y=this._children[g]:(y=new nf(this._mainRule.clone(),tf.cloneArr(this._rulesWithParentScopes)),this._children[g]=y),y.insert(l+1,h,s,u,f,d)}_doInsertHere(l,r,s,u,f){if(r===null){this._mainRule.acceptOverwrite(l,s,u,f);return}for(let d=0,p=this._rulesWithParentScopes.length;d<p;d++){let g=this._rulesWithParentScopes[d];if(Xg(g.parentScopes,r)===0){g.acceptOverwrite(l,s,u,f);return}}s===-1&&(s=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),f===0&&(f=this._mainRule.background),this._rulesWithParentScopes.push(new tf(l,r,s,u,f))}},Za=class dn{static toBinaryStr(l){return l.toString(2).padStart(32,"0")}static print(l){const r=dn.getLanguageId(l),s=dn.getTokenType(l),u=dn.getFontStyle(l),f=dn.getForeground(l),d=dn.getBackground(l);console.log({languageId:r,tokenType:s,fontStyle:u,foreground:f,background:d})}static getLanguageId(l){return(l&255)>>>0}static getTokenType(l){return(l&768)>>>8}static containsBalancedBrackets(l){return(l&1024)!==0}static getFontStyle(l){return(l&30720)>>>11}static getForeground(l){return(l&16744448)>>>15}static getBackground(l){return(l&4278190080)>>>24}static set(l,r,s,u,f,d,p){let g=dn.getLanguageId(l),h=dn.getTokenType(l),y=dn.containsBalancedBrackets(l)?1:0,b=dn.getFontStyle(l),E=dn.getForeground(l),A=dn.getBackground(l);return r!==0&&(g=r),s!==8&&(h=s),u!==null&&(y=u?1:0),f!==-1&&(b=f),d!==0&&(E=d),p!==0&&(A=p),(g<<0|h<<8|y<<10|b<<11|E<<15|A<<24)>>>0}};function ao(i,l){const r=[],s=l1(i);let u=s.next();for(;u!==null;){let g=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":g=1;break;case"L":g=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=s.next()}let h=d();if(r.push({matcher:h,priority:g}),u!==",")break;u=s.next()}return r;function f(){if(u==="-"){u=s.next();const g=f();return h=>!!g&&!g(h)}if(u==="("){u=s.next();const g=p();return u===")"&&(u=s.next()),g}if(Wm(u)){const g=[];do g.push(u),u=s.next();while(Wm(u));return h=>l(g,h)}return null}function d(){const g=[];let h=f();for(;h;)g.push(h),h=f();return y=>g.every(b=>b(y))}function p(){const g=[];let h=d();for(;h&&(g.push(h),u==="|"||u===",");){do u=s.next();while(u==="|"||u===",");h=d()}return y=>g.some(b=>b(y))}}function Wm(i){return!!i&&!!i.match(/[\w\.:]+/)}function l1(i){let l=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=l.exec(i);return{next:()=>{if(!r)return null;const s=r[0];return r=l.exec(i),s}}}function Jg(i){typeof i.dispose=="function"&&i.dispose()}var dr=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},a1=class{constructor(i,l){this.scopeName=i,this.ruleName=l}toKey(){return`${this.scopeName}#${this.ruleName}`}},i1=class{constructor(){w(this,"_references",[]);w(this,"_seenReferenceKeys",new Set);w(this,"visitedRule",new Set)}get references(){return this._references}add(i){const l=i.toKey();this._seenReferenceKeys.has(l)||(this._seenReferenceKeys.add(l),this._references.push(i))}},r1=class{constructor(i,l){w(this,"seenFullScopeRequests",new Set);w(this,"seenPartialScopeRequests",new Set);w(this,"Q");this.repo=i,this.initialScopeName=l,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new dr(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const l=new i1;for(const r of i)s1(r,this.initialScopeName,this.repo,l);for(const r of l.references)if(r instanceof dr){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function s1(i,l,r,s){const u=r.lookup(i.scopeName);if(!u){if(i.scopeName===l)throw new Error(`No grammar provided for <${l}>`);return}const f=r.lookup(l);i instanceof dr?Fs({baseGrammar:f,selfGrammar:u},s):lf(i.ruleName,{baseGrammar:f,selfGrammar:u,repository:u.repository},s);const d=r.injections(i.scopeName);if(d)for(const p of d)s.add(new dr(p))}function lf(i,l,r){if(l.repository&&l.repository[i]){const s=l.repository[i];io([s],l,r)}}function Fs(i,l){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&io(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},l),i.selfGrammar.injections&&io(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},l)}function io(i,l,r){for(const s of i){if(r.visitedRule.has(s))continue;r.visitedRule.add(s);const u=s.repository?qg({},l.repository,s.repository):l.repository;Array.isArray(s.patterns)&&io(s.patterns,{...l,repository:u},r);const f=s.include;if(!f)continue;const d=Wg(f);switch(d.kind){case 0:Fs({...l,selfGrammar:l.baseGrammar},r);break;case 1:Fs(l,r);break;case 2:lf(d.ruleName,{...l,repository:u},r);break;case 3:case 4:const p=d.scopeName===l.selfGrammar.scopeName?l.selfGrammar:d.scopeName===l.baseGrammar.scopeName?l.baseGrammar:void 0;if(p){const g={baseGrammar:l.baseGrammar,selfGrammar:p,repository:u};d.kind===4?lf(d.ruleName,g,r):Fs(g,r)}else d.kind===4?r.add(new a1(d.scopeName,d.ruleName)):r.add(new dr(d.scopeName));break}}}var o1=class{constructor(){w(this,"kind",0)}},u1=class{constructor(){w(this,"kind",1)}},c1=class{constructor(i){w(this,"kind",2);this.ruleName=i}},f1=class{constructor(i){w(this,"kind",3);this.scopeName=i}},d1=class{constructor(i,l){w(this,"kind",4);this.scopeName=i,this.ruleName=l}};function Wg(i){if(i==="$base")return new o1;if(i==="$self")return new u1;const l=i.indexOf("#");if(l===-1)return new f1(i);if(l===0)return new c1(i.substring(1));{const r=i.substring(0,l),s=i.substring(l+1);return new d1(r,s)}}var h1=/\\(\d+)/,Fm=/\\(\d+)/g,p1=-1,Fg=-2;var yr=class{constructor(i,l,r,s){w(this,"$location");w(this,"id");w(this,"_nameIsCapturing");w(this,"_name");w(this,"_contentNameIsCapturing");w(this,"_contentName");this.$location=i,this.id=l,this._name=r||null,this._nameIsCapturing=Ys.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=Ys.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Pg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,l){return!this._nameIsCapturing||this._name===null||i===null||l===null?this._name:Ys.replaceCaptures(this._name,i,l)}getContentName(i,l){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ys.replaceCaptures(this._contentName,i,l)}},m1=class extends yr{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(l,r){throw new Error("Not supported!")}compile(l,r){throw new Error("Not supported!")}compileAG(l,r,s,u){throw new Error("Not supported!")}},g1=class extends yr{constructor(l,r,s,u,f){super(l,r,s,null);w(this,"_match");w(this,"captures");w(this,"_cachedCompiledPatterns");this._match=new hr(u,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(l,r){r.push(this._match)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new pr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eg=class extends yr{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(l,r){for(const s of this.patterns)l.getRule(s).collectPatterns(l,r)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new pr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},af=class extends yr{constructor(l,r,s,u,f,d,p,g,h,y){super(l,r,s,u);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 hr(f,this.id),this.beginCaptures=d,this._end=new hr(p||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=g,this.applyEndPatternLast=h||!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(l,r){return this._end.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l,r).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l,r).compileAG(l,s,u)}_getCachedCompiledPatterns(l,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pr;for(const s of this.patterns)l.getRule(s).collectPatterns(l,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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},ro=class extends yr{constructor(l,r,s,u,f,d,p,g,h){super(l,r,s,u);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 hr(f,this.id),this.beginCaptures=d,this.whileCaptures=g,this._while=new hr(p,Fg),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.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(l,r){return this._while.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pr;for(const r of this.patterns)l.getRule(r).collectPatterns(l,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(l,r){return this._getCachedCompiledWhilePatterns(l,r).compile(l)}compileWhileAG(l,r,s,u){return this._getCachedCompiledWhilePatterns(l,r).compileAG(l,s,u)}_getCachedCompiledWhilePatterns(l,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new pr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},e_=class xt{static createCaptureRule(l,r,s,u,f){return l.registerRule(d=>new m1(r,d,s,u,f))}static getCompiledRuleId(l,r,s){return l.id||r.registerRule(u=>{if(l.id=u,l.match)return new g1(l.$vscodeTextmateLocation,l.id,l.name,l.match,xt._compileCaptures(l.captures,r,s));if(typeof l.begin>"u"){l.repository&&(s=qg({},s,l.repository));let f=l.patterns;return typeof f>"u"&&l.include&&(f=[{include:l.include}]),new eg(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,xt._compilePatterns(f,r,s))}return l.while?new ro(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.while,xt._compileCaptures(l.whileCaptures||l.captures,r,s),xt._compilePatterns(l.patterns,r,s)):new af(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.end,xt._compileCaptures(l.endCaptures||l.captures,r,s),l.applyEndPatternLast,xt._compilePatterns(l.patterns,r,s))}),l.id}static _compileCaptures(l,r,s){let u=[];if(l){let f=0;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const p=parseInt(d,10);p>f&&(f=p)}for(let d=0;d<=f;d++)u[d]=null;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const p=parseInt(d,10);let g=0;l[d].patterns&&(g=xt.getCompiledRuleId(l[d],r,s)),u[p]=xt.createCaptureRule(r,l[d].$vscodeTextmateLocation,l[d].name,l[d].contentName,g)}}return u}static _compilePatterns(l,r,s){let u=[];if(l)for(let f=0,d=l.length;f<d;f++){const p=l[f];let g=-1;if(p.include){const h=Wg(p.include);switch(h.kind){case 0:case 1:g=xt.getCompiledRuleId(s[p.include],r,s);break;case 2:let y=s[h.ruleName];y&&(g=xt.getCompiledRuleId(y,r,s));break;case 3:case 4:const b=h.scopeName,E=h.kind===4?h.ruleName:null,A=r.getExternalGrammar(b,s);if(A)if(E){let C=A.repository[E];C&&(g=xt.getCompiledRuleId(C,r,A.repository))}else g=xt.getCompiledRuleId(A.repository.$self,r,A.repository);break}}else g=xt.getCompiledRuleId(p,r,s);if(g!==-1){const h=r.getRule(g);let y=!1;if((h instanceof eg||h instanceof af||h instanceof ro)&&h.hasMissingPatterns&&h.patterns.length===0&&(y=!0),y)continue;u.push(g)}}return{patterns:u,hasMissingPatterns:(l?l.length:0)!==u.length}}},hr=class t_{constructor(l,r){w(this,"source");w(this,"ruleId");w(this,"hasAnchor");w(this,"hasBackReferences");w(this,"_anchorCache");if(l&&typeof l=="string"){const s=l.length;let u=0,f=[],d=!1;for(let p=0;p<s;p++)if(l.charAt(p)==="\\"&&p+1<s){const h=l.charAt(p+1);h==="z"?(f.push(l.substring(u,p)),f.push("$(?!\\n)(?<!\\n)"),u=p+2):(h==="A"||h==="G")&&(d=!0),p++}this.hasAnchor=d,u===0?this.source=l:(f.push(l.substring(u,s)),this.source=f.join(""))}else this.hasAnchor=!1,this.source=l;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=h1.test(this.source):this.hasBackReferences=!1}clone(){return new t_(this.source,this.ruleId)}setSource(l){this.source!==l&&(this.source=l,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(l,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let s=r.map(u=>l.substring(u.start,u.end));return Fm.lastIndex=0,this.source.replace(Fm,(u,f)=>Qg(s[parseInt(f,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let l=[],r=[],s=[],u=[],f,d,p,g;for(f=0,d=this.source.length;f<d;f++)p=this.source.charAt(f),l[f]=p,r[f]=p,s[f]=p,u[f]=p,p==="\\"&&f+1<d&&(g=this.source.charAt(f+1),g==="A"?(l[f+1]="",r[f+1]="",s[f+1]="A",u[f+1]="A"):g==="G"?(l[f+1]="",r[f+1]="G",s[f+1]="",u[f+1]="G"):(l[f+1]=g,r[f+1]=g,s[f+1]=g,u[f+1]=g),f++);return{A0_G0:l.join(""),A0_G1:r.join(""),A1_G0:s.join(""),A1_G1:u.join("")}}resolveAnchors(l,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:l?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},pr=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(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,l){this._items[i].source!==l&&(this._disposeCaches(),this._items[i].setSource(l))}compile(i){if(!this._cached){let l=this._items.map(r=>r.source);this._cached=new tg(i,l,this._items.map(r=>r.ruleId))}return this._cached}compileAG(i,l,r){return this._hasAnchors?l?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,l,r){let s=this._items.map(u=>u.resolveAnchors(l,r));return new tg(i,s,this._items.map(u=>u.ruleId))}},tg=class{constructor(i,l,r){w(this,"scanner");this.regExps=l,this.rules=r,this.scanner=i.createOnigScanner(l)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let l=0,r=this.rules.length;l<r;l++)i.push(" - "+this.rules[l]+": "+this.regExps[l]);return i.join(`
|
|
107
|
-
`)}findNextMatchSync(i,l,r){const s=this.scanner.findNextMatchSync(i,l,r);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}},Pc=class{constructor(i,l){this.languageId=i,this.tokenType=l}},ll,
|
|
108
|
-
`;const f=this.createOnigString(i),d=f.content.length,p=new D1(r,i,this._tokenTypeMatchers,this.balancedBracketSelectors),g=n_(this,f,u,0,l,p,!0,s);return Jg(f),{lineLength:d,lineTokens:p,ruleStack:g.stack,stoppedEarly:g.stoppedEarly}}};function ag(i,l){return i=Xb(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=l||i.repository.$self,i}var cr=class Dn{constructor(l,r,s){this.parent=l,this.scopePath=r,this.tokenAttributes=s}static fromExtension(l,r){let s=l,u=(l==null?void 0:l.scopePath)??null;for(const f of r)u=qc.push(u,f.scopeNames),s=new Dn(s,u,f.encodedTokenAttributes);return s}static createRoot(l,r){return new Dn(null,new qc(null,l),r)}static createRootAndLookUpScopeName(l,r,s){const u=s.getMetadataForScope(l),f=new qc(null,l),d=s.themeProvider.themeMatch(f),p=Dn.mergeAttributes(r,u,d);return new Dn(null,f,p)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(l){return Dn.equals(this,l)}static equals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.scopeName!==r.scopeName||l.tokenAttributes!==r.tokenAttributes)return!1;l=l.parent,r=r.parent}while(!0)}static mergeAttributes(l,r,s){let u=-1,f=0,d=0;return s!==null&&(u=s.fontStyle,f=s.foregroundId,d=s.backgroundId),Za.set(l,r.languageId,r.tokenType,null,u,f,d)}pushAttributed(l,r){if(l===null)return this;if(l.indexOf(" ")===-1)return Dn._pushAttributed(this,l,r);const s=l.split(/ /g);let u=this;for(const f of s)u=Dn._pushAttributed(u,f,r);return u}static _pushAttributed(l,r,s){const u=s.getMetadataForScope(r),f=l.scopePath.push(r),d=s.themeProvider.themeMatch(f),p=Dn.mergeAttributes(l.tokenAttributes,u,d);return new Dn(l,f,p)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(l){var u;const r=[];let s=this;for(;s&&s!==l;)r.push({encodedTokenAttributes:s.tokenAttributes,scopeNames:s.scopePath.getExtensionIfDefined(((u=s.parent)==null?void 0:u.scopePath)??null)}),s=s.parent;return s===l?r.reverse():void 0}},hn,rf=(hn=class{constructor(l,r,s,u,f,d,p,g){w(this,"_stackElementBrand");w(this,"_enterPos");w(this,"_anchorPos");w(this,"depth");this.parent=l,this.ruleId=r,this.beginRuleCapturedEOL=f,this.endRule=d,this.nameScopesList=p,this.contentNameScopesList=g,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=u}equals(l){return l===null?!1:hn._equals(this,l)}static _equals(l,r){return l===r?!0:this._structuralEquals(l,r)?cr.equals(l.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.depth!==r.depth||l.ruleId!==r.ruleId||l.endRule!==r.endRule)return!1;l=l.parent,r=r.parent}while(!0)}clone(){return this}static _reset(l){for(;l;)l._enterPos=-1,l._anchorPos=-1,l=l.parent}reset(){hn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(l,r,s,u,f,d,p){return new hn(this,l,r,s,u,f,d,p)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(l){return l.getRule(this.ruleId)}toString(){const l=[];return this._writeString(l,0),"["+l.join(",")+"]"}_writeString(l,r){var s,u;return this.parent&&(r=this.parent._writeString(l,r)),l[r++]=`(${this.ruleId}, ${(s=this.nameScopesList)==null?void 0:s.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,r}withContentNameScopesList(l){return this.contentNameScopesList===l?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,l)}withEndRule(l){return this.endRule===l?this:new hn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,l,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(l){let r=this;for(;r&&r._enterPos===l._enterPos;){if(r.ruleId===l.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var l,r,s;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((l=this.parent)==null?void 0:l.nameScopesList)??null))??[],contentNameScopesList:((s=this.contentNameScopesList)==null?void 0:s.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(l,r){const s=cr.fromExtension((l==null?void 0:l.nameScopesList)??null,r.nameScopesList);return new hn(l,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,s,cr.fromExtension(s,r.contentNameScopesList))}},w(hn,"NULL",new hn(null,0,0,0,!1,null,null,null)),hn),C1=class{constructor(i,l){w(this,"balancedBracketScopes");w(this,"unbalancedBracketScopes");w(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ao(r,so).map(s=>s.matcher)),this.unbalancedBracketScopes=l.flatMap(r=>ao(r,so).map(s=>s.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const l of this.unbalancedBracketScopes)if(l(i))return!1;for(const l of this.balancedBracketScopes)if(l(i))return!0;return this.allowAny}},D1=class{constructor(i,l,r,s){w(this,"_emitBinaryTokens");w(this,"_lineText");w(this,"_tokens");w(this,"_binaryTokens");w(this,"_lastTokenEndIndex");w(this,"_tokenTypeOverrides");this.balancedBracketSelectors=s,this._emitBinaryTokens=i,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,l){this.produceFromScopes(i.contentNameScopesList,l)}produceFromScopes(i,l){var s;if(this._lastTokenEndIndex>=l)return;if(this._emitBinaryTokens){let u=(i==null?void 0:i.tokenAttributes)??0,f=!1;if((s=this.balancedBracketSelectors)!=null&&s.matchesAlways&&(f=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const d=(i==null?void 0:i.getScopeNames())??[];for(const p of this._tokenTypeOverrides)p.matcher(d)&&(u=Za.set(u,0,p.type,null,-1,0,0));this.balancedBracketSelectors&&(f=this.balancedBracketSelectors.match(d))}if(f&&(u=Za.set(u,0,8,f,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=l;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=l;return}const r=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:l,scopes:r}),this._lastTokenEndIndex=l}getResult(i,l){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===l-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,l){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===l-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let s=0,u=this._binaryTokens.length;s<u;s++)r[s]=this._binaryTokens[s];return r}},L1=class{constructor(i,l){w(this,"_grammars",new Map);w(this,"_rawGrammars",new Map);w(this,"_injectionGrammars",new Map);w(this,"_theme");this._onigLib=l,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,l){this._rawGrammars.set(i.scopeName,i),l&&this._injectionGrammars.set(i.scopeName,l)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,l,r,s,u){if(!this._grammars.has(i)){let f=this._rawGrammars.get(i);if(!f)return null;this._grammars.set(i,A1(i,f,l,r,s,u,this,this._onigLib))}return this._grammars.get(i)}},k1=class{constructor(l){w(this,"_options");w(this,"_syncRegistry");w(this,"_ensureGrammarCache");this._options=l,this._syncRegistry=new L1(lo.createFromRawTheme(l.theme,l.colorMap),l.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(l,r){this._syncRegistry.setTheme(lo.createFromRawTheme(l,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(l,r,s){return this.loadGrammarWithConfiguration(l,r,{embeddedLanguages:s})}loadGrammarWithConfiguration(l,r,s){return this._loadGrammar(l,r,s.embeddedLanguages,s.tokenTypes,new C1(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(l){return this._loadGrammar(l,0,null,null,null)}_loadGrammar(l,r,s,u,f){const d=new r1(this._syncRegistry,l);for(;d.Q.length>0;)d.Q.map(p=>this._loadSingleGrammar(p.scopeName)),d.processQueue();return this._grammarForScopeName(l,r,s,u,f)}_loadSingleGrammar(l){this._ensureGrammarCache.has(l)||(this._doLoadSingleGrammar(l),this._ensureGrammarCache.set(l,!0))}_doLoadSingleGrammar(l){const r=this._options.loadGrammar(l);if(r){const s=typeof this._options.getInjections=="function"?this._options.getInjections(l):void 0;this._syncRegistry.addGrammar(r,s)}}addGrammar(l,r=[],s=0,u=null){return this._syncRegistry.addGrammar(l,r),this._grammarForScopeName(l.scopeName,s,u)}_grammarForScopeName(l,r=0,s=null,u=null,f=null){return this._syncRegistry.grammarForScopeName(l,r,s,u,f)}},sf=rf.NULL;const N1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class vr{constructor(l,r,s){this.normal=r,this.property=l,s&&(this.space=s)}}vr.prototype.normal={};vr.prototype.property={};vr.prototype.space=void 0;function a_(i,l){const r={},s={};for(const u of i)Object.assign(r,u.property),Object.assign(s,u.normal);return new vr(r,s,l)}function of(i){return i.toLowerCase()}class Vt{constructor(l,r){this.attribute=r,this.property=l}}Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;let w1=0;const he=ra(),rt=ra(),uf=ra(),Z=ra(),Be=ra(),Ya=ra(),$t=ra();function ra(){return 2**++w1}const cf=Object.freeze(Object.defineProperty({__proto__:null,boolean:he,booleanish:rt,commaOrSpaceSeparated:$t,commaSeparated:Ya,number:Z,overloadedBoolean:uf,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Yc=Object.keys(cf);class Cf extends Vt{constructor(l,r,s,u){let f=-1;if(super(l,r),ig(this,"space",u),typeof s=="number")for(;++f<Yc.length;){const d=Yc[f];ig(this,Yc[f],(s&cf[d])===cf[d])}}}Cf.prototype.defined=!0;function ig(i,l,r){r&&(i[l]=r)}function Ka(i){const l={},r={};for(const[s,u]of Object.entries(i.properties)){const f=new Cf(s,i.transform(i.attributes||{},s),u,i.space);i.mustUseProperty&&i.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),l[s]=f,r[of(s)]=s,r[of(f.attribute)]=s}return new vr(l,r,i.space)}const i_=Ka({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Be,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:Z,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Be,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:rt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(i,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function r_(i,l){return l in i?i[l]:l}function s_(i,l){return r_(i,l.toLowerCase())}const M1=Ka({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ya,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:he,allowPaymentRequest:he,allowUserMedia:he,alt:null,as:null,async:he,autoCapitalize:null,autoComplete:Be,autoFocus:he,autoPlay:he,blocking:Be,capture:null,charSet:null,checked:he,cite:null,className:Be,cols:Z,colSpan:null,content:null,contentEditable:rt,controls:he,controlsList:Be,coords:Z|Ya,crossOrigin:null,data:null,dateTime:null,decoding:null,default:he,defer:he,dir:null,dirName:null,disabled:he,download:uf,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:he,formTarget:null,headers:Be,height:Z,hidden:uf,high:Z,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:he,inputMode:null,integrity:null,is:null,isMap:he,itemId:null,itemProp:Be,itemRef:Be,itemScope:he,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:he,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:he,muted:he,name:null,nonce:null,noModule:he,noValidate:he,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:he,optimum:Z,pattern:null,ping:Be,placeholder:null,playsInline:he,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:he,referrerPolicy:null,rel:Be,required:he,reversed:he,rows:Z,rowSpan:Z,sandbox:Be,scope:null,scoped:he,seamless:he,selected:he,shadowRootClonable:he,shadowRootDelegatesFocus:he,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:he,useMap:null,value:rt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:he,declare:he,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:he,noHref:he,noShade:he,noWrap:he,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:he,disableRemotePlayback:he,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:s_}),z1=Ka({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:$t,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Be,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:he,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Ya,g2:Ya,glyphName:Ya,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:r_}),o_=Ka({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,l){return"xlink:"+l.slice(5).toLowerCase()}}),u_=Ka({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:s_}),c_=Ka({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(i,l){return"xml:"+l.slice(3).toLowerCase()}}),j1=/[A-Z]/g,rg=/-[a-z]/g,U1=/^data[-\w.:]+$/i;function B1(i,l){const r=of(l);let s=l,u=Vt;if(r in i.normal)return i.property[i.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&U1.test(l)){if(l.charAt(4)==="-"){const f=l.slice(5).replace(rg,V1);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=l.slice(4);if(!rg.test(f)){let d=f.replace(j1,H1);d.charAt(0)!=="-"&&(d="-"+d),l="data"+d}}u=Cf}return new u(s,l)}function H1(i){return"-"+i.toLowerCase()}function V1(i){return i.charAt(1).toUpperCase()}const G1=a_([i_,M1,o_,u_,c_],"html"),f_=a_([i_,z1,o_,u_,c_],"svg"),sg={}.hasOwnProperty;function I1(i,l){const r=l||{};function s(u,...f){let d=s.invalid;const p=s.handlers;if(u&&sg.call(u,i)){const g=String(u[i]);d=sg.call(p,g)?p[g]:s.unknown}if(d)return d.call(this,u,...f)}return s.handlers=r.handlers||{},s.invalid=r.invalid,s.unknown=r.unknown,s}const q1=/["&'<>`]/g,P1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,X1=/[|\\{}()[\]^$+*?.]/g,og=new WeakMap;function Q1(i,l){if(i=i.replace(l.subset?Z1(l.subset):q1,s),l.subset||l.escapeOnly)return i;return i.replace(P1,r).replace(Y1,s);function r(u,f,d){return l.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,d.charCodeAt(f+2),l)}function s(u,f,d){return l.format(u.charCodeAt(0),d.charCodeAt(f+1),l)}}function Z1(i){let l=og.get(i);return l||(l=K1(i),og.set(i,l)),l}function K1(i){const l=[];let r=-1;for(;++r<i.length;)l.push(i[r].replace(X1,"\\$&"));return new RegExp("(?:"+l.join("|")+")","g")}const $1=/[\dA-Fa-f]/;function J1(i,l,r){const s="&#x"+i.toString(16).toUpperCase();return r&&l&&!$1.test(String.fromCharCode(l))?s:s+";"}const W1=/\d/;function F1(i,l,r){const s="&#"+String(i);return r&&l&&!W1.test(String.fromCharCode(l))?s:s+";"}const eS=["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"],Xc={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:"€"},tS=["cent","copy","divide","gt","lt","not","para","times"],d_={}.hasOwnProperty,ff={};let Xs;for(Xs in Xc)d_.call(Xc,Xs)&&(ff[Xc[Xs]]=Xs);const nS=/[^\dA-Za-z]/;function lS(i,l,r,s){const u=String.fromCharCode(i);if(d_.call(ff,u)){const f=ff[u],d="&"+f;return r&&eS.includes(f)&&!tS.includes(f)&&(!s||l&&l!==61&&nS.test(String.fromCharCode(l)))?d:d+";"}return""}function aS(i,l,r){let s=J1(i,l,r.omitOptionalSemicolons),u;if((r.useNamedReferences||r.useShortestReferences)&&(u=lS(i,l,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!u)&&r.useShortestReferences){const f=F1(i,l,r.omitOptionalSemicolons);f.length<s.length&&(s=f)}return u&&(!r.useShortestReferences||u.length<s.length)?u:s}function Xa(i,l){return Q1(i,Object.assign({format:aS},l))}const iS=/^>|^->|<!--|-->|--!>|<!-$/g,rS=[">"],sS=["<",">"];function oS(i,l,r,s){return s.settings.bogusComments?"<?"+Xa(i.value,Object.assign({},s.settings.characterReferences,{subset:rS}))+">":"<!--"+i.value.replace(iS,u)+"-->";function u(f){return Xa(f,Object.assign({},s.settings.characterReferences,{subset:sS}))}}function uS(i,l,r,s){return"<!"+(s.settings.upperDoctype?"DOCTYPE":"doctype")+(s.settings.tightDoctype?"":" ")+"html>"}function ug(i,l){const r=String(i);if(typeof l!="string")throw new TypeError("Expected character");let s=0,u=r.indexOf(l);for(;u!==-1;)s++,u=r.indexOf(l,u+l.length);return s}function cS(i,l){const r=l||{};return(i[i.length-1]===""?[...i,""]:i).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function fS(i){return i.join(" ").trim()}const dS=/[ \t\n\f\r]/g;function Df(i){return typeof i=="object"?i.type==="text"?cg(i.value):!1:cg(i)}function cg(i){return i.replace(dS,"")===""}const ct=p_(1),h_=p_(-1),hS=[];function p_(i){return l;function l(r,s,u){const f=r?r.children:hS;let d=(s||0)+i,p=f[d];if(!u)for(;p&&Df(p);)d+=i,p=f[d];return p}}const pS={}.hasOwnProperty;function m_(i){return l;function l(r,s,u){return pS.call(i,r.tagName)&&i[r.tagName](r,s,u)}}const Lf=m_({body:gS,caption:Qc,colgroup:Qc,dd:bS,dt:vS,head:Qc,html:mS,li:yS,optgroup:SS,option:ES,p:_S,rp:fg,rt:fg,tbody:TS,td:dg,tfoot:AS,th:dg,thead:xS,tr:RS});function Qc(i,l,r){const s=ct(r,l,!0);return!s||s.type!=="comment"&&!(s.type==="text"&&Df(s.value.charAt(0)))}function mS(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function gS(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function _S(i,l,r){const s=ct(r,l);return s?s.type==="element"&&(s.tagName==="address"||s.tagName==="article"||s.tagName==="aside"||s.tagName==="blockquote"||s.tagName==="details"||s.tagName==="div"||s.tagName==="dl"||s.tagName==="fieldset"||s.tagName==="figcaption"||s.tagName==="figure"||s.tagName==="footer"||s.tagName==="form"||s.tagName==="h1"||s.tagName==="h2"||s.tagName==="h3"||s.tagName==="h4"||s.tagName==="h5"||s.tagName==="h6"||s.tagName==="header"||s.tagName==="hgroup"||s.tagName==="hr"||s.tagName==="main"||s.tagName==="menu"||s.tagName==="nav"||s.tagName==="ol"||s.tagName==="p"||s.tagName==="pre"||s.tagName==="section"||s.tagName==="table"||s.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function yS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="li"}function vS(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd"))}function bS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd")}function fg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="rp"||s.tagName==="rt")}function SS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="optgroup"}function ES(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="option"||s.tagName==="optgroup")}function xS(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot"))}function TS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot")}function AS(i,l,r){return!ct(r,l)}function RS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="tr"}function dg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="td"||s.tagName==="th")}const OS=m_({body:LS,colgroup:kS,head:DS,html:CS,tbody:NS});function CS(i){const l=ct(i,-1);return!l||l.type!=="comment"}function DS(i){const l=new Set;for(const s of i.children)if(s.type==="element"&&(s.tagName==="base"||s.tagName==="title")){if(l.has(s.tagName))return!1;l.add(s.tagName)}const r=i.children[0];return!r||r.type==="element"}function LS(i){const l=ct(i,-1,!0);return!l||l.type!=="comment"&&!(l.type==="text"&&Df(l.value.charAt(0)))&&!(l.type==="element"&&(l.tagName==="meta"||l.tagName==="link"||l.tagName==="script"||l.tagName==="style"||l.tagName==="template"))}function kS(i,l,r){const s=h_(r,l),u=ct(i,-1,!0);return r&&s&&s.type==="element"&&s.tagName==="colgroup"&&Lf(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function NS(i,l,r){const s=h_(r,l),u=ct(i,-1);return r&&s&&s.type==="element"&&(s.tagName==="thead"||s.tagName==="tbody")&&Lf(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const Qs={name:[[`
|
|
103
|
+
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Rn(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:r}){const s=this.parser.parseInline(r),u=Vp(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return l&&(f+=' title="'+Rn(l)+'"'),f+=">"+s+"</a>",f}image({href:i,title:l,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));const u=Vp(i);if(u===null)return Rn(r);i=u;let f=`<img src="${i}" alt="${r}"`;return l&&(f+=` title="${Rn(l)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Rn(i.text)}},Of=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},il=class Fc{constructor(l){w(this,"options");w(this,"renderer");w(this,"textRenderer");this.options=l||ia,this.options.renderer=this.options.renderer||new no,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Of}static parse(l,r){return new Fc(r).parse(l)}static parseInline(l,r){return new Fc(r).parseInline(l)}parse(l,r=!0){var u,f;let s="";for(let d=0;d<l.length;d++){const g=l[d];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[g.type]){const h=g,y=this.options.extensions.renderers[h.type].call({parser:this},h);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){s+=y||"";continue}}const p=g;switch(p.type){case"space":{s+=this.renderer.space(p);continue}case"hr":{s+=this.renderer.hr(p);continue}case"heading":{s+=this.renderer.heading(p);continue}case"code":{s+=this.renderer.code(p);continue}case"table":{s+=this.renderer.table(p);continue}case"blockquote":{s+=this.renderer.blockquote(p);continue}case"list":{s+=this.renderer.list(p);continue}case"html":{s+=this.renderer.html(p);continue}case"paragraph":{s+=this.renderer.paragraph(p);continue}case"text":{let h=p,y=this.renderer.text(h);for(;d+1<l.length&&l[d+1].type==="text";)h=l[++d],y+=`
|
|
104
|
+
`+this.renderer.text(h);r?s+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):s+=y;continue}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return s}parseInline(l,r=this.renderer){var u,f;let s="";for(let d=0;d<l.length;d++){const g=l[d];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[g.type]){const h=this.options.extensions.renderers[g.type].call({parser:this},g);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(g.type)){s+=h||"";continue}}const p=g;switch(p.type){case"escape":{s+=r.text(p);break}case"html":{s+=r.html(p);break}case"link":{s+=r.link(p);break}case"image":{s+=r.image(p);break}case"strong":{s+=r.strong(p);break}case"em":{s+=r.em(p);break}case"codespan":{s+=r.codespan(p);break}case"br":{s+=r.br(p);break}case"del":{s+=r.del(p);break}case"text":{s+=r.text(p);break}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return s}},Kc,Ks=(Kc=class{constructor(i){w(this,"options");w(this,"block");this.options=i||ia}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?al.lex:al.lexInline}provideParser(){return this.block?il.parse:il.parseInline}},w(Kc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Kc),ab=class{constructor(...i){w(this,"defaults",vf());w(this,"options",this.setOptions);w(this,"parse",this.parseMarkdown(!0));w(this,"parseInline",this.parseMarkdown(!1));w(this,"Parser",il);w(this,"Renderer",no);w(this,"TextRenderer",Of);w(this,"Lexer",al);w(this,"Tokenizer",to);w(this,"Hooks",Ks);this.use(...i)}walkTokens(i,l){var s,u;let r=[];for(const f of i)switch(r=r.concat(l.call(this,f)),f.type){case"table":{const d=f;for(const g of d.header)r=r.concat(this.walkTokens(g.tokens,l));for(const g of d.rows)for(const p of g)r=r.concat(this.walkTokens(p.tokens,l));break}case"list":{const d=f;r=r.concat(this.walkTokens(d.items,l));break}default:{const d=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[d.type]?this.defaults.extensions.childTokens[d.type].forEach(g=>{const p=d[g].flat(1/0);r=r.concat(this.walkTokens(p,l))}):d.tokens&&(r=r.concat(this.walkTokens(d.tokens,l)))}}return r}use(...i){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){const f=l.renderers[u.name];f?l.renderers[u.name]=function(...d){let g=u.renderer.apply(this,d);return g===!1&&(g=f.apply(this,d)),g}:l.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=l[u.level];f?f.unshift(u.tokenizer):l[u.level]=[u.tokenizer],u.start&&(u.level==="block"?l.startBlock?l.startBlock.push(u.start):l.startBlock=[u.start]:u.level==="inline"&&(l.startInline?l.startInline.push(u.start):l.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(l.childTokens[u.name]=u.childTokens)}),s.extensions=l),r.renderer){const u=this.defaults.renderer||new no(this.defaults);for(const f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const d=f,g=r.renderer[d],p=u[d];u[d]=(...h)=>{let y=g.apply(u,h);return y===!1&&(y=p.apply(u,h)),y||""}}s.renderer=u}if(r.tokenizer){const u=this.defaults.tokenizer||new to(this.defaults);for(const f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const d=f,g=r.tokenizer[d],p=u[d];u[d]=(...h)=>{let y=g.apply(u,h);return y===!1&&(y=p.apply(u,h)),y}}s.tokenizer=u}if(r.hooks){const u=this.defaults.hooks||new Ks;for(const f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const d=f,g=r.hooks[d],p=u[d];Ks.passThroughHooks.has(f)?u[d]=h=>{if(this.defaults.async)return Promise.resolve(g.call(u,h)).then(b=>p.call(u,b));const y=g.call(u,h);return p.call(u,y)}:u[d]=(...h)=>{let y=g.apply(u,h);return y===!1&&(y=p.apply(u,h)),y}}s.hooks=u}if(r.walkTokens){const u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(d){let g=[];return g.push(f.call(this,d)),u&&(g=g.concat(u.call(this,d))),g}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return al.lex(i,l??this.defaults)}parser(i,l){return il.parse(i,l??this.defaults)}parseMarkdown(i){return(r,s)=>{const u={...s},f={...this.defaults,...u},d=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&u.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const g=f.hooks?f.hooks.provideLexer():i?al.lex:al.lexInline,p=f.hooks?f.hooks.provideParser():i?il.parse:il.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(r):r).then(h=>g(h,f)).then(h=>f.hooks?f.hooks.processAllTokens(h):h).then(h=>f.walkTokens?Promise.all(this.walkTokens(h,f.walkTokens)).then(()=>h):h).then(h=>p(h,f)).then(h=>f.hooks?f.hooks.postprocess(h):h).catch(d);try{f.hooks&&(r=f.hooks.preprocess(r));let h=g(r,f);f.hooks&&(h=f.hooks.processAllTokens(h)),f.walkTokens&&this.walkTokens(h,f.walkTokens);let y=p(h,f);return f.hooks&&(y=f.hooks.postprocess(y)),y}catch(h){return d(h)}}}onError(i,l){return r=>{if(r.message+=`
|
|
105
|
+
Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Rn(r.message+"",!0)+"</pre>";return l?Promise.resolve(s):s}if(l)return Promise.reject(r);throw r}}},aa=new ab;function Te(i,l){return aa.parse(i,l)}Te.options=Te.setOptions=function(i){return aa.setOptions(i),Te.defaults=aa.defaults,Dg(Te.defaults),Te};Te.getDefaults=vf;Te.defaults=ia;Te.use=function(...i){return aa.use(...i),Te.defaults=aa.defaults,Dg(Te.defaults),Te};Te.walkTokens=function(i,l){return aa.walkTokens(i,l)};Te.parseInline=aa.parseInline;Te.Parser=il;Te.parser=il.parse;Te.Renderer=no;Te.TextRenderer=Of;Te.Lexer=al;Te.lexer=al.lex;Te.Tokenizer=to;Te.Hooks=Ks;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;il.parse;al.lex;/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Vg,setPrototypeOf:qp,isFrozen:ib,getPrototypeOf:rb,getOwnPropertyDescriptor:sb}=Object;let{freeze:Ct,seal:mn,create:$s}=Object,{apply:ef,construct:tf}=typeof Reflect<"u"&&Reflect;Ct||(Ct=function(l){return l});mn||(mn=function(l){return l});ef||(ef=function(l,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return l.apply(r,u)});tf||(tf=function(l){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new l(...s)});const Is=Dt(Array.prototype.forEach),ob=Dt(Array.prototype.lastIndexOf),Pp=Dt(Array.prototype.pop),tr=Dt(Array.prototype.push),ub=Dt(Array.prototype.splice),Js=Dt(String.prototype.toLowerCase),zc=Dt(String.prototype.toString),jc=Dt(String.prototype.match),nr=Dt(String.prototype.replace),cb=Dt(String.prototype.indexOf),fb=Dt(String.prototype.trim),Jt=Dt(Object.prototype.hasOwnProperty),At=Dt(RegExp.prototype.test),lr=db(TypeError);function Dt(i){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return ef(i,l,s)}}function db(i){return function(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return tf(i,r)}}function pe(i,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Js;qp&&qp(i,null);let s=l.length;for(;s--;){let u=l[s];if(typeof u=="string"){const f=r(u);f!==u&&(ib(l)||(l[s]=f),u=f)}i[u]=!0}return i}function hb(i){for(let l=0;l<i.length;l++)Jt(i,l)||(i[l]=null);return i}function On(i){const l=$s(null);for(const[r,s]of Vg(i))Jt(i,r)&&(Array.isArray(s)?l[r]=hb(s):s&&typeof s=="object"&&s.constructor===Object?l[r]=On(s):l[r]=s);return l}function ar(i,l){for(;i!==null;){const s=sb(i,l);if(s){if(s.get)return Dt(s.get);if(typeof s.value=="function")return Dt(s.value)}i=rb(i)}function r(){return null}return r}const Yp=Ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Uc=Ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Bc=Ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mb=Ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hc=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),pb=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Xp=Ct(["#text"]),Qp=Ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Vc=Ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zp=Ct(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qs=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gb=mn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_b=mn(/<%[\w\W]*|[\w\W]*%>/gm),yb=mn(/\$\{[\w\W]*/gm),vb=mn(/^data-[\-\w.\u00B7-\uFFFF]+$/),bb=mn(/^aria-[\-\w]+$/),Gg=mn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sb=mn(/^(?:\w+script|data):/i),Eb=mn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ig=mn(/^html$/i),xb=mn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kp=Object.freeze({__proto__:null,ARIA_ATTR:bb,ATTR_WHITESPACE:Eb,CUSTOM_ELEMENT:xb,DATA_ATTR:vb,DOCTYPE_NAME:Ig,ERB_EXPR:_b,IS_ALLOWED_URI:Gg,IS_SCRIPT_OR_DATA:Sb,MUSTACHE_EXPR:gb,TMPLIT_EXPR:yb});const ir={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tb=function(){return typeof window>"u"?null:window},Ab=function(l,r){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},$p=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function qg(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tb();const l=ne=>qg(ne);if(l.version="3.3.3",l.removed=[],!i||!i.document||i.document.nodeType!==ir.document||!i.Element)return l.isSupported=!1,l;let{document:r}=i;const s=r,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:g,Element:p,NodeFilter:h,NamedNodeMap:y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:b,DOMParser:E,trustedTypes:T}=i,C=p.prototype,U=ar(C,"cloneNode"),q=ar(C,"remove"),B=ar(C,"nextSibling"),I=ar(C,"childNodes"),P=ar(C,"parentNode");if(typeof d=="function"){const ne=r.createElement("template");ne.content&&ne.content.ownerDocument&&(r=ne.content.ownerDocument)}let X,ae="";const{implementation:fe,createNodeIterator:te,createDocumentFragment:Ue,getElementsByTagName:pt}=r,{importNode:kt}=s;let Re=$p();l.isSupported=typeof Vg=="function"&&typeof P=="function"&&fe&&fe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ke,ERB_EXPR:Lt,TMPLIT_EXPR:Ye,DATA_ATTR:Fe,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:Oe}=Kp;let{IS_ALLOWED_URI:Ce}=Kp,A=null;const G=pe({},[...Yp,...Uc,...Bc,...Hc,...Xp]);let Q=null;const W=pe({},[...Qp,...Vc,...Zp,...qs]);let ee=Object.seal($s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,be=null;const Ge=Object.seal($s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,kn=!0,zl=!1,sa=!0,Ln=!1,Wt=!0,pn=!1,jl=!1,Ja=!1,Nn=!1,ol=!1,ul=!1,oa=!0,br=!1;const bo="user-content-";let gt=!0,Ul=!1,wn={},Gt=null;const cl=pe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Sr=null;const Wa=pe({},["audio","video","img","source","image","track"]);let Fa=null;const Er=pe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bn="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let et=dt,ei=!1,ti=null;const So=pe({},[bn,ft,dt],zc);let Mn=pe({},["mi","mo","mn","ms","mtext"]),zn=pe({},["annotation-xml"]);const ua=pe({},["title","style","font","a","script"]);let It=null;const ca=["application/xhtml+xml","text/html"],Bl="text/html";let $e=null,jn=null;const ni=r.createElement("form"),fl=function(R){return R instanceof RegExp||R instanceof Function},li=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jn&&jn===R)){if((!R||typeof R!="object")&&(R={}),R=On(R),It=ca.indexOf(R.PARSER_MEDIA_TYPE)===-1?Bl:R.PARSER_MEDIA_TYPE,$e=It==="application/xhtml+xml"?zc:Js,A=Jt(R,"ALLOWED_TAGS")?pe({},R.ALLOWED_TAGS,$e):G,Q=Jt(R,"ALLOWED_ATTR")?pe({},R.ALLOWED_ATTR,$e):W,ti=Jt(R,"ALLOWED_NAMESPACES")?pe({},R.ALLOWED_NAMESPACES,zc):So,Fa=Jt(R,"ADD_URI_SAFE_ATTR")?pe(On(Er),R.ADD_URI_SAFE_ATTR,$e):Er,Sr=Jt(R,"ADD_DATA_URI_TAGS")?pe(On(Wa),R.ADD_DATA_URI_TAGS,$e):Wa,Gt=Jt(R,"FORBID_CONTENTS")?pe({},R.FORBID_CONTENTS,$e):cl,ue=Jt(R,"FORBID_TAGS")?pe({},R.FORBID_TAGS,$e):On({}),be=Jt(R,"FORBID_ATTR")?pe({},R.FORBID_ATTR,$e):On({}),wn=Jt(R,"USE_PROFILES")?R.USE_PROFILES:!1,Ie=R.ALLOW_ARIA_ATTR!==!1,kn=R.ALLOW_DATA_ATTR!==!1,zl=R.ALLOW_UNKNOWN_PROTOCOLS||!1,sa=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ln=R.SAFE_FOR_TEMPLATES||!1,Wt=R.SAFE_FOR_XML!==!1,pn=R.WHOLE_DOCUMENT||!1,Nn=R.RETURN_DOM||!1,ol=R.RETURN_DOM_FRAGMENT||!1,ul=R.RETURN_TRUSTED_TYPE||!1,Ja=R.FORCE_BODY||!1,oa=R.SANITIZE_DOM!==!1,br=R.SANITIZE_NAMED_PROPS||!1,gt=R.KEEP_CONTENT!==!1,Ul=R.IN_PLACE||!1,Ce=R.ALLOWED_URI_REGEXP||Gg,et=R.NAMESPACE||dt,Mn=R.MATHML_TEXT_INTEGRATION_POINTS||Mn,zn=R.HTML_INTEGRATION_POINTS||zn,ee=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ln&&(kn=!1),ol&&(Nn=!0),wn&&(A=pe({},Xp),Q=$s(null),wn.html===!0&&(pe(A,Yp),pe(Q,Qp)),wn.svg===!0&&(pe(A,Uc),pe(Q,Vc),pe(Q,qs)),wn.svgFilters===!0&&(pe(A,Bc),pe(Q,Vc),pe(Q,qs)),wn.mathMl===!0&&(pe(A,Hc),pe(Q,Zp),pe(Q,qs))),Jt(R,"ADD_TAGS")||(Ge.tagCheck=null),Jt(R,"ADD_ATTR")||(Ge.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Ge.tagCheck=R.ADD_TAGS:(A===G&&(A=On(A)),pe(A,R.ADD_TAGS,$e))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Ge.attributeCheck=R.ADD_ATTR:(Q===W&&(Q=On(Q)),pe(Q,R.ADD_ATTR,$e))),R.ADD_URI_SAFE_ATTR&&pe(Fa,R.ADD_URI_SAFE_ATTR,$e),R.FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.FORBID_CONTENTS,$e)),R.ADD_FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.ADD_FORBID_CONTENTS,$e)),gt&&(A["#text"]=!0),pn&&pe(A,["html","head","body"]),A.table&&(pe(A,["tbody"]),delete ue.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');X=R.TRUSTED_TYPES_POLICY,ae=X.createHTML("")}else X===void 0&&(X=Ab(T,u)),X!==null&&typeof ae=="string"&&(ae=X.createHTML(""));Ct&&Ct(R),jn=R}},ai=pe({},[...Uc,...Bc,...mb]),ii=pe({},[...Hc,...pb]),xr=function(R){let Y=P(R);(!Y||!Y.tagName)&&(Y={namespaceURI:et,tagName:"template"});const J=Js(R.tagName),De=Js(Y.tagName);return ti[R.namespaceURI]?R.namespaceURI===ft?Y.namespaceURI===dt?J==="svg":Y.namespaceURI===bn?J==="svg"&&(De==="annotation-xml"||Mn[De]):!!ai[J]:R.namespaceURI===bn?Y.namespaceURI===dt?J==="math":Y.namespaceURI===ft?J==="math"&&zn[De]:!!ii[J]:R.namespaceURI===dt?Y.namespaceURI===ft&&!zn[De]||Y.namespaceURI===bn&&!Mn[De]?!1:!ii[J]&&(ua[J]||!ai[J]):!!(It==="application/xhtml+xml"&&ti[R.namespaceURI]):!1},Nt=function(R){tr(l.removed,{element:R});try{P(R).removeChild(R)}catch{q(R)}},gn=function(R,Y){try{tr(l.removed,{attribute:Y.getAttributeNode(R),from:Y})}catch{tr(l.removed,{attribute:null,from:Y})}if(Y.removeAttribute(R),R==="is")if(Nn||ol)try{Nt(Y)}catch{}else try{Y.setAttribute(R,"")}catch{}},ri=function(R){let Y=null,J=null;if(Ja)R="<remove></remove>"+R;else{const me=jc(R,/^[\r\n\t ]+/);J=me&&me[0]}It==="application/xhtml+xml"&&et===dt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const De=X?X.createHTML(R):R;if(et===dt)try{Y=new E().parseFromString(De,It)}catch{}if(!Y||!Y.documentElement){Y=fe.createDocument(et,"template",null);try{Y.documentElement.innerHTML=ei?ae:De}catch{}}const Xe=Y.body||Y.documentElement;return R&&J&&Xe.insertBefore(r.createTextNode(J),Xe.childNodes[0]||null),et===dt?pt.call(Y,pn?"html":"body")[0]:pn?Y.documentElement:Xe},si=function(R){return te.call(R.ownerDocument||R,R,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ft=function(R){return R instanceof b&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof y)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},tt=function(R){return typeof g=="function"&&R instanceof g};function qe(ne,R,Y){Is(ne,J=>{J.call(l,R,Y,jn)})}const Un=function(R){let Y=null;if(qe(Re.beforeSanitizeElements,R,null),Ft(R))return Nt(R),!0;const J=$e(R.nodeName);if(qe(Re.uponSanitizeElement,R,{tagName:J,allowedTags:A}),Wt&&R.hasChildNodes()&&!tt(R.firstElementChild)&&At(/<[/\w!]/g,R.innerHTML)&&At(/<[/\w!]/g,R.textContent)||R.nodeType===ir.progressingInstruction||Wt&&R.nodeType===ir.comment&&At(/<[/\w]/g,R.data))return Nt(R),!0;if(!(Ge.tagCheck instanceof Function&&Ge.tagCheck(J))&&(!A[J]||ue[J])){if(!ue[J]&&Tr(J)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J)))return!1;if(gt&&!Gt[J]){const De=P(R)||R.parentNode,Xe=I(R)||R.childNodes;if(Xe&&De){const me=Xe.length;for(let _t=me-1;_t>=0;--_t){const en=U(Xe[_t],!0);en.__removalCount=(R.__removalCount||0)+1,De.insertBefore(en,B(R))}}}return Nt(R),!0}return R instanceof p&&!xr(R)||(J==="noscript"||J==="noembed"||J==="noframes")&&At(/<\/no(script|embed|frames)/i,R.innerHTML)?(Nt(R),!0):(Ln&&R.nodeType===ir.text&&(Y=R.textContent,Is([Ke,Lt,Ye],De=>{Y=nr(Y,De," ")}),R.textContent!==Y&&(tr(l.removed,{element:R.cloneNode()}),R.textContent=Y)),qe(Re.afterSanitizeElements,R,null),!1)},fa=function(R,Y,J){if(be[Y]||oa&&(Y==="id"||Y==="name")&&(J in r||J in ni))return!1;if(!(kn&&!be[Y]&&At(Fe,Y))){if(!(Ie&&At(z,Y))){if(!(Ge.attributeCheck instanceof Function&&Ge.attributeCheck(Y,R))){if(!Q[Y]||be[Y]){if(!(Tr(R)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,R)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(R))&&(ee.attributeNameCheck instanceof RegExp&&At(ee.attributeNameCheck,Y)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Y,R))||Y==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J))))return!1}else if(!Fa[Y]){if(!At(Ce,nr(J,re,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&R!=="script"&&cb(J,"data:")===0&&Sr[R])){if(!(zl&&!At($,nr(J,re,"")))){if(J)return!1}}}}}}}return!0},Tr=function(R){return R!=="annotation-xml"&&jc(R,Oe)},Ar=function(R){qe(Re.beforeSanitizeAttributes,R,null);const{attributes:Y}=R;if(!Y||Ft(R))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let De=Y.length;for(;De--;){const Xe=Y[De],{name:me,namespaceURI:_t,value:en}=Xe,wt=$e(me),Sn=en;let st=me==="value"?Sn:fb(Sn);if(J.attrName=wt,J.attrValue=st,J.keepAttr=!0,J.forceKeepAttr=void 0,qe(Re.uponSanitizeAttribute,R,J),st=J.attrValue,br&&(wt==="id"||wt==="name")&&(gn(me,R),st=bo+st),Wt&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,st)){gn(me,R);continue}if(wt==="attributename"&&jc(st,"href")){gn(me,R);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){gn(me,R);continue}if(!sa&&At(/\/>/i,st)){gn(me,R);continue}Ln&&Is([Ke,Lt,Ye],ui=>{st=nr(st,ui," ")});const oi=$e(R.nodeName);if(!fa(oi,wt,st)){gn(me,R);continue}if(X&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!_t)switch(T.getAttributeType(oi,wt)){case"TrustedHTML":{st=X.createHTML(st);break}case"TrustedScriptURL":{st=X.createScriptURL(st);break}}if(st!==Sn)try{_t?R.setAttributeNS(_t,me,st):R.setAttribute(me,st),Ft(R)?Nt(R):Pp(l.removed)}catch{gn(me,R)}}qe(Re.afterSanitizeAttributes,R,null)},Rr=function ne(R){let Y=null;const J=si(R);for(qe(Re.beforeSanitizeShadowDOM,R,null);Y=J.nextNode();)qe(Re.uponSanitizeShadowNode,Y,null),Un(Y),Ar(Y),Y.content instanceof f&&ne(Y.content);qe(Re.afterSanitizeShadowDOM,R,null)};return l.sanitize=function(ne){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,J=null,De=null,Xe=null;if(ei=!ne,ei&&(ne="<!-->"),typeof ne!="string"&&!tt(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw lr("dirty is not a string, aborting")}else throw lr("toString is not a function");if(!l.isSupported)return ne;if(jl||li(R),l.removed=[],typeof ne=="string"&&(Ul=!1),Ul){if(ne.nodeName){const en=$e(ne.nodeName);if(!A[en]||ue[en])throw lr("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof g)Y=ri("<!---->"),J=Y.ownerDocument.importNode(ne,!0),J.nodeType===ir.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?Y=J:Y.appendChild(J);else{if(!Nn&&!Ln&&!pn&&ne.indexOf("<")===-1)return X&&ul?X.createHTML(ne):ne;if(Y=ri(ne),!Y)return Nn?null:ul?ae:""}Y&&Ja&&Nt(Y.firstChild);const me=si(Ul?ne:Y);for(;De=me.nextNode();)Un(De),Ar(De),De.content instanceof f&&Rr(De.content);if(Ul)return ne;if(Nn){if(ol)for(Xe=Ue.call(Y.ownerDocument);Y.firstChild;)Xe.appendChild(Y.firstChild);else Xe=Y;return(Q.shadowroot||Q.shadowrootmode)&&(Xe=kt.call(s,Xe,!0)),Xe}let _t=pn?Y.outerHTML:Y.innerHTML;return pn&&A["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&At(Ig,Y.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
|
|
106
|
+
`+_t),Ln&&Is([Ke,Lt,Ye],en=>{_t=nr(_t,en," ")}),X&&ul?X.createHTML(_t):_t},l.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};li(ne),jl=!0},l.clearConfig=function(){jn=null,jl=!1},l.isValidAttribute=function(ne,R,Y){jn||li({});const J=$e(ne),De=$e(R);return fa(J,De,Y)},l.addHook=function(ne,R){typeof R=="function"&&tr(Re[ne],R)},l.removeHook=function(ne,R){if(R!==void 0){const Y=ob(Re[ne],R);return Y===-1?void 0:ub(Re[ne],Y,1)[0]}return Pp(Re[ne])},l.removeHooks=function(ne){Re[ne]=[]},l.removeAllHooks=function(){Re=$p()},l}var Jp=qg();const Rb="modulepreload",Ob=function(i){return"/"+i},Wp={},S=function(l,r,s){let u=Promise.resolve();if(r&&r.length>0){let d=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));u=d(r.map(h=>{if(h=Ob(h),h in Wp)return;Wp[h]=!0;const y=h.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${b}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":Rb,y||(E.as="script"),E.crossOrigin="",E.href=h,p&&E.setAttribute("nonce",p),document.head.appendChild(E),y)return new Promise((T,C)=>{E.addEventListener("load",T),E.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${h}`)))})}))}function f(d){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=d,window.dispatchEvent(g),!g.defaultPrevented)throw d}return u.then(d=>{for(const g of d||[])g.status==="rejected"&&f(g.reason);return l().catch(f)})},Pg=[{id:"abap",name:"ABAP",import:()=>S(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>S(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>S(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>S(()=>import("./angular-html-LfdN0zeE.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>S(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>S(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>S(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>S(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>S(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>S(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>S(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>S(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>S(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>S(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>S(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>S(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>S(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>S(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>S(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>S(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>S(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>S(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>S(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>S(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>S(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>S(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>S(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>S(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>S(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>S(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>S(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>S(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>S(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>S(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>S(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>S(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>S(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>S(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>S(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>S(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>S(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>S(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>S(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>S(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>S(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>S(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>S(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>S(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>S(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>S(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>S(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>S(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>S(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>S(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>S(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>S(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>S(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>S(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>S(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>S(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>S(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>S(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>S(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>S(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>S(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>S(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>S(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>S(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>S(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>S(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>S(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>S(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>S(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>S(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>S(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>S(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>S(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>S(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>S(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>S(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>S(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>S(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>S(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>S(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>S(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>S(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>S(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>S(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>S(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>S(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>S(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>S(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>S(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>S(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>S(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>S(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>S(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>S(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>S(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>S(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>S(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>S(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>S(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>S(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>S(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>S(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>S(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>S(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>S(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>S(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>S(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>S(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>S(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>S(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>S(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>S(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>S(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>S(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>S(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>S(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>S(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>S(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>S(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>S(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>S(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>S(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>S(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>S(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>S(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>S(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>S(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>S(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>S(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>S(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>S(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>S(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>S(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>S(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>S(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>S(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>S(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>S(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>S(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>S(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>S(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>S(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>S(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>S(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>S(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>S(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>S(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>S(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>S(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>S(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>S(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>S(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>S(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>S(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>S(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>S(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>S(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>S(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>S(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>S(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>S(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>S(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>S(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>S(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>S(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>S(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>S(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>S(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>S(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>S(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>S(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>S(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>S(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>S(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>S(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>S(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>S(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>S(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>S(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>S(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>S(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>S(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>S(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>S(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>S(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>S(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>S(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>S(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>S(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>S(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>S(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>S(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>S(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>S(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>S(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>S(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>S(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>S(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>S(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>S(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>S(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>S(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>S(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>S(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>S(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>S(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>S(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>S(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>S(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>S(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>S(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>S(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>S(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>S(()=>import("./zig-BVz_zdnA.js"),[])}],Cb=Object.fromEntries(Pg.map(i=>[i.id,i.import])),Db=Object.fromEntries(Pg.flatMap(i=>{var l;return((l=i.aliases)==null?void 0:l.map(r=>[r,i.import]))||[]})),kb={...Cb,...Db},Lb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>S(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>S(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>S(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>S(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>S(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>S(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>S(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>S(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>S(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>S(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>S(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>S(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>S(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>S(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>S(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>S(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>S(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>S(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>S(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>S(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>S(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>S(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>S(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>S(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>S(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>S(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>S(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>S(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>S(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>S(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>S(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>S(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>S(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>S(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>S(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>S(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>S(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>S(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>S(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>S(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>S(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>S(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>S(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>S(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>S(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>S(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>S(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>S(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>S(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>S(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>S(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>S(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>S(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>S(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Nb=Object.fromEntries(Lb.map(i=>[i.id,i.import]));let sl=class extends Error{constructor(l){super(l),this.name="ShikiError"}},Cf=class extends Error{constructor(l){super(l),this.name="ShikiError"}};function wb(){return 2147483648}function Mb(){return typeof performance<"u"?performance.now():Date.now()}const zb=(i,l)=>i+(l-i%l)%l;async function jb(i){let l,r;const s={};function u(T){r=T,s.HEAPU8=new Uint8Array(T),s.HEAPU32=new Uint32Array(T)}function f(T,C,U){s.HEAPU8.copyWithin(T,C,C+U)}function d(T){try{return l.grow(T-r.byteLength+65535>>>16),u(l.buffer),1}catch{}}function g(T){const C=s.HEAPU8.length;T=T>>>0;const U=wb();if(T>U)return!1;for(let q=1;q<=4;q*=2){let B=C*(1+.2/q);B=Math.min(B,T+100663296);const I=Math.min(U,zb(Math.max(T,B),65536));if(d(I))return!0}return!1}const p=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(T,C,U=1024){const q=C+U;let B=C;for(;T[B]&&!(B>=q);)++B;if(B-C>16&&T.buffer&&p)return p.decode(T.subarray(C,B));let I="";for(;C<B;){let P=T[C++];if(!(P&128)){I+=String.fromCharCode(P);continue}const X=T[C++]&63;if((P&224)===192){I+=String.fromCharCode((P&31)<<6|X);continue}const ae=T[C++]&63;if((P&240)===224?P=(P&15)<<12|X<<6|ae:P=(P&7)<<18|X<<12|ae<<6|T[C++]&63,P<65536)I+=String.fromCharCode(P);else{const fe=P-65536;I+=String.fromCharCode(55296|fe>>10,56320|fe&1023)}}return I}function y(T,C){return T?h(s.HEAPU8,T,C):""}const b={emscripten_get_now:Mb,emscripten_memcpy_big:f,emscripten_resize_heap:g,fd_write:()=>0};async function E(){const C=await i({env:b,wasi_snapshot_preview1:b});l=C.memory,u(l.buffer),Object.assign(s,C),s.UTF8ToString=y}return await E(),s}var Ub=Object.defineProperty,Bb=(i,l,r)=>l in i?Ub(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r,ut=(i,l,r)=>(Bb(i,typeof l!="symbol"?l+"":l,r),r);let mt=null;function Hb(i){throw new Cf(i.UTF8ToString(i.getLastOnigError()))}class _o{constructor(l){ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16Value"),ut(this,"utf8Value"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16");const r=l.length,s=_o._utf8ByteLength(l),u=s!==r,f=u?new Uint32Array(r+1):null;u&&(f[r]=s);const d=u?new Uint32Array(s+1):null;u&&(d[s]=r);const g=new Uint8Array(s);let p=0;for(let h=0;h<r;h++){const y=l.charCodeAt(h);let b=y,E=!1;if(y>=55296&&y<=56319&&h+1<r){const T=l.charCodeAt(h+1);T>=56320&&T<=57343&&(b=(y-55296<<10)+65536|T-56320,E=!0)}u&&(f[h]=p,E&&(f[h+1]=p),b<=127?d[p+0]=h:b<=2047?(d[p+0]=h,d[p+1]=h):b<=65535?(d[p+0]=h,d[p+1]=h,d[p+2]=h):(d[p+0]=h,d[p+1]=h,d[p+2]=h,d[p+3]=h)),b<=127?g[p++]=b:b<=2047?(g[p++]=192|(b&1984)>>>6,g[p++]=128|(b&63)>>>0):b<=65535?(g[p++]=224|(b&61440)>>>12,g[p++]=128|(b&4032)>>>6,g[p++]=128|(b&63)>>>0):(g[p++]=240|(b&1835008)>>>18,g[p++]=128|(b&258048)>>>12,g[p++]=128|(b&4032)>>>6,g[p++]=128|(b&63)>>>0),E&&h++}this.utf16Length=r,this.utf8Length=s,this.utf16Value=l,this.utf8Value=g,this.utf16OffsetToUtf8=f,this.utf8OffsetToUtf16=d}static _utf8ByteLength(l){let r=0;for(let s=0,u=l.length;s<u;s++){const f=l.charCodeAt(s);let d=f,g=!1;if(f>=55296&&f<=56319&&s+1<u){const p=l.charCodeAt(s+1);p>=56320&&p<=57343&&(d=(f-55296<<10)+65536|p-56320,g=!0)}d<=127?r+=1:d<=2047?r+=2:d<=65535?r+=3:r+=4,g&&s++}return r}createString(l){const r=l.omalloc(this.utf8Length);return l.HEAPU8.set(this.utf8Value,r),r}}const Cn=class{constructor(i){if(ut(this,"id",++Cn.LAST_ID),ut(this,"_onigBinding"),ut(this,"content"),ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16"),ut(this,"ptr"),!mt)throw new Cf("Must invoke loadWasm first.");this._onigBinding=mt,this.content=i;const l=new _o(i);this.utf16Length=l.utf16Length,this.utf8Length=l.utf8Length,this.utf16OffsetToUtf8=l.utf16OffsetToUtf8,this.utf8OffsetToUtf16=l.utf8OffsetToUtf16,this.utf8Length<1e4&&!Cn._sharedPtrInUse?(Cn._sharedPtr||(Cn._sharedPtr=mt.omalloc(1e4)),Cn._sharedPtrInUse=!0,mt.HEAPU8.set(l.utf8Value,Cn._sharedPtr),this.ptr=Cn._sharedPtr):this.ptr=l.createString(mt)}convertUtf8OffsetToUtf16(i){return this.utf8OffsetToUtf16?i<0?0:i>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[i]:i}convertUtf16OffsetToUtf8(i){return this.utf16OffsetToUtf8?i<0?0:i>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[i]:i}dispose(){this.ptr===Cn._sharedPtr?Cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let _r=Cn;ut(_r,"LAST_ID",0);ut(_r,"_sharedPtr",0);ut(_r,"_sharedPtrInUse",!1);class Vb{constructor(l){if(ut(this,"_onigBinding"),ut(this,"_ptr"),!mt)throw new Cf("Must invoke loadWasm first.");const r=[],s=[];for(let g=0,p=l.length;g<p;g++){const h=new _o(l[g]);r[g]=h.createString(mt),s[g]=h.utf8Length}const u=mt.omalloc(4*l.length);mt.HEAPU32.set(r,u/4);const f=mt.omalloc(4*l.length);mt.HEAPU32.set(s,f/4);const d=mt.createOnigScanner(u,f,l.length);for(let g=0,p=l.length;g<p;g++)mt.ofree(r[g]);mt.ofree(f),mt.ofree(u),d===0&&Hb(mt),this._onigBinding=mt,this._ptr=d}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(l,r,s){let u=0;if(typeof s=="number"&&(u=s),typeof l=="string"){l=new _r(l);const f=this._findNextMatchSync(l,r,!1,u);return l.dispose(),f}return this._findNextMatchSync(l,r,!1,u)}_findNextMatchSync(l,r,s,u){const f=this._onigBinding,d=f.findNextOnigScannerMatch(this._ptr,l.id,l.ptr,l.utf8Length,l.convertUtf16OffsetToUtf8(r),u);if(d===0)return null;const g=f.HEAPU32;let p=d/4;const h=g[p++],y=g[p++],b=[];for(let E=0;E<y;E++){const T=l.convertUtf8OffsetToUtf16(g[p++]),C=l.convertUtf8OffsetToUtf16(g[p++]);b[E]={start:T,end:C,length:C-T}}return{index:h,captureIndices:b}}}function Gb(i){return typeof i.instantiator=="function"}function Ib(i){return typeof i.default=="function"}function qb(i){return typeof i.data<"u"}function Pb(i){return typeof Response<"u"&&i instanceof Response}function Yb(i){var l;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((l=Buffer.isBuffer)==null?void 0:l.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let Ps;function Xb(i){if(Ps)return Ps;async function l(){mt=await jb(async r=>{let s=i;return s=await s,typeof s=="function"&&(s=await s(r)),typeof s=="function"&&(s=await s(r)),Gb(s)?s=await s.instantiator(r):Ib(s)?s=await s.default(r):(qb(s)&&(s=s.data),Pb(s)?typeof WebAssembly.instantiateStreaming=="function"?s=await Qb(s)(r):s=await Zb(s)(r):Yb(s)?s=await Gc(s)(r):s instanceof WebAssembly.Module?s=await Gc(s)(r):"default"in s&&s.default instanceof WebAssembly.Module&&(s=await Gc(s.default)(r))),"instance"in s&&(s=s.instance),"exports"in s&&(s=s.exports),s})}return Ps=l(),Ps}function Gc(i){return l=>WebAssembly.instantiate(i,l)}function Qb(i){return l=>WebAssembly.instantiateStreaming(i,l)}function Zb(i){return async l=>{const r=await i.arrayBuffer();return WebAssembly.instantiate(r,l)}}let Kb;function $b(){return Kb}async function Yg(i){return i&&await Xb(i),{createScanner(l){return new Vb(l.map(r=>typeof r=="string"?r:r.source))},createString(l){return new _r(l)}}}function Jb(i){return Df(i)}function Df(i){return Array.isArray(i)?Wb(i):i instanceof RegExp?i:typeof i=="object"?Fb(i):i}function Wb(i){let l=[];for(let r=0,s=i.length;r<s;r++)l[r]=Df(i[r]);return l}function Fb(i){let l={};for(let r in i)l[r]=Df(i[r]);return l}function Xg(i,...l){return l.forEach(r=>{for(let s in r)i[s]=r[s]}),i}function Qg(i){const l=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return l===0?i:~l===i.length-1?Qg(i.substring(0,i.length-1)):i.substr(~l+1)}var Ic=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ys=class{static hasCaptures(i){return i===null?!1:(Ic.lastIndex=0,Ic.test(i))}static replaceCaptures(i,l,r){return i.replace(Ic,(s,u,f,d)=>{let g=r[parseInt(u||f,10)];if(g){let p=l.substring(g.start,g.end);for(;p[0]===".";)p=p.substring(1);switch(d){case"downcase":return p.toLowerCase();case"upcase":return p.toUpperCase();default:return p}}else return s})}};function Zg(i,l){return i<l?-1:i>l?1:0}function Kg(i,l){if(i===null&&l===null)return 0;if(!i)return-1;if(!l)return 1;let r=i.length,s=l.length;if(r===s){for(let u=0;u<r;u++){let f=Zg(i[u],l[u]);if(f!==0)return f}return 0}return r-s}function Fp(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function $g(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Jg=class{constructor(i){w(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const l=this.fn(i);return this.cache.set(i,l),l}},lo=class{constructor(i,l,r){w(this,"_cachedMatchRoot",new Jg(i=>this._root.match(i)));this._colorMap=i,this._defaults=l,this._root=r}static createFromRawTheme(i,l){return this.createFromParsedTheme(n1(i),l)}static createFromParsedTheme(i,l){return a1(i,l)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const l=i.scopeName,s=this._cachedMatchRoot.get(l).find(u=>e1(i.parent,u.parentScopes));return s?new Wg(s.fontStyle,s.foreground,s.background):null}},qc=class Ws{constructor(l,r){this.parent=l,this.scopeName=r}static push(l,r){for(const s of r)l=new Ws(l,s);return l}static from(...l){let r=null;for(let s=0;s<l.length;s++)r=new Ws(r,l[s]);return r}push(l){return new Ws(this,l)}getSegments(){let l=this;const r=[];for(;l;)r.push(l.scopeName),l=l.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(l){return this===l?!0:this.parent===null?!1:this.parent.extends(l)}getExtensionIfDefined(l){const r=[];let s=this;for(;s&&s!==l;)r.push(s.scopeName),s=s.parent;return s===l?r.reverse():void 0}};function e1(i,l){if(l.length===0)return!0;for(let r=0;r<l.length;r++){let s=l[r],u=!1;if(s===">"){if(r===l.length-1)return!1;s=l[++r],u=!0}for(;i&&!t1(i.scopeName,s);){if(u)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function t1(i,l){return l===i||i.startsWith(l)&&i[l.length]==="."}var Wg=class{constructor(i,l,r){this.fontStyle=i,this.foregroundId=l,this.backgroundId=r}};function n1(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let l=i.settings,r=[],s=0;for(let u=0,f=l.length;u<f;u++){let d=l[u];if(!d.settings)continue;let g;if(typeof d.scope=="string"){let b=d.scope;b=b.replace(/^[,]+/,""),b=b.replace(/[,]+$/,""),g=b.split(",")}else Array.isArray(d.scope)?g=d.scope:g=[""];let p=-1;if(typeof d.settings.fontStyle=="string"){p=0;let b=d.settings.fontStyle.split(" ");for(let E=0,T=b.length;E<T;E++)switch(b[E]){case"italic":p=p|1;break;case"bold":p=p|2;break;case"underline":p=p|4;break;case"strikethrough":p=p|8;break}}let h=null;typeof d.settings.foreground=="string"&&Fp(d.settings.foreground)&&(h=d.settings.foreground);let y=null;typeof d.settings.background=="string"&&Fp(d.settings.background)&&(y=d.settings.background);for(let b=0,E=g.length;b<E;b++){let C=g[b].trim().split(" "),U=C[C.length-1],q=null;C.length>1&&(q=C.slice(0,C.length-1),q.reverse()),r[s++]=new l1(U,q,u,p,h,y)}}return r}var l1=class{constructor(i,l,r,s,u,f){this.scope=i,this.parentScopes=l,this.index=r,this.fontStyle=s,this.foreground=u,this.background=f}},rl=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(rl||{});function a1(i,l){i.sort((p,h)=>{let y=Zg(p.scope,h.scope);return y!==0||(y=Kg(p.parentScopes,h.parentScopes),y!==0)?y:p.index-h.index});let r=0,s="#000000",u="#ffffff";for(;i.length>=1&&i[0].scope==="";){let p=i.shift();p.fontStyle!==-1&&(r=p.fontStyle),p.foreground!==null&&(s=p.foreground),p.background!==null&&(u=p.background)}let f=new i1(l),d=new Wg(r,f.getId(s),f.getId(u)),g=new s1(new nf(0,null,-1,0,0),[]);for(let p=0,h=i.length;p<h;p++){let y=i[p];g.insert(0,y.scope,y.parentScopes,y.fontStyle,f.getId(y.foreground),f.getId(y.background))}return new lo(f,d,g)}var i1=class{constructor(i){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(i)){this._isFrozen=!0;for(let l=0,r=i.length;l<r;l++)this._color2id[i[l]]=l,this._id2color[l]=i[l]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let l=this._color2id[i];if(l)return l;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return l=++this._lastColorId,this._color2id[i]=l,this._id2color[l]=i,l}getColorMap(){return this._id2color.slice(0)}},r1=Object.freeze([]),nf=class Fg{constructor(l,r,s,u,f){w(this,"scopeDepth");w(this,"parentScopes");w(this,"fontStyle");w(this,"foreground");w(this,"background");this.scopeDepth=l,this.parentScopes=r||r1,this.fontStyle=s,this.foreground=u,this.background=f}clone(){return new Fg(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(l){let r=[];for(let s=0,u=l.length;s<u;s++)r[s]=l[s].clone();return r}acceptOverwrite(l,r,s,u){this.scopeDepth>l?console.log("how did this happen?"):this.scopeDepth=l,r!==-1&&(this.fontStyle=r),s!==0&&(this.foreground=s),u!==0&&(this.background=u)}},s1=class lf{constructor(l,r=[],s={}){w(this,"_rulesWithParentScopes");this._mainRule=l,this._children=s,this._rulesWithParentScopes=r}static _cmpBySpecificity(l,r){if(l.scopeDepth!==r.scopeDepth)return r.scopeDepth-l.scopeDepth;let s=0,u=0;for(;l.parentScopes[s]===">"&&s++,r.parentScopes[u]===">"&&u++,!(s>=l.parentScopes.length||u>=r.parentScopes.length);){const f=r.parentScopes[u].length-l.parentScopes[s].length;if(f!==0)return f;s++,u++}return r.parentScopes.length-l.parentScopes.length}match(l){if(l!==""){let s=l.indexOf("."),u,f;if(s===-1?(u=l,f=""):(u=l.substring(0,s),f=l.substring(s+1)),this._children.hasOwnProperty(u))return this._children[u].match(f)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(lf._cmpBySpecificity),r}insert(l,r,s,u,f,d){if(r===""){this._doInsertHere(l,s,u,f,d);return}let g=r.indexOf("."),p,h;g===-1?(p=r,h=""):(p=r.substring(0,g),h=r.substring(g+1));let y;this._children.hasOwnProperty(p)?y=this._children[p]:(y=new lf(this._mainRule.clone(),nf.cloneArr(this._rulesWithParentScopes)),this._children[p]=y),y.insert(l+1,h,s,u,f,d)}_doInsertHere(l,r,s,u,f){if(r===null){this._mainRule.acceptOverwrite(l,s,u,f);return}for(let d=0,g=this._rulesWithParentScopes.length;d<g;d++){let p=this._rulesWithParentScopes[d];if(Kg(p.parentScopes,r)===0){p.acceptOverwrite(l,s,u,f);return}}s===-1&&(s=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),f===0&&(f=this._mainRule.background),this._rulesWithParentScopes.push(new nf(l,r,s,u,f))}},Za=class dn{static toBinaryStr(l){return l.toString(2).padStart(32,"0")}static print(l){const r=dn.getLanguageId(l),s=dn.getTokenType(l),u=dn.getFontStyle(l),f=dn.getForeground(l),d=dn.getBackground(l);console.log({languageId:r,tokenType:s,fontStyle:u,foreground:f,background:d})}static getLanguageId(l){return(l&255)>>>0}static getTokenType(l){return(l&768)>>>8}static containsBalancedBrackets(l){return(l&1024)!==0}static getFontStyle(l){return(l&30720)>>>11}static getForeground(l){return(l&16744448)>>>15}static getBackground(l){return(l&4278190080)>>>24}static set(l,r,s,u,f,d,g){let p=dn.getLanguageId(l),h=dn.getTokenType(l),y=dn.containsBalancedBrackets(l)?1:0,b=dn.getFontStyle(l),E=dn.getForeground(l),T=dn.getBackground(l);return r!==0&&(p=r),s!==8&&(h=s),u!==null&&(y=u?1:0),f!==-1&&(b=f),d!==0&&(E=d),g!==0&&(T=g),(p<<0|h<<8|y<<10|b<<11|E<<15|T<<24)>>>0}};function ao(i,l){const r=[],s=o1(i);let u=s.next();for(;u!==null;){let p=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":p=1;break;case"L":p=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=s.next()}let h=d();if(r.push({matcher:h,priority:p}),u!==",")break;u=s.next()}return r;function f(){if(u==="-"){u=s.next();const p=f();return h=>!!p&&!p(h)}if(u==="("){u=s.next();const p=g();return u===")"&&(u=s.next()),p}if(eg(u)){const p=[];do p.push(u),u=s.next();while(eg(u));return h=>l(p,h)}return null}function d(){const p=[];let h=f();for(;h;)p.push(h),h=f();return y=>p.every(b=>b(y))}function g(){const p=[];let h=d();for(;h&&(p.push(h),u==="|"||u===",");){do u=s.next();while(u==="|"||u===",");h=d()}return y=>p.some(b=>b(y))}}function eg(i){return!!i&&!!i.match(/[\w\.:]+/)}function o1(i){let l=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=l.exec(i);return{next:()=>{if(!r)return null;const s=r[0];return r=l.exec(i),s}}}function e_(i){typeof i.dispose=="function"&&i.dispose()}var dr=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},u1=class{constructor(i,l){this.scopeName=i,this.ruleName=l}toKey(){return`${this.scopeName}#${this.ruleName}`}},c1=class{constructor(){w(this,"_references",[]);w(this,"_seenReferenceKeys",new Set);w(this,"visitedRule",new Set)}get references(){return this._references}add(i){const l=i.toKey();this._seenReferenceKeys.has(l)||(this._seenReferenceKeys.add(l),this._references.push(i))}},f1=class{constructor(i,l){w(this,"seenFullScopeRequests",new Set);w(this,"seenPartialScopeRequests",new Set);w(this,"Q");this.repo=i,this.initialScopeName=l,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new dr(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const l=new c1;for(const r of i)d1(r,this.initialScopeName,this.repo,l);for(const r of l.references)if(r instanceof dr){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function d1(i,l,r,s){const u=r.lookup(i.scopeName);if(!u){if(i.scopeName===l)throw new Error(`No grammar provided for <${l}>`);return}const f=r.lookup(l);i instanceof dr?Fs({baseGrammar:f,selfGrammar:u},s):af(i.ruleName,{baseGrammar:f,selfGrammar:u,repository:u.repository},s);const d=r.injections(i.scopeName);if(d)for(const g of d)s.add(new dr(g))}function af(i,l,r){if(l.repository&&l.repository[i]){const s=l.repository[i];io([s],l,r)}}function Fs(i,l){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&io(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},l),i.selfGrammar.injections&&io(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},l)}function io(i,l,r){for(const s of i){if(r.visitedRule.has(s))continue;r.visitedRule.add(s);const u=s.repository?Xg({},l.repository,s.repository):l.repository;Array.isArray(s.patterns)&&io(s.patterns,{...l,repository:u},r);const f=s.include;if(!f)continue;const d=t_(f);switch(d.kind){case 0:Fs({...l,selfGrammar:l.baseGrammar},r);break;case 1:Fs(l,r);break;case 2:af(d.ruleName,{...l,repository:u},r);break;case 3:case 4:const g=d.scopeName===l.selfGrammar.scopeName?l.selfGrammar:d.scopeName===l.baseGrammar.scopeName?l.baseGrammar:void 0;if(g){const p={baseGrammar:l.baseGrammar,selfGrammar:g,repository:u};d.kind===4?af(d.ruleName,p,r):Fs(p,r)}else d.kind===4?r.add(new u1(d.scopeName,d.ruleName)):r.add(new dr(d.scopeName));break}}}var h1=class{constructor(){w(this,"kind",0)}},m1=class{constructor(){w(this,"kind",1)}},p1=class{constructor(i){w(this,"kind",2);this.ruleName=i}},g1=class{constructor(i){w(this,"kind",3);this.scopeName=i}},_1=class{constructor(i,l){w(this,"kind",4);this.scopeName=i,this.ruleName=l}};function t_(i){if(i==="$base")return new h1;if(i==="$self")return new m1;const l=i.indexOf("#");if(l===-1)return new g1(i);if(l===0)return new p1(i.substring(1));{const r=i.substring(0,l),s=i.substring(l+1);return new _1(r,s)}}var y1=/\\(\d+)/,tg=/\\(\d+)/g,v1=-1,n_=-2;var yr=class{constructor(i,l,r,s){w(this,"$location");w(this,"id");w(this,"_nameIsCapturing");w(this,"_name");w(this,"_contentNameIsCapturing");w(this,"_contentName");this.$location=i,this.id=l,this._name=r||null,this._nameIsCapturing=Ys.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=Ys.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Qg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,l){return!this._nameIsCapturing||this._name===null||i===null||l===null?this._name:Ys.replaceCaptures(this._name,i,l)}getContentName(i,l){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ys.replaceCaptures(this._contentName,i,l)}},b1=class extends yr{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(l,r){throw new Error("Not supported!")}compile(l,r){throw new Error("Not supported!")}compileAG(l,r,s,u){throw new Error("Not supported!")}},S1=class extends yr{constructor(l,r,s,u,f){super(l,r,s,null);w(this,"_match");w(this,"captures");w(this,"_cachedCompiledPatterns");this._match=new hr(u,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(l,r){r.push(this._match)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ng=class extends yr{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(l,r){for(const s of this.patterns)l.getRule(s).collectPatterns(l,r)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rf=class extends yr{constructor(l,r,s,u,f,d,g,p,h,y){super(l,r,s,u);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 hr(f,this.id),this.beginCaptures=d,this._end=new hr(g||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=p,this.applyEndPatternLast=h||!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(l,r){return this._end.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l,r).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l,r).compileAG(l,s,u)}_getCachedCompiledPatterns(l,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mr;for(const s of this.patterns)l.getRule(s).collectPatterns(l,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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},ro=class extends yr{constructor(l,r,s,u,f,d,g,p,h){super(l,r,s,u);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 hr(f,this.id),this.beginCaptures=d,this.whileCaptures=p,this._while=new hr(g,n_),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.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(l,r){return this._while.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mr;for(const r of this.patterns)l.getRule(r).collectPatterns(l,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(l,r){return this._getCachedCompiledWhilePatterns(l,r).compile(l)}compileWhileAG(l,r,s,u){return this._getCachedCompiledWhilePatterns(l,r).compileAG(l,s,u)}_getCachedCompiledWhilePatterns(l,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new mr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},l_=class xt{static createCaptureRule(l,r,s,u,f){return l.registerRule(d=>new b1(r,d,s,u,f))}static getCompiledRuleId(l,r,s){return l.id||r.registerRule(u=>{if(l.id=u,l.match)return new S1(l.$vscodeTextmateLocation,l.id,l.name,l.match,xt._compileCaptures(l.captures,r,s));if(typeof l.begin>"u"){l.repository&&(s=Xg({},s,l.repository));let f=l.patterns;return typeof f>"u"&&l.include&&(f=[{include:l.include}]),new ng(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,xt._compilePatterns(f,r,s))}return l.while?new ro(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.while,xt._compileCaptures(l.whileCaptures||l.captures,r,s),xt._compilePatterns(l.patterns,r,s)):new rf(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.end,xt._compileCaptures(l.endCaptures||l.captures,r,s),l.applyEndPatternLast,xt._compilePatterns(l.patterns,r,s))}),l.id}static _compileCaptures(l,r,s){let u=[];if(l){let f=0;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const g=parseInt(d,10);g>f&&(f=g)}for(let d=0;d<=f;d++)u[d]=null;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const g=parseInt(d,10);let p=0;l[d].patterns&&(p=xt.getCompiledRuleId(l[d],r,s)),u[g]=xt.createCaptureRule(r,l[d].$vscodeTextmateLocation,l[d].name,l[d].contentName,p)}}return u}static _compilePatterns(l,r,s){let u=[];if(l)for(let f=0,d=l.length;f<d;f++){const g=l[f];let p=-1;if(g.include){const h=t_(g.include);switch(h.kind){case 0:case 1:p=xt.getCompiledRuleId(s[g.include],r,s);break;case 2:let y=s[h.ruleName];y&&(p=xt.getCompiledRuleId(y,r,s));break;case 3:case 4:const b=h.scopeName,E=h.kind===4?h.ruleName:null,T=r.getExternalGrammar(b,s);if(T)if(E){let C=T.repository[E];C&&(p=xt.getCompiledRuleId(C,r,T.repository))}else p=xt.getCompiledRuleId(T.repository.$self,r,T.repository);break}}else p=xt.getCompiledRuleId(g,r,s);if(p!==-1){const h=r.getRule(p);let y=!1;if((h instanceof ng||h instanceof rf||h instanceof ro)&&h.hasMissingPatterns&&h.patterns.length===0&&(y=!0),y)continue;u.push(p)}}return{patterns:u,hasMissingPatterns:(l?l.length:0)!==u.length}}},hr=class a_{constructor(l,r){w(this,"source");w(this,"ruleId");w(this,"hasAnchor");w(this,"hasBackReferences");w(this,"_anchorCache");if(l&&typeof l=="string"){const s=l.length;let u=0,f=[],d=!1;for(let g=0;g<s;g++)if(l.charAt(g)==="\\"&&g+1<s){const h=l.charAt(g+1);h==="z"?(f.push(l.substring(u,g)),f.push("$(?!\\n)(?<!\\n)"),u=g+2):(h==="A"||h==="G")&&(d=!0),g++}this.hasAnchor=d,u===0?this.source=l:(f.push(l.substring(u,s)),this.source=f.join(""))}else this.hasAnchor=!1,this.source=l;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=y1.test(this.source):this.hasBackReferences=!1}clone(){return new a_(this.source,this.ruleId)}setSource(l){this.source!==l&&(this.source=l,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(l,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let s=r.map(u=>l.substring(u.start,u.end));return tg.lastIndex=0,this.source.replace(tg,(u,f)=>$g(s[parseInt(f,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let l=[],r=[],s=[],u=[],f,d,g,p;for(f=0,d=this.source.length;f<d;f++)g=this.source.charAt(f),l[f]=g,r[f]=g,s[f]=g,u[f]=g,g==="\\"&&f+1<d&&(p=this.source.charAt(f+1),p==="A"?(l[f+1]="",r[f+1]="",s[f+1]="A",u[f+1]="A"):p==="G"?(l[f+1]="",r[f+1]="G",s[f+1]="",u[f+1]="G"):(l[f+1]=p,r[f+1]=p,s[f+1]=p,u[f+1]=p),f++);return{A0_G0:l.join(""),A0_G1:r.join(""),A1_G0:s.join(""),A1_G1:u.join("")}}resolveAnchors(l,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:l?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},mr=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(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,l){this._items[i].source!==l&&(this._disposeCaches(),this._items[i].setSource(l))}compile(i){if(!this._cached){let l=this._items.map(r=>r.source);this._cached=new lg(i,l,this._items.map(r=>r.ruleId))}return this._cached}compileAG(i,l,r){return this._hasAnchors?l?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,l,r){let s=this._items.map(u=>u.resolveAnchors(l,r));return new lg(i,s,this._items.map(u=>u.ruleId))}},lg=class{constructor(i,l,r){w(this,"scanner");this.regExps=l,this.rules=r,this.scanner=i.createOnigScanner(l)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let l=0,r=this.rules.length;l<r;l++)i.push(" - "+this.rules[l]+": "+this.regExps[l]);return i.join(`
|
|
107
|
+
`)}findNextMatchSync(i,l,r){const s=this.scanner.findNextMatchSync(i,l,r);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}},Pc=class{constructor(i,l){this.languageId=i,this.tokenType=l}},ll,E1=(ll=class{constructor(l,r){w(this,"_defaultAttributes");w(this,"_embeddedLanguagesMatcher");w(this,"_getBasicScopeAttributes",new Jg(l=>{const r=this._scopeToLanguage(l),s=this._toStandardTokenType(l);return new Pc(r,s)}));this._defaultAttributes=new Pc(l,8),this._embeddedLanguagesMatcher=new x1(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(l){return l===null?ll._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(l)}_scopeToLanguage(l){return this._embeddedLanguagesMatcher.match(l)||0}_toStandardTokenType(l){const r=l.match(ll.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[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(ll,"_NULL_SCOPE_METADATA",new Pc(0,0)),w(ll,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ll),x1=class{constructor(i){w(this,"values");w(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const l=i.map(([r,s])=>$g(r));l.sort(),l.reverse(),this.scopesRegExp=new RegExp(`^((${l.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const l=i.match(this.scopesRegExp);if(l)return this.values.get(l[1])}},ag=class{constructor(i,l){this.stack=i,this.stoppedEarly=l}};function i_(i,l,r,s,u,f,d,g){const p=l.content.length;let h=!1,y=-1;if(d){const T=T1(i,l,r,s,u,f);u=T.stack,s=T.linePos,r=T.isFirstLine,y=T.anchorPosition}const b=Date.now();for(;!h;){if(g!==0&&Date.now()-b>g)return new ag(u,!0);E()}return new ag(u,!1);function E(){const T=A1(i,l,r,s,u,y);if(!T){f.produce(u,p),h=!0;return}const C=T.captureIndices,U=T.matchedRuleId,q=C&&C.length>0?C[0].end>s:!1;if(U===v1){const B=u.getRule(i);f.produce(u,C[0].start),u=u.withContentNameScopesList(u.nameScopesList),or(i,l,r,u,f,B.endCaptures,C),f.produce(u,C[0].end);const I=u;if(u=u.parent,y=I.getAnchorPos(),!q&&I.getEnterPos()===s){u=I,f.produce(u,p),h=!0;return}}else{const B=i.getRule(U);f.produce(u,C[0].start);const I=u,P=B.getName(l.content,C),X=u.contentNameScopesList.pushAttributed(P,i);if(u=u.push(U,s,y,C[0].end===p,null,X,X),B instanceof rf){const ae=B;or(i,l,r,u,f,ae.beginCaptures,C),f.produce(u,C[0].end),y=C[0].end;const fe=ae.getContentName(l.content,C),te=X.pushAttributed(fe,i);if(u=u.withContentNameScopesList(te),ae.endHasBackReferences&&(u=u.withEndRule(ae.getEndWithResolvedBackReferences(l.content,C))),!q&&I.hasSameRuleAs(u)){u=u.pop(),f.produce(u,p),h=!0;return}}else if(B instanceof ro){const ae=B;or(i,l,r,u,f,ae.beginCaptures,C),f.produce(u,C[0].end),y=C[0].end;const fe=ae.getContentName(l.content,C),te=X.pushAttributed(fe,i);if(u=u.withContentNameScopesList(te),ae.whileHasBackReferences&&(u=u.withEndRule(ae.getWhileWithResolvedBackReferences(l.content,C))),!q&&I.hasSameRuleAs(u)){u=u.pop(),f.produce(u,p),h=!0;return}}else if(or(i,l,r,u,f,B.captures,C),f.produce(u,C[0].end),u=u.pop(),!q){u=u.safePop(),f.produce(u,p),h=!0;return}}C[0].end>s&&(s=C[0].end,r=!1)}}function T1(i,l,r,s,u,f){let d=u.beginRuleCapturedEOL?0:-1;const g=[];for(let p=u;p;p=p.pop()){const h=p.getRule(i);h instanceof ro&&g.push({rule:h,stack:p})}for(let p=g.pop();p;p=g.pop()){const{ruleScanner:h,findOptions:y}=C1(p.rule,i,p.stack.endRule,r,s===d),b=h.findNextMatchSync(l,s,y);if(b){if(b.ruleId!==n_){u=p.stack.pop();break}b.captureIndices&&b.captureIndices.length&&(f.produce(p.stack,b.captureIndices[0].start),or(i,l,r,p.stack,f,p.rule.whileCaptures,b.captureIndices),f.produce(p.stack,b.captureIndices[0].end),d=b.captureIndices[0].end,b.captureIndices[0].end>s&&(s=b.captureIndices[0].end,r=!1))}else{u=p.stack.pop();break}}return{stack:u,linePos:s,anchorPosition:d,isFirstLine:r}}function A1(i,l,r,s,u,f){const d=R1(i,l,r,s,u,f),g=i.getInjections();if(g.length===0)return d;const p=O1(g,i,l,r,s,u,f);if(!p)return d;if(!d)return p;const h=d.captureIndices[0].start,y=p.captureIndices[0].start;return y<h||p.priorityMatch&&y===h?p:d}function R1(i,l,r,s,u,f){const d=u.getRule(i),{ruleScanner:g,findOptions:p}=r_(d,i,u.endRule,r,s===f),h=g.findNextMatchSync(l,s,p);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function O1(i,l,r,s,u,f,d){let g=Number.MAX_VALUE,p=null,h,y=0;const b=f.contentNameScopesList.getScopeNames();for(let E=0,T=i.length;E<T;E++){const C=i[E];if(!C.matcher(b))continue;const U=l.getRule(C.ruleId),{ruleScanner:q,findOptions:B}=r_(U,l,null,s,u===d),I=q.findNextMatchSync(r,u,B);if(!I)continue;const P=I.captureIndices[0].start;if(!(P>=g)&&(g=P,p=I.captureIndices,h=I.ruleId,y=C.priority,g===u))break}return p?{priorityMatch:y===-1,captureIndices:p,matchedRuleId:h}:null}function r_(i,l,r,s,u){return{ruleScanner:i.compileAG(l,r,s,u),findOptions:0}}function C1(i,l,r,s,u){return{ruleScanner:i.compileWhileAG(l,r,s,u),findOptions:0}}function or(i,l,r,s,u,f,d){if(f.length===0)return;const g=l.content,p=Math.min(f.length,d.length),h=[],y=d[0].end;for(let b=0;b<p;b++){const E=f[b];if(E===null)continue;const T=d[b];if(T.length===0)continue;if(T.start>y)break;for(;h.length>0&&h[h.length-1].endPos<=T.start;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?u.produceFromScopes(h[h.length-1].scopes,T.start):u.produce(s,T.start),E.retokenizeCapturedWithRuleId){const U=E.getName(g,d),q=s.contentNameScopesList.pushAttributed(U,i),B=E.getContentName(g,d),I=q.pushAttributed(B,i),P=s.push(E.retokenizeCapturedWithRuleId,T.start,-1,!1,null,q,I),X=i.createOnigString(g.substring(0,T.end));i_(i,X,r&&T.start===0,T.start,P,u,!1,0),e_(X);continue}const C=E.getName(g,d);if(C!==null){const q=(h.length>0?h[h.length-1].scopes:s.contentNameScopesList).pushAttributed(C,i);h.push(new D1(q,T.end))}}for(;h.length>0;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var D1=class{constructor(i,l){w(this,"scopes");w(this,"endPos");this.scopes=i,this.endPos=l}};function k1(i,l,r,s,u,f,d,g){return new N1(i,l,r,s,u,f,d,g)}function ig(i,l,r,s,u){const f=ao(l,so),d=l_.getCompiledRuleId(r,s,u.repository);for(const g of f)i.push({debugSelector:l,matcher:g.matcher,ruleId:d,grammar:u,priority:g.priority})}function so(i,l){if(l.length<i.length)return!1;let r=0;return i.every(s=>{for(let u=r;u<l.length;u++)if(L1(l[u],s))return r=u+1,!0;return!1})}function L1(i,l){if(!i)return!1;if(i===l)return!0;const r=l.length;return i.length>r&&i.substr(0,r)===l&&i[r]==="."}var N1=class{constructor(i,l,r,s,u,f,d,g){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=i,this.balancedBracketSelectors=f,this._onigLib=g,this._basicScopeAttributesProvider=new E1(r,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=d,this._grammar=rg(l,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const p of Object.keys(u)){const h=ao(p,so);for(const y of h)this._tokenTypeMatchers.push({matcher:y.matcher,type:u[p]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},l=[],r=this._rootScopeName,s=i.lookup(r);if(s){const u=s.injections;if(u)for(let d in u)ig(l,d,u[d],this,s);const f=this._grammarRepository.injections(r);f&&f.forEach(d=>{const g=this.getExternalGrammar(d);if(g){const p=g.injectionSelector;p&&ig(l,p,g,this,g)}})}return l.sort((u,f)=>u.priority-f.priority),l}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const l=++this._lastRuleId,r=i(l);return this._ruleId2desc[l]=r,r}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,l){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const r=this._grammarRepository.lookup(i);if(r)return this._includedGrammars[i]=rg(r,l&&l.$base),this._includedGrammars[i]}}tokenizeLine(i,l,r=0){const s=this._tokenize(i,l,!1,r);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(i,l,r=0){const s=this._tokenize(i,l,!0,r);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(i,l,r,s){this._rootId===-1&&(this._rootId=l_.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!l||l===sf.NULL){u=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),y=this.themeProvider.getDefaults(),b=Za.set(0,h.languageId,h.tokenType,null,y.fontStyle,y.foregroundId,y.backgroundId),E=this.getRule(this._rootId).getName(null,null);let T;E?T=cr.createRootAndLookUpScopeName(E,b,this):T=cr.createRoot("unknown",b),l=new sf(null,this._rootId,-1,-1,!1,null,T,T)}else u=!1,l.reset();i=i+`
|
|
108
|
+
`;const f=this.createOnigString(i),d=f.content.length,g=new M1(r,i,this._tokenTypeMatchers,this.balancedBracketSelectors),p=i_(this,f,u,0,l,g,!0,s);return e_(f),{lineLength:d,lineTokens:g,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}};function rg(i,l){return i=Jb(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=l||i.repository.$self,i}var cr=class Dn{constructor(l,r,s){this.parent=l,this.scopePath=r,this.tokenAttributes=s}static fromExtension(l,r){let s=l,u=(l==null?void 0:l.scopePath)??null;for(const f of r)u=qc.push(u,f.scopeNames),s=new Dn(s,u,f.encodedTokenAttributes);return s}static createRoot(l,r){return new Dn(null,new qc(null,l),r)}static createRootAndLookUpScopeName(l,r,s){const u=s.getMetadataForScope(l),f=new qc(null,l),d=s.themeProvider.themeMatch(f),g=Dn.mergeAttributes(r,u,d);return new Dn(null,f,g)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(l){return Dn.equals(this,l)}static equals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.scopeName!==r.scopeName||l.tokenAttributes!==r.tokenAttributes)return!1;l=l.parent,r=r.parent}while(!0)}static mergeAttributes(l,r,s){let u=-1,f=0,d=0;return s!==null&&(u=s.fontStyle,f=s.foregroundId,d=s.backgroundId),Za.set(l,r.languageId,r.tokenType,null,u,f,d)}pushAttributed(l,r){if(l===null)return this;if(l.indexOf(" ")===-1)return Dn._pushAttributed(this,l,r);const s=l.split(/ /g);let u=this;for(const f of s)u=Dn._pushAttributed(u,f,r);return u}static _pushAttributed(l,r,s){const u=s.getMetadataForScope(r),f=l.scopePath.push(r),d=s.themeProvider.themeMatch(f),g=Dn.mergeAttributes(l.tokenAttributes,u,d);return new Dn(l,f,g)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(l){var u;const r=[];let s=this;for(;s&&s!==l;)r.push({encodedTokenAttributes:s.tokenAttributes,scopeNames:s.scopePath.getExtensionIfDefined(((u=s.parent)==null?void 0:u.scopePath)??null)}),s=s.parent;return s===l?r.reverse():void 0}},hn,sf=(hn=class{constructor(l,r,s,u,f,d,g,p){w(this,"_stackElementBrand");w(this,"_enterPos");w(this,"_anchorPos");w(this,"depth");this.parent=l,this.ruleId=r,this.beginRuleCapturedEOL=f,this.endRule=d,this.nameScopesList=g,this.contentNameScopesList=p,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=u}equals(l){return l===null?!1:hn._equals(this,l)}static _equals(l,r){return l===r?!0:this._structuralEquals(l,r)?cr.equals(l.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.depth!==r.depth||l.ruleId!==r.ruleId||l.endRule!==r.endRule)return!1;l=l.parent,r=r.parent}while(!0)}clone(){return this}static _reset(l){for(;l;)l._enterPos=-1,l._anchorPos=-1,l=l.parent}reset(){hn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(l,r,s,u,f,d,g){return new hn(this,l,r,s,u,f,d,g)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(l){return l.getRule(this.ruleId)}toString(){const l=[];return this._writeString(l,0),"["+l.join(",")+"]"}_writeString(l,r){var s,u;return this.parent&&(r=this.parent._writeString(l,r)),l[r++]=`(${this.ruleId}, ${(s=this.nameScopesList)==null?void 0:s.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,r}withContentNameScopesList(l){return this.contentNameScopesList===l?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,l)}withEndRule(l){return this.endRule===l?this:new hn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,l,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(l){let r=this;for(;r&&r._enterPos===l._enterPos;){if(r.ruleId===l.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var l,r,s;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((l=this.parent)==null?void 0:l.nameScopesList)??null))??[],contentNameScopesList:((s=this.contentNameScopesList)==null?void 0:s.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(l,r){const s=cr.fromExtension((l==null?void 0:l.nameScopesList)??null,r.nameScopesList);return new hn(l,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,s,cr.fromExtension(s,r.contentNameScopesList))}},w(hn,"NULL",new hn(null,0,0,0,!1,null,null,null)),hn),w1=class{constructor(i,l){w(this,"balancedBracketScopes");w(this,"unbalancedBracketScopes");w(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ao(r,so).map(s=>s.matcher)),this.unbalancedBracketScopes=l.flatMap(r=>ao(r,so).map(s=>s.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const l of this.unbalancedBracketScopes)if(l(i))return!1;for(const l of this.balancedBracketScopes)if(l(i))return!0;return this.allowAny}},M1=class{constructor(i,l,r,s){w(this,"_emitBinaryTokens");w(this,"_lineText");w(this,"_tokens");w(this,"_binaryTokens");w(this,"_lastTokenEndIndex");w(this,"_tokenTypeOverrides");this.balancedBracketSelectors=s,this._emitBinaryTokens=i,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,l){this.produceFromScopes(i.contentNameScopesList,l)}produceFromScopes(i,l){var s;if(this._lastTokenEndIndex>=l)return;if(this._emitBinaryTokens){let u=(i==null?void 0:i.tokenAttributes)??0,f=!1;if((s=this.balancedBracketSelectors)!=null&&s.matchesAlways&&(f=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const d=(i==null?void 0:i.getScopeNames())??[];for(const g of this._tokenTypeOverrides)g.matcher(d)&&(u=Za.set(u,0,g.type,null,-1,0,0));this.balancedBracketSelectors&&(f=this.balancedBracketSelectors.match(d))}if(f&&(u=Za.set(u,0,8,f,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=l;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=l;return}const r=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:l,scopes:r}),this._lastTokenEndIndex=l}getResult(i,l){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===l-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,l){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===l-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let s=0,u=this._binaryTokens.length;s<u;s++)r[s]=this._binaryTokens[s];return r}},z1=class{constructor(i,l){w(this,"_grammars",new Map);w(this,"_rawGrammars",new Map);w(this,"_injectionGrammars",new Map);w(this,"_theme");this._onigLib=l,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,l){this._rawGrammars.set(i.scopeName,i),l&&this._injectionGrammars.set(i.scopeName,l)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,l,r,s,u){if(!this._grammars.has(i)){let f=this._rawGrammars.get(i);if(!f)return null;this._grammars.set(i,k1(i,f,l,r,s,u,this,this._onigLib))}return this._grammars.get(i)}},j1=class{constructor(l){w(this,"_options");w(this,"_syncRegistry");w(this,"_ensureGrammarCache");this._options=l,this._syncRegistry=new z1(lo.createFromRawTheme(l.theme,l.colorMap),l.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(l,r){this._syncRegistry.setTheme(lo.createFromRawTheme(l,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(l,r,s){return this.loadGrammarWithConfiguration(l,r,{embeddedLanguages:s})}loadGrammarWithConfiguration(l,r,s){return this._loadGrammar(l,r,s.embeddedLanguages,s.tokenTypes,new w1(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(l){return this._loadGrammar(l,0,null,null,null)}_loadGrammar(l,r,s,u,f){const d=new f1(this._syncRegistry,l);for(;d.Q.length>0;)d.Q.map(g=>this._loadSingleGrammar(g.scopeName)),d.processQueue();return this._grammarForScopeName(l,r,s,u,f)}_loadSingleGrammar(l){this._ensureGrammarCache.has(l)||(this._doLoadSingleGrammar(l),this._ensureGrammarCache.set(l,!0))}_doLoadSingleGrammar(l){const r=this._options.loadGrammar(l);if(r){const s=typeof this._options.getInjections=="function"?this._options.getInjections(l):void 0;this._syncRegistry.addGrammar(r,s)}}addGrammar(l,r=[],s=0,u=null){return this._syncRegistry.addGrammar(l,r),this._grammarForScopeName(l.scopeName,s,u)}_grammarForScopeName(l,r=0,s=null,u=null,f=null){return this._syncRegistry.grammarForScopeName(l,r,s,u,f)}},of=sf.NULL;const U1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class vr{constructor(l,r,s){this.normal=r,this.property=l,s&&(this.space=s)}}vr.prototype.normal={};vr.prototype.property={};vr.prototype.space=void 0;function s_(i,l){const r={},s={};for(const u of i)Object.assign(r,u.property),Object.assign(s,u.normal);return new vr(r,s,l)}function uf(i){return i.toLowerCase()}class Vt{constructor(l,r){this.attribute=r,this.property=l}}Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;let B1=0;const he=ra(),rt=ra(),cf=ra(),Z=ra(),Be=ra(),Ya=ra(),$t=ra();function ra(){return 2**++B1}const ff=Object.freeze(Object.defineProperty({__proto__:null,boolean:he,booleanish:rt,commaOrSpaceSeparated:$t,commaSeparated:Ya,number:Z,overloadedBoolean:cf,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Yc=Object.keys(ff);class kf extends Vt{constructor(l,r,s,u){let f=-1;if(super(l,r),sg(this,"space",u),typeof s=="number")for(;++f<Yc.length;){const d=Yc[f];sg(this,Yc[f],(s&ff[d])===ff[d])}}}kf.prototype.defined=!0;function sg(i,l,r){r&&(i[l]=r)}function Ka(i){const l={},r={};for(const[s,u]of Object.entries(i.properties)){const f=new kf(s,i.transform(i.attributes||{},s),u,i.space);i.mustUseProperty&&i.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),l[s]=f,r[uf(s)]=s,r[uf(f.attribute)]=s}return new vr(l,r,i.space)}const o_=Ka({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Be,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:Z,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Be,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:rt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(i,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function u_(i,l){return l in i?i[l]:l}function c_(i,l){return u_(i,l.toLowerCase())}const H1=Ka({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ya,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:he,allowPaymentRequest:he,allowUserMedia:he,alt:null,as:null,async:he,autoCapitalize:null,autoComplete:Be,autoFocus:he,autoPlay:he,blocking:Be,capture:null,charSet:null,checked:he,cite:null,className:Be,cols:Z,colSpan:null,content:null,contentEditable:rt,controls:he,controlsList:Be,coords:Z|Ya,crossOrigin:null,data:null,dateTime:null,decoding:null,default:he,defer:he,dir:null,dirName:null,disabled:he,download:cf,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:he,formTarget:null,headers:Be,height:Z,hidden:cf,high:Z,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:he,inputMode:null,integrity:null,is:null,isMap:he,itemId:null,itemProp:Be,itemRef:Be,itemScope:he,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:he,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:he,muted:he,name:null,nonce:null,noModule:he,noValidate:he,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:he,optimum:Z,pattern:null,ping:Be,placeholder:null,playsInline:he,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:he,referrerPolicy:null,rel:Be,required:he,reversed:he,rows:Z,rowSpan:Z,sandbox:Be,scope:null,scoped:he,seamless:he,selected:he,shadowRootClonable:he,shadowRootDelegatesFocus:he,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:he,useMap:null,value:rt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:he,declare:he,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:he,noHref:he,noShade:he,noWrap:he,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:he,disableRemotePlayback:he,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:c_}),V1=Ka({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:$t,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Be,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:he,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Ya,g2:Ya,glyphName:Ya,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:u_}),f_=Ka({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,l){return"xlink:"+l.slice(5).toLowerCase()}}),d_=Ka({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:c_}),h_=Ka({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(i,l){return"xml:"+l.slice(3).toLowerCase()}}),G1=/[A-Z]/g,og=/-[a-z]/g,I1=/^data[-\w.:]+$/i;function q1(i,l){const r=uf(l);let s=l,u=Vt;if(r in i.normal)return i.property[i.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&I1.test(l)){if(l.charAt(4)==="-"){const f=l.slice(5).replace(og,Y1);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=l.slice(4);if(!og.test(f)){let d=f.replace(G1,P1);d.charAt(0)!=="-"&&(d="-"+d),l="data"+d}}u=kf}return new u(s,l)}function P1(i){return"-"+i.toLowerCase()}function Y1(i){return i.charAt(1).toUpperCase()}const X1=s_([o_,H1,f_,d_,h_],"html"),m_=s_([o_,V1,f_,d_,h_],"svg"),ug={}.hasOwnProperty;function Q1(i,l){const r=l||{};function s(u,...f){let d=s.invalid;const g=s.handlers;if(u&&ug.call(u,i)){const p=String(u[i]);d=ug.call(g,p)?g[p]:s.unknown}if(d)return d.call(this,u,...f)}return s.handlers=r.handlers||{},s.invalid=r.invalid,s.unknown=r.unknown,s}const Z1=/["&'<>`]/g,K1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,J1=/[|\\{}()[\]^$+*?.]/g,cg=new WeakMap;function W1(i,l){if(i=i.replace(l.subset?F1(l.subset):Z1,s),l.subset||l.escapeOnly)return i;return i.replace(K1,r).replace($1,s);function r(u,f,d){return l.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,d.charCodeAt(f+2),l)}function s(u,f,d){return l.format(u.charCodeAt(0),d.charCodeAt(f+1),l)}}function F1(i){let l=cg.get(i);return l||(l=eS(i),cg.set(i,l)),l}function eS(i){const l=[];let r=-1;for(;++r<i.length;)l.push(i[r].replace(J1,"\\$&"));return new RegExp("(?:"+l.join("|")+")","g")}const tS=/[\dA-Fa-f]/;function nS(i,l,r){const s="&#x"+i.toString(16).toUpperCase();return r&&l&&!tS.test(String.fromCharCode(l))?s:s+";"}const lS=/\d/;function aS(i,l,r){const s="&#"+String(i);return r&&l&&!lS.test(String.fromCharCode(l))?s:s+";"}const iS=["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"],Xc={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:"€"},rS=["cent","copy","divide","gt","lt","not","para","times"],p_={}.hasOwnProperty,df={};let Xs;for(Xs in Xc)p_.call(Xc,Xs)&&(df[Xc[Xs]]=Xs);const sS=/[^\dA-Za-z]/;function oS(i,l,r,s){const u=String.fromCharCode(i);if(p_.call(df,u)){const f=df[u],d="&"+f;return r&&iS.includes(f)&&!rS.includes(f)&&(!s||l&&l!==61&&sS.test(String.fromCharCode(l)))?d:d+";"}return""}function uS(i,l,r){let s=nS(i,l,r.omitOptionalSemicolons),u;if((r.useNamedReferences||r.useShortestReferences)&&(u=oS(i,l,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!u)&&r.useShortestReferences){const f=aS(i,l,r.omitOptionalSemicolons);f.length<s.length&&(s=f)}return u&&(!r.useShortestReferences||u.length<s.length)?u:s}function Xa(i,l){return W1(i,Object.assign({format:uS},l))}const cS=/^>|^->|<!--|-->|--!>|<!-$/g,fS=[">"],dS=["<",">"];function hS(i,l,r,s){return s.settings.bogusComments?"<?"+Xa(i.value,Object.assign({},s.settings.characterReferences,{subset:fS}))+">":"<!--"+i.value.replace(cS,u)+"-->";function u(f){return Xa(f,Object.assign({},s.settings.characterReferences,{subset:dS}))}}function mS(i,l,r,s){return"<!"+(s.settings.upperDoctype?"DOCTYPE":"doctype")+(s.settings.tightDoctype?"":" ")+"html>"}function fg(i,l){const r=String(i);if(typeof l!="string")throw new TypeError("Expected character");let s=0,u=r.indexOf(l);for(;u!==-1;)s++,u=r.indexOf(l,u+l.length);return s}function pS(i,l){const r=l||{};return(i[i.length-1]===""?[...i,""]:i).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function gS(i){return i.join(" ").trim()}const _S=/[ \t\n\f\r]/g;function Lf(i){return typeof i=="object"?i.type==="text"?dg(i.value):!1:dg(i)}function dg(i){return i.replace(_S,"")===""}const ct=__(1),g_=__(-1),yS=[];function __(i){return l;function l(r,s,u){const f=r?r.children:yS;let d=(s||0)+i,g=f[d];if(!u)for(;g&&Lf(g);)d+=i,g=f[d];return g}}const vS={}.hasOwnProperty;function y_(i){return l;function l(r,s,u){return vS.call(i,r.tagName)&&i[r.tagName](r,s,u)}}const Nf=y_({body:SS,caption:Qc,colgroup:Qc,dd:AS,dt:TS,head:Qc,html:bS,li:xS,optgroup:RS,option:OS,p:ES,rp:hg,rt:hg,tbody:DS,td:mg,tfoot:kS,th:mg,thead:CS,tr:LS});function Qc(i,l,r){const s=ct(r,l,!0);return!s||s.type!=="comment"&&!(s.type==="text"&&Lf(s.value.charAt(0)))}function bS(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function SS(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function ES(i,l,r){const s=ct(r,l);return s?s.type==="element"&&(s.tagName==="address"||s.tagName==="article"||s.tagName==="aside"||s.tagName==="blockquote"||s.tagName==="details"||s.tagName==="div"||s.tagName==="dl"||s.tagName==="fieldset"||s.tagName==="figcaption"||s.tagName==="figure"||s.tagName==="footer"||s.tagName==="form"||s.tagName==="h1"||s.tagName==="h2"||s.tagName==="h3"||s.tagName==="h4"||s.tagName==="h5"||s.tagName==="h6"||s.tagName==="header"||s.tagName==="hgroup"||s.tagName==="hr"||s.tagName==="main"||s.tagName==="menu"||s.tagName==="nav"||s.tagName==="ol"||s.tagName==="p"||s.tagName==="pre"||s.tagName==="section"||s.tagName==="table"||s.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function xS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="li"}function TS(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd"))}function AS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd")}function hg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="rp"||s.tagName==="rt")}function RS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="optgroup"}function OS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="option"||s.tagName==="optgroup")}function CS(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot"))}function DS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot")}function kS(i,l,r){return!ct(r,l)}function LS(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="tr"}function mg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="td"||s.tagName==="th")}const NS=y_({body:zS,colgroup:jS,head:MS,html:wS,tbody:US});function wS(i){const l=ct(i,-1);return!l||l.type!=="comment"}function MS(i){const l=new Set;for(const s of i.children)if(s.type==="element"&&(s.tagName==="base"||s.tagName==="title")){if(l.has(s.tagName))return!1;l.add(s.tagName)}const r=i.children[0];return!r||r.type==="element"}function zS(i){const l=ct(i,-1,!0);return!l||l.type!=="comment"&&!(l.type==="text"&&Lf(l.value.charAt(0)))&&!(l.type==="element"&&(l.tagName==="meta"||l.tagName==="link"||l.tagName==="script"||l.tagName==="style"||l.tagName==="template"))}function jS(i,l,r){const s=g_(r,l),u=ct(i,-1,!0);return r&&s&&s.type==="element"&&s.tagName==="colgroup"&&Nf(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function US(i,l,r){const s=g_(r,l),u=ct(i,-1);return r&&s&&s.type==="element"&&(s.tagName==="thead"||s.tagName==="tbody")&&Nf(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const Qs={name:[[`
|
|
109
109
|
\f\r &/=>`.split(""),`
|
|
110
110
|
\f\r "&'/=>\``.split("")],[`\0
|
|
111
111
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -113,12 +113,12 @@ Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An err
|
|
|
113
113
|
\f\r &>`.split(""),`\0
|
|
114
114
|
\f\r "&'<=>\``.split("")],[`\0
|
|
115
115
|
\f\r "&'<=>\``.split(""),`\0
|
|
116
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function wS(i,l,r,s){const u=s.schema,f=u.space==="svg"?!1:s.settings.omitOptionalTags;let d=u.space==="svg"?s.settings.closeEmptyElements:s.settings.voids.includes(i.tagName.toLowerCase());const p=[];let g;u.space==="html"&&i.tagName==="svg"&&(s.schema=f_);const h=MS(s,i.properties),y=s.all(u.space==="html"&&i.tagName==="template"?i.content:i);return s.schema=u,y&&(d=!1),(h||!f||!OS(i,l,r))&&(p.push("<",i.tagName,h?" "+h:""),d&&(u.space==="svg"||s.settings.closeSelfClosing)&&(g=h.charAt(h.length-1),(!s.settings.tightSelfClosing||g==="/"||g&&g!=='"'&&g!=="'")&&p.push(" "),p.push("/")),p.push(">")),p.push(y),!d&&(!f||!Lf(i,l,r))&&p.push("</"+i.tagName+">"),p.join("")}function MS(i,l){const r=[];let s=-1,u;if(l){for(u in l)if(l[u]!==null&&l[u]!==void 0){const f=zS(i,u,l[u]);f&&r.push(f)}}for(;++s<r.length;){const f=i.settings.tightAttributes?r[s].charAt(r[s].length-1):void 0;s!==r.length-1&&f!=='"'&&f!=="'"&&(r[s]+=" ")}return r.join("")}function zS(i,l,r){const s=B1(i.schema,l),u=i.settings.allowParseErrors&&i.schema.space==="html"?0:1,f=i.settings.allowDangerousCharacters?0:1;let d=i.quote,p;if(s.overloadedBoolean&&(r===s.attribute||r==="")?r=!0:(s.boolean||s.overloadedBoolean)&&(typeof r!="string"||r===s.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const g=Xa(s.attribute,Object.assign({},i.settings.characterReferences,{subset:Qs.name[u][f]}));return r===!0||(r=Array.isArray(r)?(s.commaSeparated?cS:fS)(r,{padLeft:!i.settings.tightCommaSeparatedLists}):String(r),i.settings.collapseEmptyAttributes&&!r)?g:(i.settings.preferUnquoted&&(p=Xa(r,Object.assign({},i.settings.characterReferences,{attribute:!0,subset:Qs.unquoted[u][f]}))),p!==r&&(i.settings.quoteSmart&&ug(r,d)>ug(r,i.alternative)&&(d=i.alternative),p=d+Xa(r,Object.assign({},i.settings.characterReferences,{subset:(d==="'"?Qs.single:Qs.double)[u][f],attribute:!0}))+d),g+(p&&"="+p))}const jS=["<","&"];function g_(i,l,r,s){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?i.value:Xa(i.value,Object.assign({},s.settings.characterReferences,{subset:jS}))}function US(i,l,r,s){return s.settings.allowDangerousHtml?i.value:g_(i,l,r,s)}function BS(i,l,r,s){return s.all(i)}const HS=I1("type",{invalid:VS,unknown:GS,handlers:{comment:oS,doctype:uS,element:wS,raw:US,root:BS,text:g_}});function VS(i){throw new Error("Expected node, not `"+i+"`")}function GS(i){const l=i;throw new Error("Cannot compile unknown node `"+l.type+"`")}const IS={},qS={},PS=[];function YS(i,l){const r=IS,s=r.quote||'"',u=s==='"'?"'":'"';if(s!=='"'&&s!=="'")throw new Error("Invalid quote `"+s+"`, expected `'` or `\"`");return{one:XS,all:QS,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||N1,characterReferences:r.characterReferences||qS,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?f_:G1,quote:s,alternative:u}.one(Array.isArray(i)?{type:"root",children:i}:i,void 0,void 0)}function XS(i,l,r){return HS(i,l,r,this)}function QS(i){const l=[],r=i&&i.children||PS;let s=-1;for(;++s<r.length;)l[s]=this.one(r[s],s,i);return l.join("")}function ZS(i){return Array.isArray(i)?i:[i]}function yo(i,l=!1){var f;const r=i.split(/(\r?\n)/g);let s=0;const u=[];for(let d=0;d<r.length;d+=2){const p=l?r[d]+(r[d+1]||""):r[d];u.push([p,s]),s+=r[d].length,s+=((f=r[d+1])==null?void 0:f.length)||0}return u}function kf(i){return!i||["plaintext","txt","text","plain"].includes(i)}function __(i){return i==="ansi"||kf(i)}function Nf(i){return i==="none"}function y_(i){return Nf(i)}function v_(i,l){var s;if(!l)return i;i.properties||(i.properties={}),(s=i.properties).class||(s.class=[]),typeof i.properties.class=="string"&&(i.properties.class=i.properties.class.split(/\s+/g)),Array.isArray(i.properties.class)||(i.properties.class=[]);const r=Array.isArray(l)?l:l.split(/\s+/g);for(const u of r)u&&!i.properties.class.includes(u)&&i.properties.class.push(u);return i}function KS(i,l){let r=0;const s=[];for(const u of l)u>r&&s.push({...i,content:i.content.slice(r,u),offset:i.offset+r}),r=u;return r<i.content.length&&s.push({...i,content:i.content.slice(r),offset:i.offset+r}),s}function $S(i,l){const r=Array.from(l instanceof Set?l:new Set(l)).sort((s,u)=>s-u);return r.length?i.map(s=>s.flatMap(u=>{const f=r.filter(d=>u.offset<d&&d<u.offset+u.content.length).map(d=>d-u.offset).sort((d,p)=>d-p);return f.length?KS(u,f):u})):i}async function b_(i){return Promise.resolve(typeof i=="function"?i():i).then(l=>l.default||l)}function oo(i,l){const r=typeof i=="string"?{}:{...i.colorReplacements},s=typeof i=="string"?i:i.name;for(const[u,f]of Object.entries((l==null?void 0:l.colorReplacements)||{}))typeof f=="string"?r[u]=f:u===s&&Object.assign(r,f);return r}function ta(i,l){return i&&((l==null?void 0:l[i==null?void 0:i.toLowerCase()])||i)}function S_(i){const l={};return i.color&&(l.color=i.color),i.bgColor&&(l["background-color"]=i.bgColor),i.fontStyle&&(i.fontStyle&rl.Italic&&(l["font-style"]="italic"),i.fontStyle&rl.Bold&&(l["font-weight"]="bold"),i.fontStyle&rl.Underline&&(l["text-decoration"]="underline")),l}function JS(i){return typeof i=="string"?i:Object.entries(i).map(([l,r])=>`${l}:${r}`).join(";")}function WS(i){const l=yo(i,!0).map(([u])=>u);function r(u){if(u===i.length)return{line:l.length-1,character:l[l.length-1].length};let f=u,d=0;for(const p of l){if(f<p.length)break;f-=p.length,d++}return{line:d,character:f}}function s(u,f){let d=0;for(let p=0;p<u;p++)d+=l[p].length;return d+=f,d}return{lines:l,indexToPos:r,posToIndex:s}}class Rt extends Error{constructor(l){super(l),this.name="ShikiError"}}const E_=new WeakMap;function vo(i,l){E_.set(i,l)}function mr(i){return E_.get(i)}class $a{constructor(...l){w(this,"_stacks",{});w(this,"lang");if(l.length===2){const[r,s]=l;this.lang=s,this._stacks=r}else{const[r,s,u]=l;this.lang=s,this._stacks={[u]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(l,r){return new $a(Object.fromEntries(ZS(r).map(s=>[s,sf])),l)}getInternalStack(l=this.theme){return this._stacks[l]}get scopes(){return hg(this._stacks[this.theme])}getScopes(l=this.theme){return hg(this._stacks[l])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function hg(i){const l=[],r=new Set;function s(u){var d;if(r.has(u))return;r.add(u);const f=(d=u==null?void 0:u.nameScopesList)==null?void 0:d.scopeName;f&&l.push(f),u.parent&&s(u.parent)}return s(i),l}function FS(i,l){if(!(i instanceof $a))throw new Rt("Invalid grammar state");return i.getInternalStack(l)}function eE(){const i=new WeakMap;function l(r){if(!i.has(r.meta)){let s=function(d){if(typeof d=="number"){if(d<0||d>r.source.length)throw new Rt(`Invalid decoration offset: ${d}. Code length: ${r.source.length}`);return{...u.indexToPos(d),offset:d}}else{const p=u.lines[d.line];if(p===void 0)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Lines length: ${u.lines.length}`);if(d.character<0||d.character>p.length)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Line ${d.line} length: ${p.length}`);return{...d,offset:u.posToIndex(d.line,d.character)}}};const u=WS(r.source),f=(r.options.decorations||[]).map(d=>({...d,start:s(d.start),end:s(d.end)}));tE(f),i.set(r.meta,{decorations:f,converter:u,source:r.source})}return i.get(r.meta)}return{name:"shiki:decorations",tokens(r){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const u=l(this).decorations.flatMap(p=>[p.start.offset,p.end.offset]);return $S(r,u)},code(r){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const s=l(this),u=Array.from(r.children).filter(b=>b.type==="element"&&b.tagName==="span");if(u.length!==s.converter.lines.length)throw new Rt(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);function f(b,E,A,C){const U=u[b];let P="",B=-1,I=-1;if(E===0&&(B=0),A===0&&(I=0),A===Number.POSITIVE_INFINITY&&(I=U.children.length),B===-1||I===-1)for(let X=0;X<U.children.length;X++)P+=x_(U.children[X]),B===-1&&P.length===E&&(B=X+1),I===-1&&P.length===A&&(I=X+1);if(B===-1)throw new Rt(`Failed to find start index for decoration ${JSON.stringify(C.start)}`);if(I===-1)throw new Rt(`Failed to find end index for decoration ${JSON.stringify(C.end)}`);const q=U.children.slice(B,I);if(!C.alwaysWrap&&q.length===U.children.length)p(U,C,"line");else if(!C.alwaysWrap&&q.length===1&&q[0].type==="element")p(q[0],C,"token");else{const X={type:"element",tagName:"span",properties:{},children:q};p(X,C,"wrapper"),U.children.splice(B,q.length,X)}}function d(b,E){u[b]=p(u[b],E,"line")}function p(b,E,A){var P;const C=E.properties||{},U=E.transform||(B=>B);return b.tagName=E.tagName||"span",b.properties={...b.properties,...C,class:b.properties.class},(P=E.properties)!=null&&P.class&&v_(b,E.properties.class),b=U(b,A)||b,b}const g=[],h=s.decorations.sort((b,E)=>E.start.offset-b.start.offset);for(const b of h){const{start:E,end:A}=b;if(E.line===A.line)f(E.line,E.character,A.character,b);else if(E.line<A.line){f(E.line,E.character,Number.POSITIVE_INFINITY,b);for(let C=E.line+1;C<A.line;C++)g.unshift(()=>d(C,b));f(A.line,0,A.character,b)}}g.forEach(b=>b())}}}function tE(i){for(let l=0;l<i.length;l++){const r=i[l];if(r.start.offset>r.end.offset)throw new Rt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let s=l+1;s<i.length;s++){const u=i[s],f=r.start.offset<u.start.offset&&u.start.offset<r.end.offset,d=r.start.offset<u.end.offset&&u.end.offset<r.end.offset,p=u.start.offset<r.start.offset&&r.start.offset<u.end.offset,g=u.start.offset<r.end.offset&&r.end.offset<u.end.offset;if(f||d||p||g){if(d&&d||p&&g)continue;throw new Rt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function x_(i){return i.type==="text"?i.value:i.type==="element"?i.children.map(x_).join(""):""}const nE=[eE()];function uo(i){return[...i.transformers||[],...nE]}var na=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Zc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function lE(i,l){const r=i.indexOf("\x1B[",l);if(r!==-1){const s=i.indexOf("m",r);return{sequence:i.substring(r+2,s).split(";"),startPosition:r,position:s+1}}return{position:i.length}}function pg(i,l){let r=1;const s=i[l+r++];let u;if(s==="2"){const f=[i[l+r++],i[l+r++],i[l+r]].map(d=>Number.parseInt(d));f.length===3&&!f.some(d=>Number.isNaN(d))&&(u={type:"rgb",rgb:f})}else if(s==="5"){const f=Number.parseInt(i[l+r]);Number.isNaN(f)||(u={type:"table",index:Number(f)})}return[r,u]}function aE(i){const l=[];for(let r=0;r<i.length;r++){const s=i[r],u=Number.parseInt(s);if(!Number.isNaN(u))if(u===0)l.push({type:"resetAll"});else if(u<=9)Zc[u]&&l.push({type:"setDecoration",value:Zc[u]});else if(u<=29){const f=Zc[u-20];f&&l.push({type:"resetDecoration",value:f})}else if(u<=37)l.push({type:"setForegroundColor",value:{type:"named",name:na[u-30]}});else if(u===38){const[f,d]=pg(i,r);d&&l.push({type:"setForegroundColor",value:d}),r+=f}else if(u===39)l.push({type:"resetForegroundColor"});else if(u<=47)l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-40]}});else if(u===48){const[f,d]=pg(i,r);d&&l.push({type:"setBackgroundColor",value:d}),r+=f}else u===49?l.push({type:"resetBackgroundColor"}):u>=90&&u<=97?l.push({type:"setForegroundColor",value:{type:"named",name:na[u-90+8]}}):u>=100&&u<=107&&l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-100+8]}})}return l}function iE(){let i=null,l=null,r=new Set;return{parse(s){const u=[];let f=0;do{const d=lE(s,f),p=d.sequence?s.substring(f,d.startPosition):s.substring(f);if(p.length>0&&u.push({value:p,foreground:i,background:l,decorations:new Set(r)}),d.sequence){const g=aE(d.sequence);for(const h of g)h.type==="resetAll"?(i=null,l=null,r.clear()):h.type==="resetForegroundColor"?i=null:h.type==="resetBackgroundColor"?l=null:h.type==="resetDecoration"&&r.delete(h.value);for(const h of g)h.type==="setForegroundColor"?i=h.value:h.type==="setBackgroundColor"?l=h.value:h.type==="setDecoration"&&r.add(h.value)}f=d.position}while(f<s.length);return u}}}var rE={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 sE(i=rE){function l(p){return i[p]}function r(p){return`#${p.map(g=>Math.max(0,Math.min(g,255)).toString(16).padStart(2,"0")).join("")}`}let s;function u(){if(s)return s;s=[];for(let h=0;h<na.length;h++)s.push(l(na[h]));let p=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let y=0;y<6;y++)for(let b=0;b<6;b++)s.push(r([p[h],p[y],p[b]]));let g=8;for(let h=0;h<24;h++,g+=10)s.push(r([g,g,g]));return s}function f(p){return u()[p]}function d(p){switch(p.type){case"named":return l(p.name);case"rgb":return r(p.rgb);case"table":return f(p.index)}}return{value:d}}function oE(i,l,r){const s=oo(i,r),u=yo(l),f=sE(Object.fromEntries(na.map(p=>{var g;return[p,(g=i.colors)==null?void 0:g[`terminal.ansi${p[0].toUpperCase()}${p.substring(1)}`]]}))),d=iE();return u.map(p=>d.parse(p[0]).map(g=>{let h,y;g.decorations.has("reverse")?(h=g.background?f.value(g.background):i.bg,y=g.foreground?f.value(g.foreground):i.fg):(h=g.foreground?f.value(g.foreground):i.fg,y=g.background?f.value(g.background):void 0),h=ta(h,s),y=ta(y,s),g.decorations.has("dim")&&(h=uE(h));let b=rl.None;return g.decorations.has("bold")&&(b|=rl.Bold),g.decorations.has("italic")&&(b|=rl.Italic),g.decorations.has("underline")&&(b|=rl.Underline),{content:g.value,offset:p[1],color:h,bgColor:y,fontStyle:b}}))}function uE(i){const l=i.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(l)if(l[3]){const s=Math.round(Number.parseInt(l[3],16)/2).toString(16).padStart(2,"0");return`#${l[1]}${l[2]}${s}`}else return l[2]?`#${l[1]}${l[2]}80`:`#${Array.from(l[1]).map(s=>`${s}${s}`).join("")}80`;const r=i.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:i}function wf(i,l,r={}){const{lang:s="text",theme:u=i.getLoadedThemes()[0]}=r;if(kf(s)||Nf(u))return yo(l).map(g=>[{content:g[0],offset:g[1]}]);const{theme:f,colorMap:d}=i.setTheme(u);if(s==="ansi")return oE(f,l,r);const p=i.getLanguage(s);if(r.grammarState){if(r.grammarState.lang!==p.name)throw new sl(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${p.name}"`);if(!r.grammarState.themes.includes(f.name))throw new sl(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${f.name}"`)}return fE(l,p,f,d,r)}function cE(...i){if(i.length===2)return mr(i[1]);const[l,r,s={}]=i,{lang:u="text",theme:f=l.getLoadedThemes()[0]}=s;if(kf(u)||Nf(f))throw new sl("Plain language does not have grammar state");if(u==="ansi")throw new sl("ANSI language does not have grammar state");const{theme:d,colorMap:p}=l.setTheme(f),g=l.getLanguage(u);return new $a(co(r,g,d,p,s).stateStack,g.name,d.name)}function fE(i,l,r,s,u){const f=co(i,l,r,s,u),d=new $a(co(i,l,r,s,u).stateStack,l.name,r.name);return vo(f.tokens,d),f.tokens}function co(i,l,r,s,u){const f=oo(r,u),{tokenizeMaxLineLength:d=0,tokenizeTimeLimit:p=500}=u,g=yo(i);let h=u.grammarState?FS(u.grammarState,r.name)??sf:u.grammarContextCode!=null?co(u.grammarContextCode,l,r,s,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:sf,y=[];const b=[];for(let E=0,A=g.length;E<A;E++){const[C,U]=g[E];if(C===""){y=[],b.push([]);continue}if(d>0&&C.length>=d){y=[],b.push([{content:C,offset:U,color:"",fontStyle:0}]);continue}let P,B,I;u.includeExplanation&&(P=l.tokenizeLine(C,h),B=P.tokens,I=0);const q=l.tokenizeLine2(C,h,p),X=q.tokens.length/2;for(let ae=0;ae<X;ae++){const fe=q.tokens[2*ae],te=ae+1<X?q.tokens[2*ae+2]:C.length;if(fe===te)continue;const Ue=q.tokens[2*ae+1],mt=ta(s[Za.getForeground(Ue)],f),Lt=Za.getFontStyle(Ue),Re={content:C.substring(fe,te),offset:U+fe,color:mt,fontStyle:Lt};if(u.includeExplanation){const Ke=[];if(u.includeExplanation!=="scopeName")for(const Ye of r.settings){let Fe;switch(typeof Ye.scope){case"string":Fe=Ye.scope.split(/,/).map(z=>z.trim());break;case"object":Fe=Ye.scope;break;default:continue}Ke.push({settings:Ye,selectors:Fe.map(z=>z.split(/ /))})}Re.explanation=[];let kt=0;for(;fe+kt<te;){const Ye=B[I],Fe=C.substring(Ye.startIndex,Ye.endIndex);kt+=Fe.length,Re.explanation.push({content:Fe,scopes:u.includeExplanation==="scopeName"?dE(Ye.scopes):hE(Ke,Ye.scopes)}),I+=1}}y.push(Re)}b.push(y),y=[],h=q.ruleStack}return{tokens:b,stateStack:h}}function dE(i){return i.map(l=>({scopeName:l}))}function hE(i,l){const r=[];for(let s=0,u=l.length;s<u;s++){const f=l[s];r[s]={scopeName:f,themeMatches:mE(i,f,l.slice(0,s))}}return r}function mg(i,l){return i===l||l.substring(0,i.length)===i&&l[i.length]==="."}function pE(i,l,r){if(!mg(i[i.length-1],l))return!1;let s=i.length-2,u=r.length-1;for(;s>=0&&u>=0;)mg(i[s],r[u])&&(s-=1),u-=1;return s===-1}function mE(i,l,r){const s=[];for(const{selectors:u,settings:f}of i)for(const d of u)if(pE(d,l,r)){s.push(f);break}return s}function T_(i,l,r){const s=Object.entries(r.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})),u=s.map(g=>{const h=wf(i,l,{...r,theme:g.theme}),y=mr(h),b=typeof g.theme=="string"?g.theme:g.theme.name;return{tokens:h,state:y,theme:b}}),f=gE(...u.map(g=>g.tokens)),d=f[0].map((g,h)=>g.map((y,b)=>{const E={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in r&&r.includeExplanation&&(E.explanation=y.explanation),f.forEach((A,C)=>{const{content:U,explanation:P,offset:B,...I}=A[h][b];E.variants[s[C].color]=I}),E})),p=u[0].state?new $a(Object.fromEntries(u.map(g=>{var h;return[g.theme,(h=g.state)==null?void 0:h.getInternalStack(g.theme)]})),u[0].state.lang):void 0;return p&&vo(d,p),d}function gE(...i){const l=i.map(()=>[]),r=i.length;for(let s=0;s<i[0].length;s++){const u=i.map(g=>g[s]),f=l.map(()=>[]);l.forEach((g,h)=>g.push(f[h]));const d=u.map(()=>0),p=u.map(g=>g[0]);for(;p.every(g=>g);){const g=Math.min(...p.map(h=>h.content.length));for(let h=0;h<r;h++){const y=p[h];y.content.length===g?(f[h].push(y),d[h]+=1,p[h]=u[h][d[h]]):(f[h].push({...y,content:y.content.slice(0,g)}),p[h]={...y,content:y.content.slice(g),offset:y.offset+g})}}}return l}function fo(i,l,r){let s,u,f,d,p,g;if("themes"in r){const{defaultColor:h="light",cssVariablePrefix:y="--shiki-"}=r,b=Object.entries(r.themes).filter(P=>P[1]).map(P=>({color:P[0],theme:P[1]})).sort((P,B)=>P.color===h?-1:B.color===h?1:0);if(b.length===0)throw new sl("`themes` option must not be empty");const E=T_(i,l,r);if(g=mr(E),h&&!b.find(P=>P.color===h))throw new sl(`\`themes\` option must contain the defaultColor key \`${h}\``);const A=b.map(P=>i.getTheme(P.theme)),C=b.map(P=>P.color);f=E.map(P=>P.map(B=>_E(B,C,y,h))),g&&vo(f,g);const U=b.map(P=>oo(P.theme,r));u=b.map((P,B)=>(B===0&&h?"":`${y+P.color}:`)+(ta(A[B].fg,U[B])||"inherit")).join(";"),s=b.map((P,B)=>(B===0&&h?"":`${y+P.color}-bg:`)+(ta(A[B].bg,U[B])||"inherit")).join(";"),d=`shiki-themes ${A.map(P=>P.name).join(" ")}`,p=h?void 0:[u,s].join(";")}else if("theme"in r){const h=oo(r.theme,r);f=wf(i,l,r);const y=i.getTheme(r.theme);s=ta(y.bg,h),u=ta(y.fg,h),d=y.name,g=mr(f)}else throw new sl("Invalid options, either `theme` or `themes` must be provided");return{tokens:f,fg:u,bg:s,themeName:d,rootStyle:p,grammarState:g}}function _E(i,l,r,s){const u={content:i.content,explanation:i.explanation,offset:i.offset},f=l.map(g=>S_(i.variants[g])),d=new Set(f.flatMap(g=>Object.keys(g))),p={};return f.forEach((g,h)=>{for(const y of d){const b=g[y]||"inherit";if(h===0&&s)p[y]=b;else{const E=y==="color"?"":y==="background-color"?"-bg":`-${y}`,A=r+l[h]+(y==="color"?"":E);p[A]=b}}}),u.htmlStyle=p,u}function ho(i,l,r,s={meta:{},options:r,codeToHast:(u,f)=>ho(i,u,f),codeToTokens:(u,f)=>fo(i,u,f)}){var A,C;let u=l;for(const U of uo(r))u=((A=U.preprocess)==null?void 0:A.call(s,u,r))||u;let{tokens:f,fg:d,bg:p,themeName:g,rootStyle:h,grammarState:y}=fo(i,u,r);const{mergeWhitespaces:b=!0}=r;b===!0?f=vE(f):b==="never"&&(f=bE(f));const E={...s,get source(){return u}};for(const U of uo(r))f=((C=U.tokens)==null?void 0:C.call(E,f))||f;return yE(f,{...r,fg:d,bg:p,themeName:g,rootStyle:h},E,y)}function yE(i,l,r,s=mr(i)){var C,U,P;const u=uo(l),f=[],d={type:"root",children:[]},{structure:p="classic",tabindex:g="0"}=l;let h={type:"element",tagName:"pre",properties:{class:`shiki ${l.themeName||""}`,style:l.rootStyle||`background-color:${l.bg};color:${l.fg}`,...g!==!1&&g!=null?{tabindex:g.toString()}:{},...Object.fromEntries(Array.from(Object.entries(l.meta||{})).filter(([B])=>!B.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:f};const b=[],E={...r,structure:p,addClassToHast:v_,get source(){return r.source},get tokens(){return i},get options(){return l},get root(){return d},get pre(){return h},get code(){return y},get lines(){return b}};if(i.forEach((B,I)=>{var ae,fe;I&&(p==="inline"?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):p==="classic"&&f.push({type:"text",value:`
|
|
117
|
-
`}));let q={type:"element",tagName:"span",properties:{class:"line"},children:[]},X=0;for(const te of B){let Ue={type:"element",tagName:"span",properties:{...te.htmlAttrs},children:[{type:"text",value:te.content}]};te.htmlStyle;const mt=JS(te.htmlStyle||S_(te));mt&&(Ue.properties.style=mt);for(const Lt of u)Ue=((ae=Lt==null?void 0:Lt.span)==null?void 0:ae.call(E,Ue,I+1,X,q,te))||Ue;p==="inline"?d.children.push(Ue):p==="classic"&&q.children.push(Ue),X+=te.content.length}if(p==="classic"){for(const te of u)q=((fe=te==null?void 0:te.line)==null?void 0:fe.call(E,q,I+1))||q;b.push(q),f.push(q)}}),p==="classic"){for(const B of u)y=((C=B==null?void 0:B.code)==null?void 0:C.call(E,y))||y;h.children.push(y);for(const B of u)h=((U=B==null?void 0:B.pre)==null?void 0:U.call(E,h))||h;d.children.push(h)}let A=d;for(const B of u)A=((P=B==null?void 0:B.root)==null?void 0:P.call(E,A))||A;return s&&vo(A,s),A}function vE(i){return i.map(l=>{const r=[];let s="",u=0;return l.forEach((f,d)=>{const g=!(f.fontStyle&&f.fontStyle&rl.Underline);g&&f.content.match(/^\s+$/)&&l[d+1]?(u||(u=f.offset),s+=f.content):s?(g?r.push({...f,offset:u,content:s+f.content}):r.push({content:s,offset:u},f),u=0,s=""):r.push(f)}),r})}function bE(i){return i.map(l=>l.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const s=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!s)return r;const[,u,f,d]=s;if(!u&&!d)return r;const p=[{...r,offset:r.offset+u.length,content:f}];return u&&p.unshift({content:u,offset:r.offset}),d&&p.push({content:d,offset:r.offset+u.length+f.length}),p}))}function SE(i,l,r){var f;const s={meta:{},options:r,codeToHast:(d,p)=>ho(i,d,p),codeToTokens:(d,p)=>fo(i,d,p)};let u=YS(ho(i,l,r,s));for(const d of uo(r))u=((f=d.postprocess)==null?void 0:f.call(s,u,r))||u;return u}const gg={light:"#333333",dark:"#bbbbbb"},_g={light:"#fffffe",dark:"#1e1e1e"},yg="__shiki_resolved";function Mf(i){var p,g,h,y,b;if(i!=null&&i[yg])return i;const l={...i};l.tokenColors&&!l.settings&&(l.settings=l.tokenColors,delete l.tokenColors),l.type||(l.type="dark"),l.colorReplacements={...l.colorReplacements},l.settings||(l.settings=[]);let{bg:r,fg:s}=l;if(!r||!s){const E=l.settings?l.settings.find(A=>!A.name&&!A.scope):void 0;(p=E==null?void 0:E.settings)!=null&&p.foreground&&(s=E.settings.foreground),(g=E==null?void 0:E.settings)!=null&&g.background&&(r=E.settings.background),!s&&((h=l==null?void 0:l.colors)!=null&&h["editor.foreground"])&&(s=l.colors["editor.foreground"]),!r&&((y=l==null?void 0:l.colors)!=null&&y["editor.background"])&&(r=l.colors["editor.background"]),s||(s=l.type==="light"?gg.light:gg.dark),r||(r=l.type==="light"?_g.light:_g.dark),l.fg=s,l.bg=r}l.settings[0]&&l.settings[0].settings&&!l.settings[0].scope||l.settings.unshift({settings:{foreground:l.fg,background:l.bg}});let u=0;const f=new Map;function d(E){var C;if(f.has(E))return f.get(E);u+=1;const A=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(C=l.colorReplacements)!=null&&C[`#${A}`]?d(E):(f.set(E,A),A)}l.settings=l.settings.map(E=>{var P,B;const A=((P=E.settings)==null?void 0:P.foreground)&&!E.settings.foreground.startsWith("#"),C=((B=E.settings)==null?void 0:B.background)&&!E.settings.background.startsWith("#");if(!A&&!C)return E;const U={...E,settings:{...E.settings}};if(A){const I=d(E.settings.foreground);l.colorReplacements[I]=E.settings.foreground,U.settings.foreground=I}if(C){const I=d(E.settings.background);l.colorReplacements[I]=E.settings.background,U.settings.background=I}return U});for(const E of Object.keys(l.colors||{}))if((E==="editor.foreground"||E==="editor.background"||E.startsWith("terminal.ansi"))&&!((b=l.colors[E])!=null&&b.startsWith("#"))){const A=d(l.colors[E]);l.colorReplacements[A]=l.colors[E],l.colors[E]=A}return Object.defineProperty(l,yg,{enumerable:!1,writable:!1,value:!0}),l}async function A_(i){return Array.from(new Set((await Promise.all(i.filter(l=>!__(l)).map(async l=>await b_(l).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function R_(i){return(await Promise.all(i.map(async r=>y_(r)?null:Mf(await b_(r))))).filter(r=>!!r)}class EE extends k1{constructor(r,s,u,f={}){super(r);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=r,this._themes=s,this._langs=u,this._alias=f,this._themes.map(d=>this.loadTheme(d)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const s=Mf(r);return s.name&&(this._resolvedThemes.set(s.name,s),this._loadedThemesCache=null),s}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let s=this._textmateThemeCache.get(r);s||(s=lo.createFromRawTheme(r),this._textmateThemeCache.set(r,s)),this._syncRegistry.setTheme(s)}getGrammar(r){if(this._alias[r]){const s=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],s.has(r))throw new Rt(`Circular alias \`${Array.from(s).join(" -> ")} -> ${r}\``);s.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var d,p,g,h;if(this.getGrammar(r.name))return;const s=new Set([...this._langMap.values()].filter(y=>{var b;return(b=y.embeddedLangsLazy)==null?void 0:b.includes(r.name)}));this._resolver.addLanguage(r);const u={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const f=this.loadGrammarWithConfiguration(r.scopeName,1,u);if(f.name=r.name,this._resolvedGrammars.set(r.name,f),r.aliases&&r.aliases.forEach(y=>{this._alias[y]=r.name}),this._loadedLanguagesCache=null,s.size)for(const y of s)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(p=(d=this._syncRegistry)==null?void 0:d._injectionGrammars)==null||p.delete(y.scopeName),(h=(g=this._syncRegistry)==null?void 0:g._grammars)==null||h.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(r){for(const f of r)this.resolveEmbeddedLanguages(f);const s=Array.from(this._langGraph.entries()),u=s.filter(([f,d])=>!d);if(u.length){const f=s.filter(([d,p])=>{var g;return p&&((g=p.embeddedLangs)==null?void 0:g.some(h=>u.map(([y])=>y).includes(h)))}).filter(d=>!u.includes(d));throw new Rt(`Missing languages ${u.map(([d])=>`\`${d}\``).join(", ")}, required by ${f.map(([d])=>`\`${d}\``).join(", ")}`)}for(const[f,d]of s)this._resolver.addLanguage(d);for(const[f,d]of s)this.loadLanguage(d)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const s of r.embeddedLangs)this._langGraph.set(s,this._langMap.get(s))}}class xE{constructor(l,r){w(this,"_langs",new Map);w(this,"_scopeToLang",new Map);w(this,"_injections",new Map);w(this,"_onigLib");this._onigLib={createOnigScanner:s=>l.createScanner(s),createOnigString:s=>l.createString(s)},r.forEach(s=>this.addLanguage(s))}get onigLib(){return this._onigLib}getLangRegistration(l){return this._langs.get(l)}loadGrammar(l){return this._scopeToLang.get(l)}addLanguage(l){this._langs.set(l.name,l),l.aliases&&l.aliases.forEach(r=>{this._langs.set(r,l)}),this._scopeToLang.set(l.scopeName,l),l.injectTo&&l.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(l.scopeName)})}getInjections(l){const r=l.split(".");let s=[];for(let u=1;u<=r.length;u++){const f=r.slice(0,u).join(".");s=[...s,...this._injections.get(f)||[]]}return s}}let rr=0;function TE(i){rr+=1,i.warnings!==!1&&rr>=10&&rr%10===0&&console.warn(`[Shiki] ${rr} 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 l=!1;if(!i.engine)throw new Rt("`engine` option is required for synchronous mode");const r=(i.langs||[]).flat(1),s=(i.themes||[]).flat(1).map(Mf),u=new xE(i.engine,r),f=new EE(u,s,r,i.langAlias);let d;function p(I){P();const q=f.getGrammar(typeof I=="string"?I:I.name);if(!q)throw new Rt(`Language \`${I}\` not found, you may need to load it first`);return q}function g(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};P();const q=f.getTheme(I);if(!q)throw new Rt(`Theme \`${I}\` not found, you may need to load it first`);return q}function h(I){P();const q=g(I);d!==I&&(f.setTheme(q),d=I);const X=f.getColorMap();return{theme:q,colorMap:X}}function y(){return P(),f.getLoadedThemes()}function b(){return P(),f.getLoadedLanguages()}function E(...I){P(),f.loadLanguages(I.flat(1))}async function A(...I){return E(await A_(I))}function C(...I){P();for(const q of I.flat(1))f.loadTheme(q)}async function U(...I){return P(),C(await R_(I))}function P(){if(l)throw new Rt("Shiki instance has been disposed")}function B(){l||(l=!0,f.dispose(),rr-=1)}return{setTheme:h,getTheme:g,getLanguage:p,getLoadedThemes:y,getLoadedLanguages:b,loadLanguage:A,loadLanguageSync:E,loadTheme:U,loadThemeSync:C,dispose:B,[Symbol.dispose]:B}}async function AE(i={}){i.loadWasm;const[l,r,s]=await Promise.all([R_(i.themes||[]),A_(i.langs||[]),i.engine||Ig(i.loadWasm||Yb())]);return TE({...i,themes:l,langs:r,engine:s})}async function RE(i={}){const l=await AE(i);return{getLastGrammarState:(...r)=>cE(l,...r),codeToTokensBase:(r,s)=>wf(l,r,s),codeToTokensWithThemes:(r,s)=>T_(l,r,s),codeToTokens:(r,s)=>fo(l,r,s),codeToHast:(r,s)=>ho(l,r,s),codeToHtml:(r,s)=>SE(l,r,s),...l,getInternalContext:()=>l}}function OE(i,l,r){let s,u,f;{const p=i;s=p.langs,u=p.themes,f=p.engine}async function d(p){function g(A){if(typeof A=="string"){if(__(A))return[];const C=s[A];if(!C)throw new sl(`Language \`${A}\` is not included in this bundle. You may want to load it from external source.`);return C}return A}function h(A){if(y_(A))return"none";if(typeof A=="string"){const C=u[A];if(!C)throw new sl(`Theme \`${A}\` is not included in this bundle. You may want to load it from external source.`);return C}return A}const y=(p.themes??[]).map(A=>h(A)),b=(p.langs??[]).map(A=>g(A)),E=await RE({engine:p.engine??f(),...p,themes:y,langs:b});return{...E,loadLanguage(...A){return E.loadLanguage(...A.map(g))},loadTheme(...A){return E.loadTheme(...A.map(h))}}}return d}function CE(i){let l;async function r(s={}){if(l){const u=await l;return await Promise.all([u.loadTheme(...s.themes||[]),u.loadLanguage(...s.langs||[])]),u}else return l=i({...s,themes:s.themes||[],langs:s.langs||[]}),l}return r}function DE(i){const l=CE(i);return{getSingletonHighlighter(r){return l(r)},async codeToHtml(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHtml(r,s)},async codeToHast(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHast(r,s)},async codeToTokens(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToTokens(r,s)},async codeToTokensBase(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).codeToTokensBase(r,s)},async codeToTokensWithThemes(r,s){return(await l({langs:[s.lang],themes:Object.values(s.themes).filter(Boolean)})).codeToTokensWithThemes(r,s)},async getLastGrammarState(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(r,s)}}}const LE=OE({langs:Ab,themes:Ob,engine:()=>Ig(S(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:kE}=DE(LE);let sr=null;async function NE(){if(sr)return sr;try{sr={attachmentBaseUrl:(await(await fetch("/api/config")).json()).fileAttachmentBaseUrl||""}}catch{sr={attachmentBaseUrl:""}}return sr}function wE(i,l){return l?i.replace(/attach:\/\/([^\s)]+)/g,(r,s)=>`${l}/${s}`):i}function O_(i){return i.toLowerCase().replace(/<[^>]+>/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}const ME={heading({text:i,depth:l}){const r=O_(i),s=i.replace(/#([a-z0-9]+-[a-z0-9]+)/gi,(u,f)=>`<a href="/detail/${f}">#${f}</a>`);return`<h${l} id="${r}">${s}</h${l}>`}};Te.use({renderer:ME});function zE(i){return i.split(`
|
|
116
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function BS(i,l,r,s){const u=s.schema,f=u.space==="svg"?!1:s.settings.omitOptionalTags;let d=u.space==="svg"?s.settings.closeEmptyElements:s.settings.voids.includes(i.tagName.toLowerCase());const g=[];let p;u.space==="html"&&i.tagName==="svg"&&(s.schema=m_);const h=HS(s,i.properties),y=s.all(u.space==="html"&&i.tagName==="template"?i.content:i);return s.schema=u,y&&(d=!1),(h||!f||!NS(i,l,r))&&(g.push("<",i.tagName,h?" "+h:""),d&&(u.space==="svg"||s.settings.closeSelfClosing)&&(p=h.charAt(h.length-1),(!s.settings.tightSelfClosing||p==="/"||p&&p!=='"'&&p!=="'")&&g.push(" "),g.push("/")),g.push(">")),g.push(y),!d&&(!f||!Nf(i,l,r))&&g.push("</"+i.tagName+">"),g.join("")}function HS(i,l){const r=[];let s=-1,u;if(l){for(u in l)if(l[u]!==null&&l[u]!==void 0){const f=VS(i,u,l[u]);f&&r.push(f)}}for(;++s<r.length;){const f=i.settings.tightAttributes?r[s].charAt(r[s].length-1):void 0;s!==r.length-1&&f!=='"'&&f!=="'"&&(r[s]+=" ")}return r.join("")}function VS(i,l,r){const s=q1(i.schema,l),u=i.settings.allowParseErrors&&i.schema.space==="html"?0:1,f=i.settings.allowDangerousCharacters?0:1;let d=i.quote,g;if(s.overloadedBoolean&&(r===s.attribute||r==="")?r=!0:(s.boolean||s.overloadedBoolean)&&(typeof r!="string"||r===s.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const p=Xa(s.attribute,Object.assign({},i.settings.characterReferences,{subset:Qs.name[u][f]}));return r===!0||(r=Array.isArray(r)?(s.commaSeparated?pS:gS)(r,{padLeft:!i.settings.tightCommaSeparatedLists}):String(r),i.settings.collapseEmptyAttributes&&!r)?p:(i.settings.preferUnquoted&&(g=Xa(r,Object.assign({},i.settings.characterReferences,{attribute:!0,subset:Qs.unquoted[u][f]}))),g!==r&&(i.settings.quoteSmart&&fg(r,d)>fg(r,i.alternative)&&(d=i.alternative),g=d+Xa(r,Object.assign({},i.settings.characterReferences,{subset:(d==="'"?Qs.single:Qs.double)[u][f],attribute:!0}))+d),p+(g&&"="+g))}const GS=["<","&"];function v_(i,l,r,s){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?i.value:Xa(i.value,Object.assign({},s.settings.characterReferences,{subset:GS}))}function IS(i,l,r,s){return s.settings.allowDangerousHtml?i.value:v_(i,l,r,s)}function qS(i,l,r,s){return s.all(i)}const PS=Q1("type",{invalid:YS,unknown:XS,handlers:{comment:hS,doctype:mS,element:BS,raw:IS,root:qS,text:v_}});function YS(i){throw new Error("Expected node, not `"+i+"`")}function XS(i){const l=i;throw new Error("Cannot compile unknown node `"+l.type+"`")}const QS={},ZS={},KS=[];function $S(i,l){const r=QS,s=r.quote||'"',u=s==='"'?"'":'"';if(s!=='"'&&s!=="'")throw new Error("Invalid quote `"+s+"`, expected `'` or `\"`");return{one:JS,all:WS,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||U1,characterReferences:r.characterReferences||ZS,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?m_:X1,quote:s,alternative:u}.one(Array.isArray(i)?{type:"root",children:i}:i,void 0,void 0)}function JS(i,l,r){return PS(i,l,r,this)}function WS(i){const l=[],r=i&&i.children||KS;let s=-1;for(;++s<r.length;)l[s]=this.one(r[s],s,i);return l.join("")}function FS(i){return Array.isArray(i)?i:[i]}function yo(i,l=!1){var f;const r=i.split(/(\r?\n)/g);let s=0;const u=[];for(let d=0;d<r.length;d+=2){const g=l?r[d]+(r[d+1]||""):r[d];u.push([g,s]),s+=r[d].length,s+=((f=r[d+1])==null?void 0:f.length)||0}return u}function wf(i){return!i||["plaintext","txt","text","plain"].includes(i)}function b_(i){return i==="ansi"||wf(i)}function Mf(i){return i==="none"}function S_(i){return Mf(i)}function E_(i,l){var s;if(!l)return i;i.properties||(i.properties={}),(s=i.properties).class||(s.class=[]),typeof i.properties.class=="string"&&(i.properties.class=i.properties.class.split(/\s+/g)),Array.isArray(i.properties.class)||(i.properties.class=[]);const r=Array.isArray(l)?l:l.split(/\s+/g);for(const u of r)u&&!i.properties.class.includes(u)&&i.properties.class.push(u);return i}function eE(i,l){let r=0;const s=[];for(const u of l)u>r&&s.push({...i,content:i.content.slice(r,u),offset:i.offset+r}),r=u;return r<i.content.length&&s.push({...i,content:i.content.slice(r),offset:i.offset+r}),s}function tE(i,l){const r=Array.from(l instanceof Set?l:new Set(l)).sort((s,u)=>s-u);return r.length?i.map(s=>s.flatMap(u=>{const f=r.filter(d=>u.offset<d&&d<u.offset+u.content.length).map(d=>d-u.offset).sort((d,g)=>d-g);return f.length?eE(u,f):u})):i}async function x_(i){return Promise.resolve(typeof i=="function"?i():i).then(l=>l.default||l)}function oo(i,l){const r=typeof i=="string"?{}:{...i.colorReplacements},s=typeof i=="string"?i:i.name;for(const[u,f]of Object.entries((l==null?void 0:l.colorReplacements)||{}))typeof f=="string"?r[u]=f:u===s&&Object.assign(r,f);return r}function ta(i,l){return i&&((l==null?void 0:l[i==null?void 0:i.toLowerCase()])||i)}function T_(i){const l={};return i.color&&(l.color=i.color),i.bgColor&&(l["background-color"]=i.bgColor),i.fontStyle&&(i.fontStyle&rl.Italic&&(l["font-style"]="italic"),i.fontStyle&rl.Bold&&(l["font-weight"]="bold"),i.fontStyle&rl.Underline&&(l["text-decoration"]="underline")),l}function nE(i){return typeof i=="string"?i:Object.entries(i).map(([l,r])=>`${l}:${r}`).join(";")}function lE(i){const l=yo(i,!0).map(([u])=>u);function r(u){if(u===i.length)return{line:l.length-1,character:l[l.length-1].length};let f=u,d=0;for(const g of l){if(f<g.length)break;f-=g.length,d++}return{line:d,character:f}}function s(u,f){let d=0;for(let g=0;g<u;g++)d+=l[g].length;return d+=f,d}return{lines:l,indexToPos:r,posToIndex:s}}class Rt extends Error{constructor(l){super(l),this.name="ShikiError"}}const A_=new WeakMap;function vo(i,l){A_.set(i,l)}function pr(i){return A_.get(i)}class $a{constructor(...l){w(this,"_stacks",{});w(this,"lang");if(l.length===2){const[r,s]=l;this.lang=s,this._stacks=r}else{const[r,s,u]=l;this.lang=s,this._stacks={[u]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(l,r){return new $a(Object.fromEntries(FS(r).map(s=>[s,of])),l)}getInternalStack(l=this.theme){return this._stacks[l]}get scopes(){return pg(this._stacks[this.theme])}getScopes(l=this.theme){return pg(this._stacks[l])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function pg(i){const l=[],r=new Set;function s(u){var d;if(r.has(u))return;r.add(u);const f=(d=u==null?void 0:u.nameScopesList)==null?void 0:d.scopeName;f&&l.push(f),u.parent&&s(u.parent)}return s(i),l}function aE(i,l){if(!(i instanceof $a))throw new Rt("Invalid grammar state");return i.getInternalStack(l)}function iE(){const i=new WeakMap;function l(r){if(!i.has(r.meta)){let s=function(d){if(typeof d=="number"){if(d<0||d>r.source.length)throw new Rt(`Invalid decoration offset: ${d}. Code length: ${r.source.length}`);return{...u.indexToPos(d),offset:d}}else{const g=u.lines[d.line];if(g===void 0)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Lines length: ${u.lines.length}`);if(d.character<0||d.character>g.length)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Line ${d.line} length: ${g.length}`);return{...d,offset:u.posToIndex(d.line,d.character)}}};const u=lE(r.source),f=(r.options.decorations||[]).map(d=>({...d,start:s(d.start),end:s(d.end)}));rE(f),i.set(r.meta,{decorations:f,converter:u,source:r.source})}return i.get(r.meta)}return{name:"shiki:decorations",tokens(r){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const u=l(this).decorations.flatMap(g=>[g.start.offset,g.end.offset]);return tE(r,u)},code(r){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const s=l(this),u=Array.from(r.children).filter(b=>b.type==="element"&&b.tagName==="span");if(u.length!==s.converter.lines.length)throw new Rt(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);function f(b,E,T,C){const U=u[b];let q="",B=-1,I=-1;if(E===0&&(B=0),T===0&&(I=0),T===Number.POSITIVE_INFINITY&&(I=U.children.length),B===-1||I===-1)for(let X=0;X<U.children.length;X++)q+=R_(U.children[X]),B===-1&&q.length===E&&(B=X+1),I===-1&&q.length===T&&(I=X+1);if(B===-1)throw new Rt(`Failed to find start index for decoration ${JSON.stringify(C.start)}`);if(I===-1)throw new Rt(`Failed to find end index for decoration ${JSON.stringify(C.end)}`);const P=U.children.slice(B,I);if(!C.alwaysWrap&&P.length===U.children.length)g(U,C,"line");else if(!C.alwaysWrap&&P.length===1&&P[0].type==="element")g(P[0],C,"token");else{const X={type:"element",tagName:"span",properties:{},children:P};g(X,C,"wrapper"),U.children.splice(B,P.length,X)}}function d(b,E){u[b]=g(u[b],E,"line")}function g(b,E,T){var q;const C=E.properties||{},U=E.transform||(B=>B);return b.tagName=E.tagName||"span",b.properties={...b.properties,...C,class:b.properties.class},(q=E.properties)!=null&&q.class&&E_(b,E.properties.class),b=U(b,T)||b,b}const p=[],h=s.decorations.sort((b,E)=>E.start.offset-b.start.offset);for(const b of h){const{start:E,end:T}=b;if(E.line===T.line)f(E.line,E.character,T.character,b);else if(E.line<T.line){f(E.line,E.character,Number.POSITIVE_INFINITY,b);for(let C=E.line+1;C<T.line;C++)p.unshift(()=>d(C,b));f(T.line,0,T.character,b)}}p.forEach(b=>b())}}}function rE(i){for(let l=0;l<i.length;l++){const r=i[l];if(r.start.offset>r.end.offset)throw new Rt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let s=l+1;s<i.length;s++){const u=i[s],f=r.start.offset<u.start.offset&&u.start.offset<r.end.offset,d=r.start.offset<u.end.offset&&u.end.offset<r.end.offset,g=u.start.offset<r.start.offset&&r.start.offset<u.end.offset,p=u.start.offset<r.end.offset&&r.end.offset<u.end.offset;if(f||d||g||p){if(d&&d||g&&p)continue;throw new Rt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function R_(i){return i.type==="text"?i.value:i.type==="element"?i.children.map(R_).join(""):""}const sE=[iE()];function uo(i){return[...i.transformers||[],...sE]}var na=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Zc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function oE(i,l){const r=i.indexOf("\x1B[",l);if(r!==-1){const s=i.indexOf("m",r);return{sequence:i.substring(r+2,s).split(";"),startPosition:r,position:s+1}}return{position:i.length}}function gg(i,l){let r=1;const s=i[l+r++];let u;if(s==="2"){const f=[i[l+r++],i[l+r++],i[l+r]].map(d=>Number.parseInt(d));f.length===3&&!f.some(d=>Number.isNaN(d))&&(u={type:"rgb",rgb:f})}else if(s==="5"){const f=Number.parseInt(i[l+r]);Number.isNaN(f)||(u={type:"table",index:Number(f)})}return[r,u]}function uE(i){const l=[];for(let r=0;r<i.length;r++){const s=i[r],u=Number.parseInt(s);if(!Number.isNaN(u))if(u===0)l.push({type:"resetAll"});else if(u<=9)Zc[u]&&l.push({type:"setDecoration",value:Zc[u]});else if(u<=29){const f=Zc[u-20];f&&l.push({type:"resetDecoration",value:f})}else if(u<=37)l.push({type:"setForegroundColor",value:{type:"named",name:na[u-30]}});else if(u===38){const[f,d]=gg(i,r);d&&l.push({type:"setForegroundColor",value:d}),r+=f}else if(u===39)l.push({type:"resetForegroundColor"});else if(u<=47)l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-40]}});else if(u===48){const[f,d]=gg(i,r);d&&l.push({type:"setBackgroundColor",value:d}),r+=f}else u===49?l.push({type:"resetBackgroundColor"}):u>=90&&u<=97?l.push({type:"setForegroundColor",value:{type:"named",name:na[u-90+8]}}):u>=100&&u<=107&&l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-100+8]}})}return l}function cE(){let i=null,l=null,r=new Set;return{parse(s){const u=[];let f=0;do{const d=oE(s,f),g=d.sequence?s.substring(f,d.startPosition):s.substring(f);if(g.length>0&&u.push({value:g,foreground:i,background:l,decorations:new Set(r)}),d.sequence){const p=uE(d.sequence);for(const h of p)h.type==="resetAll"?(i=null,l=null,r.clear()):h.type==="resetForegroundColor"?i=null:h.type==="resetBackgroundColor"?l=null:h.type==="resetDecoration"&&r.delete(h.value);for(const h of p)h.type==="setForegroundColor"?i=h.value:h.type==="setBackgroundColor"?l=h.value:h.type==="setDecoration"&&r.add(h.value)}f=d.position}while(f<s.length);return u}}}var fE={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 dE(i=fE){function l(g){return i[g]}function r(g){return`#${g.map(p=>Math.max(0,Math.min(p,255)).toString(16).padStart(2,"0")).join("")}`}let s;function u(){if(s)return s;s=[];for(let h=0;h<na.length;h++)s.push(l(na[h]));let g=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let y=0;y<6;y++)for(let b=0;b<6;b++)s.push(r([g[h],g[y],g[b]]));let p=8;for(let h=0;h<24;h++,p+=10)s.push(r([p,p,p]));return s}function f(g){return u()[g]}function d(g){switch(g.type){case"named":return l(g.name);case"rgb":return r(g.rgb);case"table":return f(g.index)}}return{value:d}}function hE(i,l,r){const s=oo(i,r),u=yo(l),f=dE(Object.fromEntries(na.map(g=>{var p;return[g,(p=i.colors)==null?void 0:p[`terminal.ansi${g[0].toUpperCase()}${g.substring(1)}`]]}))),d=cE();return u.map(g=>d.parse(g[0]).map(p=>{let h,y;p.decorations.has("reverse")?(h=p.background?f.value(p.background):i.bg,y=p.foreground?f.value(p.foreground):i.fg):(h=p.foreground?f.value(p.foreground):i.fg,y=p.background?f.value(p.background):void 0),h=ta(h,s),y=ta(y,s),p.decorations.has("dim")&&(h=mE(h));let b=rl.None;return p.decorations.has("bold")&&(b|=rl.Bold),p.decorations.has("italic")&&(b|=rl.Italic),p.decorations.has("underline")&&(b|=rl.Underline),{content:p.value,offset:g[1],color:h,bgColor:y,fontStyle:b}}))}function mE(i){const l=i.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(l)if(l[3]){const s=Math.round(Number.parseInt(l[3],16)/2).toString(16).padStart(2,"0");return`#${l[1]}${l[2]}${s}`}else return l[2]?`#${l[1]}${l[2]}80`:`#${Array.from(l[1]).map(s=>`${s}${s}`).join("")}80`;const r=i.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:i}function zf(i,l,r={}){const{lang:s="text",theme:u=i.getLoadedThemes()[0]}=r;if(wf(s)||Mf(u))return yo(l).map(p=>[{content:p[0],offset:p[1]}]);const{theme:f,colorMap:d}=i.setTheme(u);if(s==="ansi")return hE(f,l,r);const g=i.getLanguage(s);if(r.grammarState){if(r.grammarState.lang!==g.name)throw new sl(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${g.name}"`);if(!r.grammarState.themes.includes(f.name))throw new sl(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${f.name}"`)}return gE(l,g,f,d,r)}function pE(...i){if(i.length===2)return pr(i[1]);const[l,r,s={}]=i,{lang:u="text",theme:f=l.getLoadedThemes()[0]}=s;if(wf(u)||Mf(f))throw new sl("Plain language does not have grammar state");if(u==="ansi")throw new sl("ANSI language does not have grammar state");const{theme:d,colorMap:g}=l.setTheme(f),p=l.getLanguage(u);return new $a(co(r,p,d,g,s).stateStack,p.name,d.name)}function gE(i,l,r,s,u){const f=co(i,l,r,s,u),d=new $a(co(i,l,r,s,u).stateStack,l.name,r.name);return vo(f.tokens,d),f.tokens}function co(i,l,r,s,u){const f=oo(r,u),{tokenizeMaxLineLength:d=0,tokenizeTimeLimit:g=500}=u,p=yo(i);let h=u.grammarState?aE(u.grammarState,r.name)??of:u.grammarContextCode!=null?co(u.grammarContextCode,l,r,s,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:of,y=[];const b=[];for(let E=0,T=p.length;E<T;E++){const[C,U]=p[E];if(C===""){y=[],b.push([]);continue}if(d>0&&C.length>=d){y=[],b.push([{content:C,offset:U,color:"",fontStyle:0}]);continue}let q,B,I;u.includeExplanation&&(q=l.tokenizeLine(C,h),B=q.tokens,I=0);const P=l.tokenizeLine2(C,h,g),X=P.tokens.length/2;for(let ae=0;ae<X;ae++){const fe=P.tokens[2*ae],te=ae+1<X?P.tokens[2*ae+2]:C.length;if(fe===te)continue;const Ue=P.tokens[2*ae+1],pt=ta(s[Za.getForeground(Ue)],f),kt=Za.getFontStyle(Ue),Re={content:C.substring(fe,te),offset:U+fe,color:pt,fontStyle:kt};if(u.includeExplanation){const Ke=[];if(u.includeExplanation!=="scopeName")for(const Ye of r.settings){let Fe;switch(typeof Ye.scope){case"string":Fe=Ye.scope.split(/,/).map(z=>z.trim());break;case"object":Fe=Ye.scope;break;default:continue}Ke.push({settings:Ye,selectors:Fe.map(z=>z.split(/ /))})}Re.explanation=[];let Lt=0;for(;fe+Lt<te;){const Ye=B[I],Fe=C.substring(Ye.startIndex,Ye.endIndex);Lt+=Fe.length,Re.explanation.push({content:Fe,scopes:u.includeExplanation==="scopeName"?_E(Ye.scopes):yE(Ke,Ye.scopes)}),I+=1}}y.push(Re)}b.push(y),y=[],h=P.ruleStack}return{tokens:b,stateStack:h}}function _E(i){return i.map(l=>({scopeName:l}))}function yE(i,l){const r=[];for(let s=0,u=l.length;s<u;s++){const f=l[s];r[s]={scopeName:f,themeMatches:bE(i,f,l.slice(0,s))}}return r}function _g(i,l){return i===l||l.substring(0,i.length)===i&&l[i.length]==="."}function vE(i,l,r){if(!_g(i[i.length-1],l))return!1;let s=i.length-2,u=r.length-1;for(;s>=0&&u>=0;)_g(i[s],r[u])&&(s-=1),u-=1;return s===-1}function bE(i,l,r){const s=[];for(const{selectors:u,settings:f}of i)for(const d of u)if(vE(d,l,r)){s.push(f);break}return s}function O_(i,l,r){const s=Object.entries(r.themes).filter(p=>p[1]).map(p=>({color:p[0],theme:p[1]})),u=s.map(p=>{const h=zf(i,l,{...r,theme:p.theme}),y=pr(h),b=typeof p.theme=="string"?p.theme:p.theme.name;return{tokens:h,state:y,theme:b}}),f=SE(...u.map(p=>p.tokens)),d=f[0].map((p,h)=>p.map((y,b)=>{const E={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in r&&r.includeExplanation&&(E.explanation=y.explanation),f.forEach((T,C)=>{const{content:U,explanation:q,offset:B,...I}=T[h][b];E.variants[s[C].color]=I}),E})),g=u[0].state?new $a(Object.fromEntries(u.map(p=>{var h;return[p.theme,(h=p.state)==null?void 0:h.getInternalStack(p.theme)]})),u[0].state.lang):void 0;return g&&vo(d,g),d}function SE(...i){const l=i.map(()=>[]),r=i.length;for(let s=0;s<i[0].length;s++){const u=i.map(p=>p[s]),f=l.map(()=>[]);l.forEach((p,h)=>p.push(f[h]));const d=u.map(()=>0),g=u.map(p=>p[0]);for(;g.every(p=>p);){const p=Math.min(...g.map(h=>h.content.length));for(let h=0;h<r;h++){const y=g[h];y.content.length===p?(f[h].push(y),d[h]+=1,g[h]=u[h][d[h]]):(f[h].push({...y,content:y.content.slice(0,p)}),g[h]={...y,content:y.content.slice(p),offset:y.offset+p})}}}return l}function fo(i,l,r){let s,u,f,d,g,p;if("themes"in r){const{defaultColor:h="light",cssVariablePrefix:y="--shiki-"}=r,b=Object.entries(r.themes).filter(q=>q[1]).map(q=>({color:q[0],theme:q[1]})).sort((q,B)=>q.color===h?-1:B.color===h?1:0);if(b.length===0)throw new sl("`themes` option must not be empty");const E=O_(i,l,r);if(p=pr(E),h&&!b.find(q=>q.color===h))throw new sl(`\`themes\` option must contain the defaultColor key \`${h}\``);const T=b.map(q=>i.getTheme(q.theme)),C=b.map(q=>q.color);f=E.map(q=>q.map(B=>EE(B,C,y,h))),p&&vo(f,p);const U=b.map(q=>oo(q.theme,r));u=b.map((q,B)=>(B===0&&h?"":`${y+q.color}:`)+(ta(T[B].fg,U[B])||"inherit")).join(";"),s=b.map((q,B)=>(B===0&&h?"":`${y+q.color}-bg:`)+(ta(T[B].bg,U[B])||"inherit")).join(";"),d=`shiki-themes ${T.map(q=>q.name).join(" ")}`,g=h?void 0:[u,s].join(";")}else if("theme"in r){const h=oo(r.theme,r);f=zf(i,l,r);const y=i.getTheme(r.theme);s=ta(y.bg,h),u=ta(y.fg,h),d=y.name,p=pr(f)}else throw new sl("Invalid options, either `theme` or `themes` must be provided");return{tokens:f,fg:u,bg:s,themeName:d,rootStyle:g,grammarState:p}}function EE(i,l,r,s){const u={content:i.content,explanation:i.explanation,offset:i.offset},f=l.map(p=>T_(i.variants[p])),d=new Set(f.flatMap(p=>Object.keys(p))),g={};return f.forEach((p,h)=>{for(const y of d){const b=p[y]||"inherit";if(h===0&&s)g[y]=b;else{const E=y==="color"?"":y==="background-color"?"-bg":`-${y}`,T=r+l[h]+(y==="color"?"":E);g[T]=b}}}),u.htmlStyle=g,u}function ho(i,l,r,s={meta:{},options:r,codeToHast:(u,f)=>ho(i,u,f),codeToTokens:(u,f)=>fo(i,u,f)}){var T,C;let u=l;for(const U of uo(r))u=((T=U.preprocess)==null?void 0:T.call(s,u,r))||u;let{tokens:f,fg:d,bg:g,themeName:p,rootStyle:h,grammarState:y}=fo(i,u,r);const{mergeWhitespaces:b=!0}=r;b===!0?f=TE(f):b==="never"&&(f=AE(f));const E={...s,get source(){return u}};for(const U of uo(r))f=((C=U.tokens)==null?void 0:C.call(E,f))||f;return xE(f,{...r,fg:d,bg:g,themeName:p,rootStyle:h},E,y)}function xE(i,l,r,s=pr(i)){var C,U,q;const u=uo(l),f=[],d={type:"root",children:[]},{structure:g="classic",tabindex:p="0"}=l;let h={type:"element",tagName:"pre",properties:{class:`shiki ${l.themeName||""}`,style:l.rootStyle||`background-color:${l.bg};color:${l.fg}`,...p!==!1&&p!=null?{tabindex:p.toString()}:{},...Object.fromEntries(Array.from(Object.entries(l.meta||{})).filter(([B])=>!B.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:f};const b=[],E={...r,structure:g,addClassToHast:E_,get source(){return r.source},get tokens(){return i},get options(){return l},get root(){return d},get pre(){return h},get code(){return y},get lines(){return b}};if(i.forEach((B,I)=>{var ae,fe;I&&(g==="inline"?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):g==="classic"&&f.push({type:"text",value:`
|
|
117
|
+
`}));let P={type:"element",tagName:"span",properties:{class:"line"},children:[]},X=0;for(const te of B){let Ue={type:"element",tagName:"span",properties:{...te.htmlAttrs},children:[{type:"text",value:te.content}]};te.htmlStyle;const pt=nE(te.htmlStyle||T_(te));pt&&(Ue.properties.style=pt);for(const kt of u)Ue=((ae=kt==null?void 0:kt.span)==null?void 0:ae.call(E,Ue,I+1,X,P,te))||Ue;g==="inline"?d.children.push(Ue):g==="classic"&&P.children.push(Ue),X+=te.content.length}if(g==="classic"){for(const te of u)P=((fe=te==null?void 0:te.line)==null?void 0:fe.call(E,P,I+1))||P;b.push(P),f.push(P)}}),g==="classic"){for(const B of u)y=((C=B==null?void 0:B.code)==null?void 0:C.call(E,y))||y;h.children.push(y);for(const B of u)h=((U=B==null?void 0:B.pre)==null?void 0:U.call(E,h))||h;d.children.push(h)}let T=d;for(const B of u)T=((q=B==null?void 0:B.root)==null?void 0:q.call(E,T))||T;return s&&vo(T,s),T}function TE(i){return i.map(l=>{const r=[];let s="",u=0;return l.forEach((f,d)=>{const p=!(f.fontStyle&&f.fontStyle&rl.Underline);p&&f.content.match(/^\s+$/)&&l[d+1]?(u||(u=f.offset),s+=f.content):s?(p?r.push({...f,offset:u,content:s+f.content}):r.push({content:s,offset:u},f),u=0,s=""):r.push(f)}),r})}function AE(i){return i.map(l=>l.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const s=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!s)return r;const[,u,f,d]=s;if(!u&&!d)return r;const g=[{...r,offset:r.offset+u.length,content:f}];return u&&g.unshift({content:u,offset:r.offset}),d&&g.push({content:d,offset:r.offset+u.length+f.length}),g}))}function RE(i,l,r){var f;const s={meta:{},options:r,codeToHast:(d,g)=>ho(i,d,g),codeToTokens:(d,g)=>fo(i,d,g)};let u=$S(ho(i,l,r,s));for(const d of uo(r))u=((f=d.postprocess)==null?void 0:f.call(s,u,r))||u;return u}const yg={light:"#333333",dark:"#bbbbbb"},vg={light:"#fffffe",dark:"#1e1e1e"},bg="__shiki_resolved";function jf(i){var g,p,h,y,b;if(i!=null&&i[bg])return i;const l={...i};l.tokenColors&&!l.settings&&(l.settings=l.tokenColors,delete l.tokenColors),l.type||(l.type="dark"),l.colorReplacements={...l.colorReplacements},l.settings||(l.settings=[]);let{bg:r,fg:s}=l;if(!r||!s){const E=l.settings?l.settings.find(T=>!T.name&&!T.scope):void 0;(g=E==null?void 0:E.settings)!=null&&g.foreground&&(s=E.settings.foreground),(p=E==null?void 0:E.settings)!=null&&p.background&&(r=E.settings.background),!s&&((h=l==null?void 0:l.colors)!=null&&h["editor.foreground"])&&(s=l.colors["editor.foreground"]),!r&&((y=l==null?void 0:l.colors)!=null&&y["editor.background"])&&(r=l.colors["editor.background"]),s||(s=l.type==="light"?yg.light:yg.dark),r||(r=l.type==="light"?vg.light:vg.dark),l.fg=s,l.bg=r}l.settings[0]&&l.settings[0].settings&&!l.settings[0].scope||l.settings.unshift({settings:{foreground:l.fg,background:l.bg}});let u=0;const f=new Map;function d(E){var C;if(f.has(E))return f.get(E);u+=1;const T=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(C=l.colorReplacements)!=null&&C[`#${T}`]?d(E):(f.set(E,T),T)}l.settings=l.settings.map(E=>{var q,B;const T=((q=E.settings)==null?void 0:q.foreground)&&!E.settings.foreground.startsWith("#"),C=((B=E.settings)==null?void 0:B.background)&&!E.settings.background.startsWith("#");if(!T&&!C)return E;const U={...E,settings:{...E.settings}};if(T){const I=d(E.settings.foreground);l.colorReplacements[I]=E.settings.foreground,U.settings.foreground=I}if(C){const I=d(E.settings.background);l.colorReplacements[I]=E.settings.background,U.settings.background=I}return U});for(const E of Object.keys(l.colors||{}))if((E==="editor.foreground"||E==="editor.background"||E.startsWith("terminal.ansi"))&&!((b=l.colors[E])!=null&&b.startsWith("#"))){const T=d(l.colors[E]);l.colorReplacements[T]=l.colors[E],l.colors[E]=T}return Object.defineProperty(l,bg,{enumerable:!1,writable:!1,value:!0}),l}async function C_(i){return Array.from(new Set((await Promise.all(i.filter(l=>!b_(l)).map(async l=>await x_(l).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function D_(i){return(await Promise.all(i.map(async r=>S_(r)?null:jf(await x_(r))))).filter(r=>!!r)}class OE extends j1{constructor(r,s,u,f={}){super(r);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=r,this._themes=s,this._langs=u,this._alias=f,this._themes.map(d=>this.loadTheme(d)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const s=jf(r);return s.name&&(this._resolvedThemes.set(s.name,s),this._loadedThemesCache=null),s}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let s=this._textmateThemeCache.get(r);s||(s=lo.createFromRawTheme(r),this._textmateThemeCache.set(r,s)),this._syncRegistry.setTheme(s)}getGrammar(r){if(this._alias[r]){const s=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],s.has(r))throw new Rt(`Circular alias \`${Array.from(s).join(" -> ")} -> ${r}\``);s.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var d,g,p,h;if(this.getGrammar(r.name))return;const s=new Set([...this._langMap.values()].filter(y=>{var b;return(b=y.embeddedLangsLazy)==null?void 0:b.includes(r.name)}));this._resolver.addLanguage(r);const u={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const f=this.loadGrammarWithConfiguration(r.scopeName,1,u);if(f.name=r.name,this._resolvedGrammars.set(r.name,f),r.aliases&&r.aliases.forEach(y=>{this._alias[y]=r.name}),this._loadedLanguagesCache=null,s.size)for(const y of s)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(g=(d=this._syncRegistry)==null?void 0:d._injectionGrammars)==null||g.delete(y.scopeName),(h=(p=this._syncRegistry)==null?void 0:p._grammars)==null||h.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(r){for(const f of r)this.resolveEmbeddedLanguages(f);const s=Array.from(this._langGraph.entries()),u=s.filter(([f,d])=>!d);if(u.length){const f=s.filter(([d,g])=>{var p;return g&&((p=g.embeddedLangs)==null?void 0:p.some(h=>u.map(([y])=>y).includes(h)))}).filter(d=>!u.includes(d));throw new Rt(`Missing languages ${u.map(([d])=>`\`${d}\``).join(", ")}, required by ${f.map(([d])=>`\`${d}\``).join(", ")}`)}for(const[f,d]of s)this._resolver.addLanguage(d);for(const[f,d]of s)this.loadLanguage(d)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const s of r.embeddedLangs)this._langGraph.set(s,this._langMap.get(s))}}class CE{constructor(l,r){w(this,"_langs",new Map);w(this,"_scopeToLang",new Map);w(this,"_injections",new Map);w(this,"_onigLib");this._onigLib={createOnigScanner:s=>l.createScanner(s),createOnigString:s=>l.createString(s)},r.forEach(s=>this.addLanguage(s))}get onigLib(){return this._onigLib}getLangRegistration(l){return this._langs.get(l)}loadGrammar(l){return this._scopeToLang.get(l)}addLanguage(l){this._langs.set(l.name,l),l.aliases&&l.aliases.forEach(r=>{this._langs.set(r,l)}),this._scopeToLang.set(l.scopeName,l),l.injectTo&&l.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(l.scopeName)})}getInjections(l){const r=l.split(".");let s=[];for(let u=1;u<=r.length;u++){const f=r.slice(0,u).join(".");s=[...s,...this._injections.get(f)||[]]}return s}}let rr=0;function DE(i){rr+=1,i.warnings!==!1&&rr>=10&&rr%10===0&&console.warn(`[Shiki] ${rr} 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 l=!1;if(!i.engine)throw new Rt("`engine` option is required for synchronous mode");const r=(i.langs||[]).flat(1),s=(i.themes||[]).flat(1).map(jf),u=new CE(i.engine,r),f=new OE(u,s,r,i.langAlias);let d;function g(I){q();const P=f.getGrammar(typeof I=="string"?I:I.name);if(!P)throw new Rt(`Language \`${I}\` not found, you may need to load it first`);return P}function p(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};q();const P=f.getTheme(I);if(!P)throw new Rt(`Theme \`${I}\` not found, you may need to load it first`);return P}function h(I){q();const P=p(I);d!==I&&(f.setTheme(P),d=I);const X=f.getColorMap();return{theme:P,colorMap:X}}function y(){return q(),f.getLoadedThemes()}function b(){return q(),f.getLoadedLanguages()}function E(...I){q(),f.loadLanguages(I.flat(1))}async function T(...I){return E(await C_(I))}function C(...I){q();for(const P of I.flat(1))f.loadTheme(P)}async function U(...I){return q(),C(await D_(I))}function q(){if(l)throw new Rt("Shiki instance has been disposed")}function B(){l||(l=!0,f.dispose(),rr-=1)}return{setTheme:h,getTheme:p,getLanguage:g,getLoadedThemes:y,getLoadedLanguages:b,loadLanguage:T,loadLanguageSync:E,loadTheme:U,loadThemeSync:C,dispose:B,[Symbol.dispose]:B}}async function kE(i={}){i.loadWasm;const[l,r,s]=await Promise.all([D_(i.themes||[]),C_(i.langs||[]),i.engine||Yg(i.loadWasm||$b())]);return DE({...i,themes:l,langs:r,engine:s})}async function LE(i={}){const l=await kE(i);return{getLastGrammarState:(...r)=>pE(l,...r),codeToTokensBase:(r,s)=>zf(l,r,s),codeToTokensWithThemes:(r,s)=>O_(l,r,s),codeToTokens:(r,s)=>fo(l,r,s),codeToHast:(r,s)=>ho(l,r,s),codeToHtml:(r,s)=>RE(l,r,s),...l,getInternalContext:()=>l}}function NE(i,l,r){let s,u,f;{const g=i;s=g.langs,u=g.themes,f=g.engine}async function d(g){function p(T){if(typeof T=="string"){if(b_(T))return[];const C=s[T];if(!C)throw new sl(`Language \`${T}\` is not included in this bundle. You may want to load it from external source.`);return C}return T}function h(T){if(S_(T))return"none";if(typeof T=="string"){const C=u[T];if(!C)throw new sl(`Theme \`${T}\` is not included in this bundle. You may want to load it from external source.`);return C}return T}const y=(g.themes??[]).map(T=>h(T)),b=(g.langs??[]).map(T=>p(T)),E=await LE({engine:g.engine??f(),...g,themes:y,langs:b});return{...E,loadLanguage(...T){return E.loadLanguage(...T.map(p))},loadTheme(...T){return E.loadTheme(...T.map(h))}}}return d}function wE(i){let l;async function r(s={}){if(l){const u=await l;return await Promise.all([u.loadTheme(...s.themes||[]),u.loadLanguage(...s.langs||[])]),u}else return l=i({...s,themes:s.themes||[],langs:s.langs||[]}),l}return r}function ME(i){const l=wE(i);return{getSingletonHighlighter(r){return l(r)},async codeToHtml(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHtml(r,s)},async codeToHast(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHast(r,s)},async codeToTokens(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToTokens(r,s)},async codeToTokensBase(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).codeToTokensBase(r,s)},async codeToTokensWithThemes(r,s){return(await l({langs:[s.lang],themes:Object.values(s.themes).filter(Boolean)})).codeToTokensWithThemes(r,s)},async getLastGrammarState(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(r,s)}}}const zE=NE({langs:kb,themes:Nb,engine:()=>Yg(S(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:jE}=ME(zE);let sr=null;async function UE(){if(sr)return sr;try{sr={attachmentBaseUrl:(await(await fetch("/api/config")).json()).fileAttachmentBaseUrl||""}}catch{sr={attachmentBaseUrl:""}}return sr}function BE(i,l){return l?i.replace(/attach:\/\/([^\s)]+)/g,(r,s)=>`${l}/${s}`):i}function k_(i){return i.toLowerCase().replace(/<[^>]+>/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}const HE={heading({text:i,depth:l}){const r=k_(i),s=i.replace(/#([a-z0-9]+-[a-z0-9]+)/gi,(u,f)=>`<a href="/detail/${f}">#${f}</a>`);return`<h${l} id="${r}">${s}</h${l}>`}};Te.use({renderer:HE});function VE(i){return i.split(`
|
|
118
118
|
`).map(l=>/^\s*#{1,6}\s/.test(l)?l:l.replace(new RegExp("(?<![[\\w/])#([a-z0-9]+-[a-z0-9]+)(?![(\\]\\w])","gi"),(r,s)=>`[#${s}](/detail/${s})`)).join(`
|
|
119
|
-
`)}const
|
|
120
|
-
`);for(let f=0;f<u.length;f++){const d=u[f].match(/^#{1,6}\s+(.+)/);if(d&&
|
|
119
|
+
`)}const Sg=new Map,Eg={open:{bg:"#dbeafe",text:"#1d4ed8"},in_progress:{bg:"#fef3c7",text:"#b45309"},blocked:{bg:"#fee2e2",text:"#dc2626"},closed:{bg:"#e5e7eb",text:"#4b5563"}};function GE(i,l){if(!l){const u=(i.description||"").replace(/[#*`\[\]]/g,"").trim();return u.slice(0,120)+(u.length>120?"...":"")}const r={description:i.description,"acceptance-criteria":i.acceptance,notes:i.notes,design:i.design};if(r[l]){const s=r[l].replace(/[#*`\[\]]/g,"").trim();return s.slice(0,150)+(s.length>150?"...":"")}for(const s of[i.description,i.acceptance,i.notes,i.design]){if(!s)continue;const u=s.split(`
|
|
120
|
+
`);for(let f=0;f<u.length;f++){const d=u[f].match(/^#{1,6}\s+(.+)/);if(d&&k_(d[1])===l){const g=[];for(let h=f+1;h<u.length&&!/^#{1,6}\s/.test(u[h]);h++)g.push(u[h]);const p=g.join(" ").replace(/[#*`\[\]]/g,"").trim();return p.slice(0,150)+(p.length>150?"...":"")}}}return""}function IE({issue:i,fragment:l,style:r}){const s=Eg[i.status]||Eg.open,u=new Date(i.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"}),f=GE(i,l);return v.jsxs("div",{className:"fixed z-50 rounded-lg shadow-lg pointer-events-none",style:{...r,width:"320px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)"},children:[v.jsxs("div",{style:{padding:"12px 14px",borderBottom:"1px solid var(--border-subtle)"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 text-xs mb-1.5",style:{color:"var(--text-tertiary)"},children:[v.jsx("span",{children:i.id}),l&&v.jsxs(v.Fragment,{children:[v.jsx("span",{children:"·"}),v.jsx("span",{style:{color:"var(--accent)"},children:l})]}),v.jsx("span",{children:"·"}),v.jsx("span",{children:u})]}),v.jsx("div",{className:"font-semibold text-sm mb-2",style:{color:"var(--text-primary)",lineHeight:1.3},children:i.title}),v.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium",style:{background:s.bg,color:s.text},children:[v.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:s.text}}),i.status.replace("_"," ")]})]}),f&&v.jsx("div",{className:"text-xs px-3.5 py-2.5",style:{color:"var(--text-secondary)",lineHeight:1.5},children:f}),v.jsxs("div",{className:"flex items-center gap-2 text-xs px-3.5 py-2",style:{color:"var(--text-tertiary)",borderTop:"1px solid var(--border-subtle)"},children:[v.jsx("span",{className:"px-1.5 py-0.5 rounded font-mono",style:{background:"var(--bg-hover)",fontSize:"11px"},children:i.issue_type}),i.assignee&&v.jsxs(v.Fragment,{children:[v.jsx("span",{children:"·"}),v.jsx("span",{children:i.assignee})]}),i.priority>0&&v.jsxs(v.Fragment,{children:[v.jsx("span",{children:"·"}),v.jsxs("span",{children:["P",i.priority]})]})]})]})}function xg({content:i}){const[l,r]=K.useState(""),[s,u]=K.useState(null),f=K.useRef(null),d=K.useRef(),g=mo(),p=K.useCallback(y=>{var B,I;const b=(I=(B=y.target).closest)==null?void 0:I.call(B,"a[href*='/detail/']");if(!b)return;const E=b.getAttribute("href")||"",[T,C]=E.split("#"),U=T.match(/\/detail\/(.+)/);if(!U)return;const q=U[1];clearTimeout(d.current),d.current=setTimeout(async()=>{let P=Sg.get(q)??null;if(P||(P=await g.fetchIssue(q),P&&Sg.set(q,P)),P){const X=b.getBoundingClientRect();u({issue:P,fragment:C,x:X.left,y:X.bottom+6})}},300)},[g]),h=K.useCallback(y=>{var E,T;(T=(E=y.target).closest)!=null&&T.call(E,"a[href*='/detail/']")&&(clearTimeout(d.current),u(null))},[]);return K.useEffect(()=>{const y=f.current;if(y)return y.addEventListener("mouseover",p),y.addEventListener("mouseout",h),()=>{y.removeEventListener("mouseover",p),y.removeEventListener("mouseout",h),clearTimeout(d.current)}},[p,h]),K.useEffect(()=>{if(!i){r("");return}let y=!1;async function b(){const E=await UE();let T=BE(i,E.attachmentBaseUrl);T=VE(T);const C=Te.lexer(T),U=[];Te.walkTokens(C,X=>{X.type==="code"&&U.push({code:X.text,lang:X.lang||"text"})});const q=await Promise.all(U.map(async X=>{try{return await jE(X.code,{lang:X.lang,theme:"github-light"})}catch{return`<pre><code>${Jp.sanitize(X.code)}</code></pre>`}}));let B=Te.parser(C),I=0;B=B.replace(/<pre><code[^>]*>[\s\S]*?<\/code><\/pre>/g,()=>q[I++]||"");const P=Jp.sanitize(B,{ADD_TAGS:["span"],ADD_ATTR:["style","class","id"]});y||r(P)}return b(),()=>{y=!0}},[i]),v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:f,className:`prose prose-stone prose-sm max-w-none
|
|
121
121
|
prose-pre:bg-stone-50 prose-pre:border prose-pre:border-stone-200 prose-pre:rounded
|
|
122
122
|
prose-code:text-sm prose-code:font-mono
|
|
123
123
|
prose-headings:font-semibold prose-headings:text-stone-900
|
|
124
|
-
prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline`,dangerouslySetInnerHTML:{__html:l}}),s&&v.jsx(UE,{issue:s.issue,fragment:s.fragment,style:{left:s.x,top:s.y}})]})}function Zs({label:i,value:l,placeholder:r,onSave:s}){const[u,f]=$.useState(!1),[d,p]=$.useState(l),[g,h]=$.useState("edit"),[y,b]=$.useState(!1);$.useEffect(()=>{u||p(l)},[l,u]);const E=$.useCallback(async()=>{b(!0);try{await s(d),f(!1),h("edit")}finally{b(!1)}},[d,s]),A=$.useCallback(()=>{p(l),f(!1),h("edit")},[l]),C=$.useCallback(U=>{U.key==="s"&&(U.metaKey||U.ctrlKey)&&(U.preventDefault(),E()),U.key==="Escape"&&(U.preventDefault(),A())},[E,A]);return u?v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--accent)",boxShadow:"var(--shadow-card)"},onKeyDown:C,children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),v.jsxs("div",{className:"flex overflow-hidden text-xs rounded-md",style:{border:"1px solid var(--border-default)"},children:[v.jsx("button",{onClick:()=>h("edit"),className:"px-2.5 py-1 font-medium",style:{background:g==="edit"?"var(--bg-hover)":"var(--bg-elevated)",color:g==="edit"?"var(--text-primary)":"var(--text-secondary)"},children:"Edit"}),v.jsx("button",{onClick:()=>h("preview"),className:"px-2.5 py-1 font-medium",style:{background:g==="preview"?"var(--bg-hover)":"var(--bg-elevated)",color:g==="preview"?"var(--text-primary)":"var(--text-secondary)",borderLeft:"1px solid var(--border-default)"},children:"Preview"})]})]}),g==="edit"?v.jsx("textarea",{value:d,onChange:U=>p(U.target.value),rows:10,className:"w-full p-3 text-sm font-mono rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:U=>{U.currentTarget.style.borderColor="var(--accent)"},onBlur:U=>{U.currentTarget.style.borderColor="var(--border-default)"},autoFocus:!0}):v.jsx("div",{className:"p-3 rounded-md min-h-[160px]",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)"},children:v.jsx(Sg,{content:d})}),v.jsxs("div",{className:"flex items-center justify-end gap-2 mt-3",children:[v.jsx("span",{className:"text-xs mr-auto",style:{color:"var(--text-tertiary)"},children:"Cmd+S to save, Esc to cancel"}),v.jsx("button",{onClick:A,className:"px-3 py-1.5 text-sm rounded-md transition-colors",style:{color:"var(--text-secondary)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},onMouseEnter:U=>{U.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:U=>{U.currentTarget.style.background="var(--bg-elevated)"},children:"Cancel"}),v.jsx("button",{onClick:E,disabled:y,className:"px-3 py-1.5 text-sm rounded-md font-medium disabled:opacity-50 transition-colors",style:{background:"var(--accent)",color:"white"},onMouseEnter:U=>{U.currentTarget.style.opacity="0.9"},onMouseLeave:U=>{U.currentTarget.style.opacity="1"},children:y?"Saving...":"Save"})]})]}):v.jsxs("div",{id:i.toLowerCase().replace(/\s+/g,"-"),className:"group rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),v.jsx("button",{onClick:()=>f(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity",style:{color:"var(--text-tertiary)"},onMouseEnter:U=>{U.currentTarget.style.color="var(--accent)"},onMouseLeave:U=>{U.currentTarget.style.color="var(--text-tertiary)"},title:`Edit ${i}`,children:v.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})})})]}),l?v.jsx(Sg,{content:l}):v.jsx("p",{className:"text-sm italic",style:{color:"var(--text-tertiary)"},children:r||`Add ${i.toLowerCase()}...`})]})}function nl({label:i,children:l}){return v.jsxs("div",{className:"px-3 py-2.5 rounded-md",style:{border:"1px solid var(--border-subtle)"},children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-1.5",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),l]})}function BE({issue:i,onUpdate:l}){const r=i.parent_id||i.parent,s=i.parent_title||i.parent_title,u=i.parent_status||i.parent_status,f=new Date(i.updated_at).toLocaleDateString();return v.jsxs("aside",{className:"shrink-0 p-4 space-y-3 overflow-y-auto",style:{width:"280px",borderLeft:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[v.jsx(nl,{label:"Status",children:v.jsxs("select",{value:i.status,onChange:d=>l.updateStatus(i.id,d.target.value),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"open",children:"Open"}),v.jsx("option",{value:"in_progress",children:"In Progress"}),v.jsx("option",{value:"closed",children:"Closed"})]})}),v.jsx(nl,{label:"Priority",children:v.jsx("select",{value:i.priority,onChange:d=>l.updatePriority(i.id,Number(d.target.value)),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[0,1,2,3,4].map(d=>v.jsxs("option",{value:d,children:["P",d]},d))})}),v.jsx(nl,{label:"Type",children:v.jsx(pf,{type:i.issue_type})}),v.jsx(nl,{label:"Assignee",children:i.assignee?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:gf(i.assignee),color:"var(--text-inverse)"},children:mf(i.assignee)}),v.jsx("span",{className:"text-sm",style:{color:"var(--text-primary)"},children:i.assignee})]}):v.jsx("span",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Unassigned"})}),v.jsx(nl,{label:"Updated",children:v.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:f})}),i.labels&&i.labels.length>0&&v.jsx(nl,{label:"Labels",children:v.jsx("div",{className:"flex flex-wrap gap-1",children:i.labels.map(d=>v.jsx("span",{className:"px-2 py-0.5 text-xs rounded",style:{background:"var(--bg-hover)",color:"var(--text-secondary)"},children:d},d))})}),r&&v.jsx(nl,{label:"Parent",children:v.jsxs("a",{href:`/detail/${r}`,className:"block rounded px-1 py-1 -mx-1 transition-colors",style:{color:"var(--text-primary)"},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[u&&v.jsx(fr,{status:u}),v.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:r})]}),s&&v.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:s})]})}),(()=>{const d=(i.dependencies||[]).filter(p=>p.type==="blocks"&&p.issue_id===i.id);return d.length===0?null:v.jsx(nl,{label:"Blocked By",children:v.jsx("div",{className:"space-y-1",children:d.map(p=>v.jsx("a",{href:`/detail/${p.depends_on_id}`,className:"block text-xs font-mono px-1 py-0.5 transition-colors",style:{color:"var(--accent)"},onMouseEnter:g=>{g.currentTarget.style.textDecoration="underline"},onMouseLeave:g=>{g.currentTarget.style.textDecoration="none"},children:p.depends_on_id},p.depends_on_id))})})})(),i.dependents&&i.dependents.length>0&&v.jsx(nl,{label:"Children / Dependents",children:v.jsx("div",{className:"space-y-1",children:i.dependents.map(d=>v.jsxs("a",{href:`/detail/${d.id}`,className:"block text-xs rounded px-1 py-1.5 -mx-1 transition-colors",onMouseEnter:p=>{p.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:p=>{p.currentTarget.style.background="transparent"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[v.jsx(fr,{status:d.status}),v.jsx("span",{className:"font-mono",style:{color:"var(--text-tertiary)"},children:d.id})]}),d.title&&v.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:d.title})]},d.id))})})]})}function HE({issueId:i}){const l=Ag(),[r,s]=$.useState(""),u=async()=>{r.trim()&&(await l.addComment(i,r.trim()),s(""))};return v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:"Comments"}),v.jsx("div",{className:"flex gap-2",children:v.jsx("textarea",{value:r,onChange:f=>s(f.target.value),placeholder:"Add a comment... (Ctrl+Enter to submit)",rows:3,className:"flex-1 p-2 text-sm rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:f=>{f.currentTarget.style.borderColor="var(--accent)"},onBlur:f=>{f.currentTarget.style.borderColor="var(--border-default)"},onKeyDown:f=>{f.key==="Enter"&&(f.ctrlKey||f.metaKey)&&u()}})}),v.jsx("button",{onClick:u,className:"mt-2 px-3 py-1.5 text-sm rounded-md font-medium transition-colors",style:{background:"var(--bg-hover)",color:"var(--text-primary)",border:"1px solid var(--border-default)"},onMouseEnter:f=>{f.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.borderColor="var(--border-default)"},children:"Add Comment"})]})}function VE({issueId:i}){const{issues:l,loading:r}=Qa("issue-detail",{id:i}),s=Ag(),u=l[0];return r?v.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Loading..."}):u?v.jsxs("div",{className:"flex h-full",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-5",children:[v.jsxs("div",{className:"flex items-center gap-2 text-sm",style:{color:"var(--text-tertiary)"},children:[v.jsx("a",{href:"/list",className:"flex items-center gap-1 transition-colors",style:{color:"var(--text-tertiary)"},onMouseEnter:f=>{f.currentTarget.style.color="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.color="var(--text-tertiary)"},children:"← List"}),v.jsx("span",{children:"/"}),v.jsx("span",{className:"font-mono",children:u.id})]}),v.jsx("h1",{className:"text-2xl font-bold",style:{color:"var(--text-primary)"},children:u.title}),v.jsx(Zs,{label:"Description",value:u.description||"",onSave:f=>s.editText({id:u.id,field:"description",value:f})}),v.jsx(Zs,{label:"Acceptance Criteria",value:u.acceptance||"",placeholder:"Add acceptance criteria...",onSave:f=>s.editText({id:u.id,field:"acceptance",value:f})}),v.jsx(Zs,{label:"Notes",value:u.notes||"",placeholder:"Add notes...",onSave:f=>s.editText({id:u.id,field:"notes",value:f})}),v.jsx(Zs,{label:"Design",value:u.design||"",placeholder:"Add design notes...",onSave:f=>s.editText({id:u.id,field:"design",value:f})}),u.issue_type==="epic"&&u.dependents&&u.dependents.length>0&&v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsxs("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:["Children (",u.closed_children??0," / ",u.total_children??u.dependents.length,")"]}),v.jsx("div",{className:"space-y-0.5",children:u.dependents.map(f=>v.jsxs("a",{href:`/detail/${f.id}`,className:"flex items-center gap-2.5 px-2 py-2 rounded-md transition-colors",style:{opacity:f.status==="closed"?.6:1},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[v.jsx(fr,{status:f.status}),v.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:f.id}),v.jsx("span",{className:"text-sm truncate",style:{color:"var(--text-primary)"},children:f.title})]},f.id))})]}),v.jsx(HE,{issueId:u.id})]}),v.jsx(BE,{issue:u,onUpdate:s})]}):v.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Issue not found"})}function GE(i){const[l,r]=$.useState(""),s=$.useMemo(()=>{if(!l.trim())return i;const u=l.toLowerCase();return i.filter(f=>f.id.toLowerCase().includes(u)||f.title.toLowerCase().includes(u)||(f.description||"").toLowerCase().includes(u))},[i,l]);return{query:l,setQuery:r,results:s}}function IE(){const[i,l]=$.useState(!1),{issues:r}=Qa("all-issues"),{query:s,setQuery:u,results:f}=GE(r),[d,p]=$.useState(0),g=$.useRef(null);$.useEffect(()=>{const b=E=>{var C;const A=(C=E.target)==null?void 0:C.tagName;E.key==="k"&&(E.metaKey||E.ctrlKey)&&A!=="TEXTAREA"&&(E.preventDefault(),l(!0)),E.key==="Escape"&&i&&(E.preventDefault(),l(!1),u(""),p(0))};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[i,u]),$.useEffect(()=>{i&&setTimeout(()=>{var b;return(b=g.current)==null?void 0:b.focus()},0)},[i]),$.useEffect(()=>p(0),[f]);const h=b=>{const E=f.slice(0,20);b.key==="ArrowDown"&&(b.preventDefault(),p(A=>Math.min(A+1,E.length-1))),b.key==="ArrowUp"&&(b.preventDefault(),p(A=>Math.max(A-1,0))),b.key==="Enter"&&E[d]&&(la(`/detail/${E[d].id}`),l(!1),u(""))};if(!i)return null;const y=f.slice(0,20);return v.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>{l(!1),u("")},children:[v.jsx("div",{className:"absolute inset-0",style:{background:"var(--bg-overlay)"}}),v.jsxs("div",{className:"relative w-full max-w-lg overflow-hidden",style:{background:"var(--bg-elevated)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.15)"},onClick:b=>b.stopPropagation(),children:[v.jsx("input",{ref:g,type:"text",value:s,onChange:b=>u(b.target.value),onKeyDown:h,placeholder:"Search issues...",className:"w-full px-4 py-3 text-sm outline-none",style:{borderBottom:"1px solid var(--border-subtle)",background:"transparent",color:"var(--text-primary)"}}),v.jsxs("div",{className:"max-h-80 overflow-y-auto",children:[y.length===0&&s&&v.jsx("div",{className:"px-4 py-6 text-sm text-center",style:{color:"var(--text-tertiary)"},children:"No results"}),y.map((b,E)=>v.jsxs("button",{onClick:()=>{la(`/detail/${b.id}`),l(!1),u("")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left transition-colors",style:{background:E===d?"var(--bg-hover)":"transparent"},onMouseEnter:A=>{A.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:A=>{A.currentTarget.style.background=E===d?"var(--bg-hover)":"transparent"},children:[v.jsx("span",{className:"font-mono text-xs w-28 shrink-0",style:{color:"var(--text-tertiary)"},children:b.id}),v.jsx(fr,{status:b.status}),v.jsx("span",{className:"flex-1 truncate",style:{color:"var(--text-primary)"},children:b.title}),v.jsx(hf,{priority:b.priority})]},b.id))]}),v.jsx("div",{className:"px-4 py-2 text-xs",style:{color:"var(--text-tertiary)",borderTop:"1px solid var(--border-subtle)"},children:"↑↓ navigate · ↵ open · esc close"})]})]})}function qE(){return v.jsxs($v,{children:[v.jsx(IE,{}),v.jsx(e0,{children:i=>{if(i.startsWith("/detail/")){const l=i.replace("/detail/","");return v.jsx(VE,{issueId:l},l)}return i.startsWith("/list")?v.jsx(_0,{}):i.startsWith("/board")||i==="/"?v.jsx(o0,{}):v.jsx("div",{className:"p-6 text-stone-400",children:"View not implemented yet"})}})]})}Qv.createRoot(document.getElementById("root")).render(v.jsx($.StrictMode,{children:v.jsx(qE,{})}));
|
|
124
|
+
prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline`,dangerouslySetInnerHTML:{__html:l}}),s&&v.jsx(IE,{issue:s.issue,fragment:s.fragment,style:{left:s.x,top:s.y}})]})}function Zs({label:i,value:l,placeholder:r,onSave:s}){const[u,f]=K.useState(!1),[d,g]=K.useState(l),[p,h]=K.useState("edit"),[y,b]=K.useState(!1);K.useEffect(()=>{u||g(l)},[l,u]);const E=K.useCallback(async()=>{b(!0);try{await s(d),f(!1),h("edit")}finally{b(!1)}},[d,s]),T=K.useCallback(()=>{g(l),f(!1),h("edit")},[l]),C=K.useCallback(U=>{U.key==="s"&&(U.metaKey||U.ctrlKey)&&(U.preventDefault(),E()),U.key==="Escape"&&(U.preventDefault(),T())},[E,T]);return u?v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--accent)",boxShadow:"var(--shadow-card)"},onKeyDown:C,children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),v.jsxs("div",{className:"flex overflow-hidden text-xs rounded-md",style:{border:"1px solid var(--border-default)"},children:[v.jsx("button",{onClick:()=>h("edit"),className:"px-2.5 py-1 font-medium",style:{background:p==="edit"?"var(--bg-hover)":"var(--bg-elevated)",color:p==="edit"?"var(--text-primary)":"var(--text-secondary)"},children:"Edit"}),v.jsx("button",{onClick:()=>h("preview"),className:"px-2.5 py-1 font-medium",style:{background:p==="preview"?"var(--bg-hover)":"var(--bg-elevated)",color:p==="preview"?"var(--text-primary)":"var(--text-secondary)",borderLeft:"1px solid var(--border-default)"},children:"Preview"})]})]}),p==="edit"?v.jsx("textarea",{value:d,onChange:U=>g(U.target.value),rows:10,className:"w-full p-3 text-sm font-mono rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:U=>{U.currentTarget.style.borderColor="var(--accent)"},onBlur:U=>{U.currentTarget.style.borderColor="var(--border-default)"},autoFocus:!0}):v.jsx("div",{className:"p-3 rounded-md min-h-[160px]",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)"},children:v.jsx(xg,{content:d})}),v.jsxs("div",{className:"flex items-center justify-end gap-2 mt-3",children:[v.jsx("span",{className:"text-xs mr-auto",style:{color:"var(--text-tertiary)"},children:"Cmd+S to save, Esc to cancel"}),v.jsx("button",{onClick:T,className:"px-3 py-1.5 text-sm rounded-md transition-colors",style:{color:"var(--text-secondary)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},onMouseEnter:U=>{U.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:U=>{U.currentTarget.style.background="var(--bg-elevated)"},children:"Cancel"}),v.jsx("button",{onClick:E,disabled:y,className:"px-3 py-1.5 text-sm rounded-md font-medium disabled:opacity-50 transition-colors",style:{background:"var(--accent)",color:"white"},onMouseEnter:U=>{U.currentTarget.style.opacity="0.9"},onMouseLeave:U=>{U.currentTarget.style.opacity="1"},children:y?"Saving...":"Save"})]})]}):v.jsxs("div",{id:i.toLowerCase().replace(/\s+/g,"-"),className:"group rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),v.jsx("button",{onClick:()=>f(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity",style:{color:"var(--text-tertiary)"},onMouseEnter:U=>{U.currentTarget.style.color="var(--accent)"},onMouseLeave:U=>{U.currentTarget.style.color="var(--text-tertiary)"},title:`Edit ${i}`,children:v.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})})})]}),l?v.jsx(xg,{content:l}):v.jsx("p",{className:"text-sm italic",style:{color:"var(--text-tertiary)"},children:r||`Add ${i.toLowerCase()}...`})]})}function nl({label:i,children:l}){return v.jsxs("div",{className:"px-3 py-2.5 rounded-md",style:{border:"1px solid var(--border-subtle)"},children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-1.5",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),l]})}function qE({issue:i,onUpdate:l}){const r=i.parent_id||i.parent,s=i.parent_title||i.parent_title,u=i.parent_status||i.parent_status,f=new Date(i.updated_at).toLocaleDateString();return v.jsxs("aside",{className:"shrink-0 p-4 space-y-3 overflow-y-auto",style:{width:"280px",borderLeft:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[v.jsx(nl,{label:"Status",children:v.jsxs("select",{value:i.status,onChange:d=>l.updateStatus(i.id,d.target.value),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"open",children:"Open"}),v.jsx("option",{value:"in_progress",children:"In Progress"}),v.jsx("option",{value:"closed",children:"Closed"})]})}),v.jsx(nl,{label:"Priority",children:v.jsx("select",{value:i.priority,onChange:d=>l.updatePriority(i.id,Number(d.target.value)),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[0,1,2,3,4].map(d=>v.jsxs("option",{value:d,children:["P",d]},d))})}),v.jsx(nl,{label:"Type",children:v.jsx(gf,{type:i.issue_type})}),v.jsx(nl,{label:"Assignee",children:i.assignee?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:yf(i.assignee),color:"var(--text-inverse)"},children:_f(i.assignee)}),v.jsx("span",{className:"text-sm",style:{color:"var(--text-primary)"},children:i.assignee})]}):v.jsx("span",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Unassigned"})}),v.jsx(nl,{label:"Updated",children:v.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:f})}),i.labels&&i.labels.length>0&&v.jsx(nl,{label:"Labels",children:v.jsx("div",{className:"flex flex-wrap gap-1",children:i.labels.map(d=>v.jsx("span",{className:"px-2 py-0.5 text-xs rounded",style:{background:"var(--bg-hover)",color:"var(--text-secondary)"},children:d},d))})}),r&&v.jsx(nl,{label:"Parent",children:v.jsxs("a",{href:`/detail/${r}`,className:"block rounded px-1 py-1 -mx-1 transition-colors",style:{color:"var(--text-primary)"},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[u&&v.jsx(fr,{status:u}),v.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:r})]}),s&&v.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:s})]})}),(()=>{const d=(i.dependencies||[]).filter(g=>g.type==="blocks"&&g.issue_id===i.id);return d.length===0?null:v.jsx(nl,{label:"Blocked By",children:v.jsx("div",{className:"space-y-1",children:d.map(g=>v.jsx("a",{href:`/detail/${g.depends_on_id}`,className:"block text-xs font-mono px-1 py-0.5 transition-colors",style:{color:"var(--accent)"},onMouseEnter:p=>{p.currentTarget.style.textDecoration="underline"},onMouseLeave:p=>{p.currentTarget.style.textDecoration="none"},children:g.depends_on_id},g.depends_on_id))})})})(),i.dependents&&i.dependents.length>0&&v.jsx(nl,{label:"Children / Dependents",children:v.jsx("div",{className:"space-y-1",children:i.dependents.map(d=>v.jsxs("a",{href:`/detail/${d.id}`,className:"block text-xs rounded px-1 py-1.5 -mx-1 transition-colors",onMouseEnter:g=>{g.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:g=>{g.currentTarget.style.background="transparent"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[v.jsx(fr,{status:d.status}),v.jsx("span",{className:"font-mono",style:{color:"var(--text-tertiary)"},children:d.id})]}),d.title&&v.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:d.title})]},d.id))})})]})}function PE({issueId:i}){const l=Cg(),[r,s]=K.useState(""),u=async()=>{r.trim()&&(await l.addComment(i,r.trim()),s(""))};return v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:"Comments"}),v.jsx("div",{className:"flex gap-2",children:v.jsx("textarea",{value:r,onChange:f=>s(f.target.value),placeholder:"Add a comment... (Ctrl+Enter to submit)",rows:3,className:"flex-1 p-2 text-sm rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:f=>{f.currentTarget.style.borderColor="var(--accent)"},onBlur:f=>{f.currentTarget.style.borderColor="var(--border-default)"},onKeyDown:f=>{f.key==="Enter"&&(f.ctrlKey||f.metaKey)&&u()}})}),v.jsx("button",{onClick:u,className:"mt-2 px-3 py-1.5 text-sm rounded-md font-medium transition-colors",style:{background:"var(--bg-hover)",color:"var(--text-primary)",border:"1px solid var(--border-default)"},onMouseEnter:f=>{f.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.borderColor="var(--border-default)"},children:"Add Comment"})]})}function YE({issueId:i}){const{issues:l,loading:r}=Qa("issue-detail",{id:i}),s=Cg(),u=l[0];return r?v.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Loading..."}):u?v.jsxs("div",{className:"flex h-full",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-5",children:[v.jsxs("div",{className:"flex items-center gap-2 text-sm",style:{color:"var(--text-tertiary)"},children:[v.jsx("a",{href:"/list",className:"flex items-center gap-1 transition-colors",style:{color:"var(--text-tertiary)"},onMouseEnter:f=>{f.currentTarget.style.color="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.color="var(--text-tertiary)"},children:"← List"}),v.jsx("span",{children:"/"}),v.jsx("span",{className:"font-mono",children:u.id})]}),v.jsx("h1",{className:"text-2xl font-bold",style:{color:"var(--text-primary)"},children:u.title}),v.jsx(Zs,{label:"Description",value:u.description||"",onSave:f=>s.editText({id:u.id,field:"description",value:f})}),v.jsx(Zs,{label:"Acceptance Criteria",value:u.acceptance||"",placeholder:"Add acceptance criteria...",onSave:f=>s.editText({id:u.id,field:"acceptance",value:f})}),v.jsx(Zs,{label:"Notes",value:u.notes||"",placeholder:"Add notes...",onSave:f=>s.editText({id:u.id,field:"notes",value:f})}),v.jsx(Zs,{label:"Design",value:u.design||"",placeholder:"Add design notes...",onSave:f=>s.editText({id:u.id,field:"design",value:f})}),u.issue_type==="epic"&&u.dependents&&u.dependents.length>0&&v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsxs("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:["Children (",u.closed_children??0," / ",u.total_children??u.dependents.length,")"]}),v.jsx("div",{className:"space-y-0.5",children:u.dependents.map(f=>v.jsxs("a",{href:`/detail/${f.id}`,className:"flex items-center gap-2.5 px-2 py-2 rounded-md transition-colors",style:{opacity:f.status==="closed"?.6:1},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[v.jsx(fr,{status:f.status}),v.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:f.id}),v.jsx("span",{className:"text-sm truncate",style:{color:"var(--text-primary)"},children:f.title})]},f.id))})]}),v.jsx(PE,{issueId:u.id})]}),v.jsx(qE,{issue:u,onUpdate:s})]}):v.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Issue not found"})}function XE(i){const[l,r]=K.useState(""),s=K.useMemo(()=>{if(!l.trim())return i;const u=l.toLowerCase();return i.filter(f=>f.id.toLowerCase().includes(u)||f.title.toLowerCase().includes(u)||(f.description||"").toLowerCase().includes(u))},[i,l]);return{query:l,setQuery:r,results:s}}function QE(){const[i,l]=K.useState(!1),{issues:r}=Qa("all-issues"),{query:s,setQuery:u,results:f}=XE(r),[d,g]=K.useState(0),p=K.useRef(null);K.useEffect(()=>{const b=E=>{var C;const T=(C=E.target)==null?void 0:C.tagName;E.key==="k"&&(E.metaKey||E.ctrlKey)&&T!=="TEXTAREA"&&(E.preventDefault(),l(!0)),E.key==="Escape"&&i&&(E.preventDefault(),l(!1),u(""),g(0))};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[i,u]),K.useEffect(()=>{i&&setTimeout(()=>{var b;return(b=p.current)==null?void 0:b.focus()},0)},[i]),K.useEffect(()=>g(0),[f]);const h=b=>{const E=f.slice(0,20);b.key==="ArrowDown"&&(b.preventDefault(),g(T=>Math.min(T+1,E.length-1))),b.key==="ArrowUp"&&(b.preventDefault(),g(T=>Math.max(T-1,0))),b.key==="Enter"&&E[d]&&(la(`/detail/${E[d].id}`),l(!1),u(""))};if(!i)return null;const y=f.slice(0,20);return v.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>{l(!1),u("")},children:[v.jsx("div",{className:"absolute inset-0",style:{background:"var(--bg-overlay)"}}),v.jsxs("div",{className:"relative w-full max-w-lg overflow-hidden",style:{background:"var(--bg-elevated)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.15)"},onClick:b=>b.stopPropagation(),children:[v.jsx("input",{ref:p,type:"text",value:s,onChange:b=>u(b.target.value),onKeyDown:h,placeholder:"Search issues...",className:"w-full px-4 py-3 text-sm outline-none",style:{borderBottom:"1px solid var(--border-subtle)",background:"transparent",color:"var(--text-primary)"}}),v.jsxs("div",{className:"max-h-80 overflow-y-auto",children:[y.length===0&&s&&v.jsx("div",{className:"px-4 py-6 text-sm text-center",style:{color:"var(--text-tertiary)"},children:"No results"}),y.map((b,E)=>v.jsxs("button",{onClick:()=>{la(`/detail/${b.id}`),l(!1),u("")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left transition-colors",style:{background:E===d?"var(--bg-hover)":"transparent"},onMouseEnter:T=>{T.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:T=>{T.currentTarget.style.background=E===d?"var(--bg-hover)":"transparent"},children:[v.jsx("span",{className:"font-mono text-xs w-28 shrink-0",style:{color:"var(--text-tertiary)"},children:b.id}),v.jsx(fr,{status:b.status}),v.jsx("span",{className:"flex-1 truncate",style:{color:"var(--text-primary)"},children:b.title}),v.jsx(pf,{priority:b.priority})]},b.id))]}),v.jsx("div",{className:"px-4 py-2 text-xs",style:{color:"var(--text-tertiary)",borderTop:"1px solid var(--border-subtle)"},children:"↑↓ navigate · ↵ open · esc close"})]})]})}function ZE(){const{loading:i,authEnabled:l,token:r}=mf();return i?v.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{background:"var(--bg-base)"},children:v.jsx("div",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Loading..."})}):l&&!r?v.jsx(i0,{}):v.jsxs(e0,{children:[v.jsx(QE,{}),v.jsx(a0,{children:s=>{if(s.startsWith("/detail/")){const u=s.replace("/detail/","");return v.jsx(YE,{issueId:u},u)}return s.startsWith("/list")?v.jsx(E0,{}):s.startsWith("/board")||s==="/"?v.jsx(h0,{}):v.jsx("div",{className:"p-6 text-stone-400",children:"View not implemented yet"})}})]})}function KE(){return v.jsx(Jv,{children:v.jsx(ZE,{})})}$v.createRoot(document.getElementById("root")).render(v.jsx(K.StrictMode,{children:v.jsx(KE,{})}));
|