@nuxt/scripts 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +13 -13
- package/dist/client/404.html +13 -13
- package/dist/client/_nuxt/{D6NljDpC.js → BigF1UXR.js} +1 -1
- package/dist/client/_nuxt/Bn0B8vkx.js +1 -0
- package/dist/client/_nuxt/BvCdDh2R.js +1 -0
- package/dist/client/_nuxt/BvlfuC5v.js +31 -0
- package/dist/client/_nuxt/{DlIksfW-.js → DMNuDhJC.js} +1 -1
- package/dist/client/_nuxt/DOHBU7tp.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ed70e2f7-3856-4e68-bd3e-1ebb17fef5ec.json +1 -0
- package/dist/client/_nuxt/entry.8LvBfYHJ.css +1 -0
- package/dist/client/_nuxt/error-404.Dbi768NS.css +1 -0
- package/dist/client/_nuxt/error-500.C23YdqXl.css +1 -0
- package/dist/client/_nuxt/{D1scAvq1.js → jmWmhCGR.js} +1 -1
- package/dist/client/index.html +13 -13
- package/dist/module.d.mts +7 -2
- package/dist/module.d.ts +7 -2
- package/dist/module.json +2 -2
- package/dist/module.mjs +172 -1
- package/dist/registry.mjs +13 -24
- package/dist/runtime/components/ScriptGoogleMaps.vue +1 -1
- package/dist/runtime/components/ScriptVimeoPlayer.vue +3 -6
- package/dist/runtime/composables/useAnalyticsPageEvent.d.ts +1 -4
- package/dist/runtime/registry/clarity.d.ts +44 -0
- package/dist/runtime/registry/clarity.js +30 -0
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +3 -6
- package/dist/runtime/registry/cloudflare-web-analytics.js +2 -2
- package/dist/runtime/registry/fathom-analytics.d.ts +6 -12
- package/dist/runtime/registry/google-adsense.d.ts +2 -4
- package/dist/runtime/registry/google-maps.d.ts +9 -10
- package/dist/runtime/registry/hotjar.d.ts +3 -6
- package/dist/runtime/registry/intercom.d.ts +11 -20
- package/dist/runtime/registry/matomo-analytics.d.ts +5 -10
- package/dist/runtime/registry/meta-pixel.d.ts +2 -4
- package/dist/runtime/registry/npm.d.ts +5 -10
- package/dist/runtime/registry/plausible-analytics.d.ts +3 -6
- package/dist/runtime/registry/segment.d.ts +3 -6
- package/dist/runtime/registry/stripe.d.ts +2 -4
- package/dist/runtime/registry/vimeo-player.d.ts +2 -1
- package/dist/runtime/registry/x-pixel.d.ts +3 -6
- package/dist/runtime/types.d.ts +7 -7
- package/dist/runtime/utils.d.ts +3 -3
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +23 -19
- package/dist/client/_nuxt/B6ZnTe72.js +0 -1
- package/dist/client/_nuxt/BiqB0nem.js +0 -1
- package/dist/client/_nuxt/DLqnee19.js +0 -31
- package/dist/client/_nuxt/MN12aA4C.js +0 -1
- package/dist/client/_nuxt/builds/meta/61606605-2b9b-4c09-af9e-a2967178a4b4.json +0 -1
- package/dist/client/_nuxt/entry.D91GVkD7.css +0 -1
- package/dist/client/_nuxt/error-404.BRldFSII.css +0 -1
- package/dist/client/_nuxt/error-500.D8yw_IbC.css +0 -1
- package/dist/runtime/registry/google-analytics.d.ts +0 -23
- package/dist/runtime/registry/google-analytics.js +0 -38
- package/dist/runtime/registry/google-tag-manager.d.ts +0 -21
- package/dist/runtime/registry/google-tag-manager.js +0 -30
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const __vite__fileDeps=["./COIrKlfF.js","./CbViG2Xw.js","./Dch3xQiY.js","./CbYhyuC0.js","./CNkYXcD4.js","./BeX7Iu5M.js","./DC4hdoM9.js","./CsYA0RN7.js","./ClXEvkw9.js","./CupVZNk8.js","./BmSZh3NL.js","./C5gCGmDW.js","./B2DkETJQ.js","./RCJZWN-0.js","./BF6G6X0H.js","./Bg0wAK5a.js","./BOnd8D4O.js","./DouzTJIq.js","./DbK06e1c.js","./DISxKEhY.js","./DvyTQcux.js","./DNR26wTC.js","./BaNxgKSR.js","./RE3ujT-k.js","./DS9ZWoKD.js","./BJn7Ek5W.js","./wChcbJ1V.js","./DAGYewaG.js","./CsyrCbsw.js","./D_T9yQUo.js","./DwuVtWc2.js","./BXfENWL6.js","./BIxS-Weu.js","./Du6_OKDb.js","./B9S9BZZh.js","./DHmGyzbM.js","./RqY_Nz63.js","./Dwo2i-71.js","./CarfVElc.js","./BZfs-ost.js","./BVGdgKAv.js","./DGxQkqYo.js","./CMDmr8et.js","./vMsNTMhM.js","./Dez-Qvcc.js","./BT9ZzGyQ.js","./DC8MraHL.js","./BXR915QZ.js","./DSrLtGYv.js","./DXT9h7v2.js","./BlxWTfDV.js","./C1DVX8_8.js","./Cgl53LJQ.js","./B6bHXiXE.js","./ChMCFiS0.js","./sQpxpyUs.js","./D6pmzCqS.js","./Djqq6n-7.js","./BdfWgkoX.js","./NL97_oaV.js","./B_SUYfiV.js","./CoEqzGFw.js","./DAVo6uMX.js","./JgH_6NEN.js","./Bbv8ARUV.js","./CQUCfALx.js","./BN4LRXf6.js","./BmCW-tYz.js","./G-Jz5hiA.js","./DUdlC5k_.js","./BR6CMsBL.js","./CqYeW6XZ.js","./CiRxTSAc.js","./Dit6kIrv.js","./DzwdaLuO.js","./D4LaosRr.js","./DY7_9Ga-.js","./Bfj2ThZ4.js","./Bj0fF4lQ.js","./nclm9rTJ.js","./Dg0DGYq4.js","./DGDuLtS6.js","./CcYwH0AH.js","./DR5YgmI2.js","./YdT6Gj0u.js","./Cthz8VOO.js","./DhFF74a2.js","./BwXNTs7T.js","./Lpdzc9s2.js","./CHCTrc3a.js","./DXZpi2gR.js","./8t4jSAMm.js","./BiDE021q.js","./DmDrTTlz.js","./dIHJ9UdL.js","./DKb4lQY2.js","./DJZWsvj0.js","./C15OxdQ5.js","./DLP9ZvWb.js","./wKgfcFVx.js","./BacI6-DX.js","./o8H-iTt6.js","./DYI1rfmx.js","./Bh8mriwU.js","./DCjyzNN-.js","./zhgf4ixb.js","./DeVv6D4_.js","./beD-FUib.js","./CJQrLysU.js","./BPiaQZfK.js","./D384ylkT.js","./9ZOzOPqN.js","./DZLoTQm4.js","./BaedD2tq.js","./jmWmhCGR.js","./Bn0B8vkx.js","./error-404.Dbi768NS.css","./DMNuDhJC.js","./error-500.C23YdqXl.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
var kc=Object.defineProperty;var Nc=(e,t,n)=>t in e?kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var g=(e,t,n)=>(Nc(e,typeof t!="symbol"?t+"":t,n),n);/**
|
|
3
|
+
* @vue/shared v3.4.27
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Wo(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const ae={},Wt=[],He=()=>{},Dc=()=>!1,In=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qo=e=>e.startsWith("onUpdate:"),ve=Object.assign,Ko=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mc=Object.prototype.hasOwnProperty,Q=(e,t)=>Mc.call(e,t),W=Array.isArray,qt=e=>Ir(e)==="[object Map]",el=e=>Ir(e)==="[object Set]",G=e=>typeof e=="function",ce=e=>typeof e=="string",Mt=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",zo=e=>(se(e)||G(e))&&G(e.then)&&G(e.catch),tl=Object.prototype.toString,Ir=e=>tl.call(e),Vc=e=>Ir(e).slice(8,-1),nl=e=>Ir(e)==="[object Object]",Jo=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kt=Wo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bc=/-(\w)/g,Ze=xr(e=>e.replace(Bc,(t,n)=>n?n.toUpperCase():"")),jc=/\B([A-Z])/g,an=xr(e=>e.replace(jc,"-$1").toLowerCase()),kr=xr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kr=xr(e=>e?`on${kr(e)}`:""),vt=(e,t)=>!Object.is(e,t),zr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},rl=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Hc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fc=e=>{const t=ce(e)?Number(e):NaN;return isNaN(t)?e:t};let xi;const ol=()=>xi||(xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Nr(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ce(r)?Wc(r):Nr(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(ce(e)||se(e))return e}const $c=/;(?![^(]*\))/g,Uc=/:([^]+)/,Gc=/\/\*[^]*?\*\//g;function Wc(e){const t={};return e.replace(Gc,"").split($c).forEach(n=>{if(n){const r=n.split(Uc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Vt(e){let t="";if(ce(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const r=Vt(e[n]);r&&(t+=r+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function qc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ce(t)&&(e.class=Vt(t)),n&&(e.style=Nr(n)),e}const Kc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zc=Wo(Kc);function il(e){return!!e||e===""}const ut=e=>ce(e)?e:e==null?"":W(e)||se(e)&&(e.toString===tl||!G(e.toString))?JSON.stringify(e,sl,2):String(e),sl=(e,t)=>t&&t.__v_isRef?sl(e,t.value):qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[Jr(r,i)+" =>"]=o,n),{})}:el(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Jr(n))}:Mt(t)?Jr(t):se(t)&&!W(t)&&!nl(t)?String(t):t,Jr=(e,t="")=>{var n;return Mt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.4.27
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let Ge;class ll{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ge;try{return Ge=this,t()}finally{Ge=n}}}on(){Ge=this}off(){Ge=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Jc(e){return new ll(e)}function Xc(e,t=Ge){t&&t.active&&t.effects.push(e)}function al(){return Ge}let It;class Xo{constructor(t,n,r,o){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Xc(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Et();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Yc(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=It;try{return yt=!0,It=this,this._runnings++,ki(this),this.fn()}finally{Ni(this),this._runnings--,It=n,yt=t}}stop(){this.active&&(ki(this),Ni(this),this.onStop&&this.onStop(),this.active=!1)}}function Yc(e){return e.value}function ki(e){e._trackId++,e._depsLength=0}function Ni(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)cl(e.deps[t],e);e.deps.length=e._depsLength}}function cl(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,ho=0;const ul=[];function Et(){ul.push(yt),yt=!1}function wt(){const e=ul.pop();yt=e===void 0?!0:e}function Yo(){ho++}function Qo(){for(ho--;!ho&&mo.length;)mo.shift()()}function fl(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&cl(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const mo=[];function dl(e,t,n){Yo();for(const r of e.keys()){let o;r._dirtyLevel<t&&(o??(o=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(o??(o=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&mo.push(r.scheduler)))}Qo()}const pl=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},lr=new WeakMap,xt=Symbol(""),_o=Symbol("");function Ne(e,t,n){if(yt&&It){let r=lr.get(e);r||lr.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=pl(()=>r.delete(n))),fl(It,o)}}function it(e,t,n,r,o,i){const s=lr.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&W(e)){const a=Number(r);s.forEach((c,u)=>{(u==="length"||!Mt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":W(e)?Jo(n)&&l.push(s.get("length")):(l.push(s.get(xt)),qt(e)&&l.push(s.get(_o)));break;case"delete":W(e)||(l.push(s.get(xt)),qt(e)&&l.push(s.get(_o)));break;case"set":qt(e)&&l.push(s.get(xt));break}Yo();for(const a of l)a&&dl(a,4);Qo()}function Qc(e,t){const n=lr.get(e);return n&&n.get(t)}const Zc=Wo("__proto__,__v_isRef,__isVue"),hl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Mt)),Di=eu();function eu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=te(this);for(let i=0,s=this.length;i<s;i++)Ne(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(te)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Et(),Yo();const r=te(this)[t].apply(this,n);return Qo(),wt(),r}}),e}function tu(e){Mt(e)||(e=String(e));const t=te(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class ml{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?hu:bl:i?yl:gl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=W(t);if(!o){if(s&&Q(Di,n))return Reflect.get(Di,n,r);if(n==="hasOwnProperty")return tu}const l=Reflect.get(t,n,r);return(Mt(n)?hl.has(n):Zc(n))||(o||Ne(t,"get",n),i)?l:Te(l)?s&&Jo(n)?l:l.value:se(l)?o?vl(l):st(l):l}}class _l extends ml{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const a=tn(i);if(!ar(r)&&!tn(r)&&(i=te(i),r=te(r)),!W(t)&&Te(i)&&!Te(r))return a?!1:(i.value=r,!0)}const s=W(t)&&Jo(n)?Number(n)<t.length:Q(t,n),l=Reflect.set(t,n,r,o);return t===te(o)&&(s?vt(r,i)&&it(t,"set",n,r):it(t,"add",n,r)),l}deleteProperty(t,n){const r=Q(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&it(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!Mt(n)||!hl.has(n))&&Ne(t,"has",n),r}ownKeys(t){return Ne(t,"iterate",W(t)?"length":xt),Reflect.ownKeys(t)}}class nu extends ml{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ru=new _l,ou=new nu,iu=new _l(!0);const Zo=e=>e,Dr=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,r=!1){e=e.__v_raw;const o=te(e),i=te(t);n||(vt(t,i)&&Ne(o,"get",t),Ne(o,"get",i));const{has:s}=Dr(o),l=r?Zo:n?ni:En;if(s.call(o,t))return l(e.get(t));if(s.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function jn(e,t=!1){const n=this.__v_raw,r=te(n),o=te(e);return t||(vt(e,o)&&Ne(r,"has",e),Ne(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Hn(e,t=!1){return e=e.__v_raw,!t&&Ne(te(e),"iterate",xt),Reflect.get(e,"size",e)}function Mi(e){e=te(e);const t=te(this);return Dr(t).has.call(t,e)||(t.add(e),it(t,"add",e,e)),this}function Vi(e,t){t=te(t);const n=te(this),{has:r,get:o}=Dr(n);let i=r.call(n,e);i||(e=te(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?vt(t,s)&&it(n,"set",e,t):it(n,"add",e,t),this}function Bi(e){const t=te(this),{has:n,get:r}=Dr(t);let o=n.call(t,e);o||(e=te(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&it(t,"delete",e,void 0),i}function ji(){const e=te(this),t=e.size!==0,n=e.clear();return t&&it(e,"clear",void 0,void 0),n}function Fn(e,t){return function(r,o){const i=this,s=i.__v_raw,l=te(s),a=t?Zo:e?ni:En;return!e&&Ne(l,"iterate",xt),s.forEach((c,u)=>r.call(o,a(c),a(u),i))}}function $n(e,t,n){return function(...r){const o=this.__v_raw,i=te(o),s=qt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=o[e](...r),u=n?Zo:t?ni:En;return!t&&Ne(i,"iterate",a?_o:xt),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function su(){const e={get(i){return Bn(this,i)},get size(){return Hn(this)},has:jn,add:Mi,set:Vi,delete:Bi,clear:ji,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Hn(this)},has:jn,add:Mi,set:Vi,delete:Bi,clear:ji,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Hn(this,!0)},has(i){return jn.call(this,i,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:Fn(!0,!1)},r={get(i){return Bn(this,i,!0,!0)},get size(){return Hn(this,!0)},has(i){return jn.call(this,i,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=$n(i,!1,!1),n[i]=$n(i,!0,!1),t[i]=$n(i,!1,!0),r[i]=$n(i,!0,!0)}),[e,n,t,r]}const[lu,au,cu,uu]=su();function ei(e,t){const n=t?e?uu:cu:e?au:lu;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Q(n,o)&&o in r?n:r,o,i)}const fu={get:ei(!1,!1)},du={get:ei(!1,!0)},pu={get:ei(!0,!1)};const gl=new WeakMap,yl=new WeakMap,bl=new WeakMap,hu=new WeakMap;function mu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _u(e){return e.__v_skip||!Object.isExtensible(e)?0:mu(Vc(e))}function st(e){return tn(e)?e:ti(e,!1,ru,fu,gl)}function $t(e){return ti(e,!1,iu,du,yl)}function vl(e){return ti(e,!0,ou,pu,bl)}function ti(e,t,n,r,o){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=_u(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function mn(e){return tn(e)?mn(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function ar(e){return!!(e&&e.__v_isShallow)}function El(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function gu(e){return Object.isExtensible(e)&&rl(e,"__v_skip",!0),e}const En=e=>se(e)?st(e):e,ni=e=>se(e)?vl(e):e;class wl{constructor(t,n,r,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Xo(()=>t(this._value),()=>Qn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=te(this);return(!t._cacheable||t.effect.dirty)&&vt(t._value,t._value=t.effect.run())&&Qn(t,4),Rl(t),t.effect._dirtyLevel>=2&&Qn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function yu(e,t,n=!1){let r,o;const i=G(e);return i?(r=e,o=He):(r=e.get,o=e.set),new wl(r,o,i||!o,n)}function Rl(e){var t;yt&&It&&(e=te(e),fl(It,(t=e.dep)!=null?t:e.dep=pl(()=>e.dep=void 0,e instanceof wl?e:void 0)))}function Qn(e,t=4,n){e=te(e);const r=e.dep;r&&dl(r,t)}function Te(e){return!!(e&&e.__v_isRef===!0)}function qe(e){return Tl(e,!1)}function Hi(e){return Tl(e,!0)}function Tl(e,t){return Te(e)?e:new bu(e,t)}class bu{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:te(t),this._value=n?t:En(t)}get value(){return Rl(this),this._value}set value(t){const n=this.__v_isShallow||ar(t)||tn(t);t=n?t:te(t),vt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:En(t),Qn(this,4))}}function oe(e){return Te(e)?e.value:e}function vu(e){return G(e)?e():oe(e)}const Eu={get:(e,t,n)=>oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Te(o)&&!Te(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Pl(e){return mn(e)?e:new Proxy(e,Eu)}class wu{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Qc(te(this._object),this._key)}}class Ru{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Al(e,t,n){return Te(e)?e:G(e)?new Ru(e):se(e)&&arguments.length>1?Tu(e,t,n):qe(e)}function Tu(e,t,n){const r=e[t];return Te(r)?r:new wu(e,t,n)}/**
|
|
11
|
+
* @vue/runtime-core v3.4.27
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function bt(e,t,n,r){try{return r?e(...r):e()}catch(o){cn(o,t,n)}}function Ke(e,t,n,r){if(G(e)){const o=bt(e,t,n,r);return o&&zo(o)&&o.catch(i=>{cn(i,t,n)}),o}if(W(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Ke(e[i],t,n,r));return o}}function cn(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){Et(),bt(a,null,10,[e,s,l]),wt();return}}Pu(e,n,o,r)}function Pu(e,t,n,r=!0){console.error(e)}let wn=!1,go=!1;const Ce=[];let Qe=0;const zt=[];let ht=null,St=0;const Cl=Promise.resolve();let ri=null;function oi(e){const t=ri||Cl;return e?t.then(this?e.bind(this):e):t}function Au(e){let t=Qe+1,n=Ce.length;for(;t<n;){const r=t+n>>>1,o=Ce[r],i=Rn(o);i<e||i===e&&o.pre?t=r+1:n=r}return t}function Mr(e){(!Ce.length||!Ce.includes(e,wn&&e.allowRecurse?Qe+1:Qe))&&(e.id==null?Ce.push(e):Ce.splice(Au(e.id),0,e),Sl())}function Sl(){!wn&&!go&&(go=!0,ri=Cl.then(Ll))}function Cu(e){const t=Ce.indexOf(e);t>Qe&&Ce.splice(t,1)}function yo(e){W(e)?zt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?St+1:St))&&zt.push(e),Sl()}function Fi(e,t,n=wn?Qe+1:0){for(;n<Ce.length;n++){const r=Ce[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;Ce.splice(n,1),n--,r()}}}function cr(e){if(zt.length){const t=[...new Set(zt)].sort((n,r)=>Rn(n)-Rn(r));if(zt.length=0,ht){ht.push(...t);return}for(ht=t,St=0;St<ht.length;St++)ht[St]();ht=null,St=0}}const Rn=e=>e.id==null?1/0:e.id,Su=(e,t)=>{const n=Rn(e)-Rn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ll(e){go=!1,wn=!0,Ce.sort(Su);try{for(Qe=0;Qe<Ce.length;Qe++){const t=Ce[Qe];t&&t.active!==!1&&bt(t,null,14)}}finally{Qe=0,Ce.length=0,cr(),wn=!1,ri=null,(Ce.length||zt.length)&&Ll()}}function Lu(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ae;let o=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:d}=r[u]||ae;d&&(o=n.map(h=>ce(h)?h.trim():h)),f&&(o=n.map(Hc))}let l,a=r[l=Kr(t)]||r[l=Kr(Ze(t))];!a&&i&&(a=r[l=Kr(an(t))]),a&&Ke(a,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ke(c,e,6,o)}}function Ol(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},l=!1;if(!G(e)){const a=c=>{const u=Ol(c,t,!0);u&&(l=!0,ve(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(se(e)&&r.set(e,null),null):(W(i)?i.forEach(a=>s[a]=null):ve(s,i),se(e)&&r.set(e,s),s)}function Vr(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,an(t))||Q(e,t))}let Re=null,Br=null;function ur(e){const t=Re;return Re=e,Br=e&&e.type.__scopeId||null,t}function vy(e){Br=e}function Ey(){Br=null}function Tn(e,t=Re,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&rs(-1);const i=ur(t);let s;try{s=e(...o)}finally{ur(i),r._d&&rs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Xr(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:l,emit:a,render:c,renderCache:u,props:f,data:d,setupState:h,ctx:m,inheritAttrs:y}=e,E=ur(e);let P,A;try{if(n.shapeFlag&4){const C=o||r,R=C;P=je(c.call(R,C,u,f,h,d,m)),A=l}else{const C=t;P=je(C.length>1?C(f,{attrs:l,slots:s,emit:a}):C(f,null)),A=t.props?l:Iu(l)}}catch(C){yn.length=0,cn(C,e,1),P=ue(ze)}let v=P;if(A&&y!==!1){const C=Object.keys(A),{shapeFlag:R}=v;C.length&&R&7&&(i&&C.some(qo)&&(A=xu(A,i)),v=on(v,A,!1,!0))}return n.dirs&&(v=on(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),P=v,ur(E),P}function Ou(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(An(o)){if(o.type!==ze||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Iu=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},xu=(e,t)=>{const n={};for(const r in e)(!qo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ku(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?$i(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(s[d]!==r[d]&&!Vr(c,d))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:r===s?!1:r?s?$i(r,s,c):!0:!!s;return!1}function $i(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!Vr(n,i))return!0}return!1}function ii({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Il="components";function Ui(e,t){return Nl(Il,e,!0,t)||e}const xl=Symbol.for("v-ndc");function kl(e){return ce(e)?Nl(Il,e,!1)||e:e||xl}function Nl(e,t,n=!0,r=!1){const o=Re||he;if(o){const i=o.type;{const l=Of(i,!1);if(l&&(l===t||l===Ze(t)||l===kr(Ze(t))))return i}const s=Gi(o[e]||i[e],t)||Gi(o.appContext[e],t);return!s&&r?i:s}}function Gi(e,t){return e&&(e[t]||e[Ze(t)]||e[kr(Ze(t))])}const Nu=e=>e.__isSuspense;let bo=0;const Du={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,l,a,c){if(e==null)Vu(t,n,r,o,i,s,l,a,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Bu(e,t,n,r,o,s,l,a,c)}},hydrate:ju,create:si,normalize:Hu},Mu=Du;function Pn(e,t){const n=e.props&&e.props[t];G(n)&&n()}function Vu(e,t,n,r,o,i,s,l,a){const{p:c,o:{createElement:u}}=a,f=u("div"),d=e.suspense=si(e,o,r,t,f,n,i,s,l,a);c(null,d.pendingBranch=e.ssContent,f,null,r,d,i,s),d.deps>0?(Pn(e,"onPending"),Pn(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,i,s),Jt(d,e.ssFallback)):d.resolve(!1,!0)}function Bu(e,t,n,r,o,i,s,l,{p:a,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:E,isHydrating:P}=f;if(y)f.pendingBranch=d,gt(d,y)?(a(y,d,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0?f.resolve():E&&(P||(a(m,h,n,r,o,null,i,s,l),Jt(f,h)))):(f.pendingId=bo++,P?(f.isHydrating=!1,f.activeBranch=y):c(y,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),E?(a(null,d,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0?f.resolve():(a(m,h,n,r,o,null,i,s,l),Jt(f,h))):m&>(d,m)?(a(m,d,n,r,o,f,i,s,l),f.resolve(!0)):(a(null,d,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0&&f.resolve()));else if(m&>(d,m))a(m,d,n,r,o,f,i,s,l),Jt(f,d);else if(Pn(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=bo++,a(null,d,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0)f.resolve();else{const{timeout:A,pendingId:v}=f;A>0?setTimeout(()=>{f.pendingId===v&&f.fallback(h)},A):A===0&&f.fallback(h)}}function si(e,t,n,r,o,i,s,l,a,c,u=!1){const{p:f,m:d,um:h,n:m,o:{parentNode:y,remove:E}}=c;let P;const A=Fu(e);A&&t&&t.pendingBranch&&(P=t.pendingId,t.deps++);const v=e.props?Fc(e.props.timeout):void 0,C=i,R={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:bo++,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(T=!1,V=!1){const{vnode:U,activeBranch:q,pendingBranch:F,pendingId:Y,effects:Z,parentComponent:ne,container:_e}=R;let pe=!1;R.isHydrating?R.isHydrating=!1:T||(pe=q&&F.transition&&F.transition.mode==="out-in",pe&&(q.transition.afterLeave=()=>{Y===R.pendingId&&(d(F,_e,i===C?m(q):i,0),yo(Z))}),q&&(y(q.el)!==R.hiddenContainer&&(i=m(q)),h(q,ne,R,!0)),pe||d(F,_e,i,0)),Jt(R,F),R.pendingBranch=null,R.isInFallback=!1;let B=R.parent,J=!1;for(;B;){if(B.pendingBranch){B.effects.push(...Z),J=!0;break}B=B.parent}!J&&!pe&&yo(Z),R.effects=[],A&&t&&t.pendingBranch&&P===t.pendingId&&(t.deps--,t.deps===0&&!V&&t.resolve()),Pn(U,"onResolve")},fallback(T){if(!R.pendingBranch)return;const{vnode:V,activeBranch:U,parentComponent:q,container:F,namespace:Y}=R;Pn(V,"onFallback");const Z=m(U),ne=()=>{R.isInFallback&&(f(null,T,F,Z,q,null,Y,l,a),Jt(R,T))},_e=T.transition&&T.transition.mode==="out-in";_e&&(U.transition.afterLeave=ne),R.isInFallback=!0,h(U,q,null,!0),_e||ne()},move(T,V,U){R.activeBranch&&d(R.activeBranch,T,V,U),R.container=T},next(){return R.activeBranch&&m(R.activeBranch)},registerDep(T,V){const U=!!R.pendingBranch;U&&R.deps++;const q=T.vnode.el;T.asyncDep.catch(F=>{cn(F,T,0)}).then(F=>{if(T.isUnmounted||R.isUnmounted||R.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:Y}=T;Ao(T,F,!1),q&&(Y.el=q);const Z=!q&&T.subTree.el;V(T,Y,y(q||T.subTree.el),q?null:m(T.subTree),R,s,a),Z&&E(Z),ii(T,Y.el),U&&--R.deps===0&&R.resolve()})},unmount(T,V){R.isUnmounted=!0,R.activeBranch&&h(R.activeBranch,n,T,V),R.pendingBranch&&h(R.pendingBranch,n,T,V)}};return R}function ju(e,t,n,r,o,i,s,l,a){const c=t.suspense=si(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,l,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,i,s);return c.deps===0&&c.resolve(!1,!0),u}function Hu(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Wi(r?n.default:n),e.ssFallback=r?Wi(n.fallback):ue(ze)}function Wi(e){let t;if(G(e)){const n=rn&&e._c;n&&(e._d=!1,ee()),e=e(),n&&(e._d=!0,t=Fe,ia())}return W(e)&&(e=Ou(e)),e=je(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Dl(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):yo(e)}function Jt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,ii(r,o))}function Fu(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const $u=Symbol.for("v-scx"),Uu=()=>Qt($u);function wy(e,t){return li(e,null,t)}const Un={};function _n(e,t,n){return li(e,t,n)}function li(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:s,onTrigger:l}=ae){if(t&&i){const T=t;t=(...V)=>{T(...V),R()}}const a=he,c=T=>r===!0?T:Ut(T,r===!1?1:void 0);let u,f=!1,d=!1;if(Te(e)?(u=()=>e.value,f=ar(e)):mn(e)?(u=()=>c(e),f=!0):W(e)?(d=!0,f=e.some(T=>mn(T)||ar(T)),u=()=>e.map(T=>{if(Te(T))return T.value;if(mn(T))return c(T);if(G(T))return bt(T,a,2)})):G(e)?t?u=()=>bt(e,a,2):u=()=>(h&&h(),Ke(e,a,3,[m])):u=He,t&&r){const T=u;u=()=>Ut(T())}let h,m=T=>{h=v.onStop=()=>{bt(T,a,4),h=v.onStop=void 0}},y;if(xn)if(m=He,t?n&&Ke(t,a,3,[u(),d?[]:void 0,m]):u(),o==="sync"){const T=Uu();y=T.__watcherHandles||(T.__watcherHandles=[])}else return He;let E=d?new Array(e.length).fill(Un):Un;const P=()=>{if(!(!v.active||!v.dirty))if(t){const T=v.run();(r||f||(d?T.some((V,U)=>vt(V,E[U])):vt(T,E)))&&(h&&h(),Ke(t,a,3,[T,E===Un?void 0:d&&E[0]===Un?[]:E,m]),E=T)}else v.run()};P.allowRecurse=!!t;let A;o==="sync"?A=P:o==="post"?A=()=>Ie(P,a&&a.suspense):(P.pre=!0,a&&(P.id=a.uid),A=()=>Mr(P));const v=new Xo(u,He,A),C=al(),R=()=>{v.stop(),C&&Ko(C.effects,v)};return t?n?P():E=v.run():o==="post"?Ie(v.run.bind(v),a&&a.suspense):v.run(),y&&y.push(R),R}function Gu(e,t,n){const r=this.proxy,o=ce(e)?e.includes(".")?Ml(r,e):()=>r[e]:e.bind(r,r);let i;G(t)?i=t:(i=t.handler,n=t);const s=Nt(this),l=li(o,i.bind(r),n);return s(),l}function Ml(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Ut(e,t=1/0,n){if(t<=0||!se(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Te(e))Ut(e.value,t,n);else if(W(e))for(let r=0;r<e.length;r++)Ut(e[r],t,n);else if(el(e)||qt(e))e.forEach(r=>{Ut(r,t,n)});else if(nl(e))for(const r in e)Ut(e[r],t,n);return e}function Ye(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const l=o[s];i&&(l.oldValue=i[s].value);let a=l.dir[r];a&&(Et(),Ke(a,n,8,[e.el,l,e,t]),wt())}}/*! #__NO_SIDE_EFFECTS__ */function Bt(e,t){return G(e)?ve({name:e.name},t,{setup:e}):e}const Xt=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function qi(e){G(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:s=!0,onError:l}=e;let a=null,c,u=0;const f=()=>(u++,a=null,d()),d=()=>{let h;return a||(h=a=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((y,E)=>{l(m,()=>y(f()),()=>E(m),u+1)});throw m}).then(m=>h!==a&&a?a:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Bt({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const h=he;if(c)return()=>Yr(c,h);const m=A=>{a=null,cn(A,h,13,!r)};if(s&&h.suspense||xn)return d().then(A=>()=>Yr(A,h)).catch(A=>(m(A),()=>r?ue(r,{error:A}):null));const y=qe(!1),E=qe(),P=qe(!!o);return o&&setTimeout(()=>{P.value=!1},o),i!=null&&setTimeout(()=>{if(!y.value&&!E.value){const A=new Error(`Async component timed out after ${i}ms.`);m(A),E.value=A}},i),d().then(()=>{y.value=!0,h.parent&&ai(h.parent.vnode)&&(h.parent.effect.dirty=!0,Mr(h.parent.update))}).catch(A=>{m(A),E.value=A}),()=>{if(y.value&&c)return Yr(c,h);if(E.value&&r)return ue(r,{error:E.value});if(n&&!P.value)return ue(n)}}})}function Yr(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=ue(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const ai=e=>e.type.__isKeepAlive;function Wu(e,t){Vl(e,"a",t)}function qu(e,t){Vl(e,"da",t)}function Vl(e,t,n=he){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(jr(t,r,n),n){let o=n.parent;for(;o&&o.parent;)ai(o.parent.vnode)&&Ku(r,t,n,o),o=o.parent}}function Ku(e,t,n,r){const o=jr(t,e,r,!0);Hl(()=>{Ko(r[t],o)},n)}function jr(e,t,n=he,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Et();const l=Nt(n),a=Ke(t,n,e,s);return l(),wt(),a});return r?o.unshift(i):o.push(i),i}}const at=e=>(t,n=he)=>(!xn||e==="sp")&&jr(e,(...r)=>t(...r),n),zu=at("bm"),Bl=at("m"),Ju=at("bu"),Xu=at("u"),jl=at("bum"),Hl=at("um"),Yu=at("sp"),Qu=at("rtg"),Zu=at("rtc");function Fl(e,t=he){jr("ec",e,t)}function Ki(e,t,n,r){let o;const i=n;if(W(e)||ce(e)){o=new Array(e.length);for(let s=0,l=e.length;s<l;s++)o[s]=t(e[s],s,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let s=0;s<e;s++)o[s]=t(s+1,s,void 0,i)}else if(se(e))if(e[Symbol.iterator])o=Array.from(e,(s,l)=>t(s,l,void 0,i));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];o[l]=t(e[c],c,l,i)}}else o=[];return o}function zi(e,t,n={},r,o){if(Re.isCE||Re.parent&&Xt(Re.parent)&&Re.parent.isCE)return t!=="default"&&(n.name=t),ue("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),ee();const s=i&&$l(i(n)),l=ke(Ae,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function $l(e){return e.some(t=>An(t)?!(t.type===ze||t.type===Ae&&!$l(t.children)):!0)?e:null}const vo=e=>e?fa(e)?di(e)||e.proxy:vo(e.parent):null,gn=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>vo(e.parent),$root:e=>vo(e.root),$emit:e=>e.emit,$options:e=>ci(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Mr(e.update)}),$nextTick:e=>e.n||(e.n=oi.bind(e.proxy)),$watch:e=>Gu.bind(e)}),Qr=(e,t)=>e!==ae&&!e.__isScriptSetup&&Q(e,t),ef={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Qr(r,t))return s[t]=1,r[t];if(o!==ae&&Q(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&Q(c,t))return s[t]=3,i[t];if(n!==ae&&Q(n,t))return s[t]=4,n[t];Eo&&(s[t]=0)}}const u=gn[t];let f,d;if(u)return t==="$attrs"&&Ne(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ae&&Q(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,Q(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Qr(o,t)?(o[t]=n,!0):r!==ae&&Q(r,t)?(r[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let l;return!!n[s]||e!==ae&&Q(e,s)||Qr(t,s)||(l=i[0])&&Q(l,s)||Q(r,s)||Q(gn,s)||Q(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ji(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tf(e){const t=ua();let n=e();return Po(),zo(n)&&(n=n.catch(r=>{throw Nt(t),r})),[n,()=>Nt(t)]}let Eo=!0;function nf(e){const t=ci(e),n=e.proxy,r=e.ctx;Eo=!1,t.beforeCreate&&Xi(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:m,activated:y,deactivated:E,beforeDestroy:P,beforeUnmount:A,destroyed:v,unmounted:C,render:R,renderTracked:T,renderTriggered:V,errorCaptured:U,serverPrefetch:q,expose:F,inheritAttrs:Y,components:Z,directives:ne,filters:_e}=t;if(c&&rf(c,r,null),s)for(const J in s){const H=s[J];G(H)&&(r[J]=H.bind(n))}if(o){const J=o.call(n,n);se(J)&&(e.data=st(J))}if(Eo=!0,i)for(const J in i){const H=i[J],et=G(H)?H.bind(n,n):G(H.get)?H.get.bind(n,n):He,Mn=!G(H)&&G(H.set)?H.set.bind(n):He,Tt=Be({get:et,set:Mn});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>Tt.value,set:Je=>Tt.value=Je})}if(l)for(const J in l)Ul(l[J],r,n,J);if(a){const J=G(a)?a.call(n):a;Reflect.ownKeys(J).forEach(H=>{Wl(H,J[H])})}u&&Xi(u,e,"c");function B(J,H){W(H)?H.forEach(et=>J(et.bind(n))):H&&J(H.bind(n))}if(B(zu,f),B(Bl,d),B(Ju,h),B(Xu,m),B(Wu,y),B(qu,E),B(Fl,U),B(Zu,T),B(Qu,V),B(jl,A),B(Hl,C),B(Yu,q),W(F))if(F.length){const J=e.exposed||(e.exposed={});F.forEach(H=>{Object.defineProperty(J,H,{get:()=>n[H],set:et=>n[H]=et})})}else e.exposed||(e.exposed={});R&&e.render===He&&(e.render=R),Y!=null&&(e.inheritAttrs=Y),Z&&(e.components=Z),ne&&(e.directives=ne)}function rf(e,t,n=He){W(e)&&(e=wo(e));for(const r in e){const o=e[r];let i;se(o)?"default"in o?i=Qt(o.from||r,o.default,!0):i=Qt(o.from||r):i=Qt(o),Te(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Xi(e,t,n){Ke(W(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ul(e,t,n,r){const o=r.includes(".")?Ml(n,r):()=>n[r];if(ce(e)){const i=t[e];G(i)&&_n(o,i)}else if(G(e))_n(o,e.bind(n));else if(se(e))if(W(e))e.forEach(i=>Ul(i,t,n,r));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&_n(o,i,e)}}function ci(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(c=>fr(a,c,s,!0)),fr(a,t,s)),se(t)&&i.set(t,a),a}function fr(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&fr(e,i,n,!0),o&&o.forEach(s=>fr(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=of[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const of={data:Yi,props:Qi,emits:Qi,methods:pn,computed:pn,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:pn,directives:pn,watch:lf,provide:Yi,inject:sf};function Yi(e,t){return t?e?function(){return ve(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function sf(e,t){return pn(wo(e),wo(t))}function wo(e){if(W(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Se(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function Qi(e,t){return e?W(e)&&W(t)?[...new Set([...e,...t])]:ve(Object.create(null),Ji(e),Ji(t??{})):t}function lf(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const r in t)n[r]=Se(e[r],t[r]);return n}function Gl(){return{app:null,config:{isNativeTag:Dc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let af=0;function cf(e,t){return function(r,o=null){G(r)||(r=ve({},r)),o!=null&&!se(o)&&(o=null);const i=Gl(),s=new WeakSet;let l=!1;const a=i.app={_uid:af++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:pa,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&G(c.install)?(s.add(c),c.install(a,...u)):G(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,f){if(!l){const d=ue(r,o);return d.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(d,c):e(d,c,f),l=!0,a._container=c,c.__vue_app__=a,di(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){const u=Yt;Yt=a;try{return c()}finally{Yt=u}}};return a}}let Yt=null;function Wl(e,t){if(he){let n=he.provides;const r=he.parent&&he.parent.provides;r===n&&(n=he.provides=Object.create(r)),n[e]=t}}function Qt(e,t,n=!1){const r=he||Re;if(r||Yt){const o=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Yt._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&G(t)?t.call(r&&r.proxy):t}}function ql(){return!!(he||Re||Yt)}const Kl={},zl=()=>Object.create(Kl),Jl=e=>Object.getPrototypeOf(e)===Kl;function uf(e,t,n,r=!1){const o={},i=zl();e.propsDefaults=Object.create(null),Xl(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:$t(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function ff(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,l=te(o),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(Vr(e.emitsOptions,d))continue;const h=t[d];if(a)if(Q(i,d))h!==i[d]&&(i[d]=h,c=!0);else{const m=Ze(d);o[m]=Ro(a,l,m,h,e,!1)}else h!==i[d]&&(i[d]=h,c=!0)}}}else{Xl(e,t,o,i)&&(c=!0);let u;for(const f in l)(!t||!Q(t,f)&&((u=an(f))===f||!Q(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(o[f]=Ro(a,l,f,void 0,e,!0)):delete o[f]);if(i!==l)for(const f in i)(!t||!Q(t,f))&&(delete i[f],c=!0)}c&&it(e.attrs,"set","")}function Xl(e,t,n,r){const[o,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Kt(a))continue;const c=t[a];let u;o&&Q(o,u=Ze(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Vr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,s=!0)}if(i){const a=te(n),c=l||ae;for(let u=0;u<i.length;u++){const f=i[u];n[f]=Ro(o,a,f,c[f],e,!Q(c,f))}}return s}function Ro(e,t,n,r,o,i){const s=e[n];if(s!=null){const l=Q(s,"default");if(l&&r===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&G(a)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=Nt(o);r=c[n]=a.call(null,t),u()}}else r=a}s[0]&&(i&&!l?r=!1:s[1]&&(r===""||r===an(n))&&(r=!0))}return r}function Yl(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,s={},l=[];let a=!1;if(!G(e)){const u=f=>{a=!0;const[d,h]=Yl(f,t,!0);ve(s,d),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return se(e)&&r.set(e,Wt),Wt;if(W(i))for(let u=0;u<i.length;u++){const f=Ze(i[u]);Zi(f)&&(s[f]=ae)}else if(i)for(const u in i){const f=Ze(u);if(Zi(f)){const d=i[u],h=s[f]=W(d)||G(d)?{type:d}:ve({},d);if(h){const m=ns(Boolean,h.type),y=ns(String,h.type);h[0]=m>-1,h[1]=y<0||m<y,(m>-1||Q(h,"default"))&&l.push(f)}}}const c=[s,l];return se(e)&&r.set(e,c),c}function Zi(e){return e[0]!=="$"&&!Kt(e)}function es(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function ts(e,t){return es(e)===es(t)}function ns(e,t){return W(t)?t.findIndex(n=>ts(n,e)):G(t)&&ts(t,e)?0:-1}const Ql=e=>e[0]==="_"||e==="$stable",ui=e=>W(e)?e.map(je):[je(e)],df=(e,t,n)=>{if(t._n)return t;const r=Tn((...o)=>ui(t(...o)),n);return r._c=!1,r},Zl=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ql(o))continue;const i=e[o];if(G(i))t[o]=df(o,i,r);else if(i!=null){const s=ui(i);t[o]=()=>s}}},ea=(e,t)=>{const n=ui(t);e.slots.default=()=>n},pf=(e,t)=>{const n=e.slots=zl();if(e.vnode.shapeFlag&32){const r=t._;r?(ve(n,t),rl(n,"_",r,!0)):Zl(t,n)}else t&&ea(e,t)},hf=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=ae;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ve(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Zl(t,o)),s=t}else t&&(ea(e,t),s={default:1});if(i)for(const l in o)!Ql(l)&&s[l]==null&&delete o[l]};function dr(e,t,n,r,o=!1){if(W(e)){e.forEach((d,h)=>dr(d,t&&(W(t)?t[h]:t),n,r,o));return}if(Xt(r)&&!o)return;const i=r.shapeFlag&4?di(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ae?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(ce(c)?(u[c]=null,Q(f,c)&&(f[c]=null)):Te(c)&&(c.value=null)),G(a))bt(a,l,12,[s,u]);else{const d=ce(a),h=Te(a);if(d||h){const m=()=>{if(e.f){const y=d?Q(f,a)?f[a]:u[a]:a.value;o?W(y)&&Ko(y,i):W(y)?y.includes(i)||y.push(i):d?(u[a]=[i],Q(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,Q(f,a)&&(f[a]=s)):h&&(a.value=s,e.k&&(u[e.k]=s))};s?(m.id=-1,Ie(m,n)):m()}}}let dt=!1;const mf=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",_f=e=>e.namespaceURI.includes("MathML"),Gn=e=>{if(mf(e))return"svg";if(_f(e))return"mathml"},Wn=e=>e.nodeType===8;function gf(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:s,remove:l,insert:a,createComment:c}}=e,u=(v,C)=>{if(!C.hasChildNodes()){n(null,v,C),cr(),C._vnode=v;return}dt=!1,f(C.firstChild,v,null,null,null),cr(),C._vnode=v,dt&&console.error("Hydration completed but contains mismatches.")},f=(v,C,R,T,V,U=!1)=>{U=U||!!C.dynamicChildren;const q=Wn(v)&&v.data==="[",F=()=>y(v,C,R,T,V,q),{type:Y,ref:Z,shapeFlag:ne,patchFlag:_e}=C;let pe=v.nodeType;C.el=v,_e===-2&&(U=!1,C.dynamicChildren=null);let B=null;switch(Y){case nn:pe!==3?C.children===""?(a(C.el=o(""),s(v),v),B=v):B=F():(v.data!==C.children&&(dt=!0,v.data=C.children),B=i(v));break;case ze:A(v)?(B=i(v),P(C.el=v.content.firstChild,v,R)):pe!==8||q?B=F():B=i(v);break;case Zn:if(q&&(v=i(v),pe=v.nodeType),pe===1||pe===3){B=v;const J=!C.children.length;for(let H=0;H<C.staticCount;H++)J&&(C.children+=B.nodeType===1?B.outerHTML:B.data),H===C.staticCount-1&&(C.anchor=B),B=i(B);return q?i(B):B}else F();break;case Ae:q?B=m(v,C,R,T,V,U):B=F();break;default:if(ne&1)(pe!==1||C.type.toLowerCase()!==v.tagName.toLowerCase())&&!A(v)?B=F():B=d(v,C,R,T,V,U);else if(ne&6){C.slotScopeIds=V;const J=s(v);if(q?B=E(v):Wn(v)&&v.data==="teleport start"?B=E(v,v.data,"teleport end"):B=i(v),t(C,J,null,R,T,Gn(J),U),Xt(C)){let H;q?(H=ue(Ae),H.anchor=B?B.previousSibling:J.lastChild):H=v.nodeType===3?pr(""):ue("div"),H.el=v,C.component.subTree=H}}else ne&64?pe!==8?B=F():B=C.type.hydrate(v,C,R,T,V,U,e,h):ne&128&&(B=C.type.hydrate(v,C,R,T,Gn(s(v)),V,U,e,f))}return Z!=null&&dr(Z,null,T,C),B},d=(v,C,R,T,V,U)=>{U=U||!!C.dynamicChildren;const{type:q,props:F,patchFlag:Y,shapeFlag:Z,dirs:ne,transition:_e}=C,pe=q==="input"||q==="option";if(pe||Y!==-1){ne&&Ye(C,null,R,"created");let B=!1;if(A(v)){B=na(T,_e)&&R&&R.vnode.props&&R.vnode.props.appear;const H=v.content.firstChild;B&&_e.beforeEnter(H),P(H,v,R),C.el=v=H}if(Z&16&&!(F&&(F.innerHTML||F.textContent))){let H=h(v.firstChild,C,v,R,T,V,U);for(;H;){dt=!0;const et=H;H=H.nextSibling,l(et)}}else Z&8&&v.textContent!==C.children&&(dt=!0,v.textContent=C.children);if(F)if(pe||!U||Y&48)for(const H in F)(pe&&(H.endsWith("value")||H==="indeterminate")||In(H)&&!Kt(H)||H[0]===".")&&r(v,H,null,F[H],void 0,void 0,R);else F.onClick&&r(v,"onClick",null,F.onClick,void 0,void 0,R);let J;(J=F&&F.onVnodeBeforeMount)&&Ve(J,R,C),ne&&Ye(C,null,R,"beforeMount"),((J=F&&F.onVnodeMounted)||ne||B)&&Dl(()=>{J&&Ve(J,R,C),B&&_e.enter(v),ne&&Ye(C,null,R,"mounted")},T)}return v.nextSibling},h=(v,C,R,T,V,U,q)=>{q=q||!!C.dynamicChildren;const F=C.children,Y=F.length;for(let Z=0;Z<Y;Z++){const ne=q?F[Z]:F[Z]=je(F[Z]);if(v)v=f(v,ne,T,V,U,q);else{if(ne.type===nn&&!ne.children)continue;dt=!0,n(null,ne,R,null,T,V,Gn(R),U)}}return v},m=(v,C,R,T,V,U)=>{const{slotScopeIds:q}=C;q&&(V=V?V.concat(q):q);const F=s(v),Y=h(i(v),C,F,R,T,V,U);return Y&&Wn(Y)&&Y.data==="]"?i(C.anchor=Y):(dt=!0,a(C.anchor=c("]"),F,Y),Y)},y=(v,C,R,T,V,U)=>{if(dt=!0,C.el=null,U){const Y=E(v);for(;;){const Z=i(v);if(Z&&Z!==Y)l(Z);else break}}const q=i(v),F=s(v);return l(v),n(null,C,F,q,R,T,Gn(F),V),q},E=(v,C="[",R="]")=>{let T=0;for(;v;)if(v=i(v),v&&Wn(v)&&(v.data===C&&T++,v.data===R)){if(T===0)return i(v);T--}return v},P=(v,C,R)=>{const T=C.parentNode;T&&T.replaceChild(v,C);let V=R;for(;V;)V.vnode.el===C&&(V.vnode.el=V.subTree.el=v),V=V.parent},A=v=>v.nodeType===1&&v.tagName.toLowerCase()==="template";return[u,f]}const Ie=Dl;function yf(e){return ta(e)}function bf(e){return ta(e,gf)}function ta(e,t){const n=ol();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=He,insertStaticContent:m}=e,y=(_,b,w,S=null,L=null,k=null,D=void 0,x=null,N=!!b.dynamicChildren)=>{if(_===b)return;_&&!gt(_,b)&&(S=Vn(_),Je(_,L,k,!0),_=null),b.patchFlag===-2&&(N=!1,b.dynamicChildren=null);const{type:O,ref:M,shapeFlag:$}=b;switch(O){case nn:E(_,b,w,S);break;case ze:P(_,b,w,S);break;case Zn:_==null&&A(b,w,S,D);break;case Ae:Z(_,b,w,S,L,k,D,x,N);break;default:$&1?R(_,b,w,S,L,k,D,x,N):$&6?ne(_,b,w,S,L,k,D,x,N):($&64||$&128)&&O.process(_,b,w,S,L,k,D,x,N,Ht)}M!=null&&L&&dr(M,_&&_.ref,k,b||_,!b)},E=(_,b,w,S)=>{if(_==null)r(b.el=l(b.children),w,S);else{const L=b.el=_.el;b.children!==_.children&&c(L,b.children)}},P=(_,b,w,S)=>{_==null?r(b.el=a(b.children||""),w,S):b.el=_.el},A=(_,b,w,S)=>{[_.el,_.anchor]=m(_.children,b,w,S,_.el,_.anchor)},v=({el:_,anchor:b},w,S)=>{let L;for(;_&&_!==b;)L=d(_),r(_,w,S),_=L;r(b,w,S)},C=({el:_,anchor:b})=>{let w;for(;_&&_!==b;)w=d(_),o(_),_=w;o(b)},R=(_,b,w,S,L,k,D,x,N)=>{b.type==="svg"?D="svg":b.type==="math"&&(D="mathml"),_==null?T(b,w,S,L,k,D,x,N):q(_,b,L,k,D,x,N)},T=(_,b,w,S,L,k,D,x)=>{let N,O;const{props:M,shapeFlag:$,transition:j,dirs:K}=_;if(N=_.el=s(_.type,k,M&&M.is,M),$&8?u(N,_.children):$&16&&U(_.children,N,null,S,L,Zr(_,k),D,x),K&&Ye(_,null,S,"created"),V(N,_,_.scopeId,D,S),M){for(const re in M)re!=="value"&&!Kt(re)&&i(N,re,null,M[re],k,_.children,S,L,tt);"value"in M&&i(N,"value",null,M.value,k),(O=M.onVnodeBeforeMount)&&Ve(O,S,_)}K&&Ye(_,null,S,"beforeMount");const X=na(L,j);X&&j.beforeEnter(N),r(N,b,w),((O=M&&M.onVnodeMounted)||X||K)&&Ie(()=>{O&&Ve(O,S,_),X&&j.enter(N),K&&Ye(_,null,S,"mounted")},L)},V=(_,b,w,S,L)=>{if(w&&h(_,w),S)for(let k=0;k<S.length;k++)h(_,S[k]);if(L){let k=L.subTree;if(b===k){const D=L.vnode;V(_,D,D.scopeId,D.slotScopeIds,L.parent)}}},U=(_,b,w,S,L,k,D,x,N=0)=>{for(let O=N;O<_.length;O++){const M=_[O]=x?mt(_[O]):je(_[O]);y(null,M,b,w,S,L,k,D,x)}},q=(_,b,w,S,L,k,D)=>{const x=b.el=_.el;let{patchFlag:N,dynamicChildren:O,dirs:M}=b;N|=_.patchFlag&16;const $=_.props||ae,j=b.props||ae;let K;if(w&&Pt(w,!1),(K=j.onVnodeBeforeUpdate)&&Ve(K,w,b,_),M&&Ye(b,_,w,"beforeUpdate"),w&&Pt(w,!0),O?F(_.dynamicChildren,O,x,w,S,Zr(b,L),k):D||H(_,b,x,null,w,S,Zr(b,L),k,!1),N>0){if(N&16)Y(x,b,$,j,w,S,L);else if(N&2&&$.class!==j.class&&i(x,"class",null,j.class,L),N&4&&i(x,"style",$.style,j.style,L),N&8){const X=b.dynamicProps;for(let re=0;re<X.length;re++){const le=X[re],ge=$[le],Ue=j[le];(Ue!==ge||le==="value")&&i(x,le,ge,Ue,L,_.children,w,S,tt)}}N&1&&_.children!==b.children&&u(x,b.children)}else!D&&O==null&&Y(x,b,$,j,w,S,L);((K=j.onVnodeUpdated)||M)&&Ie(()=>{K&&Ve(K,w,b,_),M&&Ye(b,_,w,"updated")},S)},F=(_,b,w,S,L,k,D)=>{for(let x=0;x<b.length;x++){const N=_[x],O=b[x],M=N.el&&(N.type===Ae||!gt(N,O)||N.shapeFlag&70)?f(N.el):w;y(N,O,M,null,S,L,k,D,!0)}},Y=(_,b,w,S,L,k,D)=>{if(w!==S){if(w!==ae)for(const x in w)!Kt(x)&&!(x in S)&&i(_,x,w[x],null,D,b.children,L,k,tt);for(const x in S){if(Kt(x))continue;const N=S[x],O=w[x];N!==O&&x!=="value"&&i(_,x,O,N,D,b.children,L,k,tt)}"value"in S&&i(_,"value",w.value,S.value,D)}},Z=(_,b,w,S,L,k,D,x,N)=>{const O=b.el=_?_.el:l(""),M=b.anchor=_?_.anchor:l("");let{patchFlag:$,dynamicChildren:j,slotScopeIds:K}=b;K&&(x=x?x.concat(K):K),_==null?(r(O,w,S),r(M,w,S),U(b.children||[],w,M,L,k,D,x,N)):$>0&&$&64&&j&&_.dynamicChildren?(F(_.dynamicChildren,j,w,L,k,D,x),(b.key!=null||L&&b===L.subTree)&&ra(_,b,!0)):H(_,b,w,M,L,k,D,x,N)},ne=(_,b,w,S,L,k,D,x,N)=>{b.slotScopeIds=x,_==null?b.shapeFlag&512?L.ctx.activate(b,w,S,D,N):_e(b,w,S,L,k,D,N):pe(_,b,N)},_e=(_,b,w,S,L,k,D)=>{const x=_.component=Pf(_,S,L);if(ai(_)&&(x.ctx.renderer=Ht),Af(x),x.asyncDep){if(L&&L.registerDep(x,B),!_.el){const N=x.subTree=ue(ze);P(null,N,b,w)}}else B(x,_,b,w,L,k,D)},pe=(_,b,w)=>{const S=b.component=_.component;if(ku(_,b,w))if(S.asyncDep&&!S.asyncResolved){J(S,b,w);return}else S.next=b,Cu(S.update),S.effect.dirty=!0,S.update();else b.el=_.el,S.vnode=b},B=(_,b,w,S,L,k,D)=>{const x=()=>{if(_.isMounted){let{next:M,bu:$,u:j,parent:K,vnode:X}=_;{const Ft=oa(_);if(Ft){M&&(M.el=X.el,J(_,M,D)),Ft.asyncDep.then(()=>{_.isUnmounted||x()});return}}let re=M,le;Pt(_,!1),M?(M.el=X.el,J(_,M,D)):M=X,$&&zr($),(le=M.props&&M.props.onVnodeBeforeUpdate)&&Ve(le,K,M,X),Pt(_,!0);const ge=Xr(_),Ue=_.subTree;_.subTree=ge,y(Ue,ge,f(Ue.el),Vn(Ue),_,L,k),M.el=ge.el,re===null&&ii(_,ge.el),j&&Ie(j,L),(le=M.props&&M.props.onVnodeUpdated)&&Ie(()=>Ve(le,K,M,X),L)}else{let M;const{el:$,props:j}=b,{bm:K,m:X,parent:re}=_,le=Xt(b);if(Pt(_,!1),K&&zr(K),!le&&(M=j&&j.onVnodeBeforeMount)&&Ve(M,re,b),Pt(_,!0),$&&qr){const ge=()=>{_.subTree=Xr(_),qr($,_.subTree,_,L,null)};le?b.type.__asyncLoader().then(()=>!_.isUnmounted&&ge()):ge()}else{const ge=_.subTree=Xr(_);y(null,ge,w,S,_,L,k),b.el=ge.el}if(X&&Ie(X,L),!le&&(M=j&&j.onVnodeMounted)){const ge=b;Ie(()=>Ve(M,re,ge),L)}(b.shapeFlag&256||re&&Xt(re.vnode)&&re.vnode.shapeFlag&256)&&_.a&&Ie(_.a,L),_.isMounted=!0,b=w=S=null}},N=_.effect=new Xo(x,He,()=>Mr(O),_.scope),O=_.update=()=>{N.dirty&&N.run()};O.id=_.uid,Pt(_,!0),O()},J=(_,b,w)=>{b.component=_;const S=_.vnode.props;_.vnode=b,_.next=null,ff(_,b.props,S,w),hf(_,b.children,w),Et(),Fi(_),wt()},H=(_,b,w,S,L,k,D,x,N=!1)=>{const O=_&&_.children,M=_?_.shapeFlag:0,$=b.children,{patchFlag:j,shapeFlag:K}=b;if(j>0){if(j&128){Mn(O,$,w,S,L,k,D,x,N);return}else if(j&256){et(O,$,w,S,L,k,D,x,N);return}}K&8?(M&16&&tt(O,L,k),$!==O&&u(w,$)):M&16?K&16?Mn(O,$,w,S,L,k,D,x,N):tt(O,L,k,!0):(M&8&&u(w,""),K&16&&U($,w,S,L,k,D,x,N))},et=(_,b,w,S,L,k,D,x,N)=>{_=_||Wt,b=b||Wt;const O=_.length,M=b.length,$=Math.min(O,M);let j;for(j=0;j<$;j++){const K=b[j]=N?mt(b[j]):je(b[j]);y(_[j],K,w,null,L,k,D,x,N)}O>M?tt(_,L,k,!0,!1,$):U(b,w,S,L,k,D,x,N,$)},Mn=(_,b,w,S,L,k,D,x,N)=>{let O=0;const M=b.length;let $=_.length-1,j=M-1;for(;O<=$&&O<=j;){const K=_[O],X=b[O]=N?mt(b[O]):je(b[O]);if(gt(K,X))y(K,X,w,null,L,k,D,x,N);else break;O++}for(;O<=$&&O<=j;){const K=_[$],X=b[j]=N?mt(b[j]):je(b[j]);if(gt(K,X))y(K,X,w,null,L,k,D,x,N);else break;$--,j--}if(O>$){if(O<=j){const K=j+1,X=K<M?b[K].el:S;for(;O<=j;)y(null,b[O]=N?mt(b[O]):je(b[O]),w,X,L,k,D,x,N),O++}}else if(O>j)for(;O<=$;)Je(_[O],L,k,!0),O++;else{const K=O,X=O,re=new Map;for(O=X;O<=j;O++){const De=b[O]=N?mt(b[O]):je(b[O]);De.key!=null&&re.set(De.key,O)}let le,ge=0;const Ue=j-X+1;let Ft=!1,Li=0;const fn=new Array(Ue);for(O=0;O<Ue;O++)fn[O]=0;for(O=K;O<=$;O++){const De=_[O];if(ge>=Ue){Je(De,L,k,!0);continue}let Xe;if(De.key!=null)Xe=re.get(De.key);else for(le=X;le<=j;le++)if(fn[le-X]===0&>(De,b[le])){Xe=le;break}Xe===void 0?Je(De,L,k,!0):(fn[Xe-X]=O+1,Xe>=Li?Li=Xe:Ft=!0,y(De,b[Xe],w,null,L,k,D,x,N),ge++)}const Oi=Ft?vf(fn):Wt;for(le=Oi.length-1,O=Ue-1;O>=0;O--){const De=X+O,Xe=b[De],Ii=De+1<M?b[De+1].el:S;fn[O]===0?y(null,Xe,w,Ii,L,k,D,x,N):Ft&&(le<0||O!==Oi[le]?Tt(Xe,w,Ii,2):le--)}}},Tt=(_,b,w,S,L=null)=>{const{el:k,type:D,transition:x,children:N,shapeFlag:O}=_;if(O&6){Tt(_.component.subTree,b,w,S);return}if(O&128){_.suspense.move(b,w,S);return}if(O&64){D.move(_,b,w,Ht);return}if(D===Ae){r(k,b,w);for(let $=0;$<N.length;$++)Tt(N[$],b,w,S);r(_.anchor,b,w);return}if(D===Zn){v(_,b,w);return}if(S!==2&&O&1&&x)if(S===0)x.beforeEnter(k),r(k,b,w),Ie(()=>x.enter(k),L);else{const{leave:$,delayLeave:j,afterLeave:K}=x,X=()=>r(k,b,w),re=()=>{$(k,()=>{X(),K&&K()})};j?j(k,X,re):re()}else r(k,b,w)},Je=(_,b,w,S=!1,L=!1)=>{const{type:k,props:D,ref:x,children:N,dynamicChildren:O,shapeFlag:M,patchFlag:$,dirs:j}=_;if(x!=null&&dr(x,null,w,_,!0),M&256){b.ctx.deactivate(_);return}const K=M&1&&j,X=!Xt(_);let re;if(X&&(re=D&&D.onVnodeBeforeUnmount)&&Ve(re,b,_),M&6)xc(_.component,w,S);else{if(M&128){_.suspense.unmount(w,S);return}K&&Ye(_,null,b,"beforeUnmount"),M&64?_.type.remove(_,b,w,L,Ht,S):O&&(k!==Ae||$>0&&$&64)?tt(O,b,w,!1,!0):(k===Ae&&$&384||!L&&M&16)&&tt(N,b,w),S&&Ci(_)}(X&&(re=D&&D.onVnodeUnmounted)||K)&&Ie(()=>{re&&Ve(re,b,_),K&&Ye(_,null,b,"unmounted")},w)},Ci=_=>{const{type:b,el:w,anchor:S,transition:L}=_;if(b===Ae){Ic(w,S);return}if(b===Zn){C(_);return}const k=()=>{o(w),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(_.shapeFlag&1&&L&&!L.persisted){const{leave:D,delayLeave:x}=L,N=()=>D(w,k);x?x(_.el,k,N):N()}else k()},Ic=(_,b)=>{let w;for(;_!==b;)w=d(_),o(_),_=w;o(b)},xc=(_,b,w)=>{const{bum:S,scope:L,update:k,subTree:D,um:x}=_;S&&zr(S),L.stop(),k&&(k.active=!1,Je(D,_,b,w)),x&&Ie(x,b),Ie(()=>{_.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},tt=(_,b,w,S=!1,L=!1,k=0)=>{for(let D=k;D<_.length;D++)Je(_[D],b,w,S,L)},Vn=_=>_.shapeFlag&6?Vn(_.component.subTree):_.shapeFlag&128?_.suspense.next():d(_.anchor||_.el);let Gr=!1;const Si=(_,b,w)=>{_==null?b._vnode&&Je(b._vnode,null,null,!0):y(b._vnode||null,_,b,null,null,null,w),Gr||(Gr=!0,Fi(),cr(),Gr=!1),b._vnode=_},Ht={p:y,um:Je,m:Tt,r:Ci,mt:_e,mc:U,pc:H,pbc:F,n:Vn,o:e};let Wr,qr;return t&&([Wr,qr]=t(Ht)),{render:Si,hydrate:Wr,createApp:cf(Si,Wr)}}function Zr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function na(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ra(e,t,n=!1){const r=e.children,o=t.children;if(W(r)&&W(o))for(let i=0;i<r.length;i++){const s=r[i];let l=o[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[i]=mt(o[i]),l.el=s.el),n||ra(s,l)),l.type===nn&&(l.el=s.el)}}function vf(e){const t=e.slice(),n=[0];let r,o,i,s,l;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function oa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oa(t)}const Ef=e=>e.__isTeleport,Ae=Symbol.for("v-fgt"),nn=Symbol.for("v-txt"),ze=Symbol.for("v-cmt"),Zn=Symbol.for("v-stc"),yn=[];let Fe=null;function ee(e=!1){yn.push(Fe=e?null:[])}function ia(){yn.pop(),Fe=yn[yn.length-1]||null}let rn=1;function rs(e){rn+=e}function sa(e){return e.dynamicChildren=rn>0?Fe||Wt:null,ia(),rn>0&&Fe&&Fe.push(e),e}function Pe(e,t,n,r,o,i){return sa(xe(e,t,n,r,o,i,!0))}function ke(e,t,n,r,o){return sa(ue(e,t,n,r,o,!0))}function An(e){return e?e.__v_isVNode===!0:!1}function gt(e,t){return e.type===t.type&&e.key===t.key}const la=({key:e})=>e??null,er=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||Te(e)||G(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function xe(e,t=null,n=null,r=0,o=null,i=e===Ae?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&la(t),ref:t&&er(t),scopeId:Br,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Re};return l?(fi(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ce(n)?8:16),rn>0&&!s&&Fe&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Fe.push(a),a}const ue=wf;function wf(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===xl)&&(e=ze),An(e)){const l=on(e,t,!0);return n&&fi(l,n),rn>0&&!i&&Fe&&(l.shapeFlag&6?Fe[Fe.indexOf(e)]=l:Fe.push(l)),l.patchFlag|=-2,l}if(If(e)&&(e=e.__vccOpts),t){t=aa(t);let{class:l,style:a}=t;l&&!ce(l)&&(t.class=Vt(l)),se(a)&&(El(a)&&!W(a)&&(a=ve({},a)),t.style=Nr(a))}const s=ce(e)?1:Nu(e)?128:Ef(e)?64:se(e)?4:G(e)?2:0;return xe(e,t,n,r,o,s,i,!0)}function aa(e){return e?El(e)||Jl(e)?ve({},e):e:null}function on(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:l,transition:a}=e,c=t?ca(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&la(c),ref:t&&t.ref?n&&i?W(i)?i.concat(er(t)):[i,er(t)]:er(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&on(e.ssContent),ssFallback:e.ssFallback&&on(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&(u.transition=a.clone(u)),u}function pr(e=" ",t=0){return ue(nn,null,e,t)}function At(e="",t=!1){return t?(ee(),ke(ze,null,e)):ue(ze,null,e)}function je(e){return e==null||typeof e=="boolean"?ue(ze):W(e)?ue(Ae,null,e.slice()):typeof e=="object"?mt(e):ue(nn,null,String(e))}function mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:on(e)}function fi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),fi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Jl(t)?t._ctx=Re:o===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),r&64?(n=16,t=[pr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ca(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Vt([t.class,r.class]));else if(o==="style")t.style=Nr([t.style,r.style]);else if(In(o)){const i=t[o],s=r[o];s&&i!==s&&!(W(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=r[o])}return t}function Ve(e,t,n,r=null){Ke(e,t,7,[n,r])}const Rf=Gl();let Tf=0;function Pf(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||Rf,i={uid:Tf++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ll(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yl(r,o),emitsOptions:Ol(r,o),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:r.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Lu.bind(null,i),e.ce&&e.ce(i),i}let he=null;const ua=()=>he||Re;let hr,To;{const e=ol(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};hr=t("__VUE_INSTANCE_SETTERS__",n=>he=n),To=t("__VUE_SSR_SETTERS__",n=>xn=n)}const Nt=e=>{const t=he;return hr(e),e.scope.on(),()=>{e.scope.off(),hr(t)}},Po=()=>{he&&he.scope.off(),hr(null)};function fa(e){return e.vnode.shapeFlag&4}let xn=!1;function Af(e,t=!1){t&&To(t);const{props:n,children:r}=e.vnode,o=fa(e);uf(e,n,o,t),pf(e,r);const i=o?Cf(e,t):void 0;return t&&To(!1),i}function Cf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ef);const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Lf(e):null,i=Nt(e);Et();const s=bt(r,e,0,[e.props,o]);if(wt(),i(),zo(s)){if(s.then(Po,Po),t)return s.then(l=>{Ao(e,l,t)}).catch(l=>{cn(l,e,0)});e.asyncDep=s}else Ao(e,s,t)}else da(e,t)}function Ao(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=Pl(t)),da(e,n)}let os;function da(e,t,n){const r=e.type;if(!e.render){if(!t&&os&&!r.render){const o=r.template||ci(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ve(ve({isCustomElement:i,delimiters:l},s),a);r.render=os(o,c)}}e.render=r.render||He}{const o=Nt(e);Et();try{nf(e)}finally{wt(),o()}}}const Sf={get(e,t){return Ne(e,"get",""),e[t]}};function Lf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sf),slots:e.slots,emit:e.emit,expose:t}}function di(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pl(gu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}}))}function Of(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function If(e){return G(e)&&"__vccOpts"in e}const Be=(e,t)=>yu(e,t,xn);function Co(e,t,n){const r=arguments.length;return r===2?se(t)&&!W(t)?An(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&An(n)&&(n=[n]),ue(e,t,n))}const pa="3.4.27";/**
|
|
15
|
+
* @vue/runtime-dom v3.4.27
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/const xf="http://www.w3.org/2000/svg",kf="http://www.w3.org/1998/Math/MathML",_t=typeof document<"u"?document:null,is=_t&&_t.createElement("template"),Nf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?_t.createElementNS(xf,e):t==="mathml"?_t.createElementNS(kf,e):_t.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>_t.createTextNode(e),createComment:e=>_t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{is.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const l=is.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Df=Symbol("_vtc");function Mf(e,t,n){const r=e[Df];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ss=Symbol("_vod"),Vf=Symbol("_vsh"),Bf=Symbol(""),jf=/(^|;)\s*display\s*:/;function Hf(e,t,n){const r=e.style,o=ce(n);let i=!1;if(n&&!o){if(t)if(ce(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&tr(r,l,"")}else for(const s in t)n[s]==null&&tr(r,s,"");for(const s in n)s==="display"&&(i=!0),tr(r,s,n[s])}else if(o){if(t!==n){const s=r[Bf];s&&(n+=";"+s),r.cssText=n,i=jf.test(n)}}else t&&e.removeAttribute("style");ss in e&&(e[ss]=i?r.display:"",e[Vf]&&(r.display="none"))}const ls=/\s*!important$/;function tr(e,t,n){if(W(n))n.forEach(r=>tr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ff(e,t);ls.test(n)?e.setProperty(an(r),n.replace(ls,""),"important"):e[r]=n}}const as=["Webkit","Moz","ms"],eo={};function Ff(e,t){const n=eo[t];if(n)return n;let r=Ze(t);if(r!=="filter"&&r in e)return eo[t]=r;r=kr(r);for(let o=0;o<as.length;o++){const i=as[o]+r;if(i in e)return eo[t]=i}return t}const cs="http://www.w3.org/1999/xlink";function $f(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n);else{const i=zc(t);n==null||i&&!il(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Uf(e,t,n,r,o,i,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,o,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,u=n??"";(c!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=il(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Gf(e,t,n,r){e.addEventListener(t,n,r)}function Wf(e,t,n,r){e.removeEventListener(t,n,r)}const us=Symbol("_vei");function qf(e,t,n,r,o=null){const i=e[us]||(e[us]={}),s=i[t];if(r&&s)s.value=r;else{const[l,a]=Kf(t);if(r){const c=i[t]=Xf(r,o);Gf(e,l,c,a)}else s&&(Wf(e,l,s,a),i[t]=void 0)}}const fs=/(?:Once|Passive|Capture)$/;function Kf(e){let t;if(fs.test(e)){t={};let r;for(;r=e.match(fs);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):an(e.slice(2)),t]}let to=0;const zf=Promise.resolve(),Jf=()=>to||(zf.then(()=>to=0),to=Date.now());function Xf(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ke(Yf(r,n.value),t,5,[r])};return n.value=e,n.attached=Jf(),n}function Yf(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qf=(e,t,n,r,o,i,s,l,a)=>{const c=o==="svg";t==="class"?Mf(e,r,c):t==="style"?Hf(e,n,r):In(t)?qo(t)||qf(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zf(e,t,r,c))?Uf(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),$f(e,t,r,c))};function Zf(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ds(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ds(t)&&ce(n)?!1:t in e}const ha=ve({patchProp:Qf},Nf);let bn,ps=!1;function ed(){return bn||(bn=yf(ha))}function td(){return bn=ps?bn:bf(ha),ps=!0,bn}const nd=(...e)=>{const t=ed().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=_a(r);if(!o)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,ma(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},rd=(...e)=>{const t=td().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=_a(r);if(o)return n(o,!0,ma(o))},t};function ma(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _a(e){return ce(e)?document.querySelector(e):e}const od=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,id=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,sd=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ld(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ad(e);return}return t}function ad(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function mr(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!sd.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(od.test(e)||id.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ld)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const cd=/#/g,ud=/&/g,fd=/\//g,dd=/=/g,pi=/\+/g,pd=/%5e/gi,hd=/%60/gi,md=/%7c/gi,_d=/%20/gi;function gd(e){return encodeURI(""+e).replace(md,"|")}function So(e){return gd(typeof e=="string"?e:JSON.stringify(e)).replace(pi,"%2B").replace(_d,"+").replace(cd,"%23").replace(ud,"%26").replace(hd,"`").replace(pd,"^").replace(fd,"%2F")}function no(e){return So(e).replace(dd,"%3D")}function _r(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function yd(e){return _r(e.replace(pi," "))}function bd(e){return _r(e.replace(pi," "))}function hi(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=yd(r[1]);if(o==="__proto__"||o==="constructor")continue;const i=bd(r[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function vd(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${no(e)}=${So(n)}`).join("&"):`${no(e)}=${So(t)}`:no(e)}function ga(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>vd(t,e[t])).filter(Boolean).join("&")}const Ed=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,wd=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Rd=/^([/\\]\s*){2,}[^/\\]/,Td=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Pd=/\/$|\/\?|\/#/,Ad=/^\.?\//;function Cd(e){return["./","../"].some(t=>e.startsWith(t))}function Rt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Ed.test(e):wd.test(e)||(t.acceptRelative?Rd.test(e):!1)}function Sd(e){return!!e&&Td.test(e)}function Lo(e="",t){return t?Pd.test(e):e.endsWith("/")}function Hr(e="",t){if(!t)return(Lo(e)?e.slice(0,-1):e)||"/";if(!Lo(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[i,...s]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function gr(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Lo(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[i,...s]=n.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function Ld(e=""){return e.startsWith("/")}function hs(e=""){return Ld(e)?e:"/"+e}function Od(e,t){if(ba(t)||Rt(e))return e;const n=Hr(t);return e.startsWith(n)?e:kn(n,e)}function Id(e,t){if(ba(t))return e;const n=Hr(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function ya(e,t){const n=Nd(e),r={...hi(n.search),...t};return n.search=ga(r),wa(n)}function ba(e){return!e||e==="/"}function xd(e){return e&&e!=="/"}function kn(e,...t){let n=e||"";for(const r of t.filter(o=>xd(o)))if(n){const o=r.replace(Ad,"");n=gr(n)+o}else n=r;return n}function va(...e){var s,l,a,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&Rt(r[0]))continue;r.pop(),o--;continue}if(f===1&&((s=r[r.length-1])!=null&&s.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let i=r.join("/");return o>=0?(l=n[0])!=null&&l.startsWith("/")&&!i.startsWith("/")?i="/"+i:(a=n[0])!=null&&a.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*o)+i,(c=n[n.length-1])!=null&&c.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function kd(e,t,n={}){return n.trailingSlash||(e=gr(e),t=gr(t)),n.leadingSlash||(e=hs(e),t=hs(t)),n.encoding||(e=_r(e),t=_r(t)),e===t}const Ea=Symbol.for("ufo:protocolRelative");function Nd(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!Rt(e,{acceptRelative:!0}))return ms(e);const[,r="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",l=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:a,search:c,hash:u}=ms(l.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:a,search:c,hash:u,[Ea]:!r}}function ms(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function wa(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Ea]?(e.protocol||"")+"//":"")+o+i+t+n+r}class Dd extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Md(e){var a,c,u,f,d;const t=((a=e.error)==null?void 0:a.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${o}: ${i}${t?` ${t}`:""}`,l=new Dd(s,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(l,h,{get(){return e[h]}});for(const[h,m]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(l,h,{get(){return e.response&&e.response[m]}});return l}const Vd=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function _s(e="GET"){return Vd.has(e.toUpperCase())}function Bd(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const jd=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Hd=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Fd(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Hd.test(t)?"json":jd.has(t)||t.startsWith("text/")?"text":"blob"}function $d(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,i)}return r}const Ud=new Set([408,409,425,429,500,502,503,504]),Gd=new Set([101,204,205,304]);function Ra(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(l){const a=l.error&&l.error.name==="AbortError"&&!l.options.timeout||!1;if(l.options.retry!==!1&&!a){let u;typeof l.options.retry=="number"?u=l.options.retry:u=_s(l.options.method)?0:1;const f=l.response&&l.response.status||500;if(u>0&&(Array.isArray(l.options.retryStatusCodes)?l.options.retryStatusCodes.includes(f):Ud.has(f))){const d=l.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),i(l.request,{...l.options,retry:u-1})}}const c=Md(l);throw Error.captureStackTrace&&Error.captureStackTrace(c,i),c}const i=async function(a,c={}){var h;const u={request:a,options:$d(c,e.defaults,n),response:void 0,error:void 0};u.options.method=(h=u.options.method)==null?void 0:h.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=Od(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=ya(u.request,{...u.options.params,...u.options.query}))),u.options.body&&_s(u.options.method)&&(Bd(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const m=new r;f=setTimeout(()=>m.abort(),u.options.timeout),u.options.signal=m.signal}try{u.response=await t(u.request,u.options)}catch(m){return u.error=m,u.options.onRequestError&&await u.options.onRequestError(u),await o(u)}finally{f&&clearTimeout(f)}if(u.response.body&&!Gd.has(u.response.status)&&u.options.method!=="HEAD"){const m=(u.options.parseResponse?"json":u.options.responseType)||Fd(u.response.headers.get("content-type")||"");switch(m){case"json":{const y=await u.response.text(),E=u.options.parseResponse||mr;u.response._data=E(y);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[m]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await o(u)):u.response},s=async function(a,c){return(await i(a,c))._data};return s.raw=i,s.native=(...l)=>t(...l),s.create=(l={})=>Ra({...e,defaults:{...e.defaults,...l}}),s}const mi=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Wd=mi.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),qd=mi.Headers,Kd=mi.AbortController,zd=Ra({fetch:Wd,Headers:qd,AbortController:Kd}),Jd=zd,Xd=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},yr=Xd().app,Yd=()=>yr.baseURL,Qd=()=>yr.buildAssetsDir,_i=(...e)=>va(Ta(),Qd(),...e),Ta=(...e)=>{const t=yr.cdnURL||yr.baseURL;return e.length?va(t,...e):t};globalThis.__buildAssetsURL=_i,globalThis.__publicAssetsURL=Ta;globalThis.$fetch||(globalThis.$fetch=Jd.create({baseURL:Yd()}));function Oo(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Oo(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const Zd={run:e=>e()},ep=()=>Zd,Pa=typeof console.createTask<"u"?console.createTask:ep;function tp(e,t){const n=t.shift(),r=Pa(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function np(e,t){const n=t.shift(),r=Pa(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function ro(e,t){for(const n of[...e])n(t)}class rp{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Oo(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Oo(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(tp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(np,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&ro(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&ro(this._after,o)}):(this._after&&o&&ro(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Aa(){return new rp}function op(e={}){let t,n=!1;const r=s=>{if(t&&t!==s)throw new Error("Context conflict")};let o;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?o=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(o&&t===void 0){const s=o.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=i();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>i(),set:(s,l)=>{l||r(s),t=s,n=!0},unset:()=>{t=void 0,n=!1},call:(s,l)=>{r(s),t=s;try{return o?o.run(s,l):l()}finally{n||(t=void 0)}},async callAsync(s,l){t=s;const a=()=>{t=s},c=()=>t===s?a:void 0;Io.add(c);try{const u=o?o.run(s,l):l();return n||(t=void 0),await u}finally{Io.delete(c)}}}}function ip(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=op({...e,...r})),t[n],t[n]}}}const br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},gs="__unctx__",sp=br[gs]||(br[gs]=ip()),lp=(e,t={})=>sp.get(e,t),ys="__unctx_async_handlers__",Io=br[ys]||(br[ys]=new Set);function Ca(e){const t=[];for(const o of Io){const i=o();i&&t.push(i)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const ap={componentName:"NuxtLink"},cp=null,up="#__nuxt",Sa="nuxt-app",bs=36e5;function La(e=Sa){return lp(e,{asyncContext:!1})}const fp="__nuxt_plugin";function dp(e){let t=0;const n={_name:Sa,_scope:Jc(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.12.1"},get vue(){return n.vueApp.version}},payload:$t({data:$t({}),state:st({}),once:new Set,_errors:$t({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!al()?n._scope.run(()=>vs(n,o)):vs(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:$t({}),_payloadRevivers:{},...e};if(window.__NUXT__)for(const o in window.__NUXT__)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],window.__NUXT__[o]);break;default:n.payload[o]=window.__NUXT__[o]}n.hooks=Aa(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const s="$"+o;qn(n,s,i),qn(n.vueApp.config.globalProperties,s,i)},qn(n.vueApp,"$nuxt",n),qn(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||de;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function pp(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function hp(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function mp(e,t){const n=[],r=[],o=[],i=[];let s=0;async function l(a){var u;const c=((u=a.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(c.length>0)r.push([new Set(c),a]);else{const f=hp(e,a).then(async()=>{a._name&&(n.push(a._name),await Promise.all(r.map(async([d,h])=>{d.has(a._name)&&(d.delete(a._name),d.size===0&&(s++,await l(h)))})))});a.parallel?o.push(f.catch(d=>i.push(d))):await f}}for(const a of t)pp(e,a);for(const a of t)await l(a);if(await Promise.all(o),s)for(let a=0;a<s;a++)await Promise.all(o);if(i.length)throw i[0]}function ct(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[fp]:!0,_name:t})}function vs(e,t,n){const r=()=>t();return La(e._name).set(e),e.vueApp.runWithContext(r)}function _p(e){var n;let t;return ql()&&(t=(n=ua())==null?void 0:n.appContext.app.$nuxt),t=t||La(e).tryUse(),t||null}function de(e){const t=_p(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function sn(e){return de().$config}function qn(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function gp(e,t){return{ctx:{table:e},matchAll:n=>Ia(n,e)}}function Oa(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Oa(o)])):new Map(Object.entries(e[n]));return t}function yp(e){return gp(Oa(e))}function Ia(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,s]of Es(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(s);for(const[i,s]of Es(t.dynamic))if(e.startsWith(i+"/")){const l="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...Ia(l,s))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function Es(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function oo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function xo(e,t,n=".",r){if(!oo(t))return xo(e,{},n,r);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(r&&r(o,i,s,n)||(Array.isArray(s)&&Array.isArray(o[i])?o[i]=[...s,...o[i]]:oo(s)&&oo(o[i])?o[i]=xo(s,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=s))}return o}function bp(e){return(...t)=>t.reduce((n,r)=>xo(n,r,"",e),{})}const vp=bp();function Ep(e,t){try{return t in e}catch{return!1}}var wp=Object.defineProperty,Rp=(e,t,n)=>t in e?wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t,n)=>(Rp(e,typeof t!="symbol"?t+"":t,n),n);class ko extends Error{constructor(t,n={}){super(t,n),Ct(this,"statusCode",500),Ct(this,"fatal",!1),Ct(this,"unhandled",!1),Ct(this,"statusMessage"),Ct(this,"data"),Ct(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:No(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=xa(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Ct(ko,"__h3_error__",!0);function Tp(e){if(typeof e=="string")return new ko(e);if(Pp(e))return e;const t=new ko(e.message??e.statusMessage??"",{cause:e.cause||e});if(Ep(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=No(e.statusCode,t.statusCode):e.status&&(t.statusCode=No(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;xa(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Pp(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const Ap=/[^\u0009\u0020-\u007E]/g;function xa(e=""){return e.replace(Ap,"")}function No(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ka=Symbol("route"),lt=()=>{var e;return(e=de())==null?void 0:e.$router},Na=()=>ql()?Qt(ka,de()._route):de()._route;const Cp=()=>{try{if(de()._processingMiddleware)return!0}catch{return!1}return!1},Da=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:ya(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:l="_blank",windowFeatures:a={}}=t.open,c=Object.entries(a).filter(([u,f])=>f!==void 0).map(([u,f])=>`${u.toLowerCase()}=${f}`).join(", ");return open(n,l,c),Promise.resolve()}const r=(t==null?void 0:t.external)||Rt(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&Sd(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=Cp();if(!r&&o)return e;const i=lt(),s=de();return r?(s._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},Ma="__nuxt_error",gi=()=>Al(de().payload,"error"),Sp=e=>{const t=yi(e);try{const n=de(),r=gi();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},Lp=async(e={})=>{const t=de(),n=gi();t.callHook("app:error:cleared",e),e.redirect&&await lt().replace(e.redirect),n.value=cp},Op=e=>!!e&&typeof e=="object"&&Ma in e,yi=e=>{const t=Tp(e);return Object.defineProperty(t,Ma,{value:!0,configurable:!1,writable:!1}),t},Ip=-1,xp=-2,kp=-3,Np=-4,Dp=-5,Mp=-6;function Vp(e,t){return Bp(JSON.parse(e),t)}function Bp(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(i,s=!1){if(i===Ip)return;if(i===kp)return NaN;if(i===Np)return 1/0;if(i===Dp)return-1/0;if(i===Mp)return-0;if(s)throw new Error("Invalid input");if(i in r)return r[i];const l=n[i];if(!l||typeof l!="object")r[i]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const a=l[0],c=t==null?void 0:t[a];if(c)return r[i]=c(o(l[1]));switch(a){case"Date":r[i]=new Date(l[1]);break;case"Set":const u=new Set;r[i]=u;for(let h=1;h<l.length;h+=1)u.add(o(l[h]));break;case"Map":const f=new Map;r[i]=f;for(let h=1;h<l.length;h+=2)f.set(o(l[h]),o(l[h+1]));break;case"RegExp":r[i]=new RegExp(l[1],l[2]);break;case"Object":r[i]=Object(l[1]);break;case"BigInt":r[i]=BigInt(l[1]);break;case"null":const d=Object.create(null);r[i]=d;for(let h=1;h<l.length;h+=2)d[l[h]]=o(l[h+1]);break;default:throw new Error(`Unknown type ${a}`)}}else{const a=new Array(l.length);r[i]=a;for(let c=0;c<l.length;c+=1){const u=l[c];u!==xp&&(a[c]=o(u))}}else{const a={};r[i]=a;for(const c in l){const u=l[c];a[c]=o(u)}}return r[i]}return o(0)}function jp(e){return Array.isArray(e)?e:[e]}const Hp=["title","titleTemplate","script","style","noscript"],nr=["base","meta","link","style","script","noscript"],Fp=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],$p=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Va=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],Up=typeof window<"u";function bi(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ws(e){return e._h||bi(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Ba(e,t){const{props:n,tag:r}=e;if($p.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const i of o)if(typeof n[i]<"u"){const s=String(n[i]);return`${r}:${i}:${s}`}return!1}function Rs(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Gp(e,t,n){const r={tag:e,props:await ja(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Va.forEach(o=>{const i=typeof r.props[o]<"u"?r.props[o]:n[o];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(o)||Hp.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=i),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Wp(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,i])=>e==="style"?`${o}:${i}`:o)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(o=>o.trim()).filter(Boolean).join(n)}async function ja(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=Wp(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Va.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const qp=10;async function Kp(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Fp.includes(n)).forEach(([n,r])=>{const o=jp(r);t.push(...o.map(i=>Gp(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<qp)+r,n))}const Ts={base:-10,title:10},Ps={critical:-80,high:-10,low:20};function vr(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in Ts&&(t=Ts[e.tag]),typeof n=="string"&&n in Ps?t+Ps[n]:t)}const zp=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],As=["onload","onerror","onabort","onprogress","onloadstart"],pt="%separator";function rr(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(s){let l;return["s","pageTitle"].includes(s)?l=t.pageTitle:s.includes(".")?l=s.split(".").reduce((a,c)=>a&&a[c]||void 0,t):l=t[s],typeof l<"u"?(l||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(s=>{const l=r(s.slice(1));typeof l=="string"&&(e=e.replace(new RegExp(`\\${s}(\\W|$)`,"g"),(a,c)=>`${l}${c}`).trim())}),e.includes(pt)&&(e.endsWith(pt)&&(e=e.slice(0,-pt.length).trim()),e.startsWith(pt)&&(e=e.slice(pt.length).trim()),e=e.replace(new RegExp(`\\${pt}\\s*\\${pt}`,"g"),pt),e=rr(e,{separator:n},n)),e}async function Ha(e,t={}){var u;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:nr.includes(f.tag)?ws(f):f.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(u=n[f])==null?void 0:u.children,h=[];for(const m of[...d].filter(y=>nr.includes(y.tagName.toLowerCase()))){const y={tag:m.tagName.toLowerCase(),props:await ja(m.getAttributeNames().reduce((A,v)=>({...A,[v]:m.getAttribute(v)}),{})),innerHTML:m.innerHTML};let E=1,P=Ba(y);for(;P&&h.find(A=>A._d===P);)P=`${P}:${E++}`;y._d=P||void 0,h.push(y),i.elMap[m.getAttribute("data-hid")||ws(y)]=m}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function s(f,d,h){const m=`${f}:${d}`;i.sideEffects[m]=h,delete i.pendingSideEffects[m]}function l({id:f,$el:d,tag:h}){const m=h.tag.endsWith("Attrs");i.elMap[f]=d,m||(["textContent","innerHTML"].forEach(y=>{h[y]&&h[y]!==d[y]&&(d[y]=h[y])}),s(f,"el",()=>{var y;(y=i.elMap[f])==null||y.remove(),delete i.elMap[f]}));for(const[y,E]of Object.entries(h._eventHandlers||{}))d.getAttribute(`data-${y}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:d).addEventListener(y.replace("on",""),E.bind(d)),d.setAttribute(`data-${y}`,""));Object.entries(h.props).forEach(([y,E])=>{const P=`attr:${y}`;if(y==="class")for(const A of(E||"").split(" ").filter(Boolean))m&&s(f,`${P}:${A}`,()=>d.classList.remove(A)),!d.classList.contains(A)&&d.classList.add(A);else if(y==="style")for(const A of(E||"").split(";").filter(Boolean)){const[v,...C]=A.split(":").map(R=>R.trim());s(f,`${P}:${A}:${v}`,()=>{d.style.removeProperty(v)}),d.style.setProperty(v,C.join(":"))}else d.getAttribute(y)!==E&&d.setAttribute(y,E===!0?"":String(E)),m&&s(f,P,()=>d.removeAttribute(y))})}const a=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:h,id:m}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||i.elMap[m],f.$el?l(f):nr.includes(d.tag)&&a.push(f)}}for(const f of a){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),c[d]=c[d]||n.createDocumentFragment(),c[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,s);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(i.pendingSideEffects).forEach(f=>f()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function Jp(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await Ha(e,t),delete e._domUpdatePromise,r()}))}function Xp(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){Jp(i,e)}}}}}const Yp=["templateParams","htmlAttrs","bodyAttrs"],Qp={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Ba(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[o];if(i){let l=r==null?void 0:r.tagDuplicateStrategy;if(!l&&Yp.includes(r.tag)&&(l="merge"),l==="merge"){const a=i.props;["class","style"].forEach(c=>{a[c]&&(r.props[c]?(c==="style"&&!a[c].endsWith(";")&&(a[c]+=";"),r.props[c]=`${a[c]} ${r.props[c]}`):r.props[c]=a[c])}),t[o].props={...a,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(vr(r)>vr(i))return}const s=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(nr.includes(r.tag)&&s===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},Zp={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},eh=["script","link","bodyAttrs"],th=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>eh.includes(r.tag)))Object.entries(n.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"&&(e.ssr&&As.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||bi(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,o;for(const i of Object.keys((t==null?void 0:t.dataset)||{}).filter(s=>As.some(l=>`${l}fired`===s))){const s=i.replace("fired","");(o=(r=n._eventHandlers)==null?void 0:r[s])==null||o.call(t,new Event(s.replace("on","")))}}}}),nh=["link","style","script","noscript"],rh={hooks:{"tag:normalise":({tag:e})=>{e.key&&nh.includes(e.tag)&&(e.props["data-hid"]=e._h=bi(e.key))}}},oh={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of zp)for(const o of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(o.tagPriority.replace(n,""));typeof i<"u"&&(o._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>vr(n)-vr(r))}}},ih={meta:"content",link:"href",htmlAttrs:"lang"},sh=e=>({hooks:{"tags:resolve":t=>{var l;const{tags:n}=t,r=(l=n.find(a=>a.tag==="title"))==null?void 0:l.textContent,o=n.findIndex(a=>a.tag==="templateParams"),i=o!==-1?n[o].props:{},s=i.separator||"|";delete i.separator,i.pageTitle=rr(i.pageTitle||r||"",i,s);for(const a of n.filter(c=>c.processTemplateParams!==!1)){const c=ih[a.tag];c&&typeof a.props[c]=="string"?a.props[c]=rr(a.props[c],i,s):(a.processTemplateParams===!0||["titleTemplate","title"].includes(a.tag))&&["innerHTML","textContent"].forEach(u=>{typeof a[u]=="string"&&(a[u]=rr(a[u],i,s))})}e._templateParams=i,e._separator=s,t.tags=n.filter(a=>a.tag!=="templateParams")}}}),lh={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=Rs(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=Rs(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},ah={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let Fa;function ch(e={}){const t=uh(e);return t.use(Xp()),Fa=t}function Cs(e,t){return!e||e==="server"&&t||e==="client"&&!t}function uh(e={}){const t=Aa();t.addHooks(e.hooks||{}),e.document=e.document||(Up?document:void 0);const n=!e.document,r=()=>{l.dirty=!0,t.callHook("entries:updated",l)};let o=0,i=[];const s=[],l={plugins:s,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(a){const c=typeof a=="function"?a(l):a;(!c.key||!s.some(u=>u.key===c.key))&&(s.push(c),Cs(c.mode,n)&&t.addHooks(c.hooks||{}))},push(a,c){c==null||delete c.head;const u={_i:o++,input:a,...c};return Cs(u.mode,n)&&(i.push(u),r()),{dispose(){i=i.filter(f=>f._i!==u._i),t.callHook("entries:updated",l),r()},patch(f){i=i.map(d=>(d._i===u._i&&(d.input=u.input=f),d)),r()}}},async resolveTags(){const a={tags:[],entries:[...i]};await t.callHook("entries:resolve",a);for(const c of a.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await Kp(c)){const d={tag:f,entry:c,resolvedOptions:l.resolvedOptions};await t.callHook("tag:normalise",d),a.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a),a.tags},ssr:n};return[Qp,Zp,th,rh,oh,sh,lh,ah,...(e==null?void 0:e.plugins)||[]].forEach(a=>l.use(a)),l.hooks.callHook("init",l),l}function fh(){return Fa}const dh=pa.startsWith("3");function ph(e){return typeof e=="function"?e():oe(e)}function Do(e,t=""){if(e instanceof Promise)return e;const n=ph(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Do(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,oe(o)]:[r,Do(o,r)])):n}const hh={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Do(t.input)}}},$a="usehead";function mh(e){return{install(n){dh&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide($a,e))}}.install}function _h(e={}){e.domDelayFn=e.domDelayFn||(n=>oi(()=>setTimeout(()=>n(),0)));const t=ch(e);return t.use(hh),t.install=mh(t),t}const Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vo="__unhead_injection_handler__";function gh(e){Mo[Vo]=e}function Ry(){if(Vo in Mo)return Mo[Vo]();const e=Qt($a);return e||fh()}let or,ir;function yh(){return or=$fetch(_i(`builds/meta/${sn().app.buildId}.json`),{responseType:"json"}),or.then(e=>{ir=yp(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),or}function Fr(){return or||yh()}async function vi(e){if(await Fr(),!ir)return console.error("[nuxt] Error creating app manifest matcher.",ir),{};try{return vp({},...ir.matchAll(e).reverse())}catch(t){return console.error("[nuxt] Error matching route rules.",t),{}}}async function Ss(e,t={}){const n=await vh(e,t),r=de(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=Ga(e).then(i=>i?Ua(n).then(s=>s||(delete o[n],null)):(o[n]=null,null))),o[n]}const bh="_payload.json";async function vh(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Rt(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=sn(),o=t.hash||(t.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,s=i&&await Ga(e)?i:r.app.baseURL;return kn(s,n.pathname,bh+(o?`?${o}`:""))}async function Ua(e){const t=fetch(e).then(n=>n.text().then(Wa));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Ga(e=Na().path){if(e=Hr(e),(await Fr()).prerendered.includes(e))return!0;const n=await vi(e);return!!n.prerender&&!n.redirect}let Kn=null;async function Eh(){if(Kn)return Kn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Wa(e.textContent||""),n=e.dataset.src?await Ua(e.dataset.src):void 0;return Kn={...t,...n,...window.__NUXT__},Kn}async function Wa(e){return await Vp(e,de()._payloadRevivers)}function wh(e,t){de()._payloadRevivers[e]=t}const Ls={NuxtError:e=>yi(e),EmptyShallowRef:e=>Hi(e==="_"?void 0:e==="0n"?BigInt(0):mr(e)),EmptyRef:e=>qe(e==="_"?void 0:e==="0n"?BigInt(0):mr(e)),ShallowRef:e=>Hi(e),ShallowReactive:e=>$t(e),Ref:e=>qe(e),Reactive:e=>st(e)},Rh=ct({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in Ls)wh(r,Ls[r]);Object.assign(e.payload,([t,n]=Ca(()=>e.runWithContext(Eh)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Th=[],Ph=ct({name:"nuxt:head",enforce:"pre",setup(e){const t=_h({plugins:Th});gh(()=>de().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Ha(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}}),Ah=async e=>{let t,n;const r=([t,n]=Ca(()=>vi(e.path)),t=await t,n(),t);if(r.redirect)return Rt(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},Ch=[Ah];function io(e){typeof e=="object"&&(e=wa({pathname:e.path||"",search:ga(e.query||{}),hash:e.hash||""}));const t=new URL(e.toString(),window.location.href);return{path:t.pathname,fullPath:e,query:hi(t.search),hash:t.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:e}}const Sh=ct({name:"nuxt:router",enforce:"pre",setup(e){const t=Id(window.location.pathname,sn().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},o=(f,d)=>(r[f].push(d),()=>r[f].splice(r[f].indexOf(d),1)),i=sn().app.baseURL,s=st(io(t));async function l(f,d){try{const h=io(f);for(const m of r["navigate:before"]){const y=await m(h,s);if(y===!1||y instanceof Error)return;if(typeof y=="string"&&y.length)return l(y,!0)}for(const m of r["resolve:before"])await m(h,s);Object.assign(s,h),window.history[d?"replaceState":"pushState"]({},"",kn(i,h.fullPath)),e.isHydrating||await e.runWithContext(Lp);for(const m of r["navigate:after"])await m(h,s)}catch(h){for(const m of r.error)await m(h)}}const c={currentRoute:Be(()=>s),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:f=>l(f,!1),replace:f=>l(f,!0),back:()=>window.history.go(-1),go:f=>window.history.go(f),forward:()=>window.history.go(1),beforeResolve:f=>o("resolve:before",f),beforeEach:f=>o("navigate:before",f),afterEach:f=>o("navigate:after",f),onError:f=>o("error",f),resolve:io,addRoute:(f,d)=>{n.push(d)},getRoutes:()=>n,hasRoute:f=>n.some(d=>d.name===f),removeRoute:f=>{const d=n.findIndex(h=>h.name===f);d!==-1&&n.splice(d,1)}};e.vueApp.component("RouterLink",Bt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const h=()=>l(f.to,f.replace);return()=>{var y;const m=c.resolve(f.to);return f.custom?(y=d.default)==null?void 0:y.call(d,{href:f.to,navigate:h,route:m}):Co("a",{href:f.to,onClick:E=>(E.preventDefault(),h())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;c.replace(d.href.replace(d.origin,""))}),e._route=s,e._middleware=e._middleware||{global:[],named:{}};const u=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{c.beforeEach(async(f,d)=>{f.meta=st(f.meta||{}),e.isHydrating&&u&&!tn(f.meta.layout)&&(f.meta.layout=u),e._processingMiddleware=!0;{const h=new Set([...Ch,...e._middleware.global]);{const m=await e.runWithContext(()=>vi(f.path));if(m.appMiddleware)for(const y in m.appMiddleware){const E=e._middleware.named[y];if(!E)return;m.appMiddleware[y]?h.add(E):h.delete(E)}}for(const m of h){const y=await e.runWithContext(()=>m(f,d));if(y!==!0&&(y||y===!1))return y}}}),c.afterEach(()=>{delete e._processingMiddleware}),await c.replace(t),kd(s.fullPath,t)||await e.runWithContext(()=>Da(s.fullPath))}),{provide:{route:s,router:c}}}}),Bo=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Lh=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ei=e=>{const t=de();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Bo(e)}):Bo(e)},Oh=ct({name:"nuxt:payload",setup(e){lt().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ss(t.path);r&&Object.assign(e.static.data,r.data)}),Ei(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Ss(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(Fr,1e3)})}}),Ih=ct(e=>{let t;async function n(){const r=await Fr();t&&clearTimeout(t),t=setTimeout(n,bs);try{const o=await $fetch(_i("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}Ei(()=>{t=setTimeout(n,bs)})}),xh=ct({name:"nuxt:global-components"}),kh="$s";function Nh(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=kh+n,i=de(),s=Al(i.payload.state,o);if(s.value===void 0&&r){const l=r();if(Te(l))return i.payload.state[o]=l,l;s.value=l}return s}const Dh="__NUXT_COLOR_MODE__",Mh="nuxt-color-mode",nt=window[Dh]||{},Vh=ct(e=>{const t=Nh("color-mode",()=>st({preference:nt.preference,value:nt.value,unknown:!1,forced:!1})).value;lt().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?nt.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=nt.getColorScheme())}))}_n(()=>t.preference,o=>{var i;t.forced||(o==="system"?(t.value=nt.getColorScheme(),r()):t.value=o,(i=window.localStorage)==null||i.setItem(Mh,o))},{immediate:!0}),_n(()=>t.value,(o,i)=>{nt.removeColorScheme(i),nt.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=nt.preference,t.value=nt.value,t.unknown=!1)}),e.provide("colorMode",t)}),Bh=ct(()=>{});function jh(e={}){const t=e.path||window.location.pathname;let n={};try{n=mr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:de().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Hh=ct({name:"nuxt:chunk-reload",setup(e){const t=lt(),n=sn(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const l="href"in i&&i.href[0]==="#"?n.app.baseURL+i.href:kn(n.app.baseURL,i.fullPath);jh({path:l,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,s)=>{r.has(i)&&o(s)})}}),Fh=[Rh,Ph,Sh,Oh,Ih,xh,Vh,Bh,Hh],$h="modulepreload",Uh=function(e,t){return e[0]==="."?new URL(e,t).href:e},Os={},Gh=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(a=>{if(a=Uh(a,r),a in Os)return;Os[a]=!0;const c=a.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const m=i[h];if(m.href===a&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":$h,c||(d.as="script",d.crossOrigin=""),d.href=a,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${a}`)))})}))}return o.then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},p=(...e)=>Gh(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),Wh=Bt({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(ee(),Pe("div",{class:Vt(["n-icon",t.icon])},null,2))}});async function qa(e,t=lt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>qa(e,t));t._routePreloaded.add(n);const i=r.map(s=>{var l;return(l=s.components)==null?void 0:l.default}).filter(s=>typeof s=="function");for(const s of i){const l=Promise.resolve(s()).catch(()=>{}).finally(()=>o.splice(o.indexOf(l)));o.push(l)}await Promise.all(o)}const qh=(...e)=>e.find(t=>t!==void 0);function Kh(e){const t=e.componentName||"NuxtLink";function n(o,i){if(!o||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return o;if(typeof o=="string")return Is(o,e.trailingSlash);const s="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Is(s,e.trailingSlash)}}function r(o){const i=lt(),s=sn(),l=Be(()=>{const y=o.to||o.href||"";return n(y,i.resolve)}),a=Be(()=>typeof l.value=="string"&&Rt(l.value,{acceptRelative:!0})),c=Be(()=>{var y;return typeof l.value=="object"?((y=i.resolve(l.value))==null?void 0:y.href)??null:l.value&&!o.external&&!a.value?n(kn(s.app.baseURL,l.value),i.resolve):l.value}),u=Ui("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=f==null?void 0:f({...o,to:l.value}),h=Be(()=>o.target&&o.target!=="_self"),m=Be(()=>o.external||h.value?!0:typeof l.value=="object"?!1:l.value===""||a.value);return{to:l,hasTarget:h,isAbsoluteUrl:a,isExternal:m,href:c,isActive:(d==null?void 0:d.isActive)??Be(()=>l.value===i.currentRoute.value.path),isExactActive:(d==null?void 0:d.isExactActive)??Be(()=>l.value===i.currentRoute.value.path),route:(d==null?void 0:d.route)??Be(()=>i.resolve(l.value)),async navigate(){await Da(c.value,{replace:o.replace,external:o.external})}}}return Bt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:r,setup(o,{slots:i}){const s=lt(),{to:l,href:a,navigate:c,isExternal:u,hasTarget:f,isAbsoluteUrl:d}=r(o),h=qe(!1),m=qe(null),y=E=>{var P;m.value=o.custom?(P=E==null?void 0:E.$el)==null?void 0:P.nextElementSibling:E==null?void 0:E.$el};if(o.prefetch!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!Xh()){const P=de();let A,v=null;Bl(()=>{const C=Jh();Ei(()=>{A=Bo(()=>{var R;(R=m==null?void 0:m.value)!=null&&R.tagName&&(v=C.observe(m.value,async()=>{v==null||v(),v=null;const T=typeof l.value=="string"?l.value:s.resolve(l.value).fullPath;await Promise.all([P.hooks.callHook("link:prefetch",T).catch(()=>{}),!u.value&&qa(l.value,s).catch(()=>{})]),h.value=!0}))})})}),jl(()=>{A&&Lh(A),v==null||v(),v=null})}return()=>{var A;if(!u.value){const v={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(h.value&&(v.class=o.prefetchedClass||e.prefetchedClass),v.rel=o.rel||void 0),Co(Ui("RouterLink"),v,i.default)}const E=o.target||null,P=qh(o.noRel?"":o.rel,e.externalRelAttribute,d.value||f.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:a.value,navigate:c,get route(){if(!a.value)return;const v=new URL(a.value,window.location.href);return{path:v.pathname,fullPath:v.pathname,get query(){return hi(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:a.value}},rel:P,target:E,isExternal:u.value,isActive:!1,isExactActive:!1}):null:Co("a",{ref:m,href:a.value||null,rel:P,target:E},(A=i.default)==null?void 0:A.call(i))}}})}const zh=Kh(ap);function Is(e,t){const n=t==="append"?gr:Hr;return Rt(e)&&!e.startsWith("http")?e:n(e,!0)}function Jh(){const e=de();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,s)=>(t||(t=new IntersectionObserver(l=>{for(const a of l){const c=n.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&c&&c()}})),n.set(i,s),t.observe(i),()=>{n.delete(i),t.unobserve(i),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function Xh(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const Yh=Bt({__name:"NButton",props:{to:{},icon:{},border:{type:Boolean,default:!0},disabled:{type:Boolean},type:{default:"button"}},setup(e){return(t,n)=>{const r=Wh;return ee(),ke(kl(t.to?oe(zh):"button"),ca({to:t.to},{...t.$attrs,...!t.to&&{type:t.type},...t.disabled?{disabled:!0}:{tabindex:0}},{class:[[{"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":t.border},{"n-icon-button":!t.$slots.default}],"n-button n-transition n-disabled:n-disabled"]}),{default:Tn(()=>[zi(t.$slots,"icon",{},()=>[t.icon?(ee(),ke(r,{key:0,icon:t.icon,class:Vt({"n-button-icon":t.$slots.default})},null,8,["icon","class"])):At("",!0)]),zi(t.$slots,"default")]),_:3},16,["to","class"])}}}),Ka=[{id:"abap",name:"ABAP",import:()=>p(()=>import("./DXFkqnOI.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>p(()=>import("./BigF1UXR.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>p(()=>import("./CowR2XfX.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>p(()=>import("./COIrKlfF.js").then(e=>e.e),__vite__mapDeps([0,1,2,3]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>p(()=>import("./CNkYXcD4.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>p(()=>import("./rS0jd3Ly.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>p(()=>import("./Sfo2eW0G.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>p(()=>import("./DC4hdoM9.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>p(()=>import("./B4yE-MfL.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>p(()=>import("./CG4fK2Nq.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>p(()=>import("./BmSZh3NL.js"),__vite__mapDeps([10,1,2,3,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,8,9,28,29,30,31,32,33,34,35,36,37,7,38,39,40,41,42,43,5,44,45,46]),import.meta.url)},{id:"asm",name:"Assembly",import:()=>p(()=>import("./PWN5J14X.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>p(()=>import("./BXR915QZ.js"),__vite__mapDeps([47,9,2,46,48,42,3,5,33,49,50]),import.meta.url)},{id:"awk",name:"AWK",import:()=>p(()=>import("./i0IPvypD.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>p(()=>import("./T9ysyp6P.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>p(()=>import("./BPiaQZfK.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>p(()=>import("./Urb1RsFe.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>p(()=>import("./CxrokwfH.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>p(()=>import("./BaedD2tq.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>p(()=>import("./3ghuYFLd.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>p(()=>import("./C1DVX8_8.js"),__vite__mapDeps([51,1,2,3,7,8,18,9]),import.meta.url)},{id:"c",name:"C",import:()=>p(()=>import("./RCJZWN-0.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>p(()=>import("./Bgpqy2XC.js"),[],import.meta.url)},{id:"clarity",name:"Clarity",import:()=>p(()=>import("./CIekO_uJ.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>p(()=>import("./BF6G6X0H.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>p(()=>import("./DXZpi2gR.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>p(()=>import("./Cgl53LJQ.js"),__vite__mapDeps([52,18,1,2,3,8]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>p(()=>import("./CGmujMTu.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>p(()=>import("./BOpLLL-w.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>p(()=>import("./Bg0wAK5a.js"),__vite__mapDeps([15,2]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>p(()=>import("./C3qUB5O8.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>p(()=>import("./BOnd8D4O.js"),__vite__mapDeps([16,17,13,18]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>p(()=>import("./B6bHXiXE.js"),__vite__mapDeps([53,1,2,3,18,13,39]),import.meta.url)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>p(()=>import("./DISxKEhY.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>p(()=>import("./CbYhyuC0.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>p(()=>import("./B2DkETJQ.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>p(()=>import("./C6Aznpr-.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>p(()=>import("./ByMv4Xf1.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>p(()=>import("./PifQWv0n.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>p(()=>import("./DZLoTQm4.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>p(()=>import("./DsfXcHUZ.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>p(()=>import("./D71BffLY.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>p(()=>import("./DvyTQcux.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>p(()=>import("./DNR26wTC.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>p(()=>import("./Eh5U-gDp.js"),[],import.meta.url)},{id:"elixir",name:"Elixir",import:()=>p(()=>import("./BaNxgKSR.js"),__vite__mapDeps([22,1,2,3]),import.meta.url)},{id:"elm",name:"Elm",import:()=>p(()=>import("./RE3ujT-k.js"),__vite__mapDeps([23,17,13]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>p(()=>import("./BEjL32p1.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>p(()=>import("./ChMCFiS0.js"),__vite__mapDeps([54,1,2,3,38,7,8,18,13,39,40]),import.meta.url)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>p(()=>import("./DS9ZWoKD.js"),[],import.meta.url)},{id:"fennel",name:"Fennel",import:()=>p(()=>import("./C6XIsc4F.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>p(()=>import("./DfeQjIbs.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>p(()=>import("./KPqz0Sb3.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>p(()=>import("./sQpxpyUs.js"),__vite__mapDeps([55,56]),import.meta.url)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>p(()=>import("./D6pmzCqS.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>p(()=>import("./Djqq6n-7.js"),__vite__mapDeps([57,58]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>p(()=>import("./NL97_oaV.js"),__vite__mapDeps([59,60,61]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>p(()=>import("./CoEqzGFw.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>p(()=>import("./B_SUYfiV.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>p(()=>import("./DAfrLhwG.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>p(()=>import("./DjTlIhuc.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>p(()=>import("./DAVo6uMX.js"),__vite__mapDeps([62,20]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>p(()=>import("./JgH_6NEN.js"),__vite__mapDeps([63,39]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>p(()=>import("./Dd6f7Z5P.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>p(()=>import("./Bbv8ARUV.js"),__vite__mapDeps([64,2,46,3,1]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>p(()=>import("./CQUCfALx.js"),__vite__mapDeps([65,46,3,2,1]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>p(()=>import("./DouzTJIq.js"),__vite__mapDeps([17,13]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>p(()=>import("./nclm9rTJ.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>p(()=>import("./BJn7Ek5W.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>p(()=>import("./BN4LRXf6.js"),__vite__mapDeps([66,2,46,28,50]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>p(()=>import("./wChcbJ1V.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>p(()=>import("./BmCW-tYz.js"),__vite__mapDeps([67,1,2,3,18]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>p(()=>import("./G-Jz5hiA.js"),__vite__mapDeps([68,38,1,2,3,7,8,18,13,39,40,42,15,58]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>p(()=>import("./DUdlC5k_.js"),__vite__mapDeps([69,1,2,3,11]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>p(()=>import("./DAGYewaG.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>p(()=>import("./Dit6kIrv.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>p(()=>import("./CpAANOdC.js"),[],import.meta.url)},{id:"hjson",name:"Hjson",import:()=>p(()=>import("./DZqG9GXz.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>p(()=>import("./DmDrTTlz.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>p(()=>import("./CbViG2Xw.js"),__vite__mapDeps([1,2,3]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>p(()=>import("./BR6CMsBL.js"),__vite__mapDeps([70,1,2,3]),import.meta.url)},{id:"http",name:"HTTP",import:()=>p(()=>import("./CqYeW6XZ.js"),__vite__mapDeps([71,39,9,7,8,66,2,46,28,50]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>p(()=>import("./CiRxTSAc.js"),__vite__mapDeps([72,73]),import.meta.url)},{id:"hy",name:"Hy",import:()=>p(()=>import("./C3qJFuQy.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>p(()=>import("./DzwdaLuO.js"),__vite__mapDeps([74,46]),import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>p(()=>import("./DeVv6D4_.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>p(()=>import("./ClXEvkw9.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>p(()=>import("./Dch3xQiY.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>p(()=>import("./D4LaosRr.js"),__vite__mapDeps([75,1,2,3]),import.meta.url)},{id:"jison",name:"Jison",import:()=>p(()=>import("./DY7_9Ga-.js"),__vite__mapDeps([76,2]),import.meta.url)},{id:"json",name:"JSON",import:()=>p(()=>import("./CupVZNk8.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>p(()=>import("./Bh8mriwU.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>p(()=>import("./DYI1rfmx.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>p(()=>import("./BUpeXbsf.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>p(()=>import("./C9d3aiqh.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>p(()=>import("./Dble9ECP.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>p(()=>import("./CsyrCbsw.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>p(()=>import("./D_T9yQUo.js"),__vite__mapDeps([29,16,17,13,18,30,2,31]),import.meta.url)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>p(()=>import("./BIxS-Weu.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>p(()=>import("./DGEpfOTx.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>p(()=>import("./Bfj2ThZ4.js"),__vite__mapDeps([77,78,31,39,3,79,27,1,2,8,29,16,17,13,18,30,40,38,7,41,46,11,43]),import.meta.url)},{id:"less",name:"Less",import:()=>p(()=>import("./Du6_OKDb.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>p(()=>import("./Dg0DGYq4.js"),__vite__mapDeps([80,1,2,3,9]),import.meta.url)},{id:"log",name:"Log file",import:()=>p(()=>import("./Ksn5IXup.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>p(()=>import("./DdacRhvC.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>p(()=>import("./BVGdgKAv.js"),__vite__mapDeps([40,13]),import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>p(()=>import("./B9S9BZZh.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>p(()=>import("./BdfWgkoX.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>p(()=>import("./DGDuLtS6.js"),__vite__mapDeps([81,3,33,5,2]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>p(()=>import("./Btshr8M_.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>p(()=>import("./CcYwH0AH.js"),__vite__mapDeps([82,58,11,70,1,2,3]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>p(()=>import("./CBPJd_fO.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",import:()=>p(()=>import("./Dkb1Nx48.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>p(()=>import("./-7WWnkdy.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>p(()=>import("./DOHBU7tp.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>p(()=>import("./B9CT-1u6.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>p(()=>import("./DBxHOdLe.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>p(()=>import("./DR5YgmI2.js"),__vite__mapDeps([83,40,13]),import.meta.url)},{id:"nim",name:"Nim",import:()=>p(()=>import("./YdT6Gj0u.js"),__vite__mapDeps([84,13,1,2,3,7,8,17,58]),import.meta.url)},{id:"nix",name:"Nix",import:()=>p(()=>import("./B7rNE5kf.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>p(()=>import("./CrgTADc5.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>p(()=>import("./DHmGyzbM.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>p(()=>import("./BWKJ1FCf.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>p(()=>import("./RqY_Nz63.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>p(()=>import("./BvCdDh2R.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>p(()=>import("./Dwo2i-71.js"),__vite__mapDeps([37,1,2,3,7,8,18]),import.meta.url)},{id:"php",name:"PHP",import:()=>p(()=>import("./Cthz8VOO.js"),__vite__mapDeps([85,1,2,3,7,8,18,9]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>p(()=>import("./BbJj1K1w.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>p(()=>import("./HrnDn_2Q.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>p(()=>import("./DXT9h7v2.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>p(()=>import("./CApMHEaB.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>p(()=>import("./9ZOzOPqN.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>p(()=>import("./BBJYjQ0k.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>p(()=>import("./BH_RS3WO.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",import:()=>p(()=>import("./DOtRmeXT.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>p(()=>import("./DhFF74a2.js"),__vite__mapDeps([86,2,3,42,5,48,15,1]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>p(()=>import("./37ic6j3l.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>p(()=>import("./CfPQhs6g.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>p(()=>import("./DwuVtWc2.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>p(()=>import("./BwXNTs7T.js"),__vite__mapDeps([87,2]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>p(()=>import("./MS3qTAOR.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>p(()=>import("./FJDVp-XM.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>p(()=>import("./BXfENWL6.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>p(()=>import("./Cp2HGa90.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>p(()=>import("./D384ylkT.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>p(()=>import("./Lpdzc9s2.js"),__vite__mapDeps([88,1,2,3,19]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>p(()=>import("./CrhH3_Og.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>p(()=>import("./C_ZPRiAj.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>p(()=>import("./6Kuza3Wr.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>p(()=>import("./AgnqFTPX.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>p(()=>import("./CHCTrc3a.js"),__vite__mapDeps([89,70,1,2,3,16,17,13,18,30,39,11,90,38,7,8,40]),import.meta.url)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>p(()=>import("./CarfVElc.js"),__vite__mapDeps([38,1,2,3,7,8,18,13,39,40]),import.meta.url)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>p(()=>import("./DGxQkqYo.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>p(()=>import("./8t4jSAMm.js"),__vite__mapDeps([91,18]),import.meta.url)},{id:"sass",name:"Sass",import:()=>p(()=>import("./CMDmr8et.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>p(()=>import("./vMsNTMhM.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>p(()=>import("./1Je9_Reo.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>p(()=>import("./BeX7Iu5M.js"),__vite__mapDeps([5,3]),import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>p(()=>import("./BiDE021q.js"),__vite__mapDeps([92,93]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>p(()=>import("./BZfs-ost.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>p(()=>import("./dIHJ9UdL.js"),__vite__mapDeps([94,39]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>p(()=>import("./DSsji4Hu.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>p(()=>import("./CThH5sBG.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>p(()=>import("./DKb4lQY2.js"),__vite__mapDeps([95,1,2,3]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>p(()=>import("./DJZWsvj0.js"),__vite__mapDeps([96,97]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>p(()=>import("./6XBPEST2.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>p(()=>import("./DbK06e1c.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>p(()=>import("./BH1M7C1g.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>p(()=>import("./DLP9ZvWb.js"),__vite__mapDeps([98,18]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>p(()=>import("./DSrLtGYv.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>p(()=>import("./wKgfcFVx.js"),__vite__mapDeps([99,2,46,15,48,42,3,5,33,49,86,1,58]),import.meta.url)},{id:"swift",name:"Swift",import:()=>p(()=>import("./Dez-Qvcc.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>p(()=>import("./BscxmKrE.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>p(()=>import("./CuJfdYLG.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>p(()=>import("./BxwAa5i0.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>p(()=>import("./C_8Fx7bH.js"),[],import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>p(()=>import("./DBeuZS66.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>p(()=>import("./Bj0fF4lQ.js"),__vite__mapDeps([78,31]),import.meta.url)},{id:"toml",name:"TOML",import:()=>p(()=>import("./BT9ZzGyQ.js"),[],import.meta.url)},{id:"tsv",name:"TSV",import:()=>p(()=>import("./DnLUQrgA.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>p(()=>import("./BlxWTfDV.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>p(()=>import("./C15OxdQ5.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>p(()=>import("./BacI6-DX.js"),__vite__mapDeps([100,3,2,5,85,1,7,8,18,9,30,38,13,39,40]),import.meta.url)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>p(()=>import("./DC8MraHL.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>p(()=>import("./Bx89rGXK.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>p(()=>import("./I4qd5QHW.js"),[],import.meta.url)},{id:"v",name:"V",import:()=>p(()=>import("./C2TBxDwV.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>p(()=>import("./CO5hpdkB.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>p(()=>import("./beD-FUib.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>p(()=>import("./DVfdqzEq.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>p(()=>import("./QZ3jNtnE.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>p(()=>import("./BLluXI4E.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>p(()=>import("./o8H-iTt6.js"),__vite__mapDeps([101,1,2,3,58,86,42,5,48,15,33,46,28,50,9,102,103,11,45,66,70]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>p(()=>import("./DCjyzNN-.js"),__vite__mapDeps([104,101,1,2,3,58,86,42,5,48,15,33,46,28,50,9,102,103,11,45,66,70]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>p(()=>import("./o-cPXEvd.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>p(()=>import("./Cicx_DS6.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>p(()=>import("./D3VXSfF0.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>p(()=>import("./BZz1Hhek.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>p(()=>import("./zhgf4ixb.js"),__vite__mapDeps([105,1,2,3,106,8,40,13,34,37,7,18,31,38,39,85,9,107,108,11,109,14,15,16,17,20,21,25,26,86,42,5,48,102,33,35,44,110,111,30,29,41,43,46,19,57,58,112,69,24,22,77,78,79,27,113]),import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>p(()=>import("./BICIrM8O.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>p(()=>import("./CsYA0RN7.js"),__vite__mapDeps([7,8]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>p(()=>import("./CJQrLysU.js"),__vite__mapDeps([108,7,8]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>p(()=>import("./C5gCGmDW.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>p(()=>import("./B1nm99XP.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>p(()=>import("./xtV5iK4E.js"),[],import.meta.url)}],Qh=Object.fromEntries(Ka.map(e=>[e.id,e.import])),Zh=Object.fromEntries(Ka.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),em={...Qh,...Zh},tm=async e=>p(()=>import("./CsTmP73Z.js"),[],import.meta.url).then(t=>t.default(e)),nm=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>p(()=>import("./YxQm0tCS.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>p(()=>import("./BaWyeHV_.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>p(()=>import("./Bn5gmY5k.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>p(()=>import("./CSPeAESR.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>p(()=>import("./BYdKNJ10.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>p(()=>import("./DVLwECkk.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>p(()=>import("./CEfge3mM.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>p(()=>import("./KEYLhlmT.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula",type:"dark",import:()=>p(()=>import("./DGO8GyiP.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Soft",type:"dark",import:()=>p(()=>import("./9B1nZgL-.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>p(()=>import("./CzPA46E-.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>p(()=>import("./BXF7Vm5l.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>p(()=>import("./CRDKj6ck.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>p(()=>import("./CRlnGVMD.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>p(()=>import("./UREJT2Bw.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>p(()=>import("./CZZ6oYdA.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>p(()=>import("./BsvsQ1iS.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>p(()=>import("./B2BuIiKK.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>p(()=>import("./BrGg7AAd.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>p(()=>import("./DDRuGeQH.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>p(()=>import("./CBL0qBdF.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>p(()=>import("./D7gg1Usp.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>p(()=>import("./iSbrOpM4.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>p(()=>import("./BITGhEdf.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>p(()=>import("./sMI-pExk.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>p(()=>import("./BeocmOPF.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>p(()=>import("./CsyjKwr8.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>p(()=>import("./BTtaZsq5.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>p(()=>import("./alpzPJ78.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>p(()=>import("./Cda-MJFk.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>p(()=>import("./jaXbsbtS.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>p(()=>import("./CX_FIdg1.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>p(()=>import("./Bj5xdiaE.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>p(()=>import("./CdedUr_-.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>p(()=>import("./C7oZ9nno.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>p(()=>import("./hXH8Gyq8.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>p(()=>import("./CA9nliXM.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>p(()=>import("./C86elO-m.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>p(()=>import("./xPNGhBYe.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>p(()=>import("./BBDuFDsq.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>p(()=>import("./eJfcURhx.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>p(()=>import("./BSB_bK09.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>p(()=>import("./B3g-KkBK.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>p(()=>import("./Bxkoe-BC.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>p(()=>import("./Br6ll-O0.js"),[],import.meta.url)}],rm=Object.fromEntries(nm.map(e=>[e.id,e.import]));var We;(function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"})(We||(We={}));var ln;(function(e){function t(u){return u.toString(2).padStart(32,"0")}e.toBinaryStr=t;function n(u){const f=e.getLanguageId(u),d=e.getTokenType(u),h=e.getFontStyle(u),m=e.getForeground(u),y=e.getBackground(u);console.log({languageId:f,tokenType:d,fontStyle:h,foreground:m,background:y})}e.print=n;function r(u){return(u&255)>>>0}e.getLanguageId=r;function o(u){return(u&768)>>>8}e.getTokenType=o;function i(u){return(u&1024)!==0}e.containsBalancedBrackets=i;function s(u){return(u&30720)>>>11}e.getFontStyle=s;function l(u){return(u&16744448)>>>15}e.getForeground=l;function a(u){return(u&4278190080)>>>24}e.getBackground=a;function c(u,f,d,h,m,y,E){let P=e.getLanguageId(u),A=e.getTokenType(u),v=e.containsBalancedBrackets(u)?1:0,C=e.getFontStyle(u),R=e.getForeground(u),T=e.getBackground(u);return f!==0&&(P=f),d!==8&&(A=d),h!==null&&(v=h?1:0),m!==-1&&(C=m),y!==0&&(R=y),E!==0&&(T=E),(P<<0|A<<8|v<<10|C<<11|R<<15|T<<24)>>>0}e.set=c})(ln||(ln={}));function Er(e,t){const n=[],r=om(e);let o=r.next();for(;o!==null;){let a=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let c=s();if(n.push({matcher:c,priority:a}),o!==",")break;o=r.next()}return n;function i(){if(o==="-"){o=r.next();const a=i();return c=>!!a&&!a(c)}if(o==="("){o=r.next();const a=l();return o===")"&&(o=r.next()),a}if(xs(o)){const a=[];do a.push(o),o=r.next();while(xs(o));return c=>t(a,c)}return null}function s(){const a=[];let c=i();for(;c;)a.push(c),c=i();return u=>a.every(f=>f(u))}function l(){const a=[];let c=s();for(;c&&(a.push(c),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");c=s()}return u=>a.some(f=>f(u))}}function xs(e){return!!e&&!!e.match(/[\w\.:]+/)}function om(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function za(e){typeof e.dispose=="function"&&e.dispose()}function im(e){return wi(e)}function wi(e){return Array.isArray(e)?sm(e):typeof e=="object"?lm(e):e}function sm(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=wi(e[n]);return t}function lm(e){let t={};for(let n in e)t[n]=wi(e[n]);return t}function Ja(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Xa(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Xa(e.substring(0,e.length-1)):e.substr(~t+1)}let so=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class zn{static hasCaptures(t){return t===null?!1:(so.lastIndex=0,so.test(t))}static replaceCaptures(t,n,r){return t.replace(so,(o,i,s,l)=>{let a=r[parseInt(i||s,10)];if(a){let c=n.substring(a.start,a.end);for(;c[0]===".";)c=c.substring(1);switch(l){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return o})}}function Ya(e,t){return e<t?-1:e>t?1:0}function Qa(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let i=Ya(e[o],t[o]);if(i!==0)return i}return 0}return n-r}function ks(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Za(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class ec{constructor(t){g(this,"fn");g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}}class Cn{constructor(t){g(this,"scopeName");this.scopeName=t}toKey(){return this.scopeName}}class am{constructor(t,n){g(this,"scopeName");g(this,"ruleName");this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}class cm{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}}class um{constructor(t,n){g(this,"repo");g(this,"initialScopeName");g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Cn(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const n=new cm;for(const r of t)fm(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof Cn){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 fm(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof Cn?sr({baseGrammar:i,selfGrammar:o},r):jo(e.ruleName,{baseGrammar:i,selfGrammar:o,repository:o.repository},r);const s=n.injections(e.scopeName);if(s)for(const l of s)r.add(new Cn(l))}function jo(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];wr([r],t,n)}}function sr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&wr(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&wr(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function wr(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?Ja({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&wr(r.patterns,{...t,repository:o},n);const i=r.include;if(!i)continue;const s=tc(i);switch(s.kind){case 0:sr({...t,selfGrammar:t.baseGrammar},n);break;case 1:sr(t,n);break;case 2:jo(s.ruleName,{...t,repository:o},n);break;case 3:case 4:const l=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const a={baseGrammar:t.baseGrammar,selfGrammar:l,repository:o};s.kind===4?jo(s.ruleName,a,n):sr(a,n)}else s.kind===4?n.add(new am(s.scopeName,s.ruleName)):n.add(new Cn(s.scopeName));break}}}class dm{constructor(){g(this,"kind",0)}}class pm{constructor(){g(this,"kind",1)}}class hm{constructor(t){g(this,"ruleName");g(this,"kind",2);this.ruleName=t}}class mm{constructor(t){g(this,"scopeName");g(this,"kind",3);this.scopeName=t}}class _m{constructor(t,n){g(this,"scopeName");g(this,"ruleName");g(this,"kind",4);this.scopeName=t,this.ruleName=n}}function tc(e){if(e==="$base")return new dm;if(e==="$self")return new pm;const t=e.indexOf("#");if(t===-1)return new mm(e);if(t===0)return new hm(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new _m(n,r)}}const gm=/\\(\d+)/,Ns=/\\(\d+)/g,ym=-1,nc=-2;class Nn{constructor(t,n,r,o){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=zn.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=zn.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Xa(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:zn.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:zn.replaceCaptures(this._contentName,t,n)}}class bm extends Nn{constructor(n,r,o,i,s){super(n,r,o,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(n,r){throw new Error("Not supported!")}compile(n,r){throw new Error("Not supported!")}compileAG(n,r,o,i){throw new Error("Not supported!")}}class vm extends Nn{constructor(n,r,o,i,s){super(n,r,o,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new Dt(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,r){r.push(this._match)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,i){return this._getCachedCompiledPatterns(n).compileAG(n,o,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Sn,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Ds extends Nn{constructor(n,r,o,i,s){super(n,r,o,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,r){for(const o of this.patterns)n.getRule(o).collectPatterns(n,r)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,i){return this._getCachedCompiledPatterns(n).compileAG(n,o,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Sn,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class Ho extends Nn{constructor(n,r,o,i,s,l,a,c,u,f){super(n,r,o,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new Dt(s,this.id),this.beginCaptures=l,this._end=new Dt(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=u||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.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(n,r){return this._end.resolveBackReferences(n,r)}collectPatterns(n,r){r.push(this._begin)}compile(n,r){return this._getCachedCompiledPatterns(n,r).compile(n)}compileAG(n,r,o,i){return this._getCachedCompiledPatterns(n,r).compileAG(n,o,i)}_getCachedCompiledPatterns(n,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Sn;for(const o of this.patterns)n.getRule(o).collectPatterns(n,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}}class Rr extends Nn{constructor(n,r,o,i,s,l,a,c,u){super(n,r,o,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new Dt(s,this.id),this.beginCaptures=l,this.whileCaptures=c,this._while=new Dt(a,nc),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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(n,r){return this._while.resolveBackReferences(n,r)}collectPatterns(n,r){r.push(this._begin)}compile(n,r){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,r,o,i){return this._getCachedCompiledPatterns(n).compileAG(n,o,i)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Sn;for(const r of this.patterns)n.getRule(r).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,r){return this._getCachedCompiledWhilePatterns(n,r).compile(n)}compileWhileAG(n,r,o,i){return this._getCachedCompiledWhilePatterns(n,r).compileAG(n,o,i)}_getCachedCompiledWhilePatterns(n,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Sn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}}class ye{static createCaptureRule(t,n,r,o,i){return t.registerRule(s=>new bm(n,s,r,o,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new vm(t.$vscodeTextmateLocation,t.id,t.name,t.match,ye._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Ja({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new Ds(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ye._compilePatterns(i,n,r))}return t.while?new Rr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ye._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,ye._compileCaptures(t.whileCaptures||t.captures,n,r),ye._compilePatterns(t.patterns,n,r)):new Ho(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ye._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,ye._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,ye._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let i=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);l>i&&(i=l)}for(let s=0;s<=i;s++)o[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let a=0;t[s].patterns&&(a=ye.getCompiledRuleId(t[s],n,r)),o[l]=ye.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,a)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let i=0,s=t.length;i<s;i++){const l=t[i];let a=-1;if(l.include){const c=tc(l.include);switch(c.kind){case 0:case 1:a=ye.getCompiledRuleId(r[l.include],n,r);break;case 2:let u=r[c.ruleName];u&&(a=ye.getCompiledRuleId(u,n,r));break;case 3:case 4:const f=c.scopeName,d=c.kind===4?c.ruleName:null,h=n.getExternalGrammar(f,r);if(h)if(d){let m=h.repository[d];m&&(a=ye.getCompiledRuleId(m,n,h.repository))}else a=ye.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else a=ye.getCompiledRuleId(l,n,r);if(a!==-1){const c=n.getRule(a);let u=!1;if((c instanceof Ds||c instanceof Ho||c instanceof Rr)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;o.push(a)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}}class Dt{constructor(t,n){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(t){const r=t.length;let o=0,i=[],s=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const c=t.charAt(l+1);c==="z"?(i.push(t.substring(o,l)),i.push("$(?!\\n)(?<!\\n)"),o=l+2):(c==="A"||c==="G")&&(s=!0),l++}this.hasAnchor=s,o===0?this.source=t:(i.push(t.substring(o,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=gm.test(this.source)}clone(){return new Dt(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){let r=n.map(o=>t.substring(o.start,o.end));return Ns.lastIndex=0,this.source.replace(Ns,(o,i)=>Za(r[parseInt(i,10)]||""))}_buildAnchorCache(){let t=[],n=[],r=[],o=[],i,s,l,a;for(i=0,s=this.source.length;i<s;i++)l=this.source.charAt(i),t[i]=l,n[i]=l,r[i]=l,o[i]=l,l==="\\"&&i+1<s&&(a=this.source.charAt(i+1),a==="A"?(t[i+1]="",n[i+1]="",r[i+1]="A",o[i+1]="A"):a==="G"?(t[i+1]="",n[i+1]="G",r[i+1]="",o[i+1]="G"):(t[i+1]=a,n[i+1]=a,r[i+1]=a,o[i+1]=a),i++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class Sn{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new Ms(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let o=this._items.map(i=>i.resolveAnchors(n,r));return new Ms(t,o,this._items.map(i=>i.ruleId))}}class Ms{constructor(t,n,r){g(this,"regExps");g(this,"rules");g(this,"scanner");this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
19
|
+
`)}findNextMatchSync(t,n,r){const o=this.scanner.findNextMatchSync(t,n,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}}class Tr{constructor(t,n,r){g(this,"_colorMap");g(this,"_defaults");g(this,"_root");g(this,"_cachedMatchRoot",new ec(t=>this._root.match(t)));this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(Rm(t),n)}static createFromParsedTheme(t,n){return Pm(t,n)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,o=this._cachedMatchRoot.get(n).find(i=>Em(t.parent,i.parentScopes));return o?new rc(o.fontStyle,o.foreground,o.background):null}}class kt{constructor(t,n){g(this,"parent");g(this,"scopeName");this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new kt(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new kt(n,t[r]);return n}push(t){return new kt(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}}function Em(e,t){if(t===null)return!0;let n=0,r=t[n];for(;e;){if(wm(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}function wm(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}class rc{constructor(t,n,r){g(this,"fontStyle");g(this,"foregroundId");g(this,"backgroundId");this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}}function Rm(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,i=t.length;o<i;o++){let s=t[o];if(!s.settings)continue;let l;if(typeof s.scope=="string"){let f=s.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),l=f.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let f=s.settings.fontStyle.split(" ");for(let d=0,h=f.length;d<h;d++)switch(f[d]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let c=null;typeof s.settings.foreground=="string"&&ks(s.settings.foreground)&&(c=s.settings.foreground);let u=null;typeof s.settings.background=="string"&&ks(s.settings.background)&&(u=s.settings.background);for(let f=0,d=l.length;f<d;f++){let m=l[f].trim().split(" "),y=m[m.length-1],E=null;m.length>1&&(E=m.slice(0,m.length-1),E.reverse()),n[r++]=new Tm(y,E,o,a,c,u)}}return n}class Tm{constructor(t,n,r,o,i,s){g(this,"scope");g(this,"parentScopes");g(this,"index");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=o,this.foreground=i,this.background=s}}function Pm(e,t){e.sort((a,c)=>{let u=Ya(a.scope,c.scope);return u!==0||(u=Qa(a.parentScopes,c.parentScopes),u!==0)?u:a.index-c.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let a=e.shift();a.fontStyle!==-1&&(n=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(o=a.background)}let i=new Am(t),s=new rc(n,i.getId(r),i.getId(o)),l=new vn(new Ln(0,null,-1,0,0),[]);for(let a=0,c=e.length;a<c;a++){let u=e[a];l.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new Tr(i,s,l)}class Am{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}}class Ln{constructor(t,n,r,o,i){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=t,this.parentScopes=n,this.fontStyle=r,this.foreground=o,this.background=i}clone(){return new Ln(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}}class vn{constructor(t,n=[],r={}){g(this,"_mainRule");g(this,"_children");g(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _sortBySpecificity(t){return t.length===1||t.sort(this._cmpBySpecificity),t}static _cmpBySpecificity(t,n){if(t.scopeDepth===n.scopeDepth){const r=t.parentScopes,o=n.parentScopes;let i=r===null?0:r.length,s=o===null?0:o.length;if(i===s)for(let l=0;l<i;l++){const a=r[l].length,c=o[l].length;if(a!==c)return c-a}return s-i}return n.scopeDepth-t.scopeDepth}match(t){if(t==="")return vn._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let n=t.indexOf("."),r,o;return n===-1?(r=t,o=""):(r=t.substring(0,n),o=t.substring(n+1)),this._children.hasOwnProperty(r)?this._children[r].match(o):vn._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(t,n,r,o,i,s){if(n===""){this._doInsertHere(t,r,o,i,s);return}let l=n.indexOf("."),a,c;l===-1?(a=n,c=""):(a=n.substring(0,l),c=n.substring(l+1));let u;this._children.hasOwnProperty(a)?u=this._children[a]:(u=new vn(this._mainRule.clone(),Ln.cloneArr(this._rulesWithParentScopes)),this._children[a]=u),u.insert(t+1,c,r,o,i,s)}_doInsertHere(t,n,r,o,i){if(n===null){this._mainRule.acceptOverwrite(t,r,o,i);return}for(let s=0,l=this._rulesWithParentScopes.length;s<l;s++){let a=this._rulesWithParentScopes[s];if(Qa(a.parentScopes,n)===0){a.acceptOverwrite(t,r,o,i);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Ln(t,n,r,o,i))}}class lo{constructor(t,n){g(this,"languageId");g(this,"tokenType");this.languageId=t,this.tokenType=n}}const Gt=class Gt{constructor(t,n){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new ec(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new lo(n,r)}));this._defaultAttributes=new lo(t,8),this._embeddedLanguagesMatcher=new Cm(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Gt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Gt.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};g(Gt,"_NULL_SCOPE_METADATA",new lo(0,0)),g(Gt,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let Fo=Gt;class Cm{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,o])=>Za(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}}class Vs{constructor(t,n){g(this,"stack");g(this,"stoppedEarly");this.stack=t,this.stoppedEarly=n}}function oc(e,t,n,r,o,i,s,l){const a=t.content.length;let c=!1,u=-1;if(s){const h=Sm(e,t,n,r,o,i);o=h.stack,r=h.linePos,n=h.isFirstLine,u=h.anchorPosition}const f=Date.now();for(;!c;){if(l!==0&&Date.now()-f>l)return new Vs(o,!0);d()}return new Vs(o,!1);function d(){const h=Lm(e,t,n,r,o,u);if(!h){i.produce(o,a),c=!0;return}const m=h.captureIndices,y=h.matchedRuleId,E=m&&m.length>0?m[0].end>r:!1;if(y===ym){const P=o.getRule(e);i.produce(o,m[0].start),o=o.withContentNameScopesList(o.nameScopesList),hn(e,t,n,o,i,P.endCaptures,m),i.produce(o,m[0].end);const A=o;if(o=o.parent,u=A.getAnchorPos(),!E&&A.getEnterPos()===r){o=A,i.produce(o,a),c=!0;return}}else{const P=e.getRule(y);i.produce(o,m[0].start);const A=o,v=P.getName(t.content,m),C=o.contentNameScopesList.pushAttributed(v,e);if(o=o.push(y,r,u,m[0].end===a,null,C,C),P instanceof Ho){const R=P;hn(e,t,n,o,i,R.beginCaptures,m),i.produce(o,m[0].end),u=m[0].end;const T=R.getContentName(t.content,m),V=C.pushAttributed(T,e);if(o=o.withContentNameScopesList(V),R.endHasBackReferences&&(o=o.withEndRule(R.getEndWithResolvedBackReferences(t.content,m))),!E&&A.hasSameRuleAs(o)){o=o.pop(),i.produce(o,a),c=!0;return}}else if(P instanceof Rr){const R=P;hn(e,t,n,o,i,R.beginCaptures,m),i.produce(o,m[0].end),u=m[0].end;const T=R.getContentName(t.content,m),V=C.pushAttributed(T,e);if(o=o.withContentNameScopesList(V),R.whileHasBackReferences&&(o=o.withEndRule(R.getWhileWithResolvedBackReferences(t.content,m))),!E&&A.hasSameRuleAs(o)){o=o.pop(),i.produce(o,a),c=!0;return}}else if(hn(e,t,n,o,i,P.captures,m),i.produce(o,m[0].end),o=o.pop(),!E){o=o.safePop(),i.produce(o,a),c=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function Sm(e,t,n,r,o,i){let s=o.beginRuleCapturedEOL?0:-1;const l=[];for(let a=o;a;a=a.pop()){const c=a.getRule(e);c instanceof Rr&&l.push({rule:c,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:c,findOptions:u}=xm(a.rule,e,a.stack.endRule,n,r===s),f=c.findNextMatchSync(t,r,u);if(f){if(f.ruleId!==nc){o=a.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(i.produce(a.stack,f.captureIndices[0].start),hn(e,t,n,a.stack,i,a.rule.whileCaptures,f.captureIndices),i.produce(a.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{o=a.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:s,isFirstLine:n}}function Lm(e,t,n,r,o,i){const s=Om(e,t,n,r,o,i),l=e.getInjections();if(l.length===0)return s;const a=Im(l,e,t,n,r,o,i);if(!a)return s;if(!s)return a;const c=s.captureIndices[0].start,u=a.captureIndices[0].start;return u<c||a.priorityMatch&&u===c?a:s}function Om(e,t,n,r,o,i){const s=o.getRule(e),{ruleScanner:l,findOptions:a}=ic(s,e,o.endRule,n,r===i),c=l.findNextMatchSync(t,r,a);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Im(e,t,n,r,o,i,s){let l=Number.MAX_VALUE,a=null,c,u=0;const f=i.contentNameScopesList.getScopeNames();for(let d=0,h=e.length;d<h;d++){const m=e[d];if(!m.matcher(f))continue;const y=t.getRule(m.ruleId),{ruleScanner:E,findOptions:P}=ic(y,t,null,r,o===s),A=E.findNextMatchSync(n,o,P);if(!A)continue;const v=A.captureIndices[0].start;if(!(v>=l)&&(l=v,a=A.captureIndices,c=A.ruleId,u=m.priority,l===o))break}return a?{priorityMatch:u===-1,captureIndices:a,matchedRuleId:c}:null}function ic(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function xm(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function hn(e,t,n,r,o,i,s){if(i.length===0)return;const l=t.content,a=Math.min(i.length,s.length),c=[],u=s[0].end;for(let f=0;f<a;f++){const d=i[f];if(d===null)continue;const h=s[f];if(h.length===0)continue;if(h.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,h.start):o.produce(r,h.start),d.retokenizeCapturedWithRuleId){const y=d.getName(l,s),E=r.contentNameScopesList.pushAttributed(y,e),P=d.getContentName(l,s),A=E.pushAttributed(P,e),v=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,E,A),C=e.createOnigString(l.substring(0,h.end));oc(e,C,n&&h.start===0,h.start,v,o,!1,0),za(C);continue}const m=d.getName(l,s);if(m!==null){const E=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,e);c.push(new km(E,h.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}class km{constructor(t,n){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=n}}function Nm(e,t,n,r,o,i,s,l){return new Mm(e,t,n,r,o,i,s,l)}function Bs(e,t,n,r,o){const i=Er(t,Pr),s=ye.getCompiledRuleId(n,r,o.repository);for(const l of i)e.push({debugSelector:t,matcher:l.matcher,ruleId:s,grammar:o,priority:l.priority})}function Pr(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(Dm(t[o],r))return n=o+1,!0;return!1})}function Dm(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}class Mm{constructor(t,n,r,o,i,s,l,a){g(this,"_rootScopeName");g(this,"balancedBracketSelectors");g(this,"_onigLib");g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=a,this._basicScopeAttributesProvider=new Fo(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=js(n,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const c of Object.keys(i)){const u=Er(c,Pr);for(const f of u)this._tokenTypeMatchers.push({matcher:f.matcher,type:i[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},n=[],r=this._rootScopeName,o=t.lookup(r);if(o){const i=o.injections;if(i)for(let l in i)Bs(n,l,i[l],this,o);const s=this._grammarRepository.injections(r);s&&s.forEach(l=>{const a=this.getExternalGrammar(l);if(a){const c=a.injectionSelector;c&&Bs(n,c,a,this,a)}})}return n.sort((i,s)=>i.priority-s.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=js(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const o=this._tokenize(t,n,!1,r);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(t,n,r=0){const o=this._tokenize(t,n,!0,r);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(t,n,r,o){this._rootId===-1&&(this._rootId=ye.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!n||n===On.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),d=ln.set(0,u.languageId,u.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),h=this.getRule(this._rootId).getName(null,null);let m;h?m=Le.createRootAndLookUpScopeName(h,d,this):m=Le.createRoot("unknown",d),n=new On(null,this._rootId,-1,-1,!1,null,m,m)}else i=!1,n.reset();t=t+`
|
|
20
|
+
`;const s=this.createOnigString(t),l=s.content.length,a=new Bm(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),c=oc(this,s,i,0,n,a,!0,o);return za(s),{lineLength:l,lineTokens:a,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}function js(e,t){return e=im(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}class Le{constructor(t,n,r){g(this,"parent");g(this,"scopePath");g(this,"tokenAttributes");this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,o=(t==null?void 0:t.scopePath)??null;for(const i of n)o=kt.push(o,i.scopeNames),r=new Le(r,o,i.encodedTokenAttributes);return r}static createRoot(t,n){return new Le(null,new kt(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),i=new kt(null,t),s=r.themeProvider.themeMatch(i),l=Le.mergeAttributes(n,o,s);return new Le(null,i,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Le.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let o=-1,i=0,s=0;return r!==null&&(o=r.fontStyle,i=r.foregroundId,s=r.backgroundId),ln.set(t,n.languageId,n.tokenType,null,o,i,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Le._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const i of r)o=Le._pushAttributed(o,i,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),i=t.scopePath.push(n),s=r.themeProvider.themeMatch(i),l=Le.mergeAttributes(t.tokenAttributes,o,s);return new Le(t,i,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var o;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((o=r.parent)==null?void 0:o.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}}const rt=class rt{constructor(t,n,r,o,i,s,l,a){g(this,"parent");g(this,"ruleId");g(this,"beginRuleCapturedEOL");g(this,"endRule");g(this,"nameScopesList");g(this,"contentNameScopesList");g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}equals(t){return t===null?!1:rt._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Le.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){rt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,i,s,l){return new rt(this,t,n,r,o,i,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,o;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(o=this.contentNameScopesList)==null?void 0:o.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new rt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=Le.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new rt(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Le.fromExtension(r,n.contentNameScopesList))}};g(rt,"NULL",new rt(null,0,0,0,!1,null,null,null));let On=rt;class Vm{constructor(t,n){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Er(r,Pr).map(o=>o.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Er(r,Pr).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}}class Bm{constructor(t,n,r,o){g(this,"balancedBracketSelectors");g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=o,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){var o;if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let i=(t==null?void 0:t.tokenAttributes)??0,s=!1;if((o=this.balancedBracketSelectors)!=null&&o.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(t==null?void 0:t.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(l)&&(i=ln.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(l))}if(s&&(i=ln.set(i,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=n;return}const r=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let o=0,i=this._binaryTokens.length;o<i;o++)r[o]=this._binaryTokens[o];return r}}class jm{constructor(t,n){g(this,"_onigLibPromise");g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLibPromise=n,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}async grammarForScopeName(t,n,r,o,i){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,Nm(t,s,n,r,o,i,this,await this._onigLibPromise))}return this._grammars.get(t)}}let Hm=class{constructor(t){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new jm(Tr.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Tr.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Vm(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}async _loadGrammar(t,n,r,o,i){const s=new um(this._syncRegistry,t);for(;s.Q.length>0;)await Promise.all(s.Q.map(l=>this._loadSingleGrammar(l.scopeName))),s.processQueue();return this._grammarForScopeName(t,n,r,o,i)}async _loadSingleGrammar(t){return this._ensureGrammarCache.has(t)||this._ensureGrammarCache.set(t,this._doLoadSingleGrammar(t)),this._ensureGrammarCache.get(t)}async _doLoadSingleGrammar(t){const n=await this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}async addGrammar(t,n=[],r=0,o=null){return this._syncRegistry.addGrammar(t,n),await this._grammarForScopeName(t.scopeName,r,o)}_grammarForScopeName(t,n=0,r=null,o=null,i=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,i)}};const Fm=On.NULL,Ee={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class ot{static toBinaryStr(t){let n=t.toString(2);for(;n.length<32;)n=`0${n}`;return n}static getLanguageId(t){return(t&Ee.LANGUAGEID_MASK)>>>Ee.LANGUAGEID_OFFSET}static getTokenType(t){return(t&Ee.TOKEN_TYPE_MASK)>>>Ee.TOKEN_TYPE_OFFSET}static getFontStyle(t){return(t&Ee.FONT_STYLE_MASK)>>>Ee.FONT_STYLE_OFFSET}static getForeground(t){return(t&Ee.FOREGROUND_MASK)>>>Ee.FOREGROUND_OFFSET}static getBackground(t){return(t&Ee.BACKGROUND_MASK)>>>Ee.BACKGROUND_OFFSET}static containsBalancedBrackets(t){return(t&Ee.BALANCED_BRACKETS_MASK)!==0}static set(t,n,r,o,i,s){let l=ot.getLanguageId(t),a=ot.getTokenType(t),c=ot.getFontStyle(t),u=ot.getForeground(t),f=ot.getBackground(t);const d=ot.containsBalancedBrackets(t)?1:0;return n!==0&&(l=n),r!==0&&(a=r===8?0:r),o!==We.NotSet&&(c=o),i!==0&&(u=i),s!==0&&(f=s),(l<<Ee.LANGUAGEID_OFFSET|a<<Ee.TOKEN_TYPE_OFFSET|c<<Ee.FONT_STYLE_OFFSET|d<<Ee.BALANCED_BRACKETS_OFFSET|u<<Ee.FOREGROUND_OFFSET|f<<Ee.BACKGROUND_OFFSET)>>>0}}function $r(e,t=!1){var i;const n=e.split(/(\r?\n)/g);let r=0;const o=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];o.push([l,r]),r+=n[s].length,r+=((i=n[s+1])==null?void 0:i.length)||0}return o}function sc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function lc(e){return e==="ansi"||sc(e)}function ac(e){return e==="none"}function cc(e){return ac(e)}function uc(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const o of n)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function $m(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Um(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const i=n.filter(s=>o.offset<s&&s<o.offset+o.content.length).map(s=>s-o.offset).sort((s,l)=>s-l);return i.length?$m(o,i):o})):e}function Ar(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,i]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof i=="string"?n[o]=i:o===r&&Object.assign(n,i);return n}function Lt(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function fc(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&We.Italic&&(t["font-style"]="italic"),e.fontStyle&We.Bold&&(t["font-weight"]="bold"),e.fontStyle&We.Underline&&(t["text-decoration"]="underline")),t}function dc(e){return Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Gm(e){const t=$r(e,!0).map(([o])=>o);function n(o){let i=o,s=0;for(const l of t){if(i<l.length)break;i-=l.length,s++}return{line:s,character:i}}function r(o,i){let s=0;for(let l=0;l<o;l++)s+=t[l].length;return s+=i,s}return{lines:t,indexToPos:n,posToIndex:r}}var Ot=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],ao={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Wm(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Hs(e,t){let n=1;const r=e[t+n++];let o;if(r==="2"){const i=[e[t+n++],e[t+n++],e[t+n]].map(s=>Number.parseInt(s));i.length===3&&!i.some(s=>Number.isNaN(s))&&(o={type:"rgb",rgb:i})}else if(r==="5"){const i=Number.parseInt(e[t+n]);Number.isNaN(i)||(o={type:"table",index:Number(i)})}return[n,o]}function qm(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)ao[o]&&t.push({type:"setDecoration",value:ao[o]});else if(o<=29){const i=ao[o-20];i&&t.push({type:"resetDecoration",value:i})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ot[o-30]}});else if(o===38){const[i,s]=Hs(e,n);s&&t.push({type:"setForegroundColor",value:s}),n+=i}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ot[o-40]}});else if(o===48){const[i,s]=Hs(e,n);s&&t.push({type:"setBackgroundColor",value:s}),n+=i}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ot[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ot[o-100+8]}})}return t}function Km(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const s=Wm(r,i),l=s.sequence?r.substring(i,s.startPosition):r.substring(i);if(l.length>0&&o.push({value:l,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const a=qm(s.sequence);for(const c of a)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of a)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}i=s.position}while(i<r.length);return o}}}var zm={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 Jm(e=zm){function t(l){return e[l]}function n(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let c=0;c<Ot.length;c++)r.push(t(Ot[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let f=0;f<6;f++)r.push(n([l[c],l[u],l[f]]));let a=8;for(let c=0;c<24;c++,a+=10)r.push(n([a,a,a]));return r}function i(l){return o()[l]}function s(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return i(l.index)}}return{value:s}}function Xm(e,t,n){const r=Ar(e,n),o=$r(t),i=Jm(Object.fromEntries(Ot.map(l=>{var a;return[l,(a=e.colors)==null?void 0:a[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]}))),s=Km();return o.map(l=>s.parse(l[0]).map(a=>{let c,u;a.decorations.has("reverse")?(c=a.background?i.value(a.background):e.bg,u=a.foreground?i.value(a.foreground):e.fg):(c=a.foreground?i.value(a.foreground):e.fg,u=a.background?i.value(a.background):void 0),c=Lt(c,r),u=Lt(u,r),a.decorations.has("dim")&&(c=Ym(c));let f=We.None;return a.decorations.has("bold")&&(f|=We.Bold),a.decorations.has("italic")&&(f|=We.Italic),a.decorations.has("underline")&&(f|=We.Underline),{content:a.value,offset:l[1],color:c,bgColor:u,fontStyle:f}}))}function Ym(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Ri(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(sc(r)||ac(o))return $r(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:i,colorMap:s}=e.setTheme(o);if(r==="ansi")return Xm(i,t,n);const l=e.getLanguage(r);return Qm(t,l,i,s,n)}function Qm(e,t,n,r,o){const i=Ar(n,o),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=o,a=$r(e);let c=Fm,u=[];const f=[];for(let d=0,h=a.length;d<h;d++){const[m,y]=a[d];if(m===""){u=[],f.push([]);continue}if(s>0&&m.length>=s){u=[],f.push([{content:m,offset:y,color:"",fontStyle:0}]);continue}let E,P,A;o.includeExplanation&&(E=t.tokenizeLine(m,c),P=E.tokens,A=0);const v=t.tokenizeLine2(m,c,l),C=v.tokens.length/2;for(let R=0;R<C;R++){const T=v.tokens[2*R],V=R+1<C?v.tokens[2*R+2]:m.length;if(T===V)continue;const U=v.tokens[2*R+1],q=Lt(r[ot.getForeground(U)],i),F=ot.getFontStyle(U),Y={content:m.substring(T,V),offset:y+T,color:q,fontStyle:F};if(o.includeExplanation){Y.explanation=[];let Z=0;for(;T+Z<V;){const ne=P[A],_e=m.substring(ne.startIndex,ne.endIndex);Z+=_e.length,Y.explanation.push({content:_e,scopes:Zm(n,ne.scopes)}),A+=1}}u.push(Y)}f.push(u),u=[],c=v.ruleStack}return f}function Zm(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const i=t.slice(0,r),s=t[r];n[r]={scopeName:s,themeMatches:t_(e,s,i)}}return n}function Fs(e,t){const n=`${e}.`;return e===t||t.substring(0,n.length)===n}function e_(e,t,n,r){if(!Fs(e,n))return!1;let o=t.length-1,i=r.length-1;for(;o>=0&&i>=0;)Fs(t[o],r[i])&&(o-=1),i-=1;return o===-1}function t_(e,t,n){const r=[];let o=0;for(let i=0,s=e.settings.length;i<s;i++){const l=e.settings[i];let a;if(typeof l.scope=="string")a=l.scope.split(/,/).map(c=>c.trim());else if(Array.isArray(l.scope))a=l.scope;else continue;for(let c=0,u=a.length;c<u;c++){const d=a[c].split(/ /),h=d[d.length-1],m=d.slice(0,d.length-1);e_(h,m,t,n)&&(r[o++]=l,c=u)}}return r}function pc(e,t,n){const r=Object.entries(n.themes).filter(s=>s[1]).map(s=>({color:s[0],theme:s[1]})),o=n_(...r.map(s=>Ri(e,t,{...n,theme:s.theme})));return o[0].map((s,l)=>s.map((a,c)=>{const u={content:a.content,variants:{},offset:a.offset};return o.forEach((f,d)=>{const{content:h,explanation:m,offset:y,...E}=f[l][c];u.variants[r[d].color]=E}),u}))}function n_(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(a=>a[r]),i=t.map(()=>[]);t.forEach((a,c)=>a.push(i[c]));const s=o.map(()=>0),l=o.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(c=>c.content.length));for(let c=0;c<n;c++){const u=l[c];u.content.length===a?(i[c].push(u),s[c]+=1,l[c]=o[c][s[c]]):(i[c].push({...u,content:u.content.slice(0,a)}),l[c]={...u,content:u.content.slice(a),offset:u.offset+a})}}}return t}class we extends Error{constructor(t){super(t),this.name="ShikiError"}}function Cr(e,t,n){let r,o,i,s,l;if("themes"in n){const{defaultColor:a="light",cssVariablePrefix:c="--shiki-"}=n,u=Object.entries(n.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,E)=>y.color===a?-1:E.color===a?1:0);if(u.length===0)throw new we("`themes` option must not be empty");const f=pc(e,t,n);if(a&&!u.find(y=>y.color===a))throw new we(`\`themes\` option must contain the defaultColor key \`${a}\``);const d=u.map(y=>e.getTheme(y.theme)),h=u.map(y=>y.color);i=f.map(y=>y.map(E=>r_(E,h,c,a)));const m=u.map(y=>Ar(y.theme,n));o=u.map((y,E)=>(E===0&&a?"":`${c+y.color}:`)+(Lt(d[E].fg,m[E])||"inherit")).join(";"),r=u.map((y,E)=>(E===0&&a?"":`${c+y.color}-bg:`)+(Lt(d[E].bg,m[E])||"inherit")).join(";"),s=`shiki-themes ${d.map(y=>y.name).join(" ")}`,l=a?void 0:[o,r].join(";")}else if("theme"in n){const a=Ar(n.theme,n.colorReplacements);i=Ri(e,t,n);const c=e.getTheme(n.theme);r=Lt(c.bg,a),o=Lt(c.fg,a),s=c.name}else throw new we("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:o,bg:r,themeName:s,rootStyle:l}}function r_(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(a=>fc(e.variants[a])),s=new Set(i.flatMap(a=>Object.keys(a))),l=i.reduce((a,c,u)=>{for(const f of s){const d=c[f]||"inherit";if(u===0&&r)a[f]=d;else{const h=f==="color"?"":f==="background-color"?"-bg":`-${f}`,m=n+t[u]+(f==="color"?"":h);a[f]?a[f]+=`;${m}:${d}`:a[f]=`${m}:${d}`}}return a},{});return o.htmlStyle=r?dc(l):Object.values(l).join(";"),o}function o_(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let i=function(l){return typeof l=="number"?{...o.indexToPos(l),offset:l}:{...l,offset:o.posToIndex(l.line,l.character)}};const o=Gm(r.source),s=(r.options.decorations||[]).map(l=>({...l,start:i(l.start),end:i(l.end)}));n(s),e.set(r.meta,{decorations:s,converter:o,source:r.source})}return e.get(r.meta)}function n(r){for(let o=0;o<r.length;o++){const i=r[o];if(i.start.offset>i.end.offset)throw new we(`Invalid decoration range: ${JSON.stringify(i.start)} - ${JSON.stringify(i.end)}`);for(let s=o+1;s<r.length;s++){const l=r[s],a=i.start.offset<l.start.offset&&l.start.offset<i.end.offset,c=i.start.offset<l.end.offset&&l.end.offset<i.end.offset,u=l.start.offset<i.start.offset&&i.start.offset<l.end.offset,f=l.start.offset<i.end.offset&&i.end.offset<l.end.offset;if(a||c||u||f){if(c&&c||u&&f)continue;throw new we(`Decorations ${JSON.stringify(i.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}return{name:"shiki:decorations",tokens(r){var l;if(!((l=this.options.decorations)!=null&&l.length))return;const i=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Um(r,i)},code(r){var f;if(!((f=this.options.decorations)!=null&&f.length))return;const o=t(this),i=Array.from(r.children).filter(d=>d.type==="element"&&d.tagName==="span");if(i.length!==o.converter.lines.length)throw new we(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${o.converter.lines.length}). Failed to apply decorations.`);function s(d,h,m,y){const E=i[d];let P="",A=-1,v=-1;function C(T){return T.type==="text"?T.value:T.type==="element"?T.children.map(C).join(""):""}if(h===0&&(A=0),m===0&&(v=0),m===Number.POSITIVE_INFINITY&&(v=E.children.length),A===-1||v===-1)for(let T=0;T<E.children.length;T++)P+=C(E.children[T]),A===-1&&P.length===h&&(A=T+1),v===-1&&P.length===m&&(v=T+1);if(A===-1)throw new we(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(v===-1)throw new we(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const R=E.children.slice(A,v);if(!y.alwaysWrap&&R.length===E.children.length)a(E,y,"line");else if(!y.alwaysWrap&&R.length===1&&R[0].type==="element")a(R[0],y,"token");else{const T={type:"element",tagName:"span",properties:{},children:R};a(T,y,"wrapper"),E.children.splice(A,R.length,T)}}function l(d,h){i[d]=a(i[d],h,"line")}function a(d,h,m){var P;const y=h.properties||{},E=h.transform||(A=>A);return d.tagName=h.tagName||"span",d.properties={...d.properties,...y,class:d.properties.class},(P=h.properties)!=null&&P.class&&uc(d,h.properties.class),d=E(d,m)||d,d}const c=[],u=o.decorations.sort((d,h)=>h.start.offset-d.start.offset);for(const d of u){const{start:h,end:m}=d;if(h.line===m.line)s(h.line,h.character,m.character,d);else if(h.line<m.line){s(h.line,h.character,Number.POSITIVE_INFINITY,d);for(let y=h.line+1;y<m.line;y++)c.unshift(()=>l(y,d));s(m.line,0,m.character,d)}}c.forEach(d=>d())}}}const i_=[o_()];function Sr(e){return[...e.transformers||[],...i_]}function Lr(e,t,n,r={meta:{},options:n,codeToHast:(o,i)=>Lr(e,o,i),codeToTokens:(o,i)=>Cr(e,o,i)}){var d,h;let o=t;for(const m of Sr(n))o=((d=m.preprocess)==null?void 0:d.call(r,o,n))||o;let{tokens:i,fg:s,bg:l,themeName:a,rootStyle:c}=Cr(e,o,n);const{mergeWhitespaces:u=!0}=n;u===!0?i=l_(i):u==="never"&&(i=a_(i));const f={...r,get source(){return o}};for(const m of Sr(n))i=((h=m.tokens)==null?void 0:h.call(f,i))||i;return s_(i,{...n,fg:s,bg:l,themeName:a,rootStyle:c},f)}function s_(e,t,n){var d,h,m;const r=Sr(t),o=[],i={type:"root",children:[]},{structure:s="classic"}=t;let l={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([y])=>!y.startsWith("_")))},children:[]},a={type:"element",tagName:"code",properties:{},children:o};const c=[],u={...n,structure:s,addClassToHast:uc,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return l},get code(){return a},get lines(){return c}};if(e.forEach((y,E)=>{var v,C;E&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:`
|
|
21
|
+
`}));let P={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const R of y){let T={type:"element",tagName:"span",properties:{},children:[{type:"text",value:R.content}]};const V=R.htmlStyle||dc(fc(R));V&&(T.properties.style=V);for(const U of r)T=((v=U==null?void 0:U.span)==null?void 0:v.call(u,T,E+1,A,P))||T;s==="inline"?i.children.push(T):s==="classic"&&P.children.push(T),A+=R.content.length}if(s==="classic"){for(const R of r)P=((C=R==null?void 0:R.line)==null?void 0:C.call(u,P,E+1))||P;c.push(P),o.push(P)}}),s==="classic"){for(const y of r)a=((d=y==null?void 0:y.code)==null?void 0:d.call(u,a))||a;l.children.push(a);for(const y of r)l=((h=y==null?void 0:y.pre)==null?void 0:h.call(u,l))||l;i.children.push(l)}let f=i;for(const y of r)f=((m=y==null?void 0:y.root)==null?void 0:m.call(u,f))||f;return f}function l_(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((i,s)=>{const a=!(i.fontStyle&&i.fontStyle&We.Underline);a&&i.content.match(/^\s+$/)&&t[s+1]?(o||(o=i.offset),r+=i.content):r?(a?n.push({...i,offset:o,content:r+i.content}):n.push({content:r,offset:o},i),o=0,r=""):n.push(i)}),n})}function a_(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,o,i,s]=r;if(!o&&!s)return n;const l=[{...n,offset:n.offset+o.length,content:i}];return o&&l.unshift({content:o,offset:n.offset}),s&&l.push({content:s,offset:n.offset+o.length+i.length}),l}))}const c_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Dn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Dn.prototype.property={};Dn.prototype.normal={};Dn.prototype.space=null;function hc(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Dn(n,r,t)}function $o(e){return e.toLowerCase()}class $e{constructor(t,n){this.property=t,this.attribute=n}}$e.prototype.space=null;$e.prototype.boolean=!1;$e.prototype.booleanish=!1;$e.prototype.overloadedBoolean=!1;$e.prototype.number=!1;$e.prototype.commaSeparated=!1;$e.prototype.spaceSeparated=!1;$e.prototype.commaOrSpaceSeparated=!1;$e.prototype.mustUseProperty=!1;$e.prototype.defined=!1;let u_=0;const z=jt(),fe=jt(),mc=jt(),I=jt(),ie=jt(),Zt=jt(),Me=jt();function jt(){return 2**++u_}var Uo=Object.freeze({__proto__:null,boolean:z,booleanish:fe,commaOrSpaceSeparated:Me,commaSeparated:Zt,number:I,overloadedBoolean:mc,spaceSeparated:ie});const co=Object.keys(Uo);class Ti extends $e{constructor(t,n,r,o){let i=-1;if(super(t,n),$s(this,"space",o),typeof r=="number")for(;++i<co.length;){const s=co[i];$s(this,co[i],(r&Uo[s])===Uo[s])}}}Ti.prototype.defined=!0;function $s(e,t,n){n&&(e[t]=n)}const f_={}.hasOwnProperty;function un(e){const t={},n={};let r;for(r in e.properties)if(f_.call(e.properties,r)){const o=e.properties[r],i=new Ti(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[$o(r)]=r,n[$o(i.attribute)]=r}return new Dn(t,n,e.space)}const _c=un({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),gc=un({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function yc(e,t){return t in e?e[t]:t}function bc(e,t){return yc(e,t.toLowerCase())}const vc=un({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:bc,properties:{xmlns:null,xmlnsXLink:null}}),Ec=un({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:ie,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:I,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:ie,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:fe,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null}}),d_=un({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:bc,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zt,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:ie,autoFocus:z,autoPlay:z,blocking:ie,capture:null,charSet:null,checked:z,cite:null,className:ie,cols:I,colSpan:null,content:null,contentEditable:fe,controls:z,controlsList:ie,coords:I|Zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:mc,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:ie,height:I,hidden:z,high:I,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:ie,itemRef:ie,itemScope:z,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,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:z,optimum:I,pattern:null,ping:ie,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:ie,required:z,reversed:z,rows:I,rowSpan:I,sandbox:ie,scope:null,scoped:z,seamless:z,selected:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:fe,width:I,wrap:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:z,disableRemotePlayback:z,prefix:null,property:null,results:I,security:null,unselectable:null}}),p_=un({space:"svg",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"},transform:yc,properties:{about:Me,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:ie,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Zt,g2:Zt,glyphName:Zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:Me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Me,rev:Me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Me,requiredFeatures:Me,requiredFonts:Me,requiredFormats:Me,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:Me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Me,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),h_=/^data[-\w.:]+$/i,Us=/-[a-z]/g,m_=/[A-Z]/g;function __(e,t){const n=$o(t);let r=t,o=$e;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&h_.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Us,y_);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Us.test(i)){let s=i.replace(m_,g_);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Ti}return new o(r,t)}function g_(e){return"-"+e.toLowerCase()}function y_(e){return e.charAt(1).toUpperCase()}const b_=hc([gc,_c,vc,Ec,d_],"html"),wc=hc([gc,_c,vc,Ec,p_],"svg"),Gs={}.hasOwnProperty;function v_(e,t){const n=t||{};function r(o,...i){let s=r.invalid;const l=r.handlers;if(o&&Gs.call(o,e)){const a=String(o[e]);s=Gs.call(l,a)?l[a]:r.unknown}if(s)return s.call(this,o,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function E_(e,t){if(e=e.replace(t.subset?w_(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function n(o,i,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function r(o,i,s){return t.format(o.charCodeAt(0),s.charCodeAt(i+1),t)}}function w_(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function R_(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?r:r+";"}function T_(e,t,n){const r="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?r:r+";"}const P_=["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"],uo={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:"€"},A_=["cent","copy","divide","gt","lt","not","para","times"],Rc={}.hasOwnProperty,Go={};let Jn;for(Jn in uo)Rc.call(uo,Jn)&&(Go[uo[Jn]]=Jn);function C_(e,t,n,r){const o=String.fromCharCode(e);if(Rc.call(Go,o)){const i=Go[o],s="&"+i;return n&&P_.includes(i)&&!A_.includes(i)&&(!r||t&&t!==61&&/[^\da-z]/i.test(String.fromCharCode(t)))?s:s+";"}return""}function S_(e,t,n){let r=R_(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=C_(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const i=T_(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function en(e,t){return E_(e,Object.assign({format:S_},t))}const L_=/^>|^->|<!--|-->|--!>|<!-$/g,O_=[">"],I_=["<",">"];function x_(e,t,n,r){return r.settings.bogusComments?"<?"+en(e.value,Object.assign({},r.settings.characterReferences,{subset:O_}))+">":"<!--"+e.value.replace(L_,o)+"-->";function o(i){return en(i,Object.assign({},r.settings.characterReferences,{subset:I_}))}}function k_(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Ws(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function N_(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function D_(e){return e.join(" ").trim()}const M_=/[ \t\n\f\r]/g;function Pi(e){return typeof e=="object"?e.type==="text"?qs(e.value):!1:qs(e)}function qs(e){return e.replace(M_,"")===""}const me=Pc(1),Tc=Pc(-1),V_=[];function Pc(e){return t;function t(n,r,o){const i=n?n.children:V_;let s=(r||0)+e,l=i[s];if(!o)for(;l&&Pi(l);)s+=e,l=i[s];return l}}const B_={}.hasOwnProperty;function Ac(e){return t;function t(n,r,o){return B_.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const Ai=Ac({body:H_,caption:fo,colgroup:fo,dd:G_,dt:U_,head:fo,html:j_,li:$_,optgroup:W_,option:q_,p:F_,rp:Ks,rt:Ks,tbody:z_,td:zs,tfoot:J_,th:zs,thead:K_,tr:X_});function fo(e,t,n){const r=me(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Pi(r.value.charAt(0)))}function j_(e,t,n){const r=me(n,t);return!r||r.type!=="comment"}function H_(e,t,n){const r=me(n,t);return!r||r.type!=="comment"}function F_(e,t,n){const r=me(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function $_(e,t,n){const r=me(n,t);return!r||r.type==="element"&&r.tagName==="li"}function U_(e,t,n){const r=me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function G_(e,t,n){const r=me(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ks(e,t,n){const r=me(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function W_(e,t,n){const r=me(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function q_(e,t,n){const r=me(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function K_(e,t,n){const r=me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function z_(e,t,n){const r=me(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function J_(e,t,n){return!me(n,t)}function X_(e,t,n){const r=me(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function zs(e,t,n){const r=me(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Y_=Ac({body:eg,colgroup:tg,head:Z_,html:Q_,tbody:ng});function Q_(e){const t=me(e,-1);return!t||t.type!=="comment"}function Z_(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const o=t[r];if(o.type==="element"&&(o.tagName==="title"||o.tagName==="base")){if(n.includes(o.tagName))return!1;n.push(o.tagName)}}return t.length>0}function eg(e){const t=me(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Pi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function tg(e,t,n){const r=Tc(n,t),o=me(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ai(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function ng(e,t,n){const r=Tc(n,t),o=me(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ai(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const Xn={name:[[`
|
|
22
|
+
\f\r &/=>`.split(""),`
|
|
23
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
24
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
25
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
26
|
+
\f\r &>`.split(""),`\0
|
|
27
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
28
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
29
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function rg(e,t,n,r){const o=r.schema,i=o.space==="svg"?!1:r.settings.omitOptionalTags;let s=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let a;o.space==="html"&&e.tagName==="svg"&&(r.schema=wc);const c=og(r,e.properties),u=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,u&&(s=!1),(c||!i||!Y_(e,t,n))&&(l.push("<",e.tagName,c?" "+c:""),s&&(o.space==="svg"||r.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(u),!s&&(!i||!Ai(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function og(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const i=ig(e,o,t[o]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function ig(e,t,n){const r=__(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let s=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const a=en(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Xn.name[o][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?N_:D_)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?a:(e.settings.preferUnquoted&&(l=en(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Xn.unquoted[o][i]}))),l!==n&&(e.settings.quoteSmart&&Ws(n,s)>Ws(n,e.alternative)&&(s=e.alternative),l=s+en(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Xn.single:Xn.double)[o][i],attribute:!0}))+s),a+(l&&"="+l))}const sg=["<","&"];function Cc(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:en(e.value,Object.assign({},r.settings.characterReferences,{subset:sg}))}function lg(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Cc(e,t,n,r)}function ag(e,t,n,r){return r.all(e)}const cg=v_("type",{invalid:ug,unknown:fg,handlers:{comment:x_,doctype:k_,element:rg,raw:lg,root:ag,text:Cc}});function ug(e){throw new Error("Expected node, not `"+e+"`")}function fg(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const dg={},pg={},hg=[];function mg(e,t){const n=dg,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:_g,all:gg,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||c_,characterReferences:n.characterReferences||pg,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?wc:b_,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function _g(e,t,n){return cg(e,t,n,this)}function gg(e){const t=[],n=e&&e.children||hg;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function yg(e,t,n){var i;const r={meta:{},options:n,codeToHast:(s,l)=>Lr(e,s,l),codeToTokens:(s,l)=>Cr(e,s,l)};let o=mg(Lr(e,t,n,r));for(const s of Sr(n))o=((i=s.postprocess)==null?void 0:i.call(r,o,n))||o;return o}async function bg(e){let t,n;const r={};function o(d){n=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}function i(){return typeof performance<"u"?performance.now():Date.now()}function s(d,h,m){r.HEAPU8.copyWithin(d,h,h+m)}function l(){return 2147483648}function a(d){try{return t.grow(d-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function c(d){const h=r.HEAPU8.length;d=d>>>0;const m=l();if(d>m)return!1;const y=(E,P)=>E+(P-E%P)%P;for(let E=1;E<=4;E*=2){let P=h*(1+.2/E);P=Math.min(P,d+100663296);const A=Math.min(m,y(Math.max(d,P),65536));if(a(A))return!0}return!1}const u={emscripten_get_now:i,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function f(){const h=await e({env:u,wasi_snapshot_preview1:u});t=h.memory,o(t.buffer),Object.assign(r,h)}return await f(),r}let be=null,vg=!1;function Eg(e){throw new we(e.UTF8ToString(e.getLastOnigError()))}class Ur{constructor(t){g(this,"utf16Length");g(this,"utf8Length");g(this,"utf16Value");g(this,"utf8Value");g(this,"utf16OffsetToUtf8");g(this,"utf8OffsetToUtf16");const n=t.length,r=Ur._utf8ByteLength(t),o=r!==n,i=o?new Uint32Array(n+1):null;o&&(i[n]=r);const s=o?new Uint32Array(r+1):null;o&&(s[r]=n);const l=new Uint8Array(r);let a=0;for(let c=0;c<n;c++){const u=t.charCodeAt(c);let f=u,d=!1;if(u>=55296&&u<=56319&&c+1<n){const h=t.charCodeAt(c+1);h>=56320&&h<=57343&&(f=(u-55296<<10)+65536|h-56320,d=!0)}o&&(i[c]=a,d&&(i[c+1]=a),f<=127?s[a+0]=c:f<=2047?(s[a+0]=c,s[a+1]=c):f<=65535?(s[a+0]=c,s[a+1]=c,s[a+2]=c):(s[a+0]=c,s[a+1]=c,s[a+2]=c,s[a+3]=c)),f<=127?l[a++]=f:f<=2047?(l[a++]=192|(f&1984)>>>6,l[a++]=128|(f&63)>>>0):f<=65535?(l[a++]=224|(f&61440)>>>12,l[a++]=128|(f&4032)>>>6,l[a++]=128|(f&63)>>>0):(l[a++]=240|(f&1835008)>>>18,l[a++]=128|(f&258048)>>>12,l[a++]=128|(f&4032)>>>6,l[a++]=128|(f&63)>>>0),d&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,o=t.length;r<o;r++){const i=t.charCodeAt(r);let s=i,l=!1;if(i>=55296&&i<=56319&&r+1<o){const a=t.charCodeAt(r+1);a>=56320&&a<=57343&&(s=(i-55296<<10)+65536|a-56320,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Oe=class Oe{constructor(t){g(this,"id",++Oe.LAST_ID);g(this,"_onigBinding");g(this,"content");g(this,"utf16Length");g(this,"utf8Length");g(this,"utf16OffsetToUtf8");g(this,"utf8OffsetToUtf16");g(this,"ptr");if(!be)throw new we("Must invoke loadWasm first.");this._onigBinding=be,this.content=t;const n=new Ur(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Oe._sharedPtrInUse?(Oe._sharedPtr||(Oe._sharedPtr=be.omalloc(1e4)),Oe._sharedPtrInUse=!0,be.HEAPU8.set(n.utf8Value,Oe._sharedPtr),this.ptr=Oe._sharedPtr):this.ptr=n.createString(be)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Oe._sharedPtr?Oe._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};g(Oe,"LAST_ID",0),g(Oe,"_sharedPtr",0),g(Oe,"_sharedPtrInUse",!1);let Or=Oe;class wg{constructor(t){g(this,"_onigBinding");g(this,"_ptr");if(!be)throw new we("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,a=t.length;l<a;l++){const c=new Ur(t[l]);n[l]=c.createString(be),r[l]=c.utf8Length}const o=be.omalloc(4*t.length);be.HEAPU32.set(n,o/4);const i=be.omalloc(4*t.length);be.HEAPU32.set(r,i/4);const s=be.createOnigScanner(o,i,t.length);for(let l=0,a=t.length;l<a;l++)be.ofree(n[l]);be.ofree(i),be.ofree(o),s===0&&Eg(be),this._onigBinding=be,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=vg,i=0;if(typeof r=="number"?(r&8&&(o=!0),i=r):typeof r=="boolean"&&(o=r),typeof t=="string"){t=new Or(t);const s=this._findNextMatchSync(t,n,o,i);return t.dispose(),s}return this._findNextMatchSync(t,n,o,i)}_findNextMatchSync(t,n,r,o){const i=this._onigBinding;let s;if(r?s=i.findNextOnigScannerMatchDbg(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o):s=i.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o),s===0)return null;const l=i.HEAPU32;let a=s/4;const c=l[a++],u=l[a++],f=[];for(let d=0;d<u;d++){const h=t.convertUtf8OffsetToUtf16(l[a++]),m=t.convertUtf8OffsetToUtf16(l[a++]);f[d]={start:h,end:m,length:m-h}}return{index:c,captureIndices:f}}}function Rg(e){return typeof e.instantiator=="function"}function Tg(e){return typeof e.default=="function"}function Pg(e){return typeof e.data<"u"}function Ag(e){return typeof Response<"u"&&e instanceof Response}function Cg(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Yn;function Sg(e){if(Yn)return Yn;async function t(){be=await bg(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Rg(r)?r=await r.instantiator(n):Tg(r)?r=await r.default(n):(Pg(r)&&(r=r.data),Ag(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Lg(r)(n):r=await Og(r)(n):Cg(r)?r=await po(r)(n):r instanceof WebAssembly.Module?r=await po(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await po(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Yn=t(),Yn}function po(e){return t=>WebAssembly.instantiate(e,t)}function Lg(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Og(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}function Ig(e){return new Or(e)}function xg(e){return new wg(e)}const Js={light:"#333333",dark:"#bbbbbb"},Xs={light:"#fffffe",dark:"#1e1e1e"},Ys="__shiki_resolved";function Sc(e){var l,a,c,u,f;if(e!=null&&e[Ys])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const d=t.settings?t.settings.find(h=>!h.name&&!h.scope):void 0;(l=d==null?void 0:d.settings)!=null&&l.foreground&&(r=d.settings.foreground),(a=d==null?void 0:d.settings)!=null&&a.background&&(n=d.settings.background),!r&&((c=t==null?void 0:t.colors)!=null&&c["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Js.light:Js.dark),n||(n=t.type==="light"?Xs.light:Xs.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let o=0;const i=new Map;function s(d){var m;if(i.has(d))return i.get(d);o+=1;const h=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return(m=t.colorReplacements)!=null&&m[`#${h}`]?s(d):(i.set(d,h),h)}t.settings=t.settings.map(d=>{var E,P;const h=((E=d.settings)==null?void 0:E.foreground)&&!d.settings.foreground.startsWith("#"),m=((P=d.settings)==null?void 0:P.background)&&!d.settings.background.startsWith("#");if(!h&&!m)return d;const y={...d,settings:{...d.settings}};if(h){const A=s(d.settings.foreground);t.colorReplacements[A]=d.settings.foreground,y.settings.foreground=A}if(m){const A=s(d.settings.background);t.colorReplacements[A]=d.settings.background,y.settings.background=A}return y});for(const d of Object.keys(t.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((f=t.colors[d])!=null&&f.startsWith("#"))){const h=s(t.colors[d]);t.colorReplacements[h]=t.colors[d],t.colors[d]=h}return Object.defineProperty(t,Ys,{enumerable:!1,writable:!1,value:!0}),t}class kg extends Hm{constructor(n,r,o,i={}){super(n);g(this,"_resolver");g(this,"_themes");g(this,"_langs");g(this,"_alias");g(this,"_resolvedThemes",{});g(this,"_resolvedGrammars",{});g(this,"_langMap",{});g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=o,this._alias=i,r.forEach(s=>this.loadTheme(s)),o.forEach(s=>this.loadLanguage(s))}getTheme(n){return typeof n=="string"?this._resolvedThemes[n]:this.loadTheme(n)}loadTheme(n){const r=Sc(n);return r.name&&(this._resolvedThemes[r.name]=r,this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=Object.keys(this._resolvedThemes)),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=Tr.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new we(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars[n]}async loadLanguage(n){var s,l,a,c;if(this.getGrammar(n.name))return;const r=new Set(Object.values(this._langMap).filter(u=>{var f;return(f=u.embeddedLangsLazy)==null?void 0:f.includes(n.name)}));this._resolver.addLanguage(n);const o={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const i=await this.loadGrammarWithConfiguration(n.scopeName,1,o);if(this._resolvedGrammars[n.name]=i,n.aliases&&n.aliases.forEach(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)delete this._resolvedGrammars[u.name],this._loadedLanguagesCache=null,(l=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||l.delete(u.scopeName),(c=(a=this._syncRegistry)==null?void 0:a._grammars)==null||c.delete(u.scopeName),await this.loadLanguage(this._langMap[u.name])}async init(){this._themes.map(n=>this.loadTheme(n)),await this.loadLanguages(this._langs)}async loadLanguages(n){for(const i of n)this.resolveEmbeddedLanguages(i);const r=Array.from(this._langGraph.entries()),o=r.filter(([i,s])=>!s);if(o.length){const i=r.filter(([s,l])=>{var a;return l&&((a=l.embeddedLangs)==null?void 0:a.some(c=>o.map(([u])=>u).includes(c)))}).filter(s=>!o.includes(s));throw new we(`Missing languages ${o.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of r)this._resolver.addLanguage(s);for(const[i,s]of r)await this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=Object.keys({...this._resolvedGrammars,...this._alias})),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap[n.name]=n,this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap[r])}}class Ng{constructor(t,n){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLibPromise");this._onigLibPromise=t,n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLibPromise}getLangRegistration(t){return this._langs.get(t)}async loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let o=1;o<=n.length;o++){const i=n.slice(0,o).join(".");r=[...r,...this._injections.get(i)||[]]}return r}}let Dg;async function Mg(e={}){async function t(E){return Promise.resolve(typeof E=="function"?E():E).then(P=>P.default||P)}async function n(E){return Array.from(new Set((await Promise.all(E.filter(P=>!lc(P)).map(async P=>await t(P).then(A=>Array.isArray(A)?A:[A])))).flat()))}const r=e.loadWasm||Dg,[o,i]=await Promise.all([Promise.all((e.themes||[]).map(t)).then(E=>E.map(Sc)),n(e.langs||[]),r?Sg(r):void 0]),s=new Ng(Promise.resolve({createOnigScanner(E){return xg(E)},createOnigString(E){return Ig(E)}}),i),l=new kg(s,o,i,e.langAlias);await l.init();let a;function c(E){const P=l.getGrammar(typeof E=="string"?E:E.name);if(!P)throw new we(`Language \`${E}\` not found, you may need to load it first`);return P}function u(E){if(E==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};const P=l.getTheme(E);if(!P)throw new we(`Theme \`${E}\` not found, you may need to load it first`);return P}function f(E){const P=u(E);a!==E&&(l.setTheme(P),a=E);const A=l.getColorMap();return{theme:P,colorMap:A}}function d(){return l.getLoadedThemes()}function h(){return l.getLoadedLanguages()}async function m(...E){await l.loadLanguages(await n(E))}async function y(...E){await Promise.all(E.map(async P=>cc(P)?null:l.loadTheme(await t(P))))}return{setTheme:f,getTheme:u,getLanguage:c,getLoadedThemes:d,getLoadedLanguages:h,loadLanguage:m,loadTheme:y}}async function Vg(e={}){const t=await Mg(e);return{codeToTokensBase:(n,r)=>Ri(t,n,r),codeToTokensWithThemes:(n,r)=>pc(t,n,r),codeToTokens:(n,r)=>Cr(t,n,r),codeToHast:(n,r)=>Lr(t,n,r),codeToHtml:(n,r)=>yg(t,n,r),...t,getInternalContext:()=>t}}function Bg(e,t,n){async function r(o){function i(u){if(typeof u=="string"){if(lc(u))return[];const f=e[u];if(!f)throw new we(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}function s(u){if(cc(u))return"none";if(typeof u=="string"){const f=t[u];if(!f)throw new we(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}const l=(o.themes??[]).map(u=>s(u)),a=(o.langs??[]).map(u=>i(u)),c=await Vg({...o,themes:l,langs:a,loadWasm:n});return{...c,loadLanguage(...u){return c.loadLanguage(...u.map(i))},loadTheme(...u){return c.loadTheme(...u.map(s))}}}return r}const jg=Bg(em,rm,tm),Lc=qe(),Oc=qe();function Hg(){return jg({themes:["vitesse-dark","vitesse-light"],langs:["css","javascript","typescript","html","vue","vue-html","bash","diff"]}).then(e=>{Oc.value=e})}function Fg(e,t){return Be(()=>{var r;const n=((r=Lc.value)==null?void 0:r.colorMode)||"light";return Oc.value.codeToHtml(vu(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const $g=["innerHTML"],Ug=Bt({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=Be(()=>{const r=Fg(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,o)=>(ee(),Pe("pre",{class:Vt(["n-code-block",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,$g))}});async function Gg(e){const t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return qg(await Wg(t))}async function Wg(e){const t=e.body.getReader(),n=+e.headers.get("Content-Length");if(n)return n;{let r=0;for(;;){const{done:o,value:i}=await t.read();if(o)return r;r+=i.length}}}function qg(e){const t=["Bytes","KB","MB","GB","TB"];if(e===0)return"0 Byte";const n=Math.floor(Math.log(e)/Math.log(1024));return`${Number.parseFloat((e/1024**n).toFixed(2))} ${t[n]}`}function Kg(e){return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"numeric",second:"numeric",hour12:!0}).format(e)}function zg(e){return Cd(e)?new URL(e).origin:e}let Jg;const dn=[];function Xg(e){if(dn.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&dn.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&dn.forEach(n=>n(t))},get(){return Jg.value},configurable:!0}),()=>{dn.splice(dn.indexOf(e),1)}}const Yg={class:"relative n-bg-base flex flex-col"},Qg={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},Zg={class:"mx-auto flex flex-col w-full"},ey={key:0},ty=xe("div",null,"No scripts loaded.",-1),ny=[ty],ry={class:"space-y-3"},oy={class:"flex items-center justify-between w-full mb-3"},iy={class:"flex items-center gap-4"},sy=["title","href"],ly=["src"],ay={class:"opacity-70"},cy={key:0},uy={class:"space-y-2"},fy={class:"opacity-40"},dy={key:0,class:"font-bold px-2 py-[2px] bg-green-50 text-green-700 rounded-lg"},py={key:1,class:"font-bold px-2 py-[2px] bg-gray-100 text-gray-700 rounded-lg"},hy={key:2,class:"font-bold px-2 py-[2px] bg-red-100 text-red-700 rounded-lg"},my={key:3,class:"font-bold px-2 py-[2px] bg-yellow-100 text-yellow-700 rounded-lg"},_y=Bt({__name:"app",async setup(e){let t,n;[t,n]=tf(()=>Hg()),await t,n();const r=qe({}),o=st({});function i(s){r.value={...s};for(const l in s)o[l]||Gg(s[l].src).then(a=>{o[l]=a}).catch(()=>{o[l]=0})}return Xg(async s=>{Lc.value=s.devtools,s.host.nuxt.hooks.hook("scripts:updated",l=>{i(l.scripts)}),i(s.host.nuxt._scripts)}),(s,l)=>{const a=Yh,c=Ug;return ee(),Pe("div",Yg,[xe("div",Qg,[xe("main",Zg,[Object.keys(oe(r)).length?At("",!0):(ee(),Pe("div",ey,ny)),xe("div",ry,[(ee(!0),Pe(Ae,null,Ki(oe(r),(u,f)=>(ee(),Pe("div",{key:f,class:"w-full"},[xe("div",oy,[xe("div",iy,[xe("a",{class:"text-xl font-bold flex gap-2 items-center font-mono",title:u.src,target:"_blank",href:u.src},[u.src.startsWith("/")?At("",!0):(ee(),Pe("img",{key:0,src:`https://www.google.com/s2/favicons?domain=${oe(zg)(u.src)}`,class:"w-4 h-4 rounded-lg"},null,8,ly)),xe("div",null,ut(u.key),1)],8,sy),xe("div",ay,ut(u.$script.status.value),1),oe(o)[u.key]?(ee(),Pe("div",cy,ut(oe(o)[u.key]),1)):At("",!0)]),xe("div",null,[u.$script.status==="awaitingLoad"?(ee(),ke(a,{key:0,onClick:d=>u.$script.load()},{default:Tn(()=>[pr(" Load ")]),_:2},1032,["onClick"])):u.$script.status==="loaded"?(ee(),ke(a,{key:1,onClick:d=>u.$script.remove()},{default:Tn(()=>[pr(" Remove ")]),_:2},1032,["onClick"])):At("",!0)])]),xe("div",uy,[(ee(!0),Pe(Ae,null,Ki(u.events,(d,h)=>{var m;return ee(),Pe("div",{key:h,class:"flex gap-3 text-xs justify-start items-center"},[xe("div",fy,ut(oe(Kg)(d.at)),1),d.type==="status"?(ee(),Pe(Ae,{key:0},[d.status==="loaded"?(ee(),Pe("div",dy,ut(d.status),1)):d.status==="awaitingLoad"?(ee(),Pe("div",py,ut(d.status),1)):d.status==="removed"||d.status==="error"?(ee(),Pe("div",hy,ut(d.status),1)):d.status==="loading"?(ee(),Pe("div",my,ut(d.status),1)):At("",!0)],64)):d.type==="fn-call"&&d.args?(ee(),ke(c,{key:1,code:`${d.fn}(${((m=d.args)==null?void 0:m.map(y=>JSON.stringify(y,null,2)).join(", "))||""})`,lang:"javascript"},null,8,["code"])):d.type==="fn-call"&&!d.args?(ee(),ke(c,{key:2,code:`QUEUED ${d.fn}`,lang:"javascript"},null,8,["code"])):At("",!0)])}),128))])]))),128))])])])])}}}),gy={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
30
|
+
`).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
|
|
31
|
+
`);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),s=n.message||n.toString(),l=void 0,u=o?qi(()=>p(()=>import("./jmWmhCGR.js"),__vite__mapDeps([114,115,116]),import.meta.url).then(f=>f.default||f)):qi(()=>p(()=>import("./DMNuDhJC.js"),__vite__mapDeps([117,115,118]),import.meta.url).then(f=>f.default||f));return(f,d)=>(ee(),ke(oe(u),qc(aa({statusCode:oe(r),statusMessage:oe(i),description:oe(s),stack:oe(l)})),null,16))}},yy={key:0},Qs={__name:"nuxt-root",setup(e){const t=()=>null,n=de(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);lt().beforeEach(a)}const o=!1;Wl(ka,Na()),n.hooks.callHookWith(a=>a.map(c=>c()),"vue:setup");const i=gi(),s=!1;Fl((a,c,u)=>{if(n.hooks.callHook("vue:error",a,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),Op(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>Sp(a)),!1});const l=!1;return(a,c)=>(ee(),ke(Mu,{onResolve:oe(r)},{default:Tn(()=>[oe(s)?(ee(),Pe("div",yy)):oe(i)?(ee(),ke(oe(gy),{key:1,error:oe(i)},null,8,["error"])):oe(l)?(ee(),ke(oe(t),{key:2,context:oe(l)},null,8,["context"])):oe(o)?(ee(),ke(kl(oe(o)),{key:3})):(ee(),ke(oe(_y),{key:4}))]),_:1},8,["onResolve"]))}};let Zs;{let e;Zs=async function(){var s,l;if(e)return e;const r=!!((s=window.__NUXT__)!=null&&s.serverRendered||((l=document.getElementById("__NUXT_DATA__"))==null?void 0:l.dataset.ssr)==="true")?rd(Qs):nd(Qs),o=dp({vueApp:r});async function i(a){await o.callHook("app:error",a),o.payload.error=o.payload.error||yi(a)}r.config.errorHandler=i;try{await mp(o,Fh)}catch(a){i(a)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(up),await o.hooks.callHook("app:mounted",r),await oi()}catch(a){i(a)}return r.config.errorHandler===i&&(r.config.errorHandler=void 0),r},e=Zs().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{zh as _,xe as a,ue as b,Pe as c,pr as d,Ey as e,wy as f,_n as g,jl as h,Ry as i,qu as j,Wu as k,Do as l,ua as m,ee as o,vy as p,qe as r,ut as t,Tn as w};
|